File: debug.html

package info (click to toggle)
firefox 141.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,550,588 kB
  • sloc: cpp: 7,426,506; javascript: 6,367,238; ansic: 3,707,351; python: 1,369,002; xml: 623,983; asm: 426,918; java: 184,324; sh: 64,488; makefile: 19,203; objc: 13,059; perl: 12,955; yacc: 4,583; cs: 3,846; pascal: 3,352; lex: 1,720; ruby: 1,071; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10
file content (77 lines) | stat: -rw-r--r-- 2,878 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Profile backup debug tool</title>

    <link rel="stylesheet" href="chrome://global/skin/in-content/common.css" />
  </head>
  <body>
    <header>
      <h1>Profile backup debug tool</h1>
    </header>

    <main>
      <section>
        <h2>State</h2>
        <ol>
          <li>
            <input
              type="checkbox"
              preference="browser.backup.enabled"
            />BackupService component enabled
          </li>
          <li>
            <input
              type="checkbox"
              preference="browser.backup.log"
            />BackupService debug logging enabled
          </li>
          <li>
            <input id="encryption-enabled" type="checkbox" />Encryption enabled
          </li>
        </ol>
      </section>
      <section id="controls">
        <h2>Controls</h2>
        <button id="create-backup">Create backup</button>
        <p>
          Clicking "Create backup" will create a backup, and then attempt to
          show an OS notification with the total time it took to create it. This
          notification may not appear if your OS has not granted the browser to
          display notifications.
        </p>
        <p id="last-backup-status"></p>
        <button id="open-backup-folder">Open backups folder</button>
        <button id="recover-from-archive">Recover from archive</button>
        <p id="recover-from-archive-status"></p>
        <button id="recover-from-staging">
          Recover from staging folder and launch
        </button>
        <p>
          Clicking "Recover from staging folder and launch" will open a file
          picker to allow you to select a staging folder. Once selected, a new
          user profile will be created and the data stores from the staging
          folder will be copied into that new profile. The new profile will then
          be launched.
        </p>
        <p id="last-recovery-status"></p>
        <button id="extract-from-archive">Extract from archive</button>
        <p id="extraction-status"></p>
        <p>
          Clicking "Extract from archive" will open a file picker to allow you
          to select an single-file archive (the HTML file). Once selected, the
          ZIP file contained inside will be extracted into the same folder,
          named extraction.zip.
        </p>
      </section>
    </main>

    <script src="chrome://global/content/preferencesBindings.js"></script>
    <script src="chrome://browser/content/backup/debug.js"></script>
  </body>
</html>