debug.html (2878B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 <!doctype html> 5 <html lang="en"> 6 <head> 7 <meta charset="UTF-8" /> 8 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 9 <title>Profile backup debug tool</title> 10 11 <link rel="stylesheet" href="chrome://global/skin/in-content/common.css" /> 12 </head> 13 <body> 14 <header> 15 <h1>Profile backup debug tool</h1> 16 </header> 17 18 <main> 19 <section> 20 <h2>State</h2> 21 <ol> 22 <li> 23 <input 24 type="checkbox" 25 preference="browser.backup.enabled" 26 />BackupService component enabled 27 </li> 28 <li> 29 <input 30 type="checkbox" 31 preference="browser.backup.log" 32 />BackupService debug logging enabled 33 </li> 34 <li> 35 <input id="encryption-enabled" type="checkbox" />Encryption enabled 36 </li> 37 </ol> 38 </section> 39 <section id="controls"> 40 <h2>Controls</h2> 41 <button id="create-backup">Create backup</button> 42 <p> 43 Clicking "Create backup" will create a backup, and then attempt to 44 show an OS notification with the total time it took to create it. This 45 notification may not appear if your OS has not granted the browser to 46 display notifications. 47 </p> 48 <p id="last-backup-status"></p> 49 <button id="open-backup-folder">Open backups folder</button> 50 <button id="recover-from-archive">Recover from archive</button> 51 <p id="recover-from-archive-status"></p> 52 <button id="recover-from-staging"> 53 Recover from staging folder and launch 54 </button> 55 <p> 56 Clicking "Recover from staging folder and launch" will open a file 57 picker to allow you to select a staging folder. Once selected, a new 58 user profile will be created and the data stores from the staging 59 folder will be copied into that new profile. The new profile will then 60 be launched. 61 </p> 62 <p id="last-recovery-status"></p> 63 <button id="extract-from-archive">Extract from archive</button> 64 <p id="extraction-status"></p> 65 <p> 66 Clicking "Extract from archive" will open a file picker to allow you 67 to select an single-file archive (the HTML file). Once selected, the 68 ZIP file contained inside will be extracted into the same folder, 69 named extraction.zip. 70 </p> 71 </section> 72 </main> 73 74 <script src="chrome://global/content/preferencesBindings.js"></script> 75 <script src="chrome://browser/content/backup/debug.js"></script> 76 </body> 77 </html>