fune/browser/components/backup/content/debug.html
Mike Conley bd9d00fd51 Bug 1888491 - Build a simple debug interface for BackupService. r=backup-reviewers,kpatenio
Currently this only gets packaged for Nightly builds. You can access the page
by visiting chrome://browser/content/backup/debug.html.

This also fixes an issue where we weren't clearing the staging folder
recursively if it pre-existed.

Differential Revision: https://phabricator.services.mozilla.com/D206067
2024-04-03 13:37:35 +00:00

46 lines
1.4 KiB
HTML

<!-- 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>
</ol>
</section>
<section id="controls">
<h2>Controls</h2>
<button id="create-backup">Create backup</button>
<button id="open-backup-folder">Open backups folder</button>
</section>
</main>
<script src="chrome://global/content/preferencesBindings.js"></script>
<script src="chrome://browser/content/backup/debug.js"></script>
</body>
</html>