The current properties selectedProfile and defaultProfile are somewhat confusing selectedProfile actually returns the default profile for the build and defaultProfile returns the default profile for non-dev-edition builds. This confusion leads to callers doing the wrong thing in some places. What most code actually cares about is being able to set/get the default profile for this build and getting the current profile in use. So this patch replaces the previous properties with currentProfile and defaultProfile which do what makes more sense. This patch also switches from using the preprocessor to change behaviour for dev-edition builds to using a boolean flag since some code was incorrectly ignoring the setting to make dev-edition use the same profile as normal builds. In order to make currentProfile correct when resetting a profile I had to move CreateResetProfile into nsToolkitProfileService. Differential Revision: https://phabricator.services.mozilla.com/D16118
35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- 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 xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title data-l10n-id="profiles-title"></title>
|
|
<link rel="icon" type="image/png" id="favicon" href="chrome://branding/content/icon32.png" />
|
|
<link rel="stylesheet" href="chrome://mozapps/skin/aboutProfiles.css" type="text/css" />
|
|
<script type="application/javascript" src="chrome://global/content/aboutProfiles.js" />
|
|
<link rel="localization" href="branding/brand.ftl" />
|
|
<link rel="localization" href="toolkit/about/aboutProfiles.ftl" />
|
|
</head>
|
|
<body id="body" class="wide-container">
|
|
<div id="action-box" class="notice-box">
|
|
<h3 data-l10n-id="profiles-restart-title"></h3>
|
|
<button id="restart-in-safe-mode-button" data-l10n-id="profiles-restart-in-safe-mode"></button>
|
|
<button id="restart-button" data-l10n-id="profiles-restart-normal"></button>
|
|
</div>
|
|
|
|
<h1 data-l10n-id="profiles-title"></h1>
|
|
<div data-l10n-id="profiles-subtitle"></div>
|
|
|
|
<div>
|
|
<button id="create-button" data-l10n-id="profiles-create"></button>
|
|
</div>
|
|
|
|
<div id="profiles" class="tab"></div>
|
|
</body>
|
|
</html>
|