Bug 1349689 - Remove old preferences fork r?jaws draft
authorRicky Chien <ricky060709@gmail.com>
Mon, 21 Aug 2017 17:48:18 +0800
changeset 655563 97caf28d812e1d66d32fda663f644627a6cba1b8
parent 655385 db7f19e26e571ae1dd309f5d2f387b06ba670c30
child 728877 eb2596dab96ca59f816e94afeca6e6a3b0c2db69
push id76920
push userbmo:rchien@mozilla.com
push dateWed, 30 Aug 2017 06:36:12 +0000
reviewersjaws
bugs1349689
milestone57.0a1
Bug 1349689 - Remove old preferences fork r?jaws
browser/app/profile/firefox.js
browser/base/content/browser-data-submission-info-bar.js
browser/base/content/browser-media.js
browser/base/content/browser.js
browser/base/content/test/alerts/browser_notification_open_settings.js
browser/base/content/test/general/browser_datachoices_notification.js
browser/base/content/test/general/browser_offlineQuotaNotification.js
browser/base/content/test/general/browser_storagePressure_notification.js
browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js
browser/base/content/utilityOverlay.js
browser/components/about/AboutRedirector.cpp
browser/components/about/AboutRedirector.h
browser/components/customizableui/test/browser_1087303_button_preferences.js
browser/components/customizableui/test/browser_synced_tabs_menu.js
browser/components/feeds/FeedWriter.js
browser/components/nsBrowserGlue.js
browser/components/preferences/applicationManager.js
browser/components/preferences/handlers.xml
browser/components/preferences/in-content-new/containers.js
browser/components/preferences/in-content-new/containers.xul
browser/components/preferences/in-content-new/findInPage.js
browser/components/preferences/in-content-new/jar.mn
browser/components/preferences/in-content-new/main.js
browser/components/preferences/in-content-new/main.xul
browser/components/preferences/in-content-new/moz.build
browser/components/preferences/in-content-new/preferences.js
browser/components/preferences/in-content-new/preferences.xul
browser/components/preferences/in-content-new/privacy.js
browser/components/preferences/in-content-new/privacy.xul
browser/components/preferences/in-content-new/search.js
browser/components/preferences/in-content-new/search.xul
browser/components/preferences/in-content-new/searchResults.xul
browser/components/preferences/in-content-new/subdialogs.js
browser/components/preferences/in-content-new/sync.js
browser/components/preferences/in-content-new/sync.xul
browser/components/preferences/in-content-new/tests/.eslintrc.js
browser/components/preferences/in-content-new/tests/browser.ini
browser/components/preferences/in-content-new/tests/browser_advanced_update.js
browser/components/preferences/in-content-new/tests/browser_applications_selection.js
browser/components/preferences/in-content-new/tests/browser_basic_rebuild_fonts_test.js
browser/components/preferences/in-content-new/tests/browser_bug1018066_resetScrollPosition.js
browser/components/preferences/in-content-new/tests/browser_bug1020245_openPreferences_to_paneContent.js
browser/components/preferences/in-content-new/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.js
browser/components/preferences/in-content-new/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.xul
browser/components/preferences/in-content-new/tests/browser_bug410900.js
browser/components/preferences/in-content-new/tests/browser_bug705422.js
browser/components/preferences/in-content-new/tests/browser_bug731866.js
browser/components/preferences/in-content-new/tests/browser_bug795764_cachedisabled.js
browser/components/preferences/in-content-new/tests/browser_change_app_handler.js
browser/components/preferences/in-content-new/tests/browser_checkspelling.js
browser/components/preferences/in-content-new/tests/browser_connection.js
browser/components/preferences/in-content-new/tests/browser_connection_bug388287.js
browser/components/preferences/in-content-new/tests/browser_cookies_dialog.js
browser/components/preferences/in-content-new/tests/browser_cookies_exceptions.js
browser/components/preferences/in-content-new/tests/browser_defaultbrowser_alwayscheck.js
browser/components/preferences/in-content-new/tests/browser_engines.js
browser/components/preferences/in-content-new/tests/browser_healthreport.js
browser/components/preferences/in-content-new/tests/browser_homepages_filter_aboutpreferences.js
browser/components/preferences/in-content-new/tests/browser_layersacceleration.js
browser/components/preferences/in-content-new/tests/browser_masterpassword.js
browser/components/preferences/in-content-new/tests/browser_notifications_do_not_disturb.js
browser/components/preferences/in-content-new/tests/browser_password_management.js
browser/components/preferences/in-content-new/tests/browser_performance.js
browser/components/preferences/in-content-new/tests/browser_performance_e10srollout.js
browser/components/preferences/in-content-new/tests/browser_performance_non_e10s.js
browser/components/preferences/in-content-new/tests/browser_permissions_dialog.js
browser/components/preferences/in-content-new/tests/browser_permissions_urlFieldHidden.js
browser/components/preferences/in-content-new/tests/browser_privacypane_1.js
browser/components/preferences/in-content-new/tests/browser_privacypane_3.js
browser/components/preferences/in-content-new/tests/browser_privacypane_4.js
browser/components/preferences/in-content-new/tests/browser_privacypane_5.js
browser/components/preferences/in-content-new/tests/browser_privacypane_8.js
browser/components/preferences/in-content-new/tests/browser_proxy_backup.js
browser/components/preferences/in-content-new/tests/browser_sanitizeOnShutdown_prefLocked.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_1.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_2.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_3.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_4.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_5.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_6.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_7.js
browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_8.js
browser/components/preferences/in-content-new/tests/browser_search_within_preferences_1.js
browser/components/preferences/in-content-new/tests/browser_search_within_preferences_2.js
browser/components/preferences/in-content-new/tests/browser_search_within_preferences_command.js
browser/components/preferences/in-content-new/tests/browser_searchsuggestions.js
browser/components/preferences/in-content-new/tests/browser_security-1.js
browser/components/preferences/in-content-new/tests/browser_security-2.js
browser/components/preferences/in-content-new/tests/browser_siteData.js
browser/components/preferences/in-content-new/tests/browser_siteData2.js
browser/components/preferences/in-content-new/tests/browser_siteData3.js
browser/components/preferences/in-content-new/tests/browser_site_login_exceptions.js
browser/components/preferences/in-content-new/tests/browser_subdialogs.js
browser/components/preferences/in-content-new/tests/browser_telemetry.js
browser/components/preferences/in-content-new/tests/head.js
browser/components/preferences/in-content-new/tests/offline/manifest.appcache
browser/components/preferences/in-content-new/tests/offline/offline.html
browser/components/preferences/in-content-new/tests/privacypane_tests_perwindow.js
browser/components/preferences/in-content-new/tests/site_data_test.html
browser/components/preferences/in-content-new/tests/subdialog.xul
browser/components/preferences/in-content-new/tests/subdialog2.xul
browser/components/preferences/in-content/advanced.js
browser/components/preferences/in-content/advanced.xul
browser/components/preferences/in-content/applications.js
browser/components/preferences/in-content/applications.xul
browser/components/preferences/in-content/containers.js
browser/components/preferences/in-content/containers.xul
browser/components/preferences/in-content/content.js
browser/components/preferences/in-content/content.xul
browser/components/preferences/in-content/findInPage.js
browser/components/preferences/in-content/jar.mn
browser/components/preferences/in-content/main.js
browser/components/preferences/in-content/main.xul
browser/components/preferences/in-content/preferences.js
browser/components/preferences/in-content/preferences.xul
browser/components/preferences/in-content/privacy.js
browser/components/preferences/in-content/privacy.xul
browser/components/preferences/in-content/search.xul
browser/components/preferences/in-content/searchResults.xul
browser/components/preferences/in-content/security.js
browser/components/preferences/in-content/security.xul
browser/components/preferences/in-content/subdialogs.js
browser/components/preferences/in-content/sync.js
browser/components/preferences/in-content/sync.xul
browser/components/preferences/in-content/tests/browser.ini
browser/components/preferences/in-content/tests/browser_advanced_update.js
browser/components/preferences/in-content/tests/browser_applications_selection.js
browser/components/preferences/in-content/tests/browser_basic_rebuild_fonts_test.js
browser/components/preferences/in-content/tests/browser_bug1018066_resetScrollPosition.js
browser/components/preferences/in-content/tests/browser_bug1020245_openPreferences_to_paneContent.js
browser/components/preferences/in-content/tests/browser_bug410900.js
browser/components/preferences/in-content/tests/browser_bug731866.js
browser/components/preferences/in-content/tests/browser_bug795764_cachedisabled.js
browser/components/preferences/in-content/tests/browser_change_app_handler.js
browser/components/preferences/in-content/tests/browser_checkspelling.js
browser/components/preferences/in-content/tests/browser_cookies_dialog.js
browser/components/preferences/in-content/tests/browser_cookies_exceptions.js
browser/components/preferences/in-content/tests/browser_engines.js
browser/components/preferences/in-content/tests/browser_homepages_filter_aboutpreferences.js
browser/components/preferences/in-content/tests/browser_layersacceleration.js
browser/components/preferences/in-content/tests/browser_masterpassword.js
browser/components/preferences/in-content/tests/browser_notifications_do_not_disturb.js
browser/components/preferences/in-content/tests/browser_password_management.js
browser/components/preferences/in-content/tests/browser_performance.js
browser/components/preferences/in-content/tests/browser_performance_e10srollout.js
browser/components/preferences/in-content/tests/browser_performance_non_e10s.js
browser/components/preferences/in-content/tests/browser_permissions_dialog.js
browser/components/preferences/in-content/tests/browser_permissions_urlFieldHidden.js
browser/components/preferences/in-content/tests/browser_sanitizeOnShutdown_prefLocked.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_1.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_2.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_3.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_4.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_5.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_6.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_7.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_8.js
browser/components/preferences/in-content/tests/browser_search_within_preferences_1.js
browser/components/preferences/in-content/tests/browser_search_within_preferences_2.js
browser/components/preferences/in-content/tests/browser_search_within_preferences_command.js
browser/components/preferences/in-content/tests/browser_searchsuggestions.js
browser/components/preferences/in-content/tests/browser_security-1.js
browser/components/preferences/in-content/tests/browser_security-2.js
browser/components/preferences/in-content/tests/browser_security.js
browser/components/preferences/in-content/tests/browser_siteData.js
browser/components/preferences/in-content/tests/browser_siteData2.js
browser/components/preferences/in-content/tests/browser_siteData3.js
browser/components/preferences/in-content/tests/browser_site_login_exceptions.js
browser/components/preferences/in-content/tests/head.js
browser/components/preferences/in-content/tests/offline/offline.html
browser/components/preferences/moz.build
browser/components/preferences/siteDataRemoveSelected.xul
browser/components/preferences/siteDataSettings.xul
browser/components/translation/test/browser_translation_yandex.js
browser/components/uitour/UITour-lib.js
browser/components/uitour/UITour.jsm
browser/components/uitour/test/browser_openPreferences.js
browser/extensions/formautofill/FormAutofillParent.jsm
browser/extensions/formautofill/FormAutofillPreferences.jsm
browser/extensions/formautofill/test/browser/browser_privacyPreferences.js
browser/extensions/shield-recipe-client/content/AboutPages.jsm
browser/extensions/shield-recipe-client/content/shield-content-frame.js
browser/extensions/shield-recipe-client/lib/ShieldPreferences.jsm
browser/extensions/shield-recipe-client/test/browser/browser_about_studies.js
browser/installer/allowed-dupes.mn
browser/locales/en-US/chrome/browser/aboutDialog.dtd
browser/locales/en-US/chrome/browser/preferences-old/advanced.dtd
browser/locales/en-US/chrome/browser/preferences-old/applications.dtd
browser/locales/en-US/chrome/browser/preferences-old/containers.dtd
browser/locales/en-US/chrome/browser/preferences-old/containers.properties
browser/locales/en-US/chrome/browser/preferences-old/content.dtd
browser/locales/en-US/chrome/browser/preferences-old/main.dtd
browser/locales/en-US/chrome/browser/preferences-old/preferences.dtd
browser/locales/en-US/chrome/browser/preferences-old/preferences.properties
browser/locales/en-US/chrome/browser/preferences-old/privacy.dtd
browser/locales/en-US/chrome/browser/preferences-old/search.dtd
browser/locales/en-US/chrome/browser/preferences-old/security.dtd
browser/locales/en-US/chrome/browser/preferences-old/sync.dtd
browser/locales/en-US/chrome/browser/preferences-old/tabs.dtd
browser/locales/jar.mn
browser/themes/linux/jar.mn
browser/themes/linux/preferences/in-content-new/dialog.css
browser/themes/linux/preferences/in-content-new/preferences.css
browser/themes/linux/preferences/in-content/dialog.css
browser/themes/linux/preferences/in-content/preferences.css
browser/themes/osx/jar.mn
browser/themes/osx/preferences/in-content-new/dialog.css
browser/themes/osx/preferences/in-content-new/preferences.css
browser/themes/osx/preferences/in-content/dialog.css
browser/themes/osx/preferences/in-content/preferences.css
browser/themes/shared/fxa/android.png
browser/themes/shared/fxa/android@2x.png
browser/themes/shared/fxa/ios.png
browser/themes/shared/fxa/ios@2x.png
browser/themes/shared/fxa/logo.png
browser/themes/shared/fxa/logo@2x.png
browser/themes/shared/incontentprefs-old/containers.css
browser/themes/shared/incontentprefs-old/dialog.inc.css
browser/themes/shared/incontentprefs-old/icons.svg
browser/themes/shared/incontentprefs-old/preferences.inc.css
browser/themes/shared/incontentprefs-old/search.css
browser/themes/shared/incontentprefs/containers.css
browser/themes/shared/incontentprefs/preferences.inc.css
browser/themes/shared/jar.inc.mn
browser/themes/windows/jar.mn
browser/themes/windows/preferences/in-content-new/dialog.css
browser/themes/windows/preferences/in-content/dialog.css
browser/themes/windows/preferences/in-content/preferences.css
browser/tools/mozscreenshots/mozscreenshots/extension/configurations/Preferences.jsm
testing/runtimes/mochitest-browser-chrome-e10s.runtimes.json
testing/runtimes/mochitest-browser-chrome.runtimes.json
toolkit/content/aboutTelemetry.js
toolkit/mozapps/extensions/content/extensions.js
toolkit/mozapps/extensions/test/browser/browser_experiments.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -719,19 +719,16 @@ pref("plugins.favorfallback.rules", "nos
 pref("browser.preferences.instantApply", false);
 #else
 pref("browser.preferences.instantApply", true);
 #endif
 
 // Toggling Search bar on and off in about:preferences
 pref("browser.preferences.search", true);
 
-// Use the new in-content about:preferences in Nightly only for now
-pref("browser.preferences.useOldOrganization", false);
-
 // Once the Storage Management is completed.
 // (The Storage Management-related prefs are browser.storageManager.* )
 // The Offline(Appcache) Group section in about:preferences will be hidden.
 // And the task to clear appcache will be done by Storage Management.
 #if defined(NIGHTLY_BUILD)
 pref("browser.preferences.offlineGroup.enabled", false);
 #else
 pref("browser.preferences.offlineGroup.enabled", true);
--- a/browser/base/content/browser-data-submission-info-bar.js
+++ b/browser/base/content/browser-data-submission-info-bar.js
@@ -58,23 +58,17 @@ var gDataNotificationInfoBar = {
     this._actionTaken = false;
 
     let buttons = [{
       label: gNavigatorBundle.getString("dataReportingNotification.button.label"),
       accessKey: gNavigatorBundle.getString("dataReportingNotification.button.accessKey"),
       popup: null,
       callback: () => {
         this._actionTaken = true;
-        // The advanced subpanes are only supported in the old organization, which will
-        // be removed by bug 1349689.
-        if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-          window.openAdvancedPreferences("dataChoicesTab", {origin: "dataReporting"});
-        } else {
-          window.openPreferences("privacy-reports", {origin: "dataReporting"});
-        }
+        window.openPreferences("privacy-reports", {origin: "dataReporting"});
       },
     }];
 
     this._log.info("Creating data reporting policy notification.");
     this._notificationBox.appendNotification(
       message,
       this._DATA_REPORTING_NOTIFICATION,
       null,
--- a/browser/base/content/browser-media.js
+++ b/browser/base/content/browser-media.js
@@ -164,21 +164,17 @@ var gEMEHandler = {
     } else {
       document.getElementById(anchorId).removeAttribute("firstplay");
     }
 
     let mainAction = {
       label: gNavigatorBundle.getString(btnLabelId),
       accessKey: gNavigatorBundle.getString(btnAccessKeyId),
       callback() {
-        if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-          openPreferences("paneContent", {origin: "browserMedia"});
-        } else {
-          openPreferences("general-drm", {origin: "browserMedia"});
-        }
+        openPreferences("general-drm", {origin: "browserMedia"});
       },
       dismiss: true
     };
     let options = {
       dismissed: true,
       eventCallback: aTopic => aTopic == "swapping",
       learnMoreURL: Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content",
     };
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -543,21 +543,17 @@ const gStoragePressureObserver = {
       msg = prefStrBundle.getFormattedString(descriptionStringID, [brandShortName]);
       buttons.push({
         label: prefStrBundle.getString(prefButtonLabelStringID),
         accessKey: prefStrBundle.getString(prefButtonAccesskeyStringID),
         callback(notificationBar, button) {
           // The advanced subpanes are only supported in the old organization, which will
           // be removed by bug 1349689.
           let win = gBrowser.ownerGlobal;
-          if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-            win.openAdvancedPreferences("networkTab", {origin: "storagePressure"});
-          } else {
-            win.openPreferences("panePrivacy", {origin: "storagePressure"});
-          }
+          win.openPreferences("panePrivacy", { origin: "storagePressure" });
         }
       });
     }
 
     notificationBox.appendNotification(
       msg, NOTIFICATION_VALUE, null, notificationBox.PRIORITY_WARNING_HIGH, buttons, null);
   }
 };
@@ -6530,23 +6526,17 @@ var OfflineApps = {
     if (browser && browser.messageManager) {
       browser.messageManager.sendAsyncMessage("OfflineApps:StartFetching", {
         docId,
       });
     }
   },
 
   manage() {
-    // The advanced subpanes are only supported in the old organization, which will
-    // be removed by bug 1349689.
-    if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-      openAdvancedPreferences("networkTab", {origin: "offlineApps"});
-    } else {
-      openPreferences("panePrivacy", {origin: "offlineApps"});
-    }
+    openPreferences("panePrivacy", { origin: "offlineApps" });
   },
 
   receiveMessage(msg) {
     switch (msg.name) {
       case "OfflineApps:CheckUsage":
         let uri = makeURI(msg.data.uri);
         if (this._usedMoreThanWarnQuota(uri)) {
           this.warnUsage(msg.target, uri);
--- a/browser/base/content/test/alerts/browser_notification_open_settings.js
+++ b/browser/base/content/test/alerts/browser_notification_open_settings.js
@@ -1,58 +1,40 @@
 "use strict";
 
 var notificationURL = "http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
-var useOldPrefs = Services.prefs.getBoolPref("browser.preferences.useOldOrganization");
-var expectedURL = useOldPrefs ? "about:preferences#content"
-                              : "about:preferences#privacy";
-
+var expectedURL = "about:preferences#privacy";
 
 add_task(async function test_settingsOpen_observer() {
   info("Opening a dummy tab so openPreferences=>switchToTabHavingURI doesn't use the blank tab.");
   await BrowserTestUtils.withNewTab({
     gBrowser,
     url: "about:robots"
   }, async function dummyTabTask(aBrowser) {
-    // Ensure preferences is loaded before removing the tab. In the "new prefs", all categories
-    // get initialized on page load since we need to be able to search them. Sync is *very*
-    // slow to load and therefore we need to wait for it to load when testing the "new prefs".
-    // For "old prefs" we only load the actual visited categories so we don't have this problem,
-    // as well, the "sync-pane-loaded" notification is not sent on "old prefs".
-    let syncPaneLoadedPromise = useOldPrefs || TestUtils.topicObserved("sync-pane-loaded", () => true);
-
     let tabPromise = BrowserTestUtils.waitForNewTab(gBrowser, expectedURL);
     info("simulate a notifications-open-settings notification");
     let uri = NetUtil.newURI("https://example.com");
     let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
     Services.obs.notifyObservers(principal, "notifications-open-settings");
     let tab = await tabPromise;
     ok(tab, "The notification settings tab opened");
-    await syncPaneLoadedPromise;
     await BrowserTestUtils.removeTab(tab);
   });
 });
 
 add_task(async function test_settingsOpen_button() {
   let pm = Services.perms;
   info("Adding notification permission");
   pm.add(makeURI(notificationURL), "desktop-notification", pm.ALLOW_ACTION);
 
   try {
     await BrowserTestUtils.withNewTab({
       gBrowser,
       url: notificationURL
     }, async function tabTask(aBrowser) {
-      // Ensure preferences is loaded before removing the tab. In the "new prefs", all categories
-      // get initialized on page load since we need to be able to search them. Sync is *very*
-      // slow to load and therefore we need to wait for it to load when testing the "new prefs".
-      // For "old prefs" we only load the actual visited categories so we don't have this problem,
-      // as well, the "sync-pane-loaded" notification is not sent on "old prefs".
-      let syncPaneLoadedPromise = useOldPrefs || TestUtils.topicObserved("sync-pane-loaded", () => true);
-
       info("Waiting for notification");
       await openNotification(aBrowser, "showNotification2");
 
       let alertWindow = Services.wm.getMostRecentWindow("alert:alert");
       if (!alertWindow) {
         ok(true, "Notifications don't use XUL windows on all platforms.");
         await closeNotification(aBrowser);
         return;
@@ -62,17 +44,16 @@ add_task(async function test_settingsOpe
       let tabPromise = BrowserTestUtils.waitForNewTab(gBrowser, expectedURL);
       let openSettingsMenuItem = alertWindow.document.getElementById("openSettingsMenuItem");
       openSettingsMenuItem.click();
 
       info("Waiting for notification settings tab");
       let tab = await tabPromise;
       ok(tab, "The notification settings tab opened");
 
-      await syncPaneLoadedPromise;
       await closePromise;
       await BrowserTestUtils.removeTab(tab);
     });
   } finally {
     info("Removing notification permission");
     pm.remove(makeURI(notificationURL), "desktop-notification");
   }
 });
--- a/browser/base/content/test/general/browser_datachoices_notification.js
+++ b/browser/base/content/test/general/browser_datachoices_notification.js
@@ -78,25 +78,20 @@ function triggerInfoBar(expectedTimeoutM
 }
 
 var checkInfobarButton = async function(aNotification) {
   // Check that the button on the data choices infobar does the right thing.
   let buttons = aNotification.getElementsByTagName("button");
   Assert.equal(buttons.length, 1, "There is 1 button in the data reporting notification.");
   let button = buttons[0];
 
-  // Add an observer to ensure the "advanced" pane opened (but don't bother
-  // closing it - we close the entire window when done.)
-  let paneLoadedPromise = promiseTopicObserved("advanced-pane-loaded");
-
   // Click on the button.
   button.click();
 
   // Wait for the preferences panel to open.
-  await paneLoadedPromise;
   await promiseNextTick();
 };
 
 add_task(async function setup() {
   const bypassNotification = Preferences.get(PREF_BYPASS_NOTIFICATION, true);
   const currentPolicyVersion = Preferences.get(PREF_CURRENT_POLICY_VERSION, 1);
 
   // Register a cleanup function to reset our preferences.
--- a/browser/base/content/test/general/browser_offlineQuotaNotification.js
+++ b/browser/base/content/test/general/browser_offlineQuotaNotification.js
@@ -10,17 +10,16 @@ const URL = "http://mochi.test:8888/brow
 
 registerCleanupFunction(function() {
   // Clean up after ourself
   let uri = Services.io.newURI(URL);
   let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
   Services.perms.removeFromPrincipal(principal, "offline-app");
   Services.prefs.clearUserPref("offline-apps.quota.warn");
   Services.prefs.clearUserPref("offline-apps.allow_by_default");
-  Services.prefs.clearUserPref("browser.preferences.useOldOrganization");
   let {OfflineAppCacheHelper} = Components.utils.import("resource:///modules/offlineAppCache.jsm", {});
   OfflineAppCacheHelper.clear();
 });
 
 // Same as the other one, but for in-content preferences
 function checkInContentPreferences(win) {
   let doc = win.document;
   let sel = doc.getElementById("categories").selectedItems[0].id;
@@ -29,17 +28,16 @@ function checkInContentPreferences(win) 
   // all good, we are done.
   win.close();
   finish();
 }
 
 function test() {
   waitForExplicitFinish();
 
-  Services.prefs.setBoolPref("browser.preferences.useOldOrganization", false);
   Services.prefs.setBoolPref("offline-apps.allow_by_default", false);
 
   // Open a new tab.
   gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, URL);
   registerCleanupFunction(() => gBrowser.removeCurrentTab());
 
 
   Promise.all([
--- a/browser/base/content/test/general/browser_storagePressure_notification.js
+++ b/browser/base/content/test/general/browser_storagePressure_notification.js
@@ -8,50 +8,23 @@ function notifyStoragePressure(usage = 1
   let usageWrapper = Cc["@mozilla.org/supports-PRUint64;1"]
                      .createInstance(Ci.nsISupportsPRUint64);
   usageWrapper.data = usage;
   Services.obs.notifyObservers(usageWrapper, "QuotaManager::StoragePressure");
   return notifyPromise;
 }
 
 function openAboutPrefPromise() {
-  let useOldOrganization = Services.prefs.getBoolPref("browser.preferences.useOldOrganization");
-  let targetURL = useOldOrganization ? "about:preferences#advanced" : "about:preferences#privacy";
   let promises = [
-    BrowserTestUtils.waitForLocationChange(gBrowser, targetURL),
-    TestUtils.topicObserved("advanced-pane-loaded", () => true)
+    BrowserTestUtils.waitForLocationChange(gBrowser, "about:preferences#privacy"),
+    TestUtils.topicObserved("privacy-pane-loaded", () => true)
   ];
   return Promise.all(promises);
 }
 
-async function testOverUsageThresholdNotification() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.pressureNotification.minIntervalMS", 0]]});
-  let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "https://example.com");
-
-  const BYTES_IN_GIGABYTE = 1073741824;
-  const USAGE_THRESHOLD_BYTES = BYTES_IN_GIGABYTE *
-    Services.prefs.getIntPref("browser.storageManager.pressureNotification.usageThresholdGB");
-  await notifyStoragePressure(USAGE_THRESHOLD_BYTES);
-  let notificationbox = document.getElementById("high-priority-global-notificationbox");
-  let notification = notificationbox.getNotificationWithValue("storage-pressure-notification");
-  ok(notification instanceof XULElement, "Should display storage pressure notification");
-
-  let prefBtn = notification.getElementsByTagName("button")[1];
-  let aboutPrefPromise = openAboutPrefPromise();
-  prefBtn.doCommand();
-  await aboutPrefPromise;
-  let aboutPrefTab = gBrowser.selectedTab;
-  let prefDoc = gBrowser.selectedBrowser.contentDocument;
-  let siteDataGroup = prefDoc.getElementById("siteDataGroup");
-  is_element_visible(siteDataGroup, "Should open to the siteDataGroup section in about:preferences");
-  await BrowserTestUtils.removeTab(aboutPrefTab);
-  await BrowserTestUtils.removeTab(tab);
-}
-
 // Test only displaying notification once within the given interval
 add_task(async function() {
   const TEST_NOTIFICATION_INTERVAL_MS = 2000;
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.pressureNotification.minIntervalMS", TEST_NOTIFICATION_INTERVAL_MS]]});
 
   await notifyStoragePressure();
   let notificationbox = document.getElementById("high-priority-global-notificationbox");
@@ -67,22 +40,38 @@ add_task(async function() {
   await notifyStoragePressure();
   notification = notificationbox.getNotificationWithValue("storage-pressure-notification");
   ok(notification instanceof XULElement, "Should display storage pressure notification after the given interval");
   notification.close();
 });
 
 // Test guiding user to the about:preferences when usage exceeds the given threshold
 add_task(async function() {
-  // Test for the old about:preferences
-  await SpecialPowers.pushPrefEnv({set: [["browser.preferences.useOldOrganization", true]]});
-  await testOverUsageThresholdNotification();
-  // Test for the new about:preferences
-  await SpecialPowers.pushPrefEnv({set: [["browser.preferences.useOldOrganization", false]]});
-  await testOverUsageThresholdNotification();
+  await SpecialPowers.pushPrefEnv({ set: [["browser.storageManager.enabled", true]] });
+  await SpecialPowers.pushPrefEnv({ set: [["browser.storageManager.pressureNotification.minIntervalMS", 0]] });
+  let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "https://example.com");
+
+  const BYTES_IN_GIGABYTE = 1073741824;
+  const USAGE_THRESHOLD_BYTES = BYTES_IN_GIGABYTE *
+    Services.prefs.getIntPref("browser.storageManager.pressureNotification.usageThresholdGB");
+  await notifyStoragePressure(USAGE_THRESHOLD_BYTES);
+  let notificationbox = document.getElementById("high-priority-global-notificationbox");
+  let notification = notificationbox.getNotificationWithValue("storage-pressure-notification");
+  ok(notification instanceof XULElement, "Should display storage pressure notification");
+
+  let prefBtn = notification.getElementsByTagName("button")[1];
+  let aboutPrefPromise = openAboutPrefPromise();
+  prefBtn.doCommand();
+  await aboutPrefPromise;
+  let aboutPrefTab = gBrowser.selectedTab;
+  let prefDoc = gBrowser.selectedBrowser.contentDocument;
+  let siteDataGroup = prefDoc.getElementById("siteDataGroup");
+  is_element_visible(siteDataGroup, "Should open to the siteDataGroup section in about:preferences");
+  await BrowserTestUtils.removeTab(aboutPrefTab);
+  await BrowserTestUtils.removeTab(tab);
 });
 
 // Test not displaying the 2nd notification if one is already being displayed
 add_task(async function() {
   const TEST_NOTIFICATION_INTERVAL_MS = 0;
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.pressureNotification.minIntervalMS", TEST_NOTIFICATION_INTERVAL_MS]]});
 
--- a/browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js
+++ b/browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js
@@ -6,17 +6,17 @@ const {TabStateFlusher} = Cu.import("res
 /**
  * Test what happens if loading a URL that should clear the
  * location bar after a parent process URL.
  */
 add_task(async function clearURLBarAfterParentProcessURL() {
   let tab = await new Promise(resolve => {
     gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:preferences");
     let newTabBrowser = gBrowser.getBrowserForTab(gBrowser.selectedTab);
-    newTabBrowser.addEventListener("Initialized", function() {
+    newTabBrowser.addEventListener("Initialized", async function() {
       resolve(gBrowser.selectedTab);
     }, {capture: true, once: true});
   });
   document.getElementById("home-button").click();
   await BrowserTestUtils.browserLoaded(tab.linkedBrowser);
   is(gURLBar.value, "", "URL bar should be empty");
   is(tab.linkedBrowser.userTypedValue, null, "The browser should have no recorded userTypedValue");
   await BrowserTestUtils.removeTab(tab);
@@ -25,17 +25,17 @@ add_task(async function clearURLBarAfter
 /**
  * Same as above, but open the tab without passing the URL immediately
  * which changes behaviour in tabbrowser.xml.
  */
 add_task(async function clearURLBarAfterParentProcessURLInExistingTab() {
   let tab = await new Promise(resolve => {
     gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
     let newTabBrowser = gBrowser.getBrowserForTab(gBrowser.selectedTab);
-    newTabBrowser.addEventListener("Initialized", function() {
+    newTabBrowser.addEventListener("Initialized", async function() {
       resolve(gBrowser.selectedTab);
     }, {capture: true, once: true});
     newTabBrowser.loadURI("about:preferences");
   });
   document.getElementById("home-button").click();
   await BrowserTestUtils.browserLoaded(tab.linkedBrowser);
   is(gURLBar.value, "", "URL bar should be empty");
   is(tab.linkedBrowser.userTypedValue, null, "The browser should have no recorded userTypedValue");
--- a/browser/base/content/utilityOverlay.js
+++ b/browser/base/content/utilityOverlay.js
@@ -729,27 +729,16 @@ function openAboutDialog() {
 
 function openPreferences(paneID, extraArgs) {
   let histogram = Services.telemetry.getHistogramById("FX_PREFERENCES_OPENED_VIA");
   if (extraArgs && extraArgs.origin) {
     histogram.add(extraArgs.origin);
   } else {
     histogram.add("other");
   }
-  function switchToAdvancedSubPane(doc) {
-    if (extraArgs && extraArgs.advancedTab) {
-      // After the Preferences reorg works in Bug 1335907, no more advancedPrefs element.
-      // The old Preference is pref-off behind `browser.preferences.useOldOrganization` on Nightly.
-      // During the transition between the old and new Preferences, should do checking before proceeding.
-      let advancedPaneTabs = doc.getElementById("advancedPrefs");
-      if (advancedPaneTabs) {
-        advancedPaneTabs.selectedTab = doc.getElementById(extraArgs.advancedTab);
-      }
-    }
-  }
 
   // This function is duplicated from preferences.js.
   function internalPrefCategoryNameToFriendlyName(aName) {
     return (aName || "").replace(/^pane./, function(toReplace) { return toReplace[4].toLowerCase(); });
   }
 
   let win = Services.wm.getMostRecentWindow("navigator:browser");
   let friendlyCategoryName = internalPrefCategoryNameToFriendlyName(paneID);
@@ -759,64 +748,56 @@ function openPreferences(paneID, extraAr
     let urlParams = extraArgs.urlParams;
     for (let name in urlParams) {
       if (urlParams[name] !== undefined) {
         params.set(name, urlParams[name]);
       }
     }
   }
   let preferencesURL = "about:preferences" + (params ? "?" + params : "") +
-                       (friendlyCategoryName ? "#" + friendlyCategoryName : "");
+    (friendlyCategoryName ? "#" + friendlyCategoryName : "");
   let newLoad = true;
   let browser = null;
   if (!win) {
     const Cc = Components.classes;
     const Ci = Components.interfaces;
     let windowArguments = Cc["@mozilla.org/array;1"]
-                            .createInstance(Ci.nsIMutableArray);
+      .createInstance(Ci.nsIMutableArray);
     let supportsStringPrefURL = Cc["@mozilla.org/supports-string;1"]
-                                  .createInstance(Ci.nsISupportsString);
+      .createInstance(Ci.nsISupportsString);
     supportsStringPrefURL.data = preferencesURL;
     windowArguments.appendElement(supportsStringPrefURL);
 
     win = Services.ww.openWindow(null, Services.prefs.getCharPref("browser.chromeURL"),
-                                 "_blank", "chrome,dialog=no,all", windowArguments);
+      "_blank", "chrome,dialog=no,all", windowArguments);
   } else {
     let shouldReplaceFragment = friendlyCategoryName ? "whenComparingAndReplace" : "whenComparing";
     newLoad = !win.switchToTabHavingURI(preferencesURL, true, {
       ignoreFragment: shouldReplaceFragment,
       replaceQueryString: true,
       triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
     });
     browser = win.gBrowser.selectedBrowser;
   }
 
   if (newLoad) {
-    Services.obs.addObserver(function advancedPaneLoadedObs(prefWin, topic, data) {
+    Services.obs.addObserver(function panesLoadedObs(prefWin, topic, data) {
       if (!browser) {
         browser = win.gBrowser.selectedBrowser;
       }
       if (prefWin != browser.contentWindow) {
         return;
       }
-      Services.obs.removeObserver(advancedPaneLoadedObs, "advanced-pane-loaded");
-      switchToAdvancedSubPane(browser.contentDocument);
-    }, "advanced-pane-loaded");
-  } else {
-    if (paneID) {
-      browser.contentWindow.gotoPref(paneID);
-    }
-    switchToAdvancedSubPane(browser.contentDocument);
+      Services.obs.removeObserver(panesLoadedObs, "sync-pane-loaded");
+    }, "sync-pane-loaded");
+  } else if (paneID) {
+    browser.contentWindow.gotoPref(paneID);
   }
 }
 
-function openAdvancedPreferences(tabID, origin) {
-  openPreferences("paneAdvanced", { "advancedTab": tabID, origin });
-}
-
 /**
  * Opens the troubleshooting information (about:support) page for this version
  * of the application.
  */
 function openTroubleshootingPage() {
   openUILinkIn("about:support", "tab");
 }
 
--- a/browser/components/about/AboutRedirector.cpp
+++ b/browser/components/about/AboutRedirector.cpp
@@ -16,17 +16,16 @@
 #include "mozilla/Preferences.h"
 #include "nsServiceManagerUtils.h"
 
 namespace mozilla {
 namespace browser {
 
 NS_IMPL_ISUPPORTS(AboutRedirector, nsIAboutModule)
 
-bool AboutRedirector::sUseOldPreferences = false;
 bool AboutRedirector::sActivityStreamEnabled = false;
 bool AboutRedirector::sActivityStreamAboutHomeEnabled = false;
 
 struct RedirEntry {
   const char* id;
   const char* url;
   uint32_t flags;
 };
@@ -145,38 +144,30 @@ AboutRedirector::NewChannel(nsIURI* aURI
   NS_ASSERTION(result, "must not be null");
 
   nsAutoCString path = GetAboutModuleName(aURI);
 
   nsresult rv;
   nsCOMPtr<nsIIOService> ioService = do_GetIOService(&rv);
   NS_ENSURE_SUCCESS(rv, rv);
 
-  static bool sPrefCacheInited = false;
-  if (!sPrefCacheInited) {
-    Preferences::AddBoolVarCache(&sUseOldPreferences,
-                                 "browser.preferences.useOldOrganization");
-    sPrefCacheInited = true;
-  }
   LoadActivityStreamPrefs();
 
   for (auto & redir : kRedirMap) {
     if (!strcmp(path.get(), redir.id)) {
       nsAutoCString url;
 
       if (path.EqualsLiteral("newtab") ||
           (path.EqualsLiteral("home") && sActivityStreamEnabled && sActivityStreamAboutHomeEnabled)) {
         // let the aboutNewTabService decide where to redirect
         nsCOMPtr<nsIAboutNewTabService> aboutNewTabService =
           do_GetService("@mozilla.org/browser/aboutnewtab-service;1", &rv);
         NS_ENSURE_SUCCESS(rv, rv);
         rv = aboutNewTabService->GetDefaultURL(url);
         NS_ENSURE_SUCCESS(rv, rv);
-      } else if (path.EqualsLiteral("preferences") && !sUseOldPreferences) {
-        url.AssignASCII("chrome://browser/content/preferences/in-content-new/preferences.xul");
       }
       // fall back to the specified url in the map
       if (url.IsEmpty()) {
         url.AssignASCII(redir.url);
       }
 
       nsCOMPtr<nsIChannel> tempChannel;
       nsCOMPtr<nsIURI> tempURI;
--- a/browser/components/about/AboutRedirector.h
+++ b/browser/components/about/AboutRedirector.h
@@ -21,17 +21,16 @@ public:
 
   static nsresult
     Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
 protected:
   virtual ~AboutRedirector() {}
 
 private:
-  static bool sUseOldPreferences;
   static bool sActivityStreamEnabled;
   static bool sActivityStreamAboutHomeEnabled;
 
   static void LoadActivityStreamPrefs();
 };
 
 } // namespace browser
 } // namespace mozilla
--- a/browser/components/customizableui/test/browser_1087303_button_preferences.js
+++ b/browser/components/customizableui/test/browser_1087303_button_preferences.js
@@ -39,17 +39,18 @@ add_task(function asyncCleanup() {
 function waitForPageLoad(aTab) {
   return new Promise((resolve, reject) => {
 
     let timeoutId = setTimeout(() => {
       aTab.linkedBrowser.removeEventListener("load", onTabLoad, true);
       reject("Page didn't load within " + 20000 + "ms");
     }, 20000);
 
-    function onTabLoad(event) {
+    async function onTabLoad(event) {
       clearTimeout(timeoutId);
       aTab.linkedBrowser.removeEventListener("load", onTabLoad, true);
       info("Tab event received: load");
       resolve();
-   }
+    }
+
     aTab.linkedBrowser.addEventListener("load", onTabLoad, true, true);
   });
 }
--- a/browser/components/customizableui/test/browser_synced_tabs_menu.js
+++ b/browser/components/customizableui/test/browser_synced_tabs_menu.js
@@ -87,17 +87,17 @@ async function openPrefsFromMenuPanel(ex
   let subpanel = document.getElementById(expectedPanelId)
   ok(!subpanel.hidden, "sync setup element is visible");
 
   // Find and click the "setup" button.
   let setupButton = subpanel.querySelector(".PanelUI-remotetabs-prefs-button");
   setupButton.click();
 
   await new Promise(resolve => {
-    let handler = (e) => {
+    let handler = async(e) => {
       if (e.originalTarget != gBrowser.selectedBrowser.contentDocument ||
           e.target.location.href == "about:blank") {
         info("Skipping spurious 'load' event for " + e.target.location.href);
         return;
       }
       gBrowser.selectedBrowser.removeEventListener("load", handler, true);
       resolve();
     }
--- a/browser/components/feeds/FeedWriter.js
+++ b/browser/components/feeds/FeedWriter.js
@@ -816,17 +816,17 @@ FeedWriter.prototype = {
       // window object.
       return;
     }
     LOG(`received message from parent ${msg.name}`);
     switch (msg.name) {
       case "FeedWriter:PreferenceUpdated":
         // This is called when browser-feeds.js spots a pref change
         // This will happen when
-        // - about:preferences#applications changes
+        // - about:preferences#general changes
         // - another feed reader page changes the preference
         // - when this page itself changes the select and there isn't a redirect
         //   bookmarks and launching an external app means the page stays open after subscribe
         const feedType = this._getFeedType();
         LOG(`Got prefChange! ${JSON.stringify(msg.data)} current type: ${feedType}`);
         let feedTypePref = msg.data.default;
         if (feedType in msg.data) {
           feedTypePref = msg.data[feedType];
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -296,21 +296,17 @@ BrowserGlue.prototype = {
     Cu.import("resource://services-sync/main.js");
     Weave.Service.scheduler.delayedAutoConnect(delay);
   },
 
   // nsIObserver implementation
   observe: function BG_observe(subject, topic, data) {
     switch (topic) {
       case "notifications-open-settings":
-        if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-          this._openPreferences("content", { origin: "notifOpenSettings" });
-        } else {
-          this._openPreferences("privacy", { origin: "notifOpenSettings" });
-        }
+        this._openPreferences("privacy", { origin: "notifOpenSettings" });
         break;
       case "prefservice:after-app-defaults":
         this._onAppDefaults();
         break;
       case "final-ui-startup":
         this._beforeUIStartup();
         break;
       case "browser-delayed-startup-finished":
--- a/browser/components/preferences/applicationManager.js
+++ b/browser/components/preferences/applicationManager.js
@@ -1,35 +1,25 @@
 // 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/.
 
-/* import-globals-from in-content/applications.js */
+/* import-globals-from in-content/main.js */
 
 var Cc = Components.classes;
 var Ci = Components.interfaces;
 
 var gAppManagerDialog = {
   _removed: [],
 
   init: function appManager_init() {
     this.handlerInfo = window.arguments[0];
-    // The applicationManager will be used
-    // in in-content's gApplicationsPane and in-content-new's gMainPane.
-    // Remove this once we use the in-content-new preferences page.
-    var pane;
-    if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-      Services.scriptloader.loadSubScript("chrome://browser/content/preferences/in-content/applications.js",
-                                          window);
-      pane = gApplicationsPane;
-    } else {
-      Services.scriptloader.loadSubScript("chrome://browser/content/preferences/in-content-new/main.js",
-                                          window);
-      pane = gMainPane;
-    }
+    Services.scriptloader.loadSubScript("chrome://browser/content/preferences/in-content/main.js",
+      window);
+    var pane = gMainPane;
     var bundle = document.getElementById("appManagerBundle");
     var contentText;
     if (this.handlerInfo.type == TYPE_MAYBE_FEED)
       contentText = bundle.getString("handleWebFeeds");
     else {
       var description = pane._describeType(this.handlerInfo);
       var key =
         (this.handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) ? "handleFile"
--- a/browser/components/preferences/handlers.xml
+++ b/browser/components/preferences/handlers.xml
@@ -1,14 +1,14 @@
 <?xml version="1.0"?>
 
 <!-- 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/. -->
-<!-- import-globals-from in-content/applications.js -->
+<!-- import-globals-from in-content/main.js -->
 
 <!DOCTYPE overlay [
   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
   <!ENTITY % applicationsDTD SYSTEM "chrome://browser/locale/preferences/applications.dtd">
   <!ENTITY % containersDTD SYSTEM "chrome://browser/locale/preferences/containers.dtd">
   %brandDTD;
   %applicationsDTD;
   %containersDTD;
@@ -51,32 +51,26 @@
         <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=typeDescription">
           <xul:image src="moz-icon://goat?size=16" class="typeIcon"
                      xbl:inherits="src=typeIcon" height="16" width="16"/>
           <xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/>
         </xul:hbox>
         <xul:hbox flex="1">
           <xul:menulist class="actionsMenu" flex="1" crop="end" selectedIndex="1"
                         xbl:inherits="tooltiptext=actionDescription"
-                        oncommand="Services.prefs.getBoolPref('browser.preferences.useOldOrganization') ?
-                          gApplicationsPane.onSelectAction(event.originalTarget) :
-                          gMainPane.onSelectAction(event.originalTarget)">
+                        oncommand="gMainPane.onSelectAction(event.originalTarget)">
             <xul:menupopup/>
           </xul:menulist>
         </xul:hbox>
       </xul:hbox>
     </content>
 
     <implementation>
       <constructor>
-        if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization")) {
-          gApplicationsPane.rebuildActionsMenu();
-        } else {
-          gMainPane.rebuildActionsMenu();
-        }
+        gMainPane.rebuildActionsMenu();
       </constructor>
     </implementation>
 
   </binding>
 
   <binding id="container">
     <content>
       <xul:hbox flex="1" equalsize="always">
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/containers.js
+++ /dev/null
@@ -1,99 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
-Components.utils.import("resource://gre/modules/ContextualIdentityService.jsm");
-
-const containersBundle = Services.strings.createBundle("chrome://browser/locale/preferences/containers.properties");
-
-const defaultContainerIcon = "fingerprint";
-const defaultContainerColor = "blue";
-
-let gContainersPane = {
-
-  init() {
-    this._list = document.getElementById("containersView");
-
-    document.getElementById("backContainersLink").addEventListener("click", function() {
-      gotoPref("general");
-    });
-
-    this._rebuildView();
-  },
-
-  _rebuildView() {
-    const containers = ContextualIdentityService.getPublicIdentities();
-    while (this._list.firstChild) {
-      this._list.firstChild.remove();
-    }
-    for (let container of containers) {
-      let item = document.createElement("richlistitem");
-      item.setAttribute("containerName", ContextualIdentityService.getUserContextLabel(container.userContextId));
-      item.setAttribute("containerIcon", container.icon);
-      item.setAttribute("containerColor", container.color);
-      item.setAttribute("userContextId", container.userContextId);
-
-      this._list.appendChild(item);
-    }
-  },
-
-  async onRemoveClick(button) {
-    let userContextId = parseInt(button.getAttribute("value"), 10);
-
-    let count = ContextualIdentityService.countContainerTabs(userContextId);
-    if (count > 0) {
-      let bundlePreferences = document.getElementById("bundlePreferences");
-
-      let title = bundlePreferences.getString("removeContainerAlertTitle");
-      let message = PluralForm.get(count, bundlePreferences.getString("removeContainerMsg"))
-                              .replace("#S", count)
-      let okButton = bundlePreferences.getString("removeContainerOkButton");
-      let cancelButton = bundlePreferences.getString("removeContainerButton2");
-
-      let buttonFlags = (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
-                        (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1);
-
-      let rv = Services.prompt.confirmEx(window, title, message, buttonFlags,
-                                         okButton, cancelButton, null, null, {});
-      if (rv != 0) {
-        return;
-      }
-
-      await ContextualIdentityService.closeContainerTabs(userContextId);
-    }
-
-    ContextualIdentityService.remove(userContextId);
-    this._rebuildView();
-  },
-
-  onPreferenceClick(button) {
-    this.openPreferenceDialog(button.getAttribute("value"));
-  },
-
-  onAddButtonClick(button) {
-    this.openPreferenceDialog(null);
-  },
-
-  openPreferenceDialog(userContextId) {
-    let identity = {
-      name: "",
-      icon: defaultContainerIcon,
-      color: defaultContainerColor
-    };
-    let title;
-    if (userContextId) {
-      identity = ContextualIdentityService.getPublicIdentityFromId(userContextId);
-      // This is required to get the translation string from defaults
-      identity.name = ContextualIdentityService.getUserContextLabel(identity.userContextId);
-      title = containersBundle.formatStringFromName("containers.updateContainerTitle", [identity.name], 1);
-    }
-
-    const params = { userContextId, identity, windowTitle: title };
-    gSubDialog.open("chrome://browser/content/preferences/containers.xul",
-                     null, params);
-  }
-
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/containers.xul
+++ /dev/null
@@ -1,45 +0,0 @@
-# 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/.
-
-<!-- Containers panel -->
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content-new/containers.js"/>
-
-<preferences id="containerPreferences" hidden="true" data-category="paneContainer">
-  <!-- Containers -->
-  <preference id="privacy.userContext.enabled"
-              name="privacy.userContext.enabled"
-              type="bool"/>
-
-</preferences>
-
-<hbox hidden="true"
-      class="container-header-links"
-      data-category="paneContainers">
-  <label class="text-link" id="backContainersLink">&backLink2.label;</label>
-</hbox>
-
-<hbox id="header-containers"
-      class="header"
-      hidden="true"
-      data-category="paneContainers">
-  <label class="header-name" flex="1">&paneContainers.title;</label>
-</hbox>
-
-<!-- Containers -->
-<groupbox id="browserContainersGroupPane" data-category="paneContainers" hidden="true"
-          data-hidden-from-search="true" data-subpanel="true">
-  <vbox id="browserContainersbox">
-
-    <richlistbox id="containersView" orient="vertical" persist="lastSelectedType"
-                 flex="1">
-    </richlistbox>
-  </vbox>
-  <vbox>
-    <hbox flex="1">
-      <button onclick="gContainersPane.onAddButtonClick();" accesskey="&addButton.accesskey;" label="&addButton.label;"/>
-    </hbox>
-  </vbox>
-</groupbox>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/jar.mn
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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/.
-
-browser.jar:
-   content/browser/preferences/in-content-new/preferences.js
-*  content/browser/preferences/in-content-new/preferences.xul
-   content/browser/preferences/in-content-new/subdialogs.js
-
-   content/browser/preferences/in-content-new/main.js
-   content/browser/preferences/in-content-new/search.js
-   content/browser/preferences/in-content-new/privacy.js
-   content/browser/preferences/in-content-new/containers.js
-   content/browser/preferences/in-content-new/sync.js
-   content/browser/preferences/in-content-new/findInPage.js
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/main.js
+++ /dev/null
@@ -1,3263 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-/* import-globals-from ../../../../toolkit/mozapps/preferences/fontbuilder.js */
-/* import-globals-from ../../../base/content/aboutDialog-appUpdater.js */
-
-Components.utils.import("resource://gre/modules/Services.jsm");
-Components.utils.import("resource://gre/modules/Downloads.jsm");
-Components.utils.import("resource://gre/modules/FileUtils.jsm");
-Components.utils.import("resource:///modules/ShellService.jsm");
-Components.utils.import("resource:///modules/TransientPrefs.jsm");
-Components.utils.import("resource://gre/modules/Services.jsm");
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
-Components.utils.import("resource://gre/modules/DownloadUtils.jsm");
-Components.utils.import("resource://gre/modules/LoadContextInfo.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "CloudStorage",
-                                  "resource://gre/modules/CloudStorage.jsm");
-
-// Constants & Enumeration Values
-const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed";
-const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed";
-const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed";
-const TYPE_PDF = "application/pdf";
-
-const PREF_PDFJS_DISABLED = "pdfjs.disabled";
-const TOPIC_PDFJS_HANDLER_CHANGED = "pdfjs:handlerChanged";
-
-const PREF_DISABLED_PLUGIN_TYPES = "plugin.disable_full_page_plugin_for_types";
-
-// Preferences that affect which entries to show in the list.
-const PREF_SHOW_PLUGINS_IN_LIST = "browser.download.show_plugins_in_list";
-const PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS =
-  "browser.download.hide_plugins_without_extensions";
-
-/*
- * Preferences where we store handling information about the feed type.
- *
- * browser.feeds.handler
- * - "bookmarks", "reader" (clarified further using the .default preference),
- *   or "ask" -- indicates the default handler being used to process feeds;
- *   "bookmarks" is obsolete; to specify that the handler is bookmarks,
- *   set browser.feeds.handler.default to "bookmarks";
- *
- * browser.feeds.handler.default
- * - "bookmarks", "client" or "web" -- indicates the chosen feed reader used
- *   to display feeds, either transiently (i.e., when the "use as default"
- *   checkbox is unchecked, corresponds to when browser.feeds.handler=="ask")
- *   or more permanently (i.e., the item displayed in the dropdown in Feeds
- *   preferences)
- *
- * browser.feeds.handler.webservice
- * - the URL of the currently selected web service used to read feeds
- *
- * browser.feeds.handlers.application
- * - nsIFile, stores the current client-side feed reading app if one has
- *   been chosen
- */
-const PREF_FEED_SELECTED_APP    = "browser.feeds.handlers.application";
-const PREF_FEED_SELECTED_WEB    = "browser.feeds.handlers.webservice";
-const PREF_FEED_SELECTED_ACTION = "browser.feeds.handler";
-const PREF_FEED_SELECTED_READER = "browser.feeds.handler.default";
-
-const PREF_VIDEO_FEED_SELECTED_APP    = "browser.videoFeeds.handlers.application";
-const PREF_VIDEO_FEED_SELECTED_WEB    = "browser.videoFeeds.handlers.webservice";
-const PREF_VIDEO_FEED_SELECTED_ACTION = "browser.videoFeeds.handler";
-const PREF_VIDEO_FEED_SELECTED_READER = "browser.videoFeeds.handler.default";
-
-const PREF_AUDIO_FEED_SELECTED_APP    = "browser.audioFeeds.handlers.application";
-const PREF_AUDIO_FEED_SELECTED_WEB    = "browser.audioFeeds.handlers.webservice";
-const PREF_AUDIO_FEED_SELECTED_ACTION = "browser.audioFeeds.handler";
-const PREF_AUDIO_FEED_SELECTED_READER = "browser.audioFeeds.handler.default";
-
-// The nsHandlerInfoAction enumeration values in nsIHandlerInfo identify
-// the actions the application can take with content of various types.
-// But since nsIHandlerInfo doesn't support plugins, there's no value
-// identifying the "use plugin" action, so we use this constant instead.
-const kActionUsePlugin = 5;
-
-const ICON_URL_APP = AppConstants.platform == "linux" ?
-                     "moz-icon://dummy.exe?size=16" :
-                     "chrome://browser/skin/preferences/application.png";
-
-// For CSS. Can be one of "ask", "save", "plugin" or "feed". If absent, the icon URL
-// was set by us to a custom handler icon and CSS should not try to override it.
-const APP_ICON_ATTR_NAME = "appHandlerIcon";
-
-XPCOMUtils.defineLazyModuleGetter(this, "OS",
-                                  "resource://gre/modules/osfile.jsm");
-
-if (AppConstants.E10S_TESTING_ONLY) {
-  XPCOMUtils.defineLazyModuleGetter(this, "UpdateUtils",
-                                    "resource://gre/modules/UpdateUtils.jsm");
-}
-
-if (AppConstants.MOZ_DEV_EDITION) {
-  XPCOMUtils.defineLazyModuleGetter(this, "fxAccounts",
-                                    "resource://gre/modules/FxAccounts.jsm");
-}
-
-var gMainPane = {
-  // The set of types the app knows how to handle.  A hash of HandlerInfoWrapper
-  // objects, indexed by type.
-  _handledTypes: {},
-
-  // The list of types we can show, sorted by the sort column/direction.
-  // An array of HandlerInfoWrapper objects.  We build this list when we first
-  // load the data and then rebuild it when users change a pref that affects
-  // what types we can show or change the sort column/direction.
-  // Note: this isn't necessarily the list of types we *will* show; if the user
-  // provides a filter string, we'll only show the subset of types in this list
-  // that match that string.
-  _visibleTypes: [],
-
-  // A count of the number of times each visible type description appears.
-  // We use these counts to determine whether or not to annotate descriptions
-  // with their types to distinguish duplicate descriptions from each other.
-  // A hash of integer counts, indexed by string description.
-  _visibleTypeDescriptionCount: {},
-
-
-  // Convenience & Performance Shortcuts
-
-  // These get defined by init().
-  _brandShortName: null,
-  _prefsBundle: null,
-  _list: null,
-  _filter: null,
-
-  _prefSvc: Cc["@mozilla.org/preferences-service;1"].
-            getService(Ci.nsIPrefBranch),
-
-  _mimeSvc: Cc["@mozilla.org/mime;1"].
-            getService(Ci.nsIMIMEService),
-
-  _helperAppSvc: Cc["@mozilla.org/uriloader/external-helper-app-service;1"].
-                 getService(Ci.nsIExternalHelperAppService),
-
-  _handlerSvc: Cc["@mozilla.org/uriloader/handler-service;1"].
-               getService(Ci.nsIHandlerService),
-
-  _ioSvc: Cc["@mozilla.org/network/io-service;1"].
-          getService(Ci.nsIIOService),
-
-  _backoffIndex: 0,
-
-  /**
-   * Initialization of this.
-   */
-  init() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gMainPane));
-    }
-
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      this.updateSetDefaultBrowser();
-      let win = Services.wm.getMostRecentWindow("navigator:browser");
-
-      // Exponential backoff mechanism will delay the polling times if user doesn't
-      // trigger SetDefaultBrowser for a long time.
-      let backoffTimes = [1000, 1000, 1000, 1000, 2000, 2000, 2000, 5000, 5000, 10000];
-
-      let pollForDefaultBrowser = () => {
-        let uri = win.gBrowser.currentURI.spec;
-
-        if ((uri == "about:preferences" || uri == "about:preferences#general") &&
-            document.visibilityState == "visible") {
-          this.updateSetDefaultBrowser();
-        }
-
-        // approximately a "requestIdleInterval"
-        window.setTimeout(() => {
-          window.requestIdleCallback(pollForDefaultBrowser);
-        }, backoffTimes[this._backoffIndex + 1 < backoffTimes.length ?
-                        this._backoffIndex++ : backoffTimes.length - 1]);
-      };
-
-      window.setTimeout(() => {
-        window.requestIdleCallback(pollForDefaultBrowser);
-      }, backoffTimes[this._backoffIndex]);
-    }
-
-    this.initBrowserContainers();
-    this.buildContentProcessCountMenuList();
-
-    let performanceSettingsLink = document.getElementById("performanceSettingsLearnMore");
-    let performanceSettingsUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "performance";
-    performanceSettingsLink.setAttribute("href", performanceSettingsUrl);
-
-    this.updateDefaultPerformanceSettingsPref();
-
-    let defaultPerformancePref =
-      document.getElementById("browser.preferences.defaultPerformanceSettings.enabled");
-    defaultPerformancePref.addEventListener("change", () => {
-      this.updatePerformanceSettingsBox({duringChangeEvent: true});
-    });
-    this.updatePerformanceSettingsBox({duringChangeEvent: false});
-
-    // set up the "use current page" label-changing listener
-    this._updateUseCurrentButton();
-    window.addEventListener("focus", this._updateUseCurrentButton.bind(this));
-
-    this.updateBrowserStartupLastSession();
-
-    if (AppConstants.platform == "win") {
-      // Functionality for "Show tabs in taskbar" on Windows 7 and up.
-      try {
-        let sysInfo = Cc["@mozilla.org/system-info;1"].
-                      getService(Ci.nsIPropertyBag2);
-        let ver = parseFloat(sysInfo.getProperty("version"));
-        let showTabsInTaskbar = document.getElementById("showTabsInTaskbar");
-        showTabsInTaskbar.hidden = ver < 6.1;
-      } catch (ex) {}
-    }
-
-    // The "closing multiple tabs" and "opening multiple tabs might slow down
-    // &brandShortName;" warnings provide options for not showing these
-    // warnings again. When the user disabled them, we provide checkboxes to
-    // re-enable the warnings.
-    if (!TransientPrefs.prefShouldBeVisible("browser.tabs.warnOnClose"))
-      document.getElementById("warnCloseMultiple").hidden = true;
-    if (!TransientPrefs.prefShouldBeVisible("browser.tabs.warnOnOpen"))
-      document.getElementById("warnOpenMany").hidden = true;
-
-    setEventListener("browser.privatebrowsing.autostart", "change",
-                     gMainPane.updateBrowserStartupLastSession);
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      setEventListener("setDefaultButton", "command",
-                       gMainPane.setDefaultBrowser);
-    }
-    setEventListener("useCurrent", "command",
-                     gMainPane.setHomePageToCurrent);
-    setEventListener("useBookmark", "command",
-                     gMainPane.setHomePageToBookmark);
-    setEventListener("restoreDefaultHomePage", "command",
-                     gMainPane.restoreDefaultHomePage);
-    setEventListener("chooseLanguage", "command",
-      gMainPane.showLanguages);
-    setEventListener("translationAttributionImage", "click",
-      gMainPane.openTranslationProviderAttribution);
-    setEventListener("translateButton", "command",
-      gMainPane.showTranslationExceptions);
-    setEventListener("font.language.group", "change",
-      gMainPane._rebuildFonts);
-    setEventListener("advancedFonts", "command",
-      gMainPane.configureFonts);
-    setEventListener("colors", "command",
-      gMainPane.configureColors);
-    setEventListener("layers.acceleration.disabled", "change",
-      gMainPane.updateHardwareAcceleration);
-    setEventListener("connectionSettings", "command",
-      gMainPane.showConnections);
-    setEventListener("browserContainersCheckbox", "command",
-      gMainPane.checkBrowserContainers);
-    setEventListener("browserContainersSettings", "command",
-      gMainPane.showContainerSettings);
-
-    // Initializes the fonts dropdowns displayed in this pane.
-    this._rebuildFonts();
-
-    this.updateOnScreenKeyboardVisibility();
-
-    // Show translation preferences if we may:
-    const prefName = "browser.translation.ui.show";
-    if (Services.prefs.getBoolPref(prefName)) {
-      let row = document.getElementById("translationBox");
-      row.removeAttribute("hidden");
-      // Showing attribution only for Bing Translator.
-      Components.utils.import("resource:///modules/translation/Translation.jsm");
-      if (Translation.translationEngine == "bing") {
-        document.getElementById("bingAttribution").removeAttribute("hidden");
-      }
-    }
-
-    if (AppConstants.E10S_TESTING_ONLY) {
-      setEventListener("e10sAutoStart", "command",
-                       gMainPane.enableE10SChange);
-      let e10sCheckbox = document.getElementById("e10sAutoStart");
-
-      let e10sPref = document.getElementById("browser.tabs.remote.autostart");
-      let e10sTempPref = document.getElementById("e10sTempPref");
-      let e10sForceEnable = document.getElementById("e10sForceEnable");
-
-      let preffedOn = e10sPref.value || e10sTempPref.value || e10sForceEnable.value;
-
-      if (preffedOn) {
-        // The checkbox is checked if e10s is preffed on and enabled.
-        e10sCheckbox.checked = Services.appinfo.browserTabsRemoteAutostart;
-
-        // but if it's force disabled, then the checkbox is disabled.
-        e10sCheckbox.disabled = !Services.appinfo.browserTabsRemoteAutostart;
-      }
-    }
-
-    if (AppConstants.MOZ_DEV_EDITION) {
-      let uAppData = OS.Constants.Path.userApplicationDataDir;
-      let ignoreSeparateProfile = OS.Path.join(uAppData, "ignore-dev-edition-profile");
-
-      setEventListener("separateProfileMode", "command", gMainPane.separateProfileModeChange);
-      let separateProfileModeCheckbox = document.getElementById("separateProfileMode");
-      setEventListener("getStarted", "click", gMainPane.onGetStarted);
-
-      OS.File.stat(ignoreSeparateProfile).then(() => separateProfileModeCheckbox.checked = false,
-                                               () => separateProfileModeCheckbox.checked = true);
-
-      fxAccounts.getSignedInUser().then(data => {
-        document.getElementById("getStarted").selectedIndex = data ? 1 : 0;
-      })
-      .catch(Cu.reportError);
-    }
-
-    // Initialize the Firefox Updates section.
-    let version = AppConstants.MOZ_APP_VERSION_DISPLAY;
-
-    // Include the build ID if this is an "a#" (nightly) build
-    if (/a\d+$/.test(version)) {
-      let buildID = Services.appinfo.appBuildID;
-      let year = buildID.slice(0, 4);
-      let month = buildID.slice(4, 6);
-      let day = buildID.slice(6, 8);
-      version += ` (${year}-${month}-${day})`;
-    }
-
-    // Append "(32-bit)" or "(64-bit)" build architecture to the version number:
-    let bundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
-    let archResource = Services.appinfo.is64Bit
-                       ? "aboutDialog.architecture.sixtyFourBit"
-                       : "aboutDialog.architecture.thirtyTwoBit";
-    let arch = bundle.GetStringFromName(archResource);
-    version += ` (${arch})`;
-
-    document.getElementById("version").textContent = version;
-
-    // Show a release notes link if we have a URL.
-    let relNotesLink = document.getElementById("releasenotes");
-    let relNotesPrefType = Services.prefs.getPrefType("app.releaseNotesURL");
-    if (relNotesPrefType != Services.prefs.PREF_INVALID) {
-      let relNotesURL = Services.urlFormatter.formatURLPref("app.releaseNotesURL");
-      if (relNotesURL != "about:blank") {
-        relNotesLink.href = relNotesURL;
-        relNotesLink.hidden = false;
-      }
-    }
-
-    let distroId = Services.prefs.getCharPref("distribution.id", "");
-    if (distroId) {
-      let distroVersion = Services.prefs.getCharPref("distribution.version");
-
-      let distroIdField = document.getElementById("distributionId");
-      distroIdField.value = distroId + " - " + distroVersion;
-      distroIdField.hidden = false;
-
-      let distroAbout = Services.prefs.getStringPref("distribution.about", "");
-      if (distroAbout) {
-        let distroField = document.getElementById("distribution");
-        distroField.value = distroAbout;
-        distroField.hidden = false;
-      }
-    }
-
-    if (AppConstants.MOZ_UPDATER) {
-      gAppUpdater = new appUpdater();
-      let onUnload = () => {
-        window.removeEventListener("unload", onUnload);
-        Services.prefs.removeObserver("app.update.", this);
-      };
-      window.addEventListener("unload", onUnload);
-      Services.prefs.addObserver("app.update.", this);
-      this.updateReadPrefs();
-      setEventListener("updateRadioGroup", "command",
-                       gMainPane.updateWritePrefs);
-      setEventListener("showUpdateHistory", "command",
-                       gMainPane.showUpdates);
-    }
-
-    // Initilize Application section.
-    // Initialize shortcuts to some commonly accessed elements & values.
-    this._brandShortName =
-      document.getElementById("bundleBrand").getString("brandShortName");
-    this._prefsBundle = document.getElementById("bundlePreferences");
-    this._list = document.getElementById("handlersView");
-    this._filter = document.getElementById("filter");
-
-    // Observe preferences that influence what we display so we can rebuild
-    // the view when they change.
-    this._prefSvc.addObserver(PREF_SHOW_PLUGINS_IN_LIST, this);
-    this._prefSvc.addObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_APP, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_WEB, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_ACTION, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_READER, this);
-
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_APP, this);
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_WEB, this);
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_READER, this);
-
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_APP, this);
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_WEB, this);
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_READER, this);
-
-    setEventListener("filter", "command", gMainPane.filter);
-    setEventListener("handlersView", "select",
-      gMainPane.onSelectionChanged);
-    setEventListener("typeColumn", "click", gMainPane.sort);
-    setEventListener("actionColumn", "click", gMainPane.sort);
-    setEventListener("chooseFolder", "command", gMainPane.chooseFolder);
-    setEventListener("browser.download.dir", "change", gMainPane.displayDownloadDirPref);
-    setEventListener("saveWhere", "command", gMainPane.handleSaveToCommand);
-
-    // Listen for window unload so we can remove our preference observers.
-    window.addEventListener("unload", this);
-
-    // Figure out how we should be sorting the list.  We persist sort settings
-    // across sessions, so we can't assume the default sort column/direction.
-    // XXX should we be using the XUL sort service instead?
-    if (document.getElementById("actionColumn").hasAttribute("sortDirection")) {
-      this._sortColumn = document.getElementById("actionColumn");
-      // The typeColumn element always has a sortDirection attribute,
-      // either because it was persisted or because the default value
-      // from the xul file was used.  If we are sorting on the other
-      // column, we should remove it.
-      document.getElementById("typeColumn").removeAttribute("sortDirection");
-    } else {
-      this._sortColumn = document.getElementById("typeColumn");
-    }
-
-    // Load the data and build the list of handlers.
-    // By doing this in a timeout, we let the preferences dialog resize itself
-    // to an appropriate size before we add a bunch of items to the list.
-    // Otherwise, if there are many items, and the Applications prefpane
-    // is the one that gets displayed when the user first opens the dialog,
-    // the dialog might stretch too much in an attempt to fit them all in.
-    // XXX Shouldn't we perhaps just set a max-height on the richlistbox?
-    var _delayedPaneLoad = function(self) {
-      self._loadData();
-      self._rebuildVisibleTypes();
-      self._sortVisibleTypes();
-      self._rebuildView();
-    }
-    setTimeout(_delayedPaneLoad, 0, this);
-
-    let browserBundle = document.getElementById("browserBundle");
-    appendSearchKeywords("browserContainersSettings", [
-      browserBundle.getString("userContextPersonal.label"),
-      browserBundle.getString("userContextWork.label"),
-      browserBundle.getString("userContextBanking.label"),
-      browserBundle.getString("userContextShopping.label"),
-    ]);
-
-    // Notify observers that the UI is now ready
-    Components.classes["@mozilla.org/observer-service;1"]
-              .getService(Components.interfaces.nsIObserverService)
-              .notifyObservers(window, "main-pane-loaded");
-  },
-
-  /**
-   * Show the Containers UI depending on the privacy.userContext.ui.enabled pref.
-   */
-  initBrowserContainers() {
-    if (!Services.prefs.getBoolPref("privacy.userContext.ui.enabled")) {
-      // The browserContainersGroup element has its own internal padding that
-      // is visible even if the browserContainersbox is visible, so hide the whole
-      // groupbox if the feature is disabled to prevent a gap in the preferences.
-      document.getElementById("browserContainersbox").setAttribute("data-hidden-from-search", "true");
-      return;
-    }
-
-    let link = document.getElementById("browserContainersLearnMore");
-    link.href = Services.urlFormatter.formatURLPref("app.support.baseURL") + "containers";
-
-    document.getElementById("browserContainersbox").hidden = false;
-
-    document.getElementById("browserContainersCheckbox").checked =
-      Services.prefs.getBoolPref("privacy.userContext.enabled");
-  },
-
-  isE10SEnabled() {
-    let e10sEnabled;
-    try {
-      let e10sStatus = Components.classes["@mozilla.org/supports-PRUint64;1"]
-                         .createInstance(Ci.nsISupportsPRUint64);
-      let appinfo = Services.appinfo.QueryInterface(Ci.nsIObserver);
-      appinfo.observe(e10sStatus, "getE10SBlocked", "");
-      e10sEnabled = e10sStatus.data < 2;
-    } catch (e) {
-      e10sEnabled = false;
-    }
-
-    return e10sEnabled;
-  },
-
-  enableE10SChange() {
-    if (AppConstants.E10S_TESTING_ONLY) {
-      let e10sCheckbox = document.getElementById("e10sAutoStart");
-      let e10sPref = document.getElementById("browser.tabs.remote.autostart");
-      let e10sTempPref = document.getElementById("e10sTempPref");
-
-      let prefsToChange;
-      if (e10sCheckbox.checked) {
-        // Enabling e10s autostart
-        prefsToChange = [e10sPref];
-      } else {
-        // Disabling e10s autostart
-        prefsToChange = [e10sPref];
-        if (e10sTempPref.value) {
-         prefsToChange.push(e10sTempPref);
-        }
-      }
-
-      let buttonIndex = confirmRestartPrompt(e10sCheckbox.checked, 0,
-                                             true, false);
-      if (buttonIndex == CONFIRM_RESTART_PROMPT_RESTART_NOW) {
-        for (let prefToChange of prefsToChange) {
-          prefToChange.value = e10sCheckbox.checked;
-        }
-
-        Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
-      }
-
-      // Revert the checkbox in case we didn't quit
-      e10sCheckbox.checked = e10sPref.value || e10sTempPref.value;
-    }
-  },
-
-  separateProfileModeChange() {
-    if (AppConstants.MOZ_DEV_EDITION) {
-      function quitApp() {
-        Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestartNotSameProfile);
-      }
-      function revertCheckbox(error) {
-        separateProfileModeCheckbox.checked = !separateProfileModeCheckbox.checked;
-        if (error) {
-          Cu.reportError("Failed to toggle separate profile mode: " + error);
-        }
-      }
-      function createOrRemoveSpecialDevEditionFile(onSuccess) {
-        let uAppData = OS.Constants.Path.userApplicationDataDir;
-        let ignoreSeparateProfile = OS.Path.join(uAppData, "ignore-dev-edition-profile");
-
-        if (separateProfileModeCheckbox.checked) {
-          OS.File.remove(ignoreSeparateProfile).then(onSuccess, revertCheckbox);
-        } else {
-          OS.File.writeAtomic(ignoreSeparateProfile, new Uint8Array()).then(onSuccess, revertCheckbox);
-        }
-      }
-
-      let separateProfileModeCheckbox = document.getElementById("separateProfileMode");
-      let button_index = confirmRestartPrompt(separateProfileModeCheckbox.checked,
-                                              0, false, true);
-      switch (button_index) {
-        case CONFIRM_RESTART_PROMPT_CANCEL:
-          revertCheckbox();
-          return;
-        case CONFIRM_RESTART_PROMPT_RESTART_NOW:
-          const Cc = Components.classes, Ci = Components.interfaces;
-          let cancelQuit = Cc["@mozilla.org/supports-PRBool;1"]
-                             .createInstance(Ci.nsISupportsPRBool);
-          Services.obs.notifyObservers(cancelQuit, "quit-application-requested",
-                                        "restart");
-          if (!cancelQuit.data) {
-            createOrRemoveSpecialDevEditionFile(quitApp);
-            return;
-          }
-
-          // Revert the checkbox in case we didn't quit
-          revertCheckbox();
-          return;
-        case CONFIRM_RESTART_PROMPT_RESTART_LATER:
-          createOrRemoveSpecialDevEditionFile();
-      }
-    }
-  },
-
-  onGetStarted(aEvent) {
-    if (AppConstants.MOZ_DEV_EDITION) {
-      const Cc = Components.classes, Ci = Components.interfaces;
-      let wm = Cc["@mozilla.org/appshell/window-mediator;1"]
-                  .getService(Ci.nsIWindowMediator);
-      let win = wm.getMostRecentWindow("navigator:browser");
-
-      fxAccounts.getSignedInUser().then(data => {
-        if (win) {
-          if (data) {
-            // We have a user, open Sync preferences in the same tab
-            win.openUILinkIn("about:preferences#sync", "current");
-            return;
-          }
-          let accountsTab = win.gBrowser.addTab("about:accounts?action=signin&entrypoint=dev-edition-setup");
-          win.gBrowser.selectedTab = accountsTab;
-        }
-      });
-    }
-  },
-
-  // HOME PAGE
-
-  /*
-   * Preferences:
-   *
-   * browser.startup.homepage
-   * - the user's home page, as a string; if the home page is a set of tabs,
-   *   this will be those URLs separated by the pipe character "|"
-   * browser.startup.page
-   * - what page(s) to show when the user starts the application, as an integer:
-   *
-   *     0: a blank page
-   *     1: the home page (as set by the browser.startup.homepage pref)
-   *     2: the last page the user visited (DEPRECATED)
-   *     3: windows and tabs from the last session (a.k.a. session restore)
-   *
-   *   The deprecated option is not exposed in UI; however, if the user has it
-   *   selected and doesn't change the UI for this preference, the deprecated
-   *   option is preserved.
-   */
-
-  syncFromHomePref() {
-    let homePref = document.getElementById("browser.startup.homepage");
-
-    // If the pref is set to about:home or about:newtab, set the value to ""
-    // to show the placeholder text (about:home title) rather than
-    // exposing those URLs to users.
-    let defaultBranch = Services.prefs.getDefaultBranch("");
-    let defaultValue = defaultBranch.getComplexValue("browser.startup.homepage",
-                                                     Ci.nsIPrefLocalizedString).data;
-    let currentValue = homePref.value.toLowerCase();
-    if (currentValue == "about:home" ||
-        (currentValue == defaultValue && currentValue == "about:newtab")) {
-      return "";
-    }
-
-    // If the pref is actually "", show about:blank.  The actual home page
-    // loading code treats them the same, and we don't want the placeholder text
-    // to be shown.
-    if (homePref.value == "")
-      return "about:blank";
-
-    // Otherwise, show the actual pref value.
-    return undefined;
-  },
-
-  syncToHomePref(value) {
-    // If the value is "", use about:home.
-    if (value == "")
-      return "about:home";
-
-    // Otherwise, use the actual textbox value.
-    return undefined;
-  },
-
-  /**
-   * Sets the home page to the current displayed page (or frontmost tab, if the
-   * most recent browser window contains multiple tabs), updating preference
-   * window UI to reflect this.
-   */
-  setHomePageToCurrent() {
-    let homePage = document.getElementById("browser.startup.homepage");
-    let tabs = this._getTabsForHomePage();
-    function getTabURI(t) {
-      return t.linkedBrowser.currentURI.spec;
-    }
-
-    // FIXME Bug 244192: using dangerous "|" joiner!
-    if (tabs.length)
-      homePage.value = tabs.map(getTabURI).join("|");
-  },
-
-  /**
-   * Displays a dialog in which the user can select a bookmark to use as home
-   * page.  If the user selects a bookmark, that bookmark's name is displayed in
-   * UI and the bookmark's address is stored to the home page preference.
-   */
-  setHomePageToBookmark() {
-    var rv = { urls: null, names: null };
-    gSubDialog.open("chrome://browser/content/preferences/selectBookmark.xul",
-                    "resizable=yes, modal=yes", rv,
-                    this._setHomePageToBookmarkClosed.bind(this, rv));
-  },
-
-  _setHomePageToBookmarkClosed(rv, aEvent) {
-    if (aEvent.detail.button != "accept")
-      return;
-    if (rv.urls && rv.names) {
-      var homePage = document.getElementById("browser.startup.homepage");
-
-      // XXX still using dangerous "|" joiner!
-      homePage.value = rv.urls.join("|");
-    }
-  },
-
-  /**
-   * Switches the "Use Current Page" button between its singular and plural
-   * forms.
-   */
-  _updateUseCurrentButton() {
-    let useCurrent = document.getElementById("useCurrent");
-
-
-    let tabs = this._getTabsForHomePage();
-
-    if (tabs.length > 1)
-      useCurrent.label = useCurrent.getAttribute("label2");
-    else
-      useCurrent.label = useCurrent.getAttribute("label1");
-
-    // In this case, the button's disabled state is set by preferences.xml.
-    let prefName = "pref.browser.homepage.disable_button.current_page";
-    if (document.getElementById(prefName).locked)
-      return;
-
-    useCurrent.disabled = !tabs.length
-  },
-
-  _getTabsForHomePage() {
-    var win;
-    var tabs = [];
-
-    const Cc = Components.classes, Ci = Components.interfaces;
-    var wm = Cc["@mozilla.org/appshell/window-mediator;1"]
-                .getService(Ci.nsIWindowMediator);
-    win = wm.getMostRecentWindow("navigator:browser");
-
-    if (win && win.document.documentElement
-                  .getAttribute("windowtype") == "navigator:browser") {
-      // We should only include visible & non-pinned tabs
-
-      tabs = win.gBrowser.visibleTabs.slice(win.gBrowser._numPinnedTabs);
-      tabs = tabs.filter(this.isNotAboutPreferences);
-    }
-
-    return tabs;
-  },
-
-  /**
-   * Check to see if a tab is not about:preferences
-   */
-  isNotAboutPreferences(aElement, aIndex, aArray) {
-    return !aElement.linkedBrowser.currentURI.spec.startsWith("about:preferences");
-  },
-
-  /**
-   * Restores the default home page as the user's home page.
-   */
-  restoreDefaultHomePage() {
-    var homePage = document.getElementById("browser.startup.homepage");
-    homePage.value = homePage.defaultValue;
-  },
-
-  /**
-   * Utility function to enable/disable the button specified by aButtonID based
-   * on the value of the Boolean preference specified by aPreferenceID.
-   */
-  updateButtons(aButtonID, aPreferenceID) {
-    var button = document.getElementById(aButtonID);
-    var preference = document.getElementById(aPreferenceID);
-    button.disabled = preference.value != true;
-    return undefined;
-  },
-
-  /**
-   * Hide/show the "Show my windows and tabs from last time" option based
-   * on the value of the browser.privatebrowsing.autostart pref.
-   */
-  updateBrowserStartupLastSession() {
-    let pbAutoStartPref = document.getElementById("browser.privatebrowsing.autostart");
-    let startupPref = document.getElementById("browser.startup.page");
-    let menu = document.getElementById("browserStartupPage");
-    let option = document.getElementById("browserStartupLastSession");
-    if (pbAutoStartPref.value) {
-      option.setAttribute("disabled", "true");
-      if (option.selected) {
-        menu.selectedItem = document.getElementById("browserStartupHomePage");
-      }
-    } else {
-      option.removeAttribute("disabled");
-      startupPref.updateElements(); // select the correct index in the startup menulist
-    }
-  },
-
-  // TABS
-
-  /*
-   * Preferences:
-   *
-   * browser.link.open_newwindow - int
-   *   Determines where links targeting new windows should open.
-   *   Values:
-   *     1 - Open in the current window or tab.
-   *     2 - Open in a new window.
-   *     3 - Open in a new tab in the most recent window.
-   * browser.tabs.loadInBackground - bool
-   *   True - Whether browser should switch to a new tab opened from a link.
-   * browser.tabs.warnOnClose - bool
-   *   True - If when closing a window with multiple tabs the user is warned and
-   *          allowed to cancel the action, false to just close the window.
-   * browser.tabs.warnOnOpen - bool
-   *   True - Whether the user should be warned when trying to open a lot of
-   *          tabs at once (e.g. a large folder of bookmarks), allowing to
-   *          cancel the action.
-   * browser.taskbar.previews.enable - bool
-   *   True - Tabs are to be shown in Windows 7 taskbar.
-   *   False - Only the window is to be shown in Windows 7 taskbar.
-   */
-
-  /**
-   * Determines where a link which opens a new window will open.
-   *
-   * @returns |true| if such links should be opened in new tabs
-   */
-  readLinkTarget() {
-    var openNewWindow = document.getElementById("browser.link.open_newwindow");
-    return openNewWindow.value != 2;
-  },
-
-  /**
-   * Determines where a link which opens a new window will open.
-   *
-   * @returns 2 if such links should be opened in new windows,
-   *          3 if such links should be opened in new tabs
-   */
-  writeLinkTarget() {
-    var linkTargeting = document.getElementById("linkTargeting");
-    return linkTargeting.checked ? 3 : 2;
-  },
-  /*
-   * Preferences:
-   *
-   * browser.shell.checkDefault
-   * - true if a default-browser check (and prompt to make it so if necessary)
-   *   occurs at startup, false otherwise
-   */
-
-  /**
-   * Show button for setting browser as default browser or information that
-   * browser is already the default browser.
-   */
-  updateSetDefaultBrowser() {
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      let shellSvc = getShellService();
-      let defaultBrowserBox = document.getElementById("defaultBrowserBox");
-      if (!shellSvc) {
-        defaultBrowserBox.hidden = true;
-        return;
-      }
-      let setDefaultPane = document.getElementById("setDefaultPane");
-      let isDefault = shellSvc.isDefaultBrowser(false, true);
-      setDefaultPane.selectedIndex = isDefault ? 1 : 0;
-      let alwaysCheck = document.getElementById("alwaysCheckDefault");
-      alwaysCheck.disabled = alwaysCheck.disabled ||
-                             isDefault && alwaysCheck.checked;
-    }
-  },
-
-  /**
-   * Set browser as the operating system default browser.
-   */
-  setDefaultBrowser() {
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
-      alwaysCheckPref.value = true;
-
-      // Reset exponential backoff delay time in order to do visual update in pollForDefaultBrowser.
-      this._backoffIndex = 0;
-
-      let shellSvc = getShellService();
-      if (!shellSvc)
-        return;
-      try {
-        shellSvc.setDefaultBrowser(true, false);
-      } catch (ex) {
-        Cu.reportError(ex);
-        return;
-      }
-
-      let selectedIndex = shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
-      document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
-    }
-  },
-
-  /**
-   * Shows a dialog in which the preferred language for web content may be set.
-   */
-  showLanguages() {
-    gSubDialog.open("chrome://browser/content/preferences/languages.xul");
-  },
-
-  /**
-   * Displays the translation exceptions dialog where specific site and language
-   * translation preferences can be set.
-   */
-  showTranslationExceptions() {
-    gSubDialog.open("chrome://browser/content/preferences/translation.xul");
-  },
-
-  openTranslationProviderAttribution() {
-    Components.utils.import("resource:///modules/translation/Translation.jsm");
-    Translation.openProviderAttribution();
-  },
-
-  /**
-   * Displays the fonts dialog, where web page font names and sizes can be
-   * configured.
-   */
-  configureFonts() {
-    gSubDialog.open("chrome://browser/content/preferences/fonts.xul", "resizable=no");
-  },
-
-  /**
-   * Displays the colors dialog, where default web page/link/etc. colors can be
-   * configured.
-   */
-  configureColors() {
-    gSubDialog.open("chrome://browser/content/preferences/colors.xul", "resizable=no");
-  },
-
-  // NETWORK
-  /**
-   * Displays a dialog in which proxy settings may be changed.
-   */
-  showConnections() {
-    gSubDialog.open("chrome://browser/content/preferences/connection.xul");
-  },
-
-  checkBrowserContainers(event) {
-    let checkbox = document.getElementById("browserContainersCheckbox");
-    if (checkbox.checked) {
-      Services.prefs.setBoolPref("privacy.userContext.enabled", true);
-      return;
-    }
-
-    let count = ContextualIdentityService.countContainerTabs();
-    if (count == 0) {
-      Services.prefs.setBoolPref("privacy.userContext.enabled", false);
-      return;
-    }
-
-    let bundlePreferences = document.getElementById("bundlePreferences");
-
-    let title = bundlePreferences.getString("disableContainersAlertTitle");
-    let message = PluralForm.get(count, bundlePreferences.getString("disableContainersMsg"))
-                            .replace("#S", count)
-    let okButton = PluralForm.get(count, bundlePreferences.getString("disableContainersOkButton"))
-                             .replace("#S", count)
-    let cancelButton = bundlePreferences.getString("disableContainersButton2");
-
-    let buttonFlags = (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
-                      (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1);
-
-    let rv = Services.prompt.confirmEx(window, title, message, buttonFlags,
-                                       okButton, cancelButton, null, null, {});
-    if (rv == 0) {
-      Services.prefs.setBoolPref("privacy.userContext.enabled", false);
-      return;
-    }
-
-    checkbox.checked = true;
-  },
-
-  /**
-   * Displays container panel for customising and adding containers.
-   */
-  showContainerSettings() {
-    gotoPref("containers");
-  },
-
-  /**
-   * ui.osk.enabled
-   * - when set to true, subject to other conditions, we may sometimes invoke
-   *   an on-screen keyboard when a text input is focused.
-   *   (Currently Windows-only, and depending on prefs, may be Windows-8-only)
-   */
-  updateOnScreenKeyboardVisibility() {
-    if (AppConstants.platform == "win") {
-      let minVersion = Services.prefs.getBoolPref("ui.osk.require_win10") ? 10 : 6.2;
-      if (Services.vc.compare(Services.sysinfo.getProperty("version"), minVersion) >= 0) {
-        document.getElementById("useOnScreenKeyboard").hidden = false;
-      }
-    }
-  },
-
-  updateHardwareAcceleration() {
-    // Placeholder for restart on change
-  },
-
-  // FONTS
-
-  /**
-   * Populates the default font list in UI.
-   */
-  _rebuildFonts() {
-    var preferences = document.getElementById("mainPreferences");
-    // Ensure preferences are "visible" to ensure bindings work.
-    preferences.hidden = false;
-    // Force flush:
-    preferences.clientHeight;
-    var langGroupPref = document.getElementById("font.language.group");
-    this._selectDefaultLanguageGroup(langGroupPref.value,
-                                     this._readDefaultFontTypeForLanguage(langGroupPref.value) == "serif");
-  },
-
-  /**
-   * Returns the type of the current default font for the language denoted by
-   * aLanguageGroup.
-   */
-  _readDefaultFontTypeForLanguage(aLanguageGroup) {
-    const kDefaultFontType = "font.default.%LANG%";
-    var defaultFontTypePref = kDefaultFontType.replace(/%LANG%/, aLanguageGroup);
-    var preference = document.getElementById(defaultFontTypePref);
-    if (!preference) {
-      preference = document.createElement("preference");
-      preference.id = defaultFontTypePref;
-      preference.setAttribute("name", defaultFontTypePref);
-      preference.setAttribute("type", "string");
-      preference.setAttribute("onchange", "gMainPane._rebuildFonts();");
-      document.getElementById("mainPreferences").appendChild(preference);
-    }
-    return preference.value;
-  },
-
-  _selectDefaultLanguageGroup(aLanguageGroup, aIsSerif) {
-    const kFontNameFmtSerif         = "font.name.serif.%LANG%";
-    const kFontNameFmtSansSerif     = "font.name.sans-serif.%LANG%";
-    const kFontNameListFmtSerif     = "font.name-list.serif.%LANG%";
-    const kFontNameListFmtSansSerif = "font.name-list.sans-serif.%LANG%";
-    const kFontSizeFmtVariable      = "font.size.variable.%LANG%";
-
-    var preferences = document.getElementById("mainPreferences");
-    var prefs = [{ format: aIsSerif ? kFontNameFmtSerif : kFontNameFmtSansSerif,
-                   type: "fontname",
-                   element: "defaultFont",
-                   fonttype: aIsSerif ? "serif" : "sans-serif" },
-                 { format: aIsSerif ? kFontNameListFmtSerif : kFontNameListFmtSansSerif,
-                   type: "unichar",
-                   element: null,
-                   fonttype: aIsSerif ? "serif" : "sans-serif" },
-                 { format: kFontSizeFmtVariable,
-                   type: "int",
-                   element: "defaultFontSize",
-                   fonttype: null }];
-    for (var i = 0; i < prefs.length; ++i) {
-      var preference = document.getElementById(prefs[i].format.replace(/%LANG%/, aLanguageGroup));
-      if (!preference) {
-        preference = document.createElement("preference");
-        var name = prefs[i].format.replace(/%LANG%/, aLanguageGroup);
-        preference.id = name;
-        preference.setAttribute("name", name);
-        preference.setAttribute("type", prefs[i].type);
-        preferences.appendChild(preference);
-      }
-
-      if (!prefs[i].element)
-        continue;
-
-      var element = document.getElementById(prefs[i].element);
-      if (element) {
-        element.setAttribute("preference", preference.id);
-
-        if (prefs[i].fonttype)
-          FontBuilder.buildFontList(aLanguageGroup, prefs[i].fonttype, element);
-
-        preference.setElementValue(element);
-      }
-    }
-  },
-
-  /**
-   * Stores the original value of the spellchecking preference to enable proper
-   * restoration if unchanged (since we're mapping a tristate onto a checkbox).
-   */
-  _storedSpellCheck: 0,
-
-  /**
-   * Returns true if any spellchecking is enabled and false otherwise, caching
-   * the current value to enable proper pref restoration if the checkbox is
-   * never changed.
-   *
-   * layout.spellcheckDefault
-   * - an integer:
-   *     0  disables spellchecking
-   *     1  enables spellchecking, but only for multiline text fields
-   *     2  enables spellchecking for all text fields
-   */
-  readCheckSpelling() {
-    var pref = document.getElementById("layout.spellcheckDefault");
-    this._storedSpellCheck = pref.value;
-
-    return (pref.value != 0);
-  },
-
-  /**
-   * Returns the value of the spellchecking preference represented by UI,
-   * preserving the preference's "hidden" value if the preference is
-   * unchanged and represents a value not strictly allowed in UI.
-   */
-  writeCheckSpelling() {
-    var checkbox = document.getElementById("checkSpelling");
-    if (checkbox.checked) {
-      if (this._storedSpellCheck == 2) {
-        return 2;
-      }
-      return 1;
-    }
-    return 0;
-  },
-
-  updateDefaultPerformanceSettingsPref() {
-    let defaultPerformancePref =
-      document.getElementById("browser.preferences.defaultPerformanceSettings.enabled");
-    let processCountPref = document.getElementById("dom.ipc.processCount");
-    let accelerationPref = document.getElementById("layers.acceleration.disabled");
-    if (processCountPref.value != processCountPref.defaultValue ||
-        accelerationPref.value != accelerationPref.defaultValue) {
-      defaultPerformancePref.value = false;
-    }
-  },
-
-  updatePerformanceSettingsBox({duringChangeEvent}) {
-    let defaultPerformancePref =
-      document.getElementById("browser.preferences.defaultPerformanceSettings.enabled");
-    let performanceSettings = document.getElementById("performanceSettings");
-    let processCountPref = document.getElementById("dom.ipc.processCount");
-    if (defaultPerformancePref.value) {
-      let accelerationPref = document.getElementById("layers.acceleration.disabled");
-      // Unset the value so process count will be decided by e10s rollout.
-      processCountPref.value = processCountPref.defaultValue;
-      accelerationPref.value = accelerationPref.defaultValue;
-      performanceSettings.hidden = true;
-    } else {
-      let e10sRolloutProcessCountPref =
-        document.getElementById("dom.ipc.processCount.web");
-      // Take the e10s rollout value as the default value (if it exists),
-      // but don't overwrite the user set value.
-      if (duringChangeEvent &&
-          e10sRolloutProcessCountPref.value &&
-          processCountPref.value == processCountPref.defaultValue) {
-        processCountPref.value = e10sRolloutProcessCountPref.value;
-      }
-      performanceSettings.hidden = false;
-    }
-  },
-
-  buildContentProcessCountMenuList() {
-    if (gMainPane.isE10SEnabled()) {
-      let processCountPref = document.getElementById("dom.ipc.processCount");
-      let e10sRolloutProcessCountPref =
-        document.getElementById("dom.ipc.processCount.web");
-      let defaultProcessCount =
-        e10sRolloutProcessCountPref.value || processCountPref.defaultValue;
-      let bundlePreferences = document.getElementById("bundlePreferences");
-      let label = bundlePreferences.getFormattedString("defaultContentProcessCount",
-        [defaultProcessCount]);
-      let contentProcessCount =
-        document.querySelector(`#contentProcessCount > menupopup >
-                                menuitem[value="${defaultProcessCount}"]`);
-      contentProcessCount.label = label;
-
-      document.getElementById("limitContentProcess").disabled = false;
-      document.getElementById("contentProcessCount").disabled = false;
-      document.getElementById("contentProcessCountEnabledDescription").hidden = false;
-      document.getElementById("contentProcessCountDisabledDescription").hidden = true;
-    } else {
-      document.getElementById("limitContentProcess").disabled = true;
-      document.getElementById("contentProcessCount").disabled = true;
-      document.getElementById("contentProcessCountEnabledDescription").hidden = true;
-      document.getElementById("contentProcessCountDisabledDescription").hidden = false;
-    }
-  },
-
-  /*
-   * Preferences:
-   *
-   * app.update.enabled
-   * - true if updates to the application are enabled, false otherwise
-   * app.update.auto
-   * - true if updates should be automatically downloaded and installed and
-   * false if the user should be asked what he wants to do when an update is
-   * available
-   * extensions.update.enabled
-   * - true if updates to extensions and themes are enabled, false otherwise
-   * browser.search.update
-   * - true if updates to search engines are enabled, false otherwise
-   */
-
-  /**
-   * Selects the item of the radiogroup based on the pref values and locked
-   * states.
-   *
-   * UI state matrix for update preference conditions
-   *
-   * UI Components:                              Preferences
-   * Radiogroup                                  i   = app.update.enabled
-   *                                             ii  = app.update.auto
-   *
-   * Disabled states:
-   * Element           pref  value  locked  disabled
-   * radiogroup        i     t/f    f       false
-   *                   i     t/f    *t*     *true*
-   *                   ii    t/f    f       false
-   *                   ii    t/f    *t*     *true*
-   */
-  updateReadPrefs() {
-    if (AppConstants.MOZ_UPDATER) {
-      var enabledPref = document.getElementById("app.update.enabled");
-      var autoPref = document.getElementById("app.update.auto");
-      var radiogroup = document.getElementById("updateRadioGroup");
-
-      if (!enabledPref.value)   // Don't care for autoPref.value in this case.
-        radiogroup.value = "manual";    // 3. Never check for updates.
-      else if (autoPref.value)  // enabledPref.value && autoPref.value
-        radiogroup.value = "auto";      // 1. Automatically install updates
-      else                      // enabledPref.value && !autoPref.value
-        radiogroup.value = "checkOnly"; // 2. Check, but let me choose
-
-      var canCheck = Components.classes["@mozilla.org/updates/update-service;1"].
-                       getService(Components.interfaces.nsIApplicationUpdateService).
-                       canCheckForUpdates;
-      // canCheck is false if the enabledPref is false and locked,
-      // or the binary platform or OS version is not known.
-      // A locked pref is sufficient to disable the radiogroup.
-      radiogroup.disabled = !canCheck || enabledPref.locked || autoPref.locked;
-
-      if (AppConstants.MOZ_MAINTENANCE_SERVICE) {
-        // Check to see if the maintenance service is installed.
-        // If it is don't show the preference at all.
-        var installed;
-        try {
-          var wrk = Components.classes["@mozilla.org/windows-registry-key;1"]
-                    .createInstance(Components.interfaces.nsIWindowsRegKey);
-          wrk.open(wrk.ROOT_KEY_LOCAL_MACHINE,
-                   "SOFTWARE\\Mozilla\\MaintenanceService",
-                   wrk.ACCESS_READ | wrk.WOW64_64);
-          installed = wrk.readIntValue("Installed");
-          wrk.close();
-        } catch (e) {
-        }
-        if (installed != 1) {
-          document.getElementById("useService").hidden = true;
-        }
-      }
-    }
-  },
-
-  /**
-   * Sets the pref values based on the selected item of the radiogroup.
-   */
-  updateWritePrefs() {
-    if (AppConstants.MOZ_UPDATER) {
-      var enabledPref = document.getElementById("app.update.enabled");
-      var autoPref = document.getElementById("app.update.auto");
-      var radiogroup = document.getElementById("updateRadioGroup");
-      switch (radiogroup.value) {
-        case "auto":      // 1. Automatically install updates for Desktop only
-          enabledPref.value = true;
-          autoPref.value = true;
-          break;
-        case "checkOnly": // 2. Check, but let me choose
-          enabledPref.value = true;
-          autoPref.value = false;
-          break;
-        case "manual":    // 3. Never check for updates.
-          enabledPref.value = false;
-          autoPref.value = false;
-      }
-    }
-  },
-
-  /**
-   * Displays the history of installed updates.
-   */
-  showUpdates() {
-    gSubDialog.open("chrome://mozapps/content/update/history.xul");
-  },
-
-  destroy() {
-    window.removeEventListener("unload", this);
-    this._prefSvc.removeObserver(PREF_SHOW_PLUGINS_IN_LIST, this);
-    this._prefSvc.removeObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_APP, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_WEB, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_ACTION, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_READER, this);
-
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_APP, this);
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_WEB, this);
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_READER, this);
-
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_APP, this);
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_WEB, this);
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_READER, this);
-  },
-
-
-  // nsISupports
-
-  QueryInterface(aIID) {
-    if (aIID.equals(Ci.nsIObserver) ||
-        aIID.equals(Ci.nsIDOMEventListener ||
-        aIID.equals(Ci.nsISupports)))
-      return this;
-
-    throw Cr.NS_ERROR_NO_INTERFACE;
-  },
-
-
-  // nsIObserver
-
-  observe(aSubject, aTopic, aData) {
-    if (aTopic == "nsPref:changed") {
-      // Rebuild the list when there are changes to preferences that influence
-      // whether or not to show certain entries in the list.
-      if (!this._storingAction) {
-        // These two prefs alter the list of visible types, so we have to rebuild
-        // that list when they change.
-        if (aData == PREF_SHOW_PLUGINS_IN_LIST ||
-            aData == PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS) {
-          this._rebuildVisibleTypes();
-          this._sortVisibleTypes();
-        }
-
-        // All the prefs we observe can affect what we display, so we rebuild
-        // the view when any of them changes.
-        this._rebuildView();
-      }
-      if (AppConstants.MOZ_UPDATER) {
-        this.updateReadPrefs();
-      }
-    }
-  },
-
-
-  // nsIDOMEventListener
-
-  handleEvent(aEvent) {
-    if (aEvent.type == "unload") {
-      this.destroy();
-    }
-  },
-
-
-  // Composed Model Construction
-
-  _loadData() {
-    this._loadFeedHandler();
-    this._loadInternalHandlers();
-    this._loadPluginHandlers();
-    this._loadApplicationHandlers();
-  },
-
-  _loadFeedHandler() {
-    this._handledTypes[TYPE_MAYBE_FEED] = feedHandlerInfo;
-    feedHandlerInfo.handledOnlyByPlugin = false;
-
-    this._handledTypes[TYPE_MAYBE_VIDEO_FEED] = videoFeedHandlerInfo;
-    videoFeedHandlerInfo.handledOnlyByPlugin = false;
-
-    this._handledTypes[TYPE_MAYBE_AUDIO_FEED] = audioFeedHandlerInfo;
-    audioFeedHandlerInfo.handledOnlyByPlugin = false;
-  },
-
-  /**
-   * Load higher level internal handlers so they can be turned on/off in the
-   * applications menu.
-   */
-  _loadInternalHandlers() {
-    var internalHandlers = [pdfHandlerInfo];
-    for (let internalHandler of internalHandlers) {
-      if (internalHandler.enabled) {
-        this._handledTypes[internalHandler.type] = internalHandler;
-      }
-    }
-  },
-
-  /**
-   * Load the set of handlers defined by plugins.
-   *
-   * Note: if there's more than one plugin for a given MIME type, we assume
-   * the last one is the one that the application will use.  That may not be
-   * correct, but it's how we've been doing it for years.
-   *
-   * Perhaps we should instead query navigator.mimeTypes for the set of types
-   * supported by the application and then get the plugin from each MIME type's
-   * enabledPlugin property.  But if there's a plugin for a type, we need
-   * to know about it even if it isn't enabled, since we're going to give
-   * the user an option to enable it.
-   *
-   * Also note that enabledPlugin does not get updated when
-   * plugin.disable_full_page_plugin_for_types changes, so even if we could use
-   * enabledPlugin to get the plugin that would be used, we'd still need to
-   * check the pref ourselves to find out if it's enabled.
-   */
-  _loadPluginHandlers() {
-    "use strict";
-
-    let mimeTypes = navigator.mimeTypes;
-
-    for (let mimeType of mimeTypes) {
-      let handlerInfoWrapper;
-      if (mimeType.type in this._handledTypes) {
-        handlerInfoWrapper = this._handledTypes[mimeType.type];
-      } else {
-        let wrappedHandlerInfo =
-              this._mimeSvc.getFromTypeAndExtension(mimeType.type, null);
-        handlerInfoWrapper = new HandlerInfoWrapper(mimeType.type, wrappedHandlerInfo);
-        handlerInfoWrapper.handledOnlyByPlugin = true;
-        this._handledTypes[mimeType.type] = handlerInfoWrapper;
-      }
-      handlerInfoWrapper.pluginName = mimeType.enabledPlugin.name;
-    }
-  },
-
-  /**
-   * Load the set of handlers defined by the application datastore.
-   */
-  _loadApplicationHandlers() {
-    var wrappedHandlerInfos = this._handlerSvc.enumerate();
-    while (wrappedHandlerInfos.hasMoreElements()) {
-      let wrappedHandlerInfo =
-        wrappedHandlerInfos.getNext().QueryInterface(Ci.nsIHandlerInfo);
-      let type = wrappedHandlerInfo.type;
-
-      let handlerInfoWrapper;
-      if (type in this._handledTypes)
-        handlerInfoWrapper = this._handledTypes[type];
-      else {
-        handlerInfoWrapper = new HandlerInfoWrapper(type, wrappedHandlerInfo);
-        this._handledTypes[type] = handlerInfoWrapper;
-      }
-
-      handlerInfoWrapper.handledOnlyByPlugin = false;
-    }
-  },
-
-
-  // View Construction
-
-  _rebuildVisibleTypes() {
-    // Reset the list of visible types and the visible type description counts.
-    this._visibleTypes = [];
-    this._visibleTypeDescriptionCount = {};
-
-    // Get the preferences that help determine what types to show.
-    var showPlugins = this._prefSvc.getBoolPref(PREF_SHOW_PLUGINS_IN_LIST);
-    var hidePluginsWithoutExtensions =
-      this._prefSvc.getBoolPref(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS);
-
-    for (let type in this._handledTypes) {
-      let handlerInfo = this._handledTypes[type];
-
-      // Hide plugins without associated extensions if so prefed so we don't
-      // show a whole bunch of obscure types handled by plugins on Mac.
-      // Note: though protocol types don't have extensions, we still show them;
-      // the pref is only meant to be applied to MIME types, since plugins are
-      // only associated with MIME types.
-      // FIXME: should we also check the "suffixes" property of the plugin?
-      // Filed as bug 395135.
-      if (hidePluginsWithoutExtensions && handlerInfo.handledOnlyByPlugin &&
-          handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
-          !handlerInfo.primaryExtension)
-        continue;
-
-      // Hide types handled only by plugins if so prefed.
-      if (handlerInfo.handledOnlyByPlugin && !showPlugins)
-        continue;
-
-      // We couldn't find any reason to exclude the type, so include it.
-      this._visibleTypes.push(handlerInfo);
-
-      if (handlerInfo.description in this._visibleTypeDescriptionCount)
-        this._visibleTypeDescriptionCount[handlerInfo.description]++;
-      else
-        this._visibleTypeDescriptionCount[handlerInfo.description] = 1;
-    }
-  },
-
-  _rebuildView() {
-    // Clear the list of entries.
-    while (this._list.childNodes.length > 1)
-      this._list.removeChild(this._list.lastChild);
-
-    var visibleTypes = this._visibleTypes;
-
-    // If the user is filtering the list, then only show matching types.
-    if (this._filter.value)
-      visibleTypes = visibleTypes.filter(this._matchesFilter, this);
-
-    for (let visibleType of visibleTypes) {
-      let item = document.createElement("richlistitem");
-      item.setAttribute("type", visibleType.type);
-      item.setAttribute("typeDescription", this._describeType(visibleType));
-      if (visibleType.smallIcon)
-        item.setAttribute("typeIcon", visibleType.smallIcon);
-      item.setAttribute("actionDescription",
-                        this._describePreferredAction(visibleType));
-
-      if (!this._setIconClassForPreferredAction(visibleType, item)) {
-        item.setAttribute("actionIcon",
-                          this._getIconURLForPreferredAction(visibleType));
-      }
-
-      this._list.appendChild(item);
-    }
-
-    this._selectLastSelectedType();
-  },
-
-  _matchesFilter(aType) {
-    var filterValue = this._filter.value.toLowerCase();
-    return this._describeType(aType).toLowerCase().indexOf(filterValue) != -1 ||
-           this._describePreferredAction(aType).toLowerCase().indexOf(filterValue) != -1;
-  },
-
-  /**
-   * Describe, in a human-readable fashion, the type represented by the given
-   * handler info object.  Normally this is just the description provided by
-   * the info object, but if more than one object presents the same description,
-   * then we annotate the duplicate descriptions with the type itself to help
-   * users distinguish between those types.
-   *
-   * @param aHandlerInfo {nsIHandlerInfo} the type being described
-   * @returns {string} a description of the type
-   */
-  _describeType(aHandlerInfo) {
-    if (this._visibleTypeDescriptionCount[aHandlerInfo.description] > 1)
-      return this._prefsBundle.getFormattedString("typeDescriptionWithType",
-                                                  [aHandlerInfo.description,
-                                                   aHandlerInfo.type]);
-
-    return aHandlerInfo.description;
-  },
-
-  /**
-   * Describe, in a human-readable fashion, the preferred action to take on
-   * the type represented by the given handler info object.
-   *
-   * XXX Should this be part of the HandlerInfoWrapper interface?  It would
-   * violate the separation of model and view, but it might make more sense
-   * nonetheless (f.e. it would make sortTypes easier).
-   *
-   * @param aHandlerInfo {nsIHandlerInfo} the type whose preferred action
-   *                                      is being described
-   * @returns {string} a description of the action
-   */
-  _describePreferredAction(aHandlerInfo) {
-    // alwaysAskBeforeHandling overrides the preferred action, so if that flag
-    // is set, then describe that behavior instead.  For most types, this is
-    // the "alwaysAsk" string, but for the feed type we show something special.
-    if (aHandlerInfo.alwaysAskBeforeHandling) {
-      if (isFeedType(aHandlerInfo.type))
-        return this._prefsBundle.getFormattedString("previewInApp",
-                                                    [this._brandShortName]);
-      return this._prefsBundle.getString("alwaysAsk");
-    }
-
-    switch (aHandlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.saveToDisk:
-        return this._prefsBundle.getString("saveFile");
-
-      case Ci.nsIHandlerInfo.useHelperApp:
-        var preferredApp = aHandlerInfo.preferredApplicationHandler;
-        var name;
-        if (preferredApp instanceof Ci.nsILocalHandlerApp)
-          name = getFileDisplayName(preferredApp.executable);
-        else
-          name = preferredApp.name;
-        return this._prefsBundle.getFormattedString("useApp", [name]);
-
-      case Ci.nsIHandlerInfo.handleInternally:
-        // For the feed type, handleInternally means live bookmarks.
-        if (isFeedType(aHandlerInfo.type)) {
-          return this._prefsBundle.getFormattedString("addLiveBookmarksInApp",
-                                                      [this._brandShortName]);
-        }
-
-        if (aHandlerInfo instanceof InternalHandlerInfoWrapper) {
-          return this._prefsBundle.getFormattedString("previewInApp",
-                                                      [this._brandShortName]);
-        }
-
-        // For other types, handleInternally looks like either useHelperApp
-        // or useSystemDefault depending on whether or not there's a preferred
-        // handler app.
-        if (this.isValidHandlerApp(aHandlerInfo.preferredApplicationHandler))
-          return aHandlerInfo.preferredApplicationHandler.name;
-
-        return aHandlerInfo.defaultDescription;
-
-        // XXX Why don't we say the app will handle the type internally?
-        // Is it because the app can't actually do that?  But if that's true,
-        // then why would a preferredAction ever get set to this value
-        // in the first place?
-
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        return this._prefsBundle.getFormattedString("useDefault",
-                                                    [aHandlerInfo.defaultDescription]);
-
-      case kActionUsePlugin:
-        return this._prefsBundle.getFormattedString("usePluginIn",
-                                                    [aHandlerInfo.pluginName,
-                                                     this._brandShortName]);
-      default:
-        throw new Error(`Unexpected preferredAction: ${aHandlerInfo.preferredAction}`);
-    }
-  },
-
-  _selectLastSelectedType() {
-    // If the list is disabled by the pref.downloads.disable_button.edit_actions
-    // preference being locked, then don't select the type, as that would cause
-    // it to appear selected, with a different background and an actions menu
-    // that makes it seem like you can choose an action for the type.
-    if (this._list.disabled)
-      return;
-
-    var lastSelectedType = this._list.getAttribute("lastSelectedType");
-    if (!lastSelectedType)
-      return;
-
-    var item = this._list.getElementsByAttribute("type", lastSelectedType)[0];
-    if (!item)
-      return;
-
-    this._list.selectedItem = item;
-  },
-
-  /**
-   * Whether or not the given handler app is valid.
-   *
-   * @param aHandlerApp {nsIHandlerApp} the handler app in question
-   *
-   * @returns {boolean} whether or not it's valid
-   */
-  isValidHandlerApp(aHandlerApp) {
-    if (!aHandlerApp)
-      return false;
-
-    if (aHandlerApp instanceof Ci.nsILocalHandlerApp)
-      return this._isValidHandlerExecutable(aHandlerApp.executable);
-
-    if (aHandlerApp instanceof Ci.nsIWebHandlerApp)
-      return aHandlerApp.uriTemplate;
-
-    if (aHandlerApp instanceof Ci.nsIWebContentHandlerInfo)
-      return aHandlerApp.uri;
-
-    return false;
-  },
-
-  _isValidHandlerExecutable(aExecutable) {
-    let leafName;
-    if (AppConstants.platform == "win") {
-      leafName = `${AppConstants.MOZ_APP_NAME}.exe`;
-    } else if (AppConstants.platform == "macosx") {
-      leafName = AppConstants.MOZ_MACBUNDLE_NAME;
-    } else {
-      leafName = `${AppConstants.MOZ_APP_NAME}-bin`;
-    }
-    return aExecutable &&
-           aExecutable.exists() &&
-           aExecutable.isExecutable() &&
-// XXXben - we need to compare this with the running instance executable
-//          just don't know how to do that via script...
-// XXXmano TBD: can probably add this to nsIShellService
-           aExecutable.leafName != leafName;
-  },
-
-  /**
-   * Rebuild the actions menu for the selected entry.  Gets called by
-   * the richlistitem constructor when an entry in the list gets selected.
-   */
-  rebuildActionsMenu() {
-    var typeItem = this._list.selectedItem;
-    var handlerInfo = this._handledTypes[typeItem.type];
-    var menu =
-      document.getAnonymousElementByAttribute(typeItem, "class", "actionsMenu");
-    var menuPopup = menu.menupopup;
-
-    // Clear out existing items.
-    while (menuPopup.hasChildNodes())
-      menuPopup.removeChild(menuPopup.lastChild);
-
-    let internalMenuItem;
-    // Add the "Preview in Firefox" option for optional internal handlers.
-    if (handlerInfo instanceof InternalHandlerInfoWrapper) {
-      internalMenuItem = document.createElement("menuitem");
-      internalMenuItem.setAttribute("action", Ci.nsIHandlerInfo.handleInternally);
-      let label = this._prefsBundle.getFormattedString("previewInApp",
-                                                       [this._brandShortName]);
-      internalMenuItem.setAttribute("label", label);
-      internalMenuItem.setAttribute("tooltiptext", label);
-      internalMenuItem.setAttribute(APP_ICON_ATTR_NAME, "ask");
-      menuPopup.appendChild(internalMenuItem);
-    }
-
-    {
-      var askMenuItem = document.createElement("menuitem");
-      askMenuItem.setAttribute("action", Ci.nsIHandlerInfo.alwaysAsk);
-      let label;
-      if (isFeedType(handlerInfo.type))
-        label = this._prefsBundle.getFormattedString("previewInApp",
-                                                     [this._brandShortName]);
-      else
-        label = this._prefsBundle.getString("alwaysAsk");
-      askMenuItem.setAttribute("label", label);
-      askMenuItem.setAttribute("tooltiptext", label);
-      askMenuItem.setAttribute(APP_ICON_ATTR_NAME, "ask");
-      menuPopup.appendChild(askMenuItem);
-    }
-
-    // Create a menu item for saving to disk.
-    // Note: this option isn't available to protocol types, since we don't know
-    // what it means to save a URL having a certain scheme to disk, nor is it
-    // available to feeds, since the feed code doesn't implement the capability.
-    if ((handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) &&
-        !isFeedType(handlerInfo.type)) {
-      var saveMenuItem = document.createElement("menuitem");
-      saveMenuItem.setAttribute("action", Ci.nsIHandlerInfo.saveToDisk);
-      let label = this._prefsBundle.getString("saveFile");
-      saveMenuItem.setAttribute("label", label);
-      saveMenuItem.setAttribute("tooltiptext", label);
-      saveMenuItem.setAttribute(APP_ICON_ATTR_NAME, "save");
-      menuPopup.appendChild(saveMenuItem);
-    }
-
-    // If this is the feed type, add a Live Bookmarks item.
-    if (isFeedType(handlerInfo.type)) {
-      internalMenuItem = document.createElement("menuitem");
-      internalMenuItem.setAttribute("action", Ci.nsIHandlerInfo.handleInternally);
-      let label = this._prefsBundle.getFormattedString("addLiveBookmarksInApp",
-                                                       [this._brandShortName]);
-      internalMenuItem.setAttribute("label", label);
-      internalMenuItem.setAttribute("tooltiptext", label);
-      internalMenuItem.setAttribute(APP_ICON_ATTR_NAME, "feed");
-      menuPopup.appendChild(internalMenuItem);
-    }
-
-    // Add a separator to distinguish these items from the helper app items
-    // that follow them.
-    let menuseparator = document.createElement("menuseparator");
-    menuPopup.appendChild(menuseparator);
-
-    // Create a menu item for the OS default application, if any.
-    if (handlerInfo.hasDefaultHandler) {
-      var defaultMenuItem = document.createElement("menuitem");
-      defaultMenuItem.setAttribute("action", Ci.nsIHandlerInfo.useSystemDefault);
-      let label = this._prefsBundle.getFormattedString("useDefault",
-                                                       [handlerInfo.defaultDescription]);
-      defaultMenuItem.setAttribute("label", label);
-      defaultMenuItem.setAttribute("tooltiptext", handlerInfo.defaultDescription);
-      defaultMenuItem.setAttribute("image", this._getIconURLForSystemDefault(handlerInfo));
-
-      menuPopup.appendChild(defaultMenuItem);
-    }
-
-    // Create menu items for possible handlers.
-    let preferredApp = handlerInfo.preferredApplicationHandler;
-    let possibleApps = handlerInfo.possibleApplicationHandlers.enumerate();
-    var possibleAppMenuItems = [];
-    while (possibleApps.hasMoreElements()) {
-      let possibleApp = possibleApps.getNext();
-      if (!this.isValidHandlerApp(possibleApp))
-        continue;
-
-      let menuItem = document.createElement("menuitem");
-      menuItem.setAttribute("action", Ci.nsIHandlerInfo.useHelperApp);
-      let label;
-      if (possibleApp instanceof Ci.nsILocalHandlerApp)
-        label = getFileDisplayName(possibleApp.executable);
-      else
-        label = possibleApp.name;
-      label = this._prefsBundle.getFormattedString("useApp", [label]);
-      menuItem.setAttribute("label", label);
-      menuItem.setAttribute("tooltiptext", label);
-      menuItem.setAttribute("image", this._getIconURLForHandlerApp(possibleApp));
-
-      // Attach the handler app object to the menu item so we can use it
-      // to make changes to the datastore when the user selects the item.
-      menuItem.handlerApp = possibleApp;
-
-      menuPopup.appendChild(menuItem);
-      possibleAppMenuItems.push(menuItem);
-    }
-
-    // Create a menu item for the plugin.
-    if (handlerInfo.pluginName) {
-      var pluginMenuItem = document.createElement("menuitem");
-      pluginMenuItem.setAttribute("action", kActionUsePlugin);
-      let label = this._prefsBundle.getFormattedString("usePluginIn",
-                                                       [handlerInfo.pluginName,
-                                                        this._brandShortName]);
-      pluginMenuItem.setAttribute("label", label);
-      pluginMenuItem.setAttribute("tooltiptext", label);
-      pluginMenuItem.setAttribute(APP_ICON_ATTR_NAME, "plugin");
-      menuPopup.appendChild(pluginMenuItem);
-    }
-
-    // Create a menu item for selecting a local application.
-    let canOpenWithOtherApp = true;
-    if (AppConstants.platform == "win") {
-      // On Windows, selecting an application to open another application
-      // would be meaningless so we special case executables.
-      let executableType = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService)
-                                                    .getTypeFromExtension("exe");
-      canOpenWithOtherApp = handlerInfo.type != executableType;
-    }
-    if (canOpenWithOtherApp) {
-      let menuItem = document.createElement("menuitem");
-      menuItem.className = "choose-app-item";
-      menuItem.addEventListener("command", function(e) {
-        gMainPane.chooseApp(e);
-      });
-      let label = this._prefsBundle.getString("useOtherApp");
-      menuItem.setAttribute("label", label);
-      menuItem.setAttribute("tooltiptext", label);
-      menuPopup.appendChild(menuItem);
-    }
-
-    // Create a menu item for managing applications.
-    if (possibleAppMenuItems.length) {
-      let menuItem = document.createElement("menuseparator");
-      menuPopup.appendChild(menuItem);
-      menuItem = document.createElement("menuitem");
-      menuItem.className = "manage-app-item";
-      menuItem.addEventListener("command", function(e) {
-        gMainPane.manageApp(e);
-      });
-      menuItem.setAttribute("label", this._prefsBundle.getString("manageApp"));
-      menuPopup.appendChild(menuItem);
-    }
-
-    // Select the item corresponding to the preferred action.  If the always
-    // ask flag is set, it overrides the preferred action.  Otherwise we pick
-    // the item identified by the preferred action (when the preferred action
-    // is to use a helper app, we have to pick the specific helper app item).
-    if (handlerInfo.alwaysAskBeforeHandling)
-      menu.selectedItem = askMenuItem;
-    else switch (handlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.handleInternally:
-        if (internalMenuItem) {
-          menu.selectedItem = internalMenuItem;
-        } else {
-          Cu.reportError("No menu item defined to set!")
-        }
-        break;
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        menu.selectedItem = defaultMenuItem;
-        break;
-      case Ci.nsIHandlerInfo.useHelperApp:
-        if (preferredApp)
-          menu.selectedItem =
-            possibleAppMenuItems.filter(v => v.handlerApp.equals(preferredApp))[0];
-        break;
-      case kActionUsePlugin:
-        menu.selectedItem = pluginMenuItem;
-        break;
-      case Ci.nsIHandlerInfo.saveToDisk:
-        menu.selectedItem = saveMenuItem;
-        break;
-    }
-  },
-
-
-  // Sorting & Filtering
-
-  _sortColumn: null,
-
-  /**
-   * Sort the list when the user clicks on a column header.
-   */
-  sort(event) {
-    var column = event.target;
-
-    // If the user clicked on a new sort column, remove the direction indicator
-    // from the old column.
-    if (this._sortColumn && this._sortColumn != column)
-      this._sortColumn.removeAttribute("sortDirection");
-
-    this._sortColumn = column;
-
-    // Set (or switch) the sort direction indicator.
-    if (column.getAttribute("sortDirection") == "ascending")
-      column.setAttribute("sortDirection", "descending");
-    else
-      column.setAttribute("sortDirection", "ascending");
-
-    this._sortVisibleTypes();
-    this._rebuildView();
-  },
-
-  /**
-   * Sort the list of visible types by the current sort column/direction.
-   */
-  _sortVisibleTypes() {
-    if (!this._sortColumn)
-      return;
-
-    var t = this;
-
-    function sortByType(a, b) {
-      return t._describeType(a).toLowerCase().
-             localeCompare(t._describeType(b).toLowerCase());
-    }
-
-    function sortByAction(a, b) {
-      return t._describePreferredAction(a).toLowerCase().
-             localeCompare(t._describePreferredAction(b).toLowerCase());
-    }
-
-    switch (this._sortColumn.getAttribute("value")) {
-      case "type":
-        this._visibleTypes.sort(sortByType);
-        break;
-      case "action":
-        this._visibleTypes.sort(sortByAction);
-        break;
-    }
-
-    if (this._sortColumn.getAttribute("sortDirection") == "descending")
-      this._visibleTypes.reverse();
-  },
-
-  /**
-   * Filter the list when the user enters a filter term into the filter field.
-   */
-  filter() {
-    this._rebuildView();
-  },
-
-  focusFilterBox() {
-    this._filter.focus();
-    this._filter.select();
-  },
-
-
-  // Changes
-
-  onSelectAction(aActionItem) {
-    this._storingAction = true;
-
-    try {
-      this._storeAction(aActionItem);
-    } finally {
-      this._storingAction = false;
-    }
-  },
-
-  _storeAction(aActionItem) {
-    var typeItem = this._list.selectedItem;
-    var handlerInfo = this._handledTypes[typeItem.type];
-
-    let action = parseInt(aActionItem.getAttribute("action"));
-
-    // Set the plugin state if we're enabling or disabling a plugin.
-    if (action == kActionUsePlugin)
-      handlerInfo.enablePluginType();
-    else if (handlerInfo.pluginName && !handlerInfo.isDisabledPluginType)
-      handlerInfo.disablePluginType();
-
-    // Set the preferred application handler.
-    // We leave the existing preferred app in the list when we set
-    // the preferred action to something other than useHelperApp so that
-    // legacy datastores that don't have the preferred app in the list
-    // of possible apps still include the preferred app in the list of apps
-    // the user can choose to handle the type.
-    if (action == Ci.nsIHandlerInfo.useHelperApp)
-      handlerInfo.preferredApplicationHandler = aActionItem.handlerApp;
-
-    // Set the "always ask" flag.
-    if (action == Ci.nsIHandlerInfo.alwaysAsk)
-      handlerInfo.alwaysAskBeforeHandling = true;
-    else
-      handlerInfo.alwaysAskBeforeHandling = false;
-
-    // Set the preferred action.
-    handlerInfo.preferredAction = action;
-
-    handlerInfo.store();
-
-    // Make sure the handler info object is flagged to indicate that there is
-    // now some user configuration for the type.
-    handlerInfo.handledOnlyByPlugin = false;
-
-    // Update the action label and image to reflect the new preferred action.
-    typeItem.setAttribute("actionDescription",
-                          this._describePreferredAction(handlerInfo));
-    if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) {
-      typeItem.setAttribute("actionIcon",
-                            this._getIconURLForPreferredAction(handlerInfo));
-    }
-  },
-
-  manageApp(aEvent) {
-    // Don't let the normal "on select action" handler get this event,
-    // as we handle it specially ourselves.
-    aEvent.stopPropagation();
-
-    var typeItem = this._list.selectedItem;
-    var handlerInfo = this._handledTypes[typeItem.type];
-
-    let onComplete = () => {
-      // Rebuild the actions menu so that we revert to the previous selection,
-      // or "Always ask" if the previous default application has been removed
-      this.rebuildActionsMenu();
-
-      // update the richlistitem too. Will be visible when selecting another row
-      typeItem.setAttribute("actionDescription",
-                            this._describePreferredAction(handlerInfo));
-      if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) {
-        typeItem.setAttribute("actionIcon",
-                              this._getIconURLForPreferredAction(handlerInfo));
-      }
-    };
-
-    gSubDialog.open("chrome://browser/content/preferences/applicationManager.xul",
-                    "resizable=no", handlerInfo, onComplete);
-
-  },
-
-  chooseApp(aEvent) {
-    // Don't let the normal "on select action" handler get this event,
-    // as we handle it specially ourselves.
-    aEvent.stopPropagation();
-
-    var handlerApp;
-    let chooseAppCallback = aHandlerApp => {
-      // Rebuild the actions menu whether the user picked an app or canceled.
-      // If they picked an app, we want to add the app to the menu and select it.
-      // If they canceled, we want to go back to their previous selection.
-      this.rebuildActionsMenu();
-
-      // If the user picked a new app from the menu, select it.
-      if (aHandlerApp) {
-        let typeItem = this._list.selectedItem;
-        let actionsMenu =
-          document.getAnonymousElementByAttribute(typeItem, "class", "actionsMenu");
-        let menuItems = actionsMenu.menupopup.childNodes;
-        for (let i = 0; i < menuItems.length; i++) {
-          let menuItem = menuItems[i];
-          if (menuItem.handlerApp && menuItem.handlerApp.equals(aHandlerApp)) {
-            actionsMenu.selectedIndex = i;
-            this.onSelectAction(menuItem);
-            break;
-          }
-        }
-      }
-    };
-
-    if (AppConstants.platform == "win") {
-      var params = {};
-      var handlerInfo = this._handledTypes[this._list.selectedItem.type];
-
-      if (isFeedType(handlerInfo.type)) {
-        // MIME info will be null, create a temp object.
-        params.mimeInfo = this._mimeSvc.getFromTypeAndExtension(handlerInfo.type,
-                                                   handlerInfo.primaryExtension);
-      } else {
-        params.mimeInfo = handlerInfo.wrappedHandlerInfo;
-      }
-
-      params.title         = this._prefsBundle.getString("fpTitleChooseApp");
-      params.description   = handlerInfo.description;
-      params.filename      = null;
-      params.handlerApp    = null;
-
-      let onAppSelected = () => {
-        if (this.isValidHandlerApp(params.handlerApp)) {
-          handlerApp = params.handlerApp;
-
-          // Add the app to the type's list of possible handlers.
-          handlerInfo.addPossibleApplicationHandler(handlerApp);
-        }
-
-        chooseAppCallback(handlerApp);
-      };
-
-      gSubDialog.open("chrome://global/content/appPicker.xul",
-                      null, params, onAppSelected);
-    } else {
-      let winTitle = this._prefsBundle.getString("fpTitleChooseApp");
-      let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
-      let fpCallback = aResult => {
-        if (aResult == Ci.nsIFilePicker.returnOK && fp.file &&
-            this._isValidHandlerExecutable(fp.file)) {
-          handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
-                       createInstance(Ci.nsILocalHandlerApp);
-          handlerApp.name = getFileDisplayName(fp.file);
-          handlerApp.executable = fp.file;
-
-          // Add the app to the type's list of possible handlers.
-          let handler = this._handledTypes[this._list.selectedItem.type];
-          handler.addPossibleApplicationHandler(handlerApp);
-
-          chooseAppCallback(handlerApp);
-        }
-      };
-
-      // Prompt the user to pick an app.  If they pick one, and it's a valid
-      // selection, then add it to the list of possible handlers.
-      fp.init(window, winTitle, Ci.nsIFilePicker.modeOpen);
-      fp.appendFilters(Ci.nsIFilePicker.filterApps);
-      fp.open(fpCallback);
-    }
-  },
-
-  // Mark which item in the list was last selected so we can reselect it
-  // when we rebuild the list or when the user returns to the prefpane.
-  onSelectionChanged() {
-    if (this._list.selectedItem)
-      this._list.setAttribute("lastSelectedType",
-                              this._list.selectedItem.getAttribute("type"));
-  },
-
-  _setIconClassForPreferredAction(aHandlerInfo, aElement) {
-    // If this returns true, the attribute that CSS sniffs for was set to something
-    // so you shouldn't manually set an icon URI.
-    // This removes the existing actionIcon attribute if any, even if returning false.
-    aElement.removeAttribute("actionIcon");
-
-    if (aHandlerInfo.alwaysAskBeforeHandling) {
-      aElement.setAttribute(APP_ICON_ATTR_NAME, "ask");
-      return true;
-    }
-
-    switch (aHandlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.saveToDisk:
-        aElement.setAttribute(APP_ICON_ATTR_NAME, "save");
-        return true;
-
-      case Ci.nsIHandlerInfo.handleInternally:
-        if (isFeedType(aHandlerInfo.type)) {
-          aElement.setAttribute(APP_ICON_ATTR_NAME, "feed");
-          return true;
-        } else if (aHandlerInfo instanceof InternalHandlerInfoWrapper) {
-          aElement.setAttribute(APP_ICON_ATTR_NAME, "ask");
-          return true;
-        }
-        break;
-
-      case kActionUsePlugin:
-        aElement.setAttribute(APP_ICON_ATTR_NAME, "plugin");
-        return true;
-    }
-    aElement.removeAttribute(APP_ICON_ATTR_NAME);
-    return false;
-  },
-
-  _getIconURLForPreferredAction(aHandlerInfo) {
-    switch (aHandlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        return this._getIconURLForSystemDefault(aHandlerInfo);
-
-      case Ci.nsIHandlerInfo.useHelperApp:
-        let preferredApp = aHandlerInfo.preferredApplicationHandler;
-        if (this.isValidHandlerApp(preferredApp))
-          return this._getIconURLForHandlerApp(preferredApp);
-        // Explicit fall-through
-
-      // This should never happen, but if preferredAction is set to some weird
-      // value, then fall back to the generic application icon.
-      default:
-        return ICON_URL_APP;
-    }
-  },
-
-  _getIconURLForHandlerApp(aHandlerApp) {
-    if (aHandlerApp instanceof Ci.nsILocalHandlerApp)
-      return this._getIconURLForFile(aHandlerApp.executable);
-
-    if (aHandlerApp instanceof Ci.nsIWebHandlerApp)
-      return this._getIconURLForWebApp(aHandlerApp.uriTemplate);
-
-    if (aHandlerApp instanceof Ci.nsIWebContentHandlerInfo)
-      return this._getIconURLForWebApp(aHandlerApp.uri)
-
-    // We know nothing about other kinds of handler apps.
-    return "";
-  },
-
-  _getIconURLForFile(aFile) {
-    var fph = this._ioSvc.getProtocolHandler("file").
-              QueryInterface(Ci.nsIFileProtocolHandler);
-    var urlSpec = fph.getURLSpecFromFile(aFile);
-
-    return "moz-icon://" + urlSpec + "?size=16";
-  },
-
-  _getIconURLForWebApp(aWebAppURITemplate) {
-    var uri = this._ioSvc.newURI(aWebAppURITemplate);
-
-    // Unfortunately we can't use the favicon service to get the favicon,
-    // because the service looks in the annotations table for a record with
-    // the exact URL we give it, and users won't have such records for URLs
-    // they don't visit, and users won't visit the web app's URL template,
-    // they'll only visit URLs derived from that template (i.e. with %s
-    // in the template replaced by the URL of the content being handled).
-
-    if (/^https?$/.test(uri.scheme) && this._prefSvc.getBoolPref("browser.chrome.favicons"))
-      return uri.prePath + "/favicon.ico";
-
-    return "";
-  },
-
-  _getIconURLForSystemDefault(aHandlerInfo) {
-    // Handler info objects for MIME types on some OSes implement a property bag
-    // interface from which we can get an icon for the default app, so if we're
-    // dealing with a MIME type on one of those OSes, then try to get the icon.
-    if ("wrappedHandlerInfo" in aHandlerInfo) {
-      let wrappedHandlerInfo = aHandlerInfo.wrappedHandlerInfo;
-
-      if (wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
-          wrappedHandlerInfo instanceof Ci.nsIPropertyBag) {
-        try {
-          let url = wrappedHandlerInfo.getProperty("defaultApplicationIconURL");
-          if (url)
-            return url + "?size=16";
-        } catch (ex) {}
-      }
-    }
-
-    // If this isn't a MIME type object on an OS that supports retrieving
-    // the icon, or if we couldn't retrieve the icon for some other reason,
-    // then use a generic icon.
-    return ICON_URL_APP;
-  },
-
-  // DOWNLOADS
-
-  /*
-   * Preferences:
-   *
-   * browser.download.useDownloadDir - bool
-   *   True - Save files directly to the folder configured via the
-   *   browser.download.folderList preference.
-   *   False - Always ask the user where to save a file and default to
-   *   browser.download.lastDir when displaying a folder picker dialog.
-   * browser.download.dir - local file handle
-   *   A local folder the user may have selected for downloaded files to be
-   *   saved. Migration of other browser settings may also set this path.
-   *   This folder is enabled when folderList equals 2.
-   * browser.download.lastDir - local file handle
-   *   May contain the last folder path accessed when the user browsed
-   *   via the file save-as dialog. (see contentAreaUtils.js)
-   * browser.download.folderList - int
-   *   Indicates the location users wish to save downloaded files too.
-   *   It is also used to display special file labels when the default
-   *   download location is either the Desktop or the Downloads folder.
-   *   Values:
-   *     0 - The desktop is the default download location.
-   *     1 - The system's downloads folder is the default download location.
-   *     2 - The default download location is elsewhere as specified in
-   *         browser.download.dir.
-   *     3 - The default download location is elsewhere as specified by
-   *         cloud storage API getDownloadFolder
-   * browser.download.downloadDir
-   *   deprecated.
-   * browser.download.defaultFolder
-   *   deprecated.
-   */
-
-  /**
-   * Enables/disables the folder field and Browse button based on whether a
-   * default download directory is being used.
-   */
-  readUseDownloadDir() {
-    var downloadFolder = document.getElementById("downloadFolder");
-    var chooseFolder = document.getElementById("chooseFolder");
-    var preference = document.getElementById("browser.download.useDownloadDir");
-    downloadFolder.disabled = !preference.value || preference.locked;
-    chooseFolder.disabled = !preference.value || preference.locked;
-
-    this.readCloudStorage().catch(Components.utils.reportError);
-    // don't override the preference's value in UI
-    return undefined;
-  },
-
-  /**
-   * Show/Hide the cloud storage radio button with provider name as label if
-   * cloud storage provider is in use.
-   * Select cloud storage radio button if browser.download.useDownloadDir is true
-   * and browser.download.folderList has value 3. Enables/disables the folder field
-   * and Browse button if cloud storage radio button is selected.
-   *
-   */
-  async readCloudStorage() {
-    // Get preferred provider in use display name
-    let providerDisplayName = await CloudStorage.getProviderIfInUse();
-    if (providerDisplayName) {
-      // Show cloud storage radio button with provider name in label
-      let saveToCloudRadio = document.getElementById("saveToCloud");
-      let cloudStrings = Services.strings.createBundle("resource://cloudstorage/preferences.properties");
-      saveToCloudRadio.label = cloudStrings.formatStringFromName("saveFilesToCloudStorage",
-                                                                 [providerDisplayName], 1);
-      saveToCloudRadio.hidden = false;
-
-      let useDownloadDirPref = document.getElementById("browser.download.useDownloadDir");
-      let folderListPref = document.getElementById("browser.download.folderList");
-
-      // Check if useDownloadDir is true and folderListPref is set to Cloud Storage value 3
-      // before selecting cloudStorageradio button. Disable folder field and Browse button if
-      // 'Save to Cloud Storage Provider' radio option is selected
-      if (useDownloadDirPref.value && folderListPref.value === 3) {
-        document.getElementById("saveWhere").selectedItem = saveToCloudRadio;
-        document.getElementById("downloadFolder").disabled = true;
-        document.getElementById("chooseFolder").disabled = true;
-      }
-    }
-  },
-
-  /**
-   * Handle clicks to 'Save To <custom path> or <system default downloads>' and
-   * 'Save to <cloud storage provider>' if cloud storage radio button is displayed in UI.
-   * Sets browser.download.folderList value and Enables/disables the folder field and Browse
-   * button based on option selected.
-   */
-  handleSaveToCommand(event) {
-    return this.handleSaveToCommandTask(event).catch(Components.utils.reportError);
-  },
-  async handleSaveToCommandTask(event) {
-    if (event.target.id !== "saveToCloud" && event.target.id !== "saveTo") {
-      return;
-    }
-    // Check if Save To Cloud Storage Provider radio option is displayed in UI
-    // before continuing.
-    let saveToCloudRadio = document.getElementById("saveToCloud");
-    if (!saveToCloudRadio.hidden) {
-      // When switching between SaveTo and SaveToCloud radio button
-      // with useDownloadDirPref value true, if selectedIndex is other than
-      // SaveTo radio button disable downloadFolder filefield and chooseFolder button
-      let saveWhere = document.getElementById("saveWhere");
-      let useDownloadDirPref = document.getElementById("browser.download.useDownloadDir");
-      if (useDownloadDirPref.value) {
-        let downloadFolder = document.getElementById("downloadFolder");
-        let chooseFolder = document.getElementById("chooseFolder");
-        downloadFolder.disabled = saveWhere.selectedIndex || useDownloadDirPref.locked;
-        chooseFolder.disabled = saveWhere.selectedIndex || useDownloadDirPref.locked;
-      }
-
-      // Set folderListPref value depending on radio option
-      // selected. folderListPref should be set to 3 if Save To Cloud Storage Provider
-      // option is selected. If user switch back to 'Save To' custom path or system
-      // default Downloads, check pref 'browser.download.dir' before setting respective
-      // folderListPref value. If currentDirPref is unspecified folderList should
-      // default to 1
-      let folderListPref = document.getElementById("browser.download.folderList");
-      let saveTo = document.getElementById("saveTo");
-      if (saveWhere.selectedItem == saveToCloudRadio) {
-        folderListPref.value = 3;
-      } else if (saveWhere.selectedItem == saveTo) {
-        let currentDirPref = document.getElementById("browser.download.dir");
-        folderListPref.value = currentDirPref.value ? await this._folderToIndex(currentDirPref.value) : 1;
-      }
-    }
-  },
-
-  /**
-   * Displays a file picker in which the user can choose the location where
-   * downloads are automatically saved, updating preferences and UI in
-   * response to the choice, if one is made.
-   */
-  chooseFolder() {
-    return this.chooseFolderTask().catch(Components.utils.reportError);
-  },
-  async chooseFolderTask() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let title = bundlePreferences.getString("chooseDownloadFolderTitle");
-    let folderListPref = document.getElementById("browser.download.folderList");
-    let currentDirPref = await this._indexToFolder(folderListPref.value);
-    let defDownloads = await this._indexToFolder(1);
-    let fp = Components.classes["@mozilla.org/filepicker;1"].
-             createInstance(Components.interfaces.nsIFilePicker);
-
-    fp.init(window, title, Components.interfaces.nsIFilePicker.modeGetFolder);
-    fp.appendFilters(Components.interfaces.nsIFilePicker.filterAll);
-    // First try to open what's currently configured
-    if (currentDirPref && currentDirPref.exists()) {
-      fp.displayDirectory = currentDirPref;
-    } else if (defDownloads && defDownloads.exists()) {
-      // Try the system's download dir
-      fp.displayDirectory = defDownloads;
-    } else {
-      // Fall back to Desktop
-      fp.displayDirectory = await this._indexToFolder(0);
-    }
-
-    let result = await new Promise(resolve => fp.open(resolve));
-    if (result != Components.interfaces.nsIFilePicker.returnOK) {
-      return;
-    }
-
-    let downloadDirPref = document.getElementById("browser.download.dir");
-    downloadDirPref.value = fp.file;
-    folderListPref.value = await this._folderToIndex(fp.file);
-    // Note, the real prefs will not be updated yet, so dnld manager's
-    // userDownloadsDirectory may not return the right folder after
-    // this code executes. displayDownloadDirPref will be called on
-    // the assignment above to update the UI.
-  },
-
-  /**
-   * Initializes the download folder display settings based on the user's
-   * preferences.
-   */
-  displayDownloadDirPref() {
-    this.displayDownloadDirPrefTask().catch(Components.utils.reportError);
-
-    // don't override the preference's value in UI
-    return undefined;
-  },
-
-  async displayDownloadDirPrefTask() {
-    var folderListPref = document.getElementById("browser.download.folderList");
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    var downloadFolder = document.getElementById("downloadFolder");
-    var currentDirPref = document.getElementById("browser.download.dir");
-
-    // Used in defining the correct path to the folder icon.
-    var ios = Components.classes["@mozilla.org/network/io-service;1"]
-                        .getService(Components.interfaces.nsIIOService);
-    var fph = ios.getProtocolHandler("file")
-                 .QueryInterface(Components.interfaces.nsIFileProtocolHandler);
-    var iconUrlSpec;
-
-    let folderIndex = folderListPref.value;
-    if (folderIndex == 3) {
-      // When user has selected cloud storage, use value in currentDirPref to
-      // compute index to display download folder label and icon to avoid
-      // displaying blank downloadFolder label and icon on load of preferences UI
-      // Set folderIndex to 1 if currentDirPref is unspecified
-      folderIndex = currentDirPref.value ? await this._folderToIndex(currentDirPref.value) : 1;
-    }
-
-    // Display a 'pretty' label or the path in the UI.
-    if (folderIndex == 2) {
-      // Custom path selected and is configured
-      downloadFolder.label = this._getDisplayNameOfFile(currentDirPref.value);
-      iconUrlSpec = fph.getURLSpecFromFile(currentDirPref.value);
-    } else if (folderIndex == 1) {
-      // 'Downloads'
-      downloadFolder.label = bundlePreferences.getString("downloadsFolderName");
-      iconUrlSpec = fph.getURLSpecFromFile(await this._indexToFolder(1));
-    } else {
-      // 'Desktop'
-      downloadFolder.label = bundlePreferences.getString("desktopFolderName");
-      iconUrlSpec = fph.getURLSpecFromFile(await this._getDownloadsFolder("Desktop"));
-    }
-    downloadFolder.image = "moz-icon://" + iconUrlSpec + "?size=16";
-  },
-
-  /**
-   * Returns the textual path of a folder in readable form.
-   */
-  _getDisplayNameOfFile(aFolder) {
-    // TODO: would like to add support for 'Downloads on Macintosh HD'
-    //       for OS X users.
-    return aFolder ? aFolder.path : "";
-  },
-
-  /**
-   * Returns the Downloads folder.  If aFolder is "Desktop", then the Downloads
-   * folder returned is the desktop folder; otherwise, it is a folder whose name
-   * indicates that it is a download folder and whose path is as determined by
-   * the XPCOM directory service via the download manager's attribute
-   * defaultDownloadsDirectory.
-   *
-   * @throws if aFolder is not "Desktop" or "Downloads"
-   */
-  async _getDownloadsFolder(aFolder) {
-    switch (aFolder) {
-      case "Desktop":
-        var fileLoc = Components.classes["@mozilla.org/file/directory_service;1"]
-                                    .getService(Components.interfaces.nsIProperties);
-        return fileLoc.get("Desk", Components.interfaces.nsIFile);
-      case "Downloads":
-        let downloadsDir = await Downloads.getSystemDownloadsDirectory();
-        return new FileUtils.File(downloadsDir);
-    }
-    throw "ASSERTION FAILED: folder type should be 'Desktop' or 'Downloads'";
-  },
-
-  /**
-   * Determines the type of the given folder.
-   *
-   * @param   aFolder
-   *          the folder whose type is to be determined
-   * @returns integer
-   *          0 if aFolder is the Desktop or is unspecified,
-   *          1 if aFolder is the Downloads folder,
-   *          2 otherwise
-   */
-  async _folderToIndex(aFolder) {
-    if (!aFolder || aFolder.equals(await this._getDownloadsFolder("Desktop")))
-      return 0;
-    else if (aFolder.equals(await this._getDownloadsFolder("Downloads")))
-      return 1;
-    return 2;
-  },
-
-  /**
-   * Converts an integer into the corresponding folder.
-   *
-   * @param   aIndex
-   *          an integer
-   * @returns the Desktop folder if aIndex == 0,
-   *          the Downloads folder if aIndex == 1,
-   *          the folder stored in browser.download.dir
-   */
-  _indexToFolder(aIndex) {
-    switch (aIndex) {
-      case 0:
-        return this._getDownloadsFolder("Desktop");
-      case 1:
-        return this._getDownloadsFolder("Downloads");
-    }
-    var currentDirPref = document.getElementById("browser.download.dir");
-    return currentDirPref.value;
-  }
-};
-
-// Utilities
-
-function getFileDisplayName(file) {
-  if (AppConstants.platform == "win") {
-    if (file instanceof Ci.nsILocalFileWin) {
-      try {
-        return file.getVersionInfoField("FileDescription");
-      } catch (e) {}
-    }
-  }
-  if (AppConstants.platform == "macosx") {
-    if (file instanceof Ci.nsILocalFileMac) {
-      try {
-        return file.bundleDisplayName;
-      } catch (e) {}
-    }
-  }
-  return file.leafName;
-}
-
-function getLocalHandlerApp(aFile) {
-  var localHandlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
-                        createInstance(Ci.nsILocalHandlerApp);
-  localHandlerApp.name = getFileDisplayName(aFile);
-  localHandlerApp.executable = aFile;
-
-  return localHandlerApp;
-}
-
-/**
- * An enumeration of items in a JS array.
- *
- * FIXME: use ArrayConverter once it lands (bug 380839).
- *
- * @constructor
- */
-function ArrayEnumerator(aItems) {
-  this._index = 0;
-  this._contents = aItems;
-}
-
-ArrayEnumerator.prototype = {
-  _index: 0,
-
-  hasMoreElements() {
-    return this._index < this._contents.length;
-  },
-
-  getNext() {
-    return this._contents[this._index++];
-  }
-};
-
-function isFeedType(t) {
-  return t == TYPE_MAYBE_FEED || t == TYPE_MAYBE_VIDEO_FEED || t == TYPE_MAYBE_AUDIO_FEED;
-}
-
-// HandlerInfoWrapper
-
-/**
- * This object wraps nsIHandlerInfo with some additional functionality
- * the Applications prefpane needs to display and allow modification of
- * the list of handled types.
- *
- * We create an instance of this wrapper for each entry we might display
- * in the prefpane, and we compose the instances from various sources,
- * including plugins and the handler service.
- *
- * We don't implement all the original nsIHandlerInfo functionality,
- * just the stuff that the prefpane needs.
- *
- * In theory, all of the custom functionality in this wrapper should get
- * pushed down into nsIHandlerInfo eventually.
- */
-function HandlerInfoWrapper(aType, aHandlerInfo) {
-  this._type = aType;
-  this.wrappedHandlerInfo = aHandlerInfo;
-}
-
-HandlerInfoWrapper.prototype = {
-  // The wrapped nsIHandlerInfo object.  In general, this object is private,
-  // but there are a couple cases where callers access it directly for things
-  // we haven't (yet?) implemented, so we make it a public property.
-  wrappedHandlerInfo: null,
-
-
-  // Convenience Utils
-
-  _handlerSvc: Cc["@mozilla.org/uriloader/handler-service;1"].
-               getService(Ci.nsIHandlerService),
-
-  _prefSvc: Cc["@mozilla.org/preferences-service;1"].
-            getService(Ci.nsIPrefBranch),
-
-  _categoryMgr: Cc["@mozilla.org/categorymanager;1"].
-                getService(Ci.nsICategoryManager),
-
-  element(aID) {
-    return document.getElementById(aID);
-  },
-
-
-  // nsIHandlerInfo
-
-  // The MIME type or protocol scheme.
-  _type: null,
-  get type() {
-    return this._type;
-  },
-
-  get description() {
-    if (this.wrappedHandlerInfo.description)
-      return this.wrappedHandlerInfo.description;
-
-    if (this.primaryExtension) {
-      var extension = this.primaryExtension.toUpperCase();
-      return this.element("bundlePreferences").getFormattedString("fileEnding",
-                                                                  [extension]);
-    }
-
-    return this.type;
-  },
-
-  get preferredApplicationHandler() {
-    return this.wrappedHandlerInfo.preferredApplicationHandler;
-  },
-
-  set preferredApplicationHandler(aNewValue) {
-    this.wrappedHandlerInfo.preferredApplicationHandler = aNewValue;
-
-    // Make sure the preferred handler is in the set of possible handlers.
-    if (aNewValue)
-      this.addPossibleApplicationHandler(aNewValue)
-  },
-
-  get possibleApplicationHandlers() {
-    return this.wrappedHandlerInfo.possibleApplicationHandlers;
-  },
-
-  addPossibleApplicationHandler(aNewHandler) {
-    var possibleApps = this.possibleApplicationHandlers.enumerate();
-    while (possibleApps.hasMoreElements()) {
-      if (possibleApps.getNext().equals(aNewHandler))
-        return;
-    }
-    this.possibleApplicationHandlers.appendElement(aNewHandler);
-  },
-
-  removePossibleApplicationHandler(aHandler) {
-    var defaultApp = this.preferredApplicationHandler;
-    if (defaultApp && aHandler.equals(defaultApp)) {
-      // If the app we remove was the default app, we must make sure
-      // it won't be used anymore
-      this.alwaysAskBeforeHandling = true;
-      this.preferredApplicationHandler = null;
-    }
-
-    var handlers = this.possibleApplicationHandlers;
-    for (var i = 0; i < handlers.length; ++i) {
-      var handler = handlers.queryElementAt(i, Ci.nsIHandlerApp);
-      if (handler.equals(aHandler)) {
-        handlers.removeElementAt(i);
-        break;
-      }
-    }
-  },
-
-  get hasDefaultHandler() {
-    return this.wrappedHandlerInfo.hasDefaultHandler;
-  },
-
-  get defaultDescription() {
-    return this.wrappedHandlerInfo.defaultDescription;
-  },
-
-  // What to do with content of this type.
-  get preferredAction() {
-    // If we have an enabled plugin, then the action is to use that plugin.
-    if (this.pluginName && !this.isDisabledPluginType)
-      return kActionUsePlugin;
-
-    // If the action is to use a helper app, but we don't have a preferred
-    // handler app, then switch to using the system default, if any; otherwise
-    // fall back to saving to disk, which is the default action in nsMIMEInfo.
-    // Note: "save to disk" is an invalid value for protocol info objects,
-    // but the alwaysAskBeforeHandling getter will detect that situation
-    // and always return true in that case to override this invalid value.
-    if (this.wrappedHandlerInfo.preferredAction == Ci.nsIHandlerInfo.useHelperApp &&
-        !gMainPane.isValidHandlerApp(this.preferredApplicationHandler)) {
-      if (this.wrappedHandlerInfo.hasDefaultHandler)
-        return Ci.nsIHandlerInfo.useSystemDefault;
-      return Ci.nsIHandlerInfo.saveToDisk;
-    }
-
-    return this.wrappedHandlerInfo.preferredAction;
-  },
-
-  set preferredAction(aNewValue) {
-    // If the action is to use the plugin,
-    // we must set the preferred action to "save to disk".
-    // But only if it's not currently the preferred action.
-    if ((aNewValue == kActionUsePlugin) &&
-        (this.preferredAction != Ci.nsIHandlerInfo.saveToDisk)) {
-      aNewValue = Ci.nsIHandlerInfo.saveToDisk;
-    }
-
-    // We don't modify the preferred action if the new action is to use a plugin
-    // because handler info objects don't understand our custom "use plugin"
-    // value.  Also, leaving it untouched means that we can automatically revert
-    // to the old setting if the user ever removes the plugin.
-
-    if (aNewValue != kActionUsePlugin)
-      this.wrappedHandlerInfo.preferredAction = aNewValue;
-  },
-
-  get alwaysAskBeforeHandling() {
-    // If this type is handled only by a plugin, we can't trust the value
-    // in the handler info object, since it'll be a default based on the absence
-    // of any user configuration, and the default in that case is to always ask,
-    // even though we never ask for content handled by a plugin, so special case
-    // plugin-handled types by returning false here.
-    if (this.pluginName && this.handledOnlyByPlugin)
-      return false;
-
-    // If this is a protocol type and the preferred action is "save to disk",
-    // which is invalid for such types, then return true here to override that
-    // action.  This could happen when the preferred action is to use a helper
-    // app, but the preferredApplicationHandler is invalid, and there isn't
-    // a default handler, so the preferredAction getter returns save to disk
-    // instead.
-    if (!(this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) &&
-        this.preferredAction == Ci.nsIHandlerInfo.saveToDisk)
-      return true;
-
-    return this.wrappedHandlerInfo.alwaysAskBeforeHandling;
-  },
-
-  set alwaysAskBeforeHandling(aNewValue) {
-    this.wrappedHandlerInfo.alwaysAskBeforeHandling = aNewValue;
-  },
-
-
-  // nsIMIMEInfo
-
-  // The primary file extension associated with this type, if any.
-  //
-  // XXX Plugin objects contain an array of MimeType objects with "suffixes"
-  // properties; if this object has an associated plugin, shouldn't we check
-  // those properties for an extension?
-  get primaryExtension() {
-    try {
-      if (this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
-          this.wrappedHandlerInfo.primaryExtension)
-        return this.wrappedHandlerInfo.primaryExtension
-    } catch (ex) {}
-
-    return null;
-  },
-
-
-  // Plugin Handling
-
-  // A plugin that can handle this type, if any.
-  //
-  // Note: just because we have one doesn't mean it *will* handle the type.
-  // That depends on whether or not the type is in the list of types for which
-  // plugin handling is disabled.
-  plugin: null,
-
-  // Whether or not this type is only handled by a plugin or is also handled
-  // by some user-configured action as specified in the handler info object.
-  //
-  // Note: we can't just check if there's a handler info object for this type,
-  // because OS and user configuration is mixed up in the handler info object,
-  // so we always need to retrieve it for the OS info and can't tell whether
-  // it represents only OS-default information or user-configured information.
-  //
-  // FIXME: once handler info records are broken up into OS-provided records
-  // and user-configured records, stop using this boolean flag and simply
-  // check for the presence of a user-configured record to determine whether
-  // or not this type is only handled by a plugin.  Filed as bug 395142.
-  handledOnlyByPlugin: undefined,
-
-  get isDisabledPluginType() {
-    return this._getDisabledPluginTypes().indexOf(this.type) != -1;
-  },
-
-  _getDisabledPluginTypes() {
-    var types = "";
-
-    if (this._prefSvc.prefHasUserValue(PREF_DISABLED_PLUGIN_TYPES))
-      types = this._prefSvc.getCharPref(PREF_DISABLED_PLUGIN_TYPES);
-
-    // Only split if the string isn't empty so we don't end up with an array
-    // containing a single empty string.
-    if (types != "")
-      return types.split(",");
-
-    return [];
-  },
-
-  disablePluginType() {
-    var disabledPluginTypes = this._getDisabledPluginTypes();
-
-    if (disabledPluginTypes.indexOf(this.type) == -1)
-      disabledPluginTypes.push(this.type);
-
-    this._prefSvc.setCharPref(PREF_DISABLED_PLUGIN_TYPES,
-                              disabledPluginTypes.join(","));
-
-    // Update the category manager so existing browser windows update.
-    this._categoryMgr.deleteCategoryEntry("Gecko-Content-Viewers",
-                                          this.type,
-                                          false);
-  },
-
-  enablePluginType() {
-    var disabledPluginTypes = this._getDisabledPluginTypes();
-
-    var type = this.type;
-    disabledPluginTypes = disabledPluginTypes.filter(v => v != type);
-
-    this._prefSvc.setCharPref(PREF_DISABLED_PLUGIN_TYPES,
-                              disabledPluginTypes.join(","));
-
-    // Update the category manager so existing browser windows update.
-    this._categoryMgr.
-      addCategoryEntry("Gecko-Content-Viewers",
-                       this.type,
-                       "@mozilla.org/content/plugin/document-loader-factory;1",
-                       false,
-                       true);
-  },
-
-
-  // Storage
-
-  store() {
-    this._handlerSvc.store(this.wrappedHandlerInfo);
-  },
-
-
-  // Icons
-
-  get smallIcon() {
-    return this._getIcon(16);
-  },
-
-  _getIcon(aSize) {
-    if (this.primaryExtension)
-      return "moz-icon://goat." + this.primaryExtension + "?size=" + aSize;
-
-    if (this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo)
-      return "moz-icon://goat?size=" + aSize + "&contentType=" + this.type;
-
-    // FIXME: consider returning some generic icon when we can't get a URL for
-    // one (for example in the case of protocol schemes).  Filed as bug 395141.
-    return null;
-  }
-
-};
-
-
-// Feed Handler Info
-
-/**
- * This object implements nsIHandlerInfo for the feed types.  It's a separate
- * object because we currently store handling information for the feed type
- * in a set of preferences rather than the nsIHandlerService-managed datastore.
- *
- * This object inherits from HandlerInfoWrapper in order to get functionality
- * that isn't special to the feed type.
- *
- * XXX Should we inherit from HandlerInfoWrapper?  After all, we override
- * most of that wrapper's properties and methods, and we have to dance around
- * the fact that the wrapper expects to have a wrappedHandlerInfo, which we
- * don't provide.
- */
-
-function FeedHandlerInfo(aMIMEType) {
-  HandlerInfoWrapper.call(this, aMIMEType, null);
-}
-
-FeedHandlerInfo.prototype = {
-  __proto__: HandlerInfoWrapper.prototype,
-
-  // Convenience Utils
-
-  _converterSvc:
-    Cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"].
-    getService(Ci.nsIWebContentConverterService),
-
-  _shellSvc: AppConstants.HAVE_SHELL_SERVICE ? getShellService() : null,
-
-  // nsIHandlerInfo
-
-  get description() {
-    return this.element("bundlePreferences").getString(this._appPrefLabel);
-  },
-
-  get preferredApplicationHandler() {
-    switch (this.element(this._prefSelectedReader).value) {
-      case "client":
-        var file = this.element(this._prefSelectedApp).value;
-        if (file)
-          return getLocalHandlerApp(file);
-
-        return null;
-
-      case "web":
-        var uri = this.element(this._prefSelectedWeb).value;
-        if (!uri)
-          return null;
-        return this._converterSvc.getWebContentHandlerByURI(this.type, uri);
-
-      case "bookmarks":
-      default:
-        // When the pref is set to bookmarks, we handle feeds internally,
-        // we don't forward them to a local or web handler app, so there is
-        // no preferred handler.
-        return null;
-    }
-  },
-
-  set preferredApplicationHandler(aNewValue) {
-    if (aNewValue instanceof Ci.nsILocalHandlerApp) {
-      this.element(this._prefSelectedApp).value = aNewValue.executable;
-      this.element(this._prefSelectedReader).value = "client";
-    } else if (aNewValue instanceof Ci.nsIWebContentHandlerInfo) {
-      this.element(this._prefSelectedWeb).value = aNewValue.uri;
-      this.element(this._prefSelectedReader).value = "web";
-      // Make the web handler be the new "auto handler" for feeds.
-      // Note: we don't have to unregister the auto handler when the user picks
-      // a non-web handler (local app, Live Bookmarks, etc.) because the service
-      // only uses the "auto handler" when the selected reader is a web handler.
-      // We also don't have to unregister it when the user turns on "always ask"
-      // (i.e. preview in browser), since that also overrides the auto handler.
-      this._converterSvc.setAutoHandler(this.type, aNewValue);
-    }
-  },
-
-  _possibleApplicationHandlers: null,
-
-  get possibleApplicationHandlers() {
-    if (this._possibleApplicationHandlers)
-      return this._possibleApplicationHandlers;
-
-    // A minimal implementation of nsIMutableArray.  It only supports the two
-    // methods its callers invoke, namely appendElement and nsIArray::enumerate.
-    this._possibleApplicationHandlers = {
-      _inner: [],
-      _removed: [],
-
-      QueryInterface(aIID) {
-        if (aIID.equals(Ci.nsIMutableArray) ||
-            aIID.equals(Ci.nsIArray) ||
-            aIID.equals(Ci.nsISupports))
-          return this;
-
-        throw Cr.NS_ERROR_NO_INTERFACE;
-      },
-
-      get length() {
-        return this._inner.length;
-      },
-
-      enumerate() {
-        return new ArrayEnumerator(this._inner);
-      },
-
-      appendElement(aHandlerApp, aWeak) {
-        this._inner.push(aHandlerApp);
-      },
-
-      removeElementAt(aIndex) {
-        this._removed.push(this._inner[aIndex]);
-        this._inner.splice(aIndex, 1);
-      },
-
-      queryElementAt(aIndex, aInterface) {
-        return this._inner[aIndex].QueryInterface(aInterface);
-      }
-    };
-
-    // Add the selected local app if it's different from the OS default handler.
-    // Unlike for other types, we can store only one local app at a time for the
-    // feed type, since we store it in a preference that historically stores
-    // only a single path.  But we display all the local apps the user chooses
-    // while the prefpane is open, only dropping the list when the user closes
-    // the prefpane, for maximum usability and consistency with other types.
-    var preferredAppFile = this.element(this._prefSelectedApp).value;
-    if (preferredAppFile) {
-      let preferredApp = getLocalHandlerApp(preferredAppFile);
-      let defaultApp = this._defaultApplicationHandler;
-      if (!defaultApp || !defaultApp.equals(preferredApp))
-        this._possibleApplicationHandlers.appendElement(preferredApp);
-    }
-
-    // Add the registered web handlers.  There can be any number of these.
-    var webHandlers = this._converterSvc.getContentHandlers(this.type);
-    for (let webHandler of webHandlers)
-      this._possibleApplicationHandlers.appendElement(webHandler);
-
-    return this._possibleApplicationHandlers;
-  },
-
-  __defaultApplicationHandler: undefined,
-  get _defaultApplicationHandler() {
-    if (typeof this.__defaultApplicationHandler != "undefined")
-      return this.__defaultApplicationHandler;
-
-    var defaultFeedReader = null;
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      try {
-        defaultFeedReader = this._shellSvc.defaultFeedReader;
-      } catch (ex) {
-        // no default reader or _shellSvc is null
-      }
-    }
-
-    if (defaultFeedReader) {
-      let handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
-                       createInstance(Ci.nsIHandlerApp);
-      handlerApp.name = getFileDisplayName(defaultFeedReader);
-      handlerApp.QueryInterface(Ci.nsILocalHandlerApp);
-      handlerApp.executable = defaultFeedReader;
-
-      this.__defaultApplicationHandler = handlerApp;
-    } else {
-      this.__defaultApplicationHandler = null;
-    }
-
-    return this.__defaultApplicationHandler;
-  },
-
-  get hasDefaultHandler() {
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      try {
-        if (this._shellSvc.defaultFeedReader)
-          return true;
-      } catch (ex) {
-        // no default reader or _shellSvc is null
-      }
-    }
-
-    return false;
-  },
-
-  get defaultDescription() {
-    if (this.hasDefaultHandler)
-      return this._defaultApplicationHandler.name;
-
-    // Should we instead return null?
-    return "";
-  },
-
-  // What to do with content of this type.
-  get preferredAction() {
-    switch (this.element(this._prefSelectedAction).value) {
-
-      case "bookmarks":
-        return Ci.nsIHandlerInfo.handleInternally;
-
-      case "reader": {
-        let preferredApp = this.preferredApplicationHandler;
-        let defaultApp = this._defaultApplicationHandler;
-
-        // If we have a valid preferred app, return useSystemDefault if it's
-        // the default app; otherwise return useHelperApp.
-        if (gMainPane.isValidHandlerApp(preferredApp)) {
-          if (defaultApp && defaultApp.equals(preferredApp))
-            return Ci.nsIHandlerInfo.useSystemDefault;
-
-          return Ci.nsIHandlerInfo.useHelperApp;
-        }
-
-        // The pref is set to "reader", but we don't have a valid preferred app.
-        // What do we do now?  Not sure this is the best option (perhaps we
-        // should direct the user to the default app, if any), but for now let's
-        // direct the user to live bookmarks.
-        return Ci.nsIHandlerInfo.handleInternally;
-      }
-
-      // If the action is "ask", then alwaysAskBeforeHandling will override
-      // the action, so it doesn't matter what we say it is, it just has to be
-      // something that doesn't cause the controller to hide the type.
-      case "ask":
-      default:
-        return Ci.nsIHandlerInfo.handleInternally;
-    }
-  },
-
-  set preferredAction(aNewValue) {
-    switch (aNewValue) {
-
-      case Ci.nsIHandlerInfo.handleInternally:
-        this.element(this._prefSelectedReader).value = "bookmarks";
-        break;
-
-      case Ci.nsIHandlerInfo.useHelperApp:
-        this.element(this._prefSelectedAction).value = "reader";
-        // The controller has already set preferredApplicationHandler
-        // to the new helper app.
-        break;
-
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        this.element(this._prefSelectedAction).value = "reader";
-        this.preferredApplicationHandler = this._defaultApplicationHandler;
-        break;
-    }
-  },
-
-  get alwaysAskBeforeHandling() {
-    return this.element(this._prefSelectedAction).value == "ask";
-  },
-
-  set alwaysAskBeforeHandling(aNewValue) {
-    if (aNewValue == true)
-      this.element(this._prefSelectedAction).value = "ask";
-    else
-      this.element(this._prefSelectedAction).value = "reader";
-  },
-
-  // Whether or not we are currently storing the action selected by the user.
-  // We use this to suppress notification-triggered updates to the list when
-  // we make changes that may spawn such updates, specifically when we change
-  // the action for the feed type, which results in feed preference updates,
-  // which spawn "pref changed" notifications that would otherwise cause us
-  // to rebuild the view unnecessarily.
-  _storingAction: false,
-
-
-  // nsIMIMEInfo
-
-  get primaryExtension() {
-    return "xml";
-  },
-
-
-  // Storage
-
-  // Changes to the preferred action and handler take effect immediately
-  // (we write them out to the preferences right as they happen),
-  // so we when the controller calls store() after modifying the handlers,
-  // the only thing we need to store is the removal of possible handlers
-  // XXX Should we hold off on making the changes until this method gets called?
-  store() {
-    for (let app of this._possibleApplicationHandlers._removed) {
-      if (app instanceof Ci.nsILocalHandlerApp) {
-        let pref = this.element(PREF_FEED_SELECTED_APP);
-        var preferredAppFile = pref.value;
-        if (preferredAppFile) {
-          let preferredApp = getLocalHandlerApp(preferredAppFile);
-          if (app.equals(preferredApp))
-            pref.reset();
-        }
-      } else {
-        app.QueryInterface(Ci.nsIWebContentHandlerInfo);
-        this._converterSvc.removeContentHandler(app.contentType, app.uri);
-      }
-    }
-    this._possibleApplicationHandlers._removed = [];
-  },
-
-
-  // Icons
-
-  get smallIcon() {
-    return this._smallIcon;
-  }
-
-};
-
-var feedHandlerInfo = {
-  __proto__: new FeedHandlerInfo(TYPE_MAYBE_FEED),
-  _prefSelectedApp: PREF_FEED_SELECTED_APP,
-  _prefSelectedWeb: PREF_FEED_SELECTED_WEB,
-  _prefSelectedAction: PREF_FEED_SELECTED_ACTION,
-  _prefSelectedReader: PREF_FEED_SELECTED_READER,
-  _smallIcon: "chrome://browser/skin/feeds/feedIcon16.png",
-  _appPrefLabel: "webFeed"
-}
-
-var videoFeedHandlerInfo = {
-  __proto__: new FeedHandlerInfo(TYPE_MAYBE_VIDEO_FEED),
-  _prefSelectedApp: PREF_VIDEO_FEED_SELECTED_APP,
-  _prefSelectedWeb: PREF_VIDEO_FEED_SELECTED_WEB,
-  _prefSelectedAction: PREF_VIDEO_FEED_SELECTED_ACTION,
-  _prefSelectedReader: PREF_VIDEO_FEED_SELECTED_READER,
-  _smallIcon: "chrome://browser/skin/feeds/videoFeedIcon16.png",
-  _appPrefLabel: "videoPodcastFeed"
-}
-
-var audioFeedHandlerInfo = {
-  __proto__: new FeedHandlerInfo(TYPE_MAYBE_AUDIO_FEED),
-  _prefSelectedApp: PREF_AUDIO_FEED_SELECTED_APP,
-  _prefSelectedWeb: PREF_AUDIO_FEED_SELECTED_WEB,
-  _prefSelectedAction: PREF_AUDIO_FEED_SELECTED_ACTION,
-  _prefSelectedReader: PREF_AUDIO_FEED_SELECTED_READER,
-  _smallIcon: "chrome://browser/skin/feeds/audioFeedIcon16.png",
-  _appPrefLabel: "audioPodcastFeed"
-}
-
-/**
- * InternalHandlerInfoWrapper provides a basic mechanism to create an internal
- * mime type handler that can be enabled/disabled in the applications preference
- * menu.
- */
-function InternalHandlerInfoWrapper(aMIMEType) {
-  var mimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
-  var handlerInfo = mimeSvc.getFromTypeAndExtension(aMIMEType, null);
-
-  HandlerInfoWrapper.call(this, aMIMEType, handlerInfo);
-}
-
-InternalHandlerInfoWrapper.prototype = {
-  __proto__: HandlerInfoWrapper.prototype,
-
-  // Override store so we so we can notify any code listening for registration
-  // or unregistration of this handler.
-  store() {
-    HandlerInfoWrapper.prototype.store.call(this);
-    Services.obs.notifyObservers(null, this._handlerChanged);
-  },
-
-  get enabled() {
-    throw Cr.NS_ERROR_NOT_IMPLEMENTED;
-  },
-
-  get description() {
-    return this.element("bundlePreferences").getString(this._appPrefLabel);
-  }
-};
-
-var pdfHandlerInfo = {
-  __proto__: new InternalHandlerInfoWrapper(TYPE_PDF),
-  _handlerChanged: TOPIC_PDFJS_HANDLER_CHANGED,
-  _appPrefLabel: "portableDocumentFormat",
-  get enabled() {
-    return !Services.prefs.getBoolPref(PREF_PDFJS_DISABLED);
-  },
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/main.xul
+++ /dev/null
@@ -1,1024 +0,0 @@
-# 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/.
-
-<!-- General panel -->
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content-new/main.js"/>
-
-#ifdef MOZ_UPDATER
-  <script type="application/javascript" src="chrome://browser/content/aboutDialog-appUpdater.js"/>
-#endif
-
-<script type="application/javascript"
-        src="chrome://mozapps/content/preferences/fontbuilder.js"/>
-
-<stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences.properties"/>
-
-<preferences id="mainPreferences" hidden="true" data-category="paneGeneral">
-
-#ifdef E10S_TESTING_ONLY
-    <preference id="browser.tabs.remote.autostart"
-                name="browser.tabs.remote.autostart"
-                type="bool"/>
-    <preference id="e10sTempPref"
-                name="browser.tabs.remote.autostart.2"
-                type="bool"/>
-    <preference id="e10sForceEnable"
-                name="browser.tabs.remote.force-enable"
-                type="bool"/>
-#endif
-
-    <!-- Startup -->
-    <preference id="browser.startup.page"
-                name="browser.startup.page"
-                type="int"/>
-    <preference id="browser.startup.homepage"
-                name="browser.startup.homepage"
-                type="wstring"/>
-
-#ifdef HAVE_SHELL_SERVICE
-    <preference id="browser.shell.checkDefaultBrowser"
-                name="browser.shell.checkDefaultBrowser"
-                type="bool"/>
-
-    <preference id="pref.general.disable_button.default_browser"
-                name="pref.general.disable_button.default_browser"
-                type="bool"/>
-#endif
-
-    <preference id="pref.browser.homepage.disable_button.current_page"
-                name="pref.browser.homepage.disable_button.current_page"
-                type="bool"/>
-    <preference id="pref.browser.homepage.disable_button.bookmark_page"
-                name="pref.browser.homepage.disable_button.bookmark_page"
-                type="bool"/>
-    <preference id="pref.browser.homepage.disable_button.restore_default"
-                name="pref.browser.homepage.disable_button.restore_default"
-                type="bool"/>
-
-    <preference id="browser.privatebrowsing.autostart"
-                name="browser.privatebrowsing.autostart"
-                type="bool"/>
-
-    <!-- Downloads -->
-    <preference id="browser.download.useDownloadDir"
-                name="browser.download.useDownloadDir"
-                type="bool"/>
-
-    <preference id="browser.download.folderList"
-                name="browser.download.folderList"
-                type="int"/>
-    <preference id="browser.download.dir"
-                name="browser.download.dir"
-                type="file"/>
-    <!-- Tab preferences
-    Preferences:
-
-    browser.link.open_newwindow
-        1 opens such links in the most recent window or tab,
-        2 opens such links in a new window,
-        3 opens such links in a new tab
-    browser.tabs.loadInBackground
-    - true if display should switch to a new tab which has been opened from a
-      link, false if display shouldn't switch
-    browser.tabs.warnOnClose
-    - true if when closing a window with multiple tabs the user is warned and
-      allowed to cancel the action, false to just close the window
-    browser.tabs.warnOnOpen
-    - true if the user should be warned if he attempts to open a lot of tabs at
-      once (e.g. a large folder of bookmarks), false otherwise
-    browser.taskbar.previews.enable
-    - true if tabs are to be shown in the Windows 7 taskbar
-    -->
-
-    <preference id="browser.link.open_newwindow"
-                name="browser.link.open_newwindow"
-                type="int"/>
-    <preference id="browser.tabs.loadInBackground"
-                name="browser.tabs.loadInBackground"
-                type="bool"
-                inverted="true"/>
-    <preference id="browser.tabs.warnOnClose"
-                name="browser.tabs.warnOnClose"
-                type="bool"/>
-    <preference id="browser.tabs.warnOnOpen"
-                name="browser.tabs.warnOnOpen"
-                type="bool"/>
-    <preference id="browser.sessionstore.restore_on_demand"
-                name="browser.sessionstore.restore_on_demand"
-                type="bool"/>
-#ifdef XP_WIN
-    <preference id="browser.taskbar.previews.enable"
-                name="browser.taskbar.previews.enable"
-                type="bool"/>
-#endif
-    <preference id="browser.ctrlTab.previews"
-                name="browser.ctrlTab.previews"
-                type="bool"/>
-
-  <!-- Fonts -->
-  <preference id="font.language.group"
-              name="font.language.group"
-              type="wstring"/>
-
-  <!-- Languages -->
-  <preference id="browser.translation.detectLanguage"
-              name="browser.translation.detectLanguage"
-              type="bool"/>
-
-  <!-- General tab -->
-
-  <!-- Accessibility
-   * accessibility.browsewithcaret
-     - true enables keyboard navigation and selection within web pages using a
-       visible caret, false uses normal keyboard navigation with no caret
-   * accessibility.typeaheadfind
-     - when set to true, typing outside text areas and input boxes will
-       automatically start searching for what's typed within the current
-       document; when set to false, no search action happens -->
-  <preference id="accessibility.browsewithcaret"
-              name="accessibility.browsewithcaret"
-              type="bool"/>
-  <preference id="accessibility.typeaheadfind"
-              name="accessibility.typeaheadfind"
-              type="bool"/>
-  <preference id="accessibility.blockautorefresh"
-              name="accessibility.blockautorefresh"
-              type="bool"/>
-#ifdef XP_WIN
-  <preference id="ui.osk.enabled"
-              name="ui.osk.enabled"
-              type="bool"/>
-#endif
-  <!-- Browsing
-   * general.autoScroll
-     - when set to true, clicking the scroll wheel on the mouse activates a
-       mouse mode where moving the mouse down scrolls the document downward with
-       speed correlated with the distance of the cursor from the original
-       position at which the click occurred (and likewise with movement upward);
-       if false, this behavior is disabled
-   * general.smoothScroll
-     - set to true to enable finer page scrolling than line-by-line on page-up,
-       page-down, and other such page movements -->
-  <preference id="general.autoScroll"
-              name="general.autoScroll"
-              type="bool"/>
-  <preference id="general.smoothScroll"
-              name="general.smoothScroll"
-              type="bool"/>
-  <preference id="layout.spellcheckDefault"
-              name="layout.spellcheckDefault"
-              type="int"/>
-
-  <preference id="toolkit.telemetry.enabled"
-              name="toolkit.telemetry.enabled"
-              type="bool"/>
-
-  <preference id="browser.preferences.defaultPerformanceSettings.enabled"
-              name="browser.preferences.defaultPerformanceSettings.enabled"
-              type="bool"/>
-
-  <preference id="dom.ipc.processCount"
-              name="dom.ipc.processCount"
-              type="int"/>
-
-  <preference id="dom.ipc.processCount.web"
-              name="dom.ipc.processCount.web"
-              type="int"/>
-
-  <preference id="layers.acceleration.disabled"
-              name="layers.acceleration.disabled"
-              type="bool"
-              inverted="true"/>
-
-  <!-- Files and Applications -->
-  <preference id="browser.feeds.handler"
-              name="browser.feeds.handler"
-              type="string"/>
-  <preference id="browser.feeds.handler.default"
-              name="browser.feeds.handler.default"
-              type="string"/>
-  <preference id="browser.feeds.handlers.application"
-              name="browser.feeds.handlers.application"
-              type="file"/>
-  <preference id="browser.feeds.handlers.webservice"
-              name="browser.feeds.handlers.webservice"
-              type="string"/>
-
-  <preference id="browser.videoFeeds.handler"
-              name="browser.videoFeeds.handler"
-              type="string"/>
-  <preference id="browser.videoFeeds.handler.default"
-              name="browser.videoFeeds.handler.default"
-              type="string"/>
-  <preference id="browser.videoFeeds.handlers.application"
-              name="browser.videoFeeds.handlers.application"
-              type="file"/>
-  <preference id="browser.videoFeeds.handlers.webservice"
-              name="browser.videoFeeds.handlers.webservice"
-              type="string"/>
-
-  <preference id="browser.audioFeeds.handler"
-              name="browser.audioFeeds.handler"
-              type="string"/>
-  <preference id="browser.audioFeeds.handler.default"
-              name="browser.audioFeeds.handler.default"
-              type="string"/>
-  <preference id="browser.audioFeeds.handlers.application"
-              name="browser.audioFeeds.handlers.application"
-              type="file"/>
-  <preference id="browser.audioFeeds.handlers.webservice"
-              name="browser.audioFeeds.handlers.webservice"
-              type="string"/>
-
-  <preference id="pref.downloads.disable_button.edit_actions"
-              name="pref.downloads.disable_button.edit_actions"
-              type="bool"/>
-
-  <!-- DRM content -->
-  <preference id="media.eme.enabled"
-              name="media.eme.enabled"
-              type="bool"/>
-
-  <!-- Update -->
-  <preference id="browser.preferences.advanced.selectedTabIndex"
-              name="browser.preferences.advanced.selectedTabIndex"
-              type="int"/>
-
-#ifdef MOZ_UPDATER
-  <preference id="app.update.enabled"
-              name="app.update.enabled"
-              type="bool"/>
-  <preference id="app.update.auto"
-              name="app.update.auto"
-              type="bool"/>
-
-  <preference id="app.update.disable_button.showUpdateHistory"
-              name="app.update.disable_button.showUpdateHistory"
-              type="bool"/>
-
-#ifdef MOZ_MAINTENANCE_SERVICE
-  <preference id="app.update.service.enabled"
-              name="app.update.service.enabled"
-              type="bool"/>
-#endif
-#endif
-
-  <preference id="browser.search.update"
-              name="browser.search.update"
-              type="bool"/>
-</preferences>
-
-<hbox id="generalCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&paneGeneral.title;</label>
-</hbox>
-
-<!-- Startup -->
-<groupbox id="startupGroup"
-          data-category="paneGeneral"
-          hidden="true">
-  <caption><label>&startup.label;</label></caption>
-
-#ifdef MOZ_DEV_EDITION
-  <vbox id="separateProfileBox">
-    <checkbox id="separateProfileMode"
-              label="&separateProfileMode.label;"/>
-    <hbox align="center" class="indent">
-      <label id="useFirefoxSync">&useFirefoxSync.label;</label>
-      <deck id="getStarted">
-        <label class="text-link">&getStarted.notloggedin.label;</label>
-        <label class="text-link">&getStarted.configured.label;</label>
-      </deck>
-    </hbox>
-  </vbox>
-#endif
-
-#ifdef E10S_TESTING_ONLY
-  <checkbox id="e10sAutoStart"
-            label="&e10sEnabled.label;"/>
-#endif
-
-#ifdef HAVE_SHELL_SERVICE
-  <vbox id="defaultBrowserBox">
-    <checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
-              label="&alwaysCheckDefault2.label;" accesskey="&alwaysCheckDefault2.accesskey;"/>
-    <deck id="setDefaultPane">
-      <hbox align="center" class="indent">
-        <image class="face-sad"/>
-        <label id="isNotDefaultLabel" flex="1">&isNotDefault.label;</label>
-        <button id="setDefaultButton"
-                class="accessory-button"
-                label="&setAsMyDefaultBrowser3.label;" accesskey="&setAsMyDefaultBrowser3.accesskey;"
-                preference="pref.general.disable_button.default_browser"/>
-      </hbox>
-      <hbox align="center" class="indent">
-        <image class="face-smile"/>
-        <label id="isDefaultLabel" flex="1">&isDefault.label;</label>
-      </hbox>
-    </deck>
-    <separator class="thin"/>
-  </vbox>
-#endif
-
-  <html:table id="startupTable">
-    <html:tr>
-      <html:td class="label-cell">
-        <label accesskey="&startupPage2.accesskey;"
-               control="browserStartupPage">&startupPage2.label;</label>
-      </html:td>
-      <html:td class="content-cell">
-        <menulist id="browserStartupPage"
-                  class="content-cell-item"
-                  preference="browser.startup.page">
-          <menupopup>
-          <menuitem label="&startupUserHomePage.label;"
-                    value="1"
-                    id="browserStartupHomePage"/>
-          <menuitem label="&startupBlankPage.label;"
-                    value="0"
-                    id="browserStartupBlank"/>
-          <menuitem label="&startupPrevSession.label;"
-                    value="3"
-                    id="browserStartupLastSession"/>
-          </menupopup>
-        </menulist>
-      </html:td>
-    </html:tr>
-    <html:tr class="tableGroup">
-      <html:td class="label-cell">
-        <label accesskey="&homepage2.accesskey;"
-               control="browserHomePage">&homepage2.label;</label>
-      </html:td>
-      <html:td class="content-cell">
-        <textbox id="browserHomePage"
-                 class="padded uri-element content-cell-item"
-                 type="autocomplete"
-                 autocompletesearch="unifiedcomplete"
-                 onsyncfrompreference="return gMainPane.syncFromHomePref();"
-                 onsynctopreference="return gMainPane.syncToHomePref(this.value);"
-                 placeholder="&abouthome.pageTitle;"
-                 preference="browser.startup.homepage"/>
-      </html:td>
-    </html:tr>
-    <html:tr class="tableSubGroup">
-      <html:td class="label-cell" />
-      <html:td class="content-cell homepage-buttons">
-        <button id="useCurrent"
-                class="content-cell-item"
-                label=""
-                accesskey="&useCurrentPage.accesskey;"
-                label1="&useCurrentPage.label;"
-                label2="&useMultiple.label;"
-                preference="pref.browser.homepage.disable_button.current_page"/>
-        <button id="useBookmark"
-                class="content-cell-item"
-                label="&chooseBookmark.label;"
-                accesskey="&chooseBookmark.accesskey;"
-                preference="pref.browser.homepage.disable_button.bookmark_page"
-                searchkeywords="&selectBookmark.title; &selectBookmark.label;"/>
-        <button id="restoreDefaultHomePage"
-                class="content-cell-item"
-                label="&restoreDefault.label;"
-                accesskey="&restoreDefault.accesskey;"
-                preference="pref.browser.homepage.disable_button.restore_default"/>
-      </html:td>
-    </html:tr>
-  </html:table>
-</groupbox>
-
-<!-- Tab preferences -->
-<groupbox data-category="paneGeneral"
-          hidden="true">
-    <caption><label>&tabsGroup.label;</label></caption>
-
-    <checkbox id="ctrlTabRecentlyUsedOrder" label="&ctrlTabRecentlyUsedOrder.label;"
-              accesskey="&ctrlTabRecentlyUsedOrder.accesskey;"
-              preference="browser.ctrlTab.previews"/>
-
-    <checkbox id="linkTargeting" label="&newWindowsAsTabs.label;"
-              accesskey="&newWindowsAsTabs.accesskey;"
-              preference="browser.link.open_newwindow"
-              onsyncfrompreference="return gMainPane.readLinkTarget();"
-              onsynctopreference="return gMainPane.writeLinkTarget();"/>
-
-    <checkbox id="warnCloseMultiple" label="&warnOnCloseMultipleTabs.label;"
-              accesskey="&warnOnCloseMultipleTabs.accesskey;"
-              preference="browser.tabs.warnOnClose"/>
-
-    <checkbox id="warnOpenMany" label="&warnOnOpenManyTabs.label;"
-              accesskey="&warnOnOpenManyTabs.accesskey;"
-              preference="browser.tabs.warnOnOpen"/>
-
-    <checkbox id="switchToNewTabs" label="&switchLinksToNewTabs.label;"
-              accesskey="&switchLinksToNewTabs.accesskey;"
-              preference="browser.tabs.loadInBackground"/>
-
-#ifdef XP_WIN
-    <checkbox id="showTabsInTaskbar" label="&showTabsInTaskbar.label;"
-              accesskey="&showTabsInTaskbar.accesskey;"
-              preference="browser.taskbar.previews.enable"/>
-#endif
-
-    <hbox id="browserContainersbox" hidden="true" align="center">
-      <checkbox id="browserContainersCheckbox"
-                label="&browserContainersEnabled.label;"
-                accesskey="&browserContainersEnabled.accesskey;"
-                preference="privacy.userContext.enabled"
-                onsyncfrompreference="return gPrivacyPane.readBrowserContainersCheckbox();"/>
-      <label id="browserContainersLearnMore" class="learnMore text-link">
-        &browserContainersLearnMore.label;
-      </label>
-      <spacer flex="1"/>
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox>
-        <button id="browserContainersSettings"
-                class="accessory-button"
-                label="&browserContainersSettings.label;"
-                accesskey="&browserContainersSettings.accesskey;"
-                searchkeywords="&addButton.label;
-                                &preferencesButton.label;
-                                &removeButton.label;"/>
-      </hbox>
-    </hbox>
-</groupbox>
-
-<hbox id="languageAndAppearanceCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&languageAndAppearance.label;</label>
-</hbox>
-
-<!-- Fonts and Colors -->
-<groupbox id="fontsGroup" data-category="paneGeneral" hidden="true">
-  <caption><label>&fontsAndColors.label;</label></caption>
-
-  <vbox>
-    <hbox id="fontSettings">
-      <hbox align="center" flex="1">
-        <label control="defaultFont" accesskey="&defaultFont2.accesskey;">&defaultFont2.label;</label>
-        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-        <hbox flex="1">
-          <menulist id="defaultFont" flex="1" delayprefsave="true" onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
-        </hbox>
-        <label id="defaultFontSizeLabel" control="defaultFontSize" accesskey="&defaultSize2.accesskey;">&defaultSize2.label;</label>
-        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-        <hbox>
-          <menulist id="defaultFontSize" delayprefsave="true">
-            <menupopup>
-              <menuitem value="9" label="9"/>
-              <menuitem value="10" label="10"/>
-              <menuitem value="11" label="11"/>
-              <menuitem value="12" label="12"/>
-              <menuitem value="13" label="13"/>
-              <menuitem value="14" label="14"/>
-              <menuitem value="15" label="15"/>
-              <menuitem value="16" label="16"/>
-              <menuitem value="17" label="17"/>
-              <menuitem value="18" label="18"/>
-              <menuitem value="20" label="20"/>
-              <menuitem value="22" label="22"/>
-              <menuitem value="24" label="24"/>
-              <menuitem value="26" label="26"/>
-              <menuitem value="28" label="28"/>
-              <menuitem value="30" label="30"/>
-              <menuitem value="32" label="32"/>
-              <menuitem value="34" label="34"/>
-              <menuitem value="36" label="36"/>
-              <menuitem value="40" label="40"/>
-              <menuitem value="44" label="44"/>
-              <menuitem value="48" label="48"/>
-              <menuitem value="56" label="56"/>
-              <menuitem value="64" label="64"/>
-              <menuitem value="72" label="72"/>
-            </menupopup>
-          </menulist>
-        </hbox>
-      </hbox>
-      <spacer flex="1" />
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox>
-        <button id="advancedFonts"
-                class="accessory-button"
-                icon="select-font"
-                label="&advancedFonts.label;"
-                accesskey="&advancedFonts.accesskey;"
-                searchkeywords="&fontsDialog.title;
-                                &fonts.label;
-                                &size2.label;
-                                &proportional2.label;
-                                &serif2.label;
-                                &sans-serif2.label;
-                                &monospace2.label;
-                                &font.langGroup.latin;
-                                &font.langGroup.japanese;
-                                &font.langGroup.trad-chinese;
-                                &font.langGroup.simpl-chinese;
-                                &font.langGroup.trad-chinese-hk;
-                                &font.langGroup.korean;
-                                &font.langGroup.cyrillic;
-                                &font.langGroup.el;
-                                &font.langGroup.other;
-                                &font.langGroup.thai;
-                                &font.langGroup.hebrew;
-                                &font.langGroup.arabic;
-                                &font.langGroup.devanagari;
-                                &font.langGroup.tamil;
-                                &font.langGroup.armenian;
-                                &font.langGroup.bengali;
-                                &font.langGroup.canadian;
-                                &font.langGroup.ethiopic;
-                                &font.langGroup.georgian;
-                                &font.langGroup.gujarati;
-                                &font.langGroup.gurmukhi;
-                                &font.langGroup.khmer;
-                                &font.langGroup.malayalam;
-                                &font.langGroup.math;
-                                &font.langGroup.odia;
-                                &font.langGroup.telugu;
-                                &font.langGroup.kannada;
-                                &font.langGroup.sinhala;
-                                &font.langGroup.tibetan;
-                                &minSize2.label;
-                                &minSize.none;
-                                &useDefaultFontSerif.label;
-                                &useDefaultFontSansSerif.label;
-                                &allowPagesToUseOwn.label;
-                                &languages.customize.Fallback2.grouplabel;
-                                &languages.customize.Fallback3.label;
-                                &languages.customize.Fallback2.desc;
-                                &languages.customize.Fallback.auto;
-                                &languages.customize.Fallback.arabic;
-                                &languages.customize.Fallback.baltic;
-                                &languages.customize.Fallback.ceiso;
-                                &languages.customize.Fallback.cewindows;
-                                &languages.customize.Fallback.simplified;
-                                &languages.customize.Fallback.traditional;
-                                &languages.customize.Fallback.cyrillic;
-                                &languages.customize.Fallback.greek;
-                                &languages.customize.Fallback.hebrew;
-                                &languages.customize.Fallback.japanese;
-                                &languages.customize.Fallback.korean;
-                                &languages.customize.Fallback.thai;
-                                &languages.customize.Fallback.turkish;
-                                &languages.customize.Fallback.vietnamese;
-                                &languages.customize.Fallback.other;"/>
-      </hbox>
-    </hbox>
-    <hbox id="colorsSettings">
-      <spacer flex="1" />
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox>
-        <button id="colors"
-                class="accessory-button"
-                icon="select-color"
-                label="&colors.label;"
-                accesskey="&colors.accesskey;"
-                searchkeywords="&overrideDefaultPageColors.label;
-                                &overrideDefaultPageColors.always.label;
-                                &overrideDefaultPageColors.auto.label;
-                                &overrideDefaultPageColors.never.label;
-                                &color;
-                                &textColor2.label;
-                                &backgroundColor2.label;
-                                &useSystemColors.label;
-                                &underlineLinks.label;
-                                &linkColor2.label;
-                                &visitedLinkColor2.label;"/>
-      </hbox>
-    </hbox>
-  </vbox>
-</groupbox>
-
-<!-- Languages -->
-<groupbox id="languagesGroup" data-category="paneGeneral" hidden="true">
-  <caption><label>&language2.label;</label></caption>
-
-  <hbox id="languagesBox" align="center">
-    <description flex="1" control="chooseLanguage">&chooseLanguage.label;</description>
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="chooseLanguage"
-              class="accessory-button"
-              label="&chooseButton.label;"
-              accesskey="&chooseButton.accesskey;"
-              searchkeywords="&languages.customize.Header;
-                              &languages.customize2.description;
-                              &languages.customize.moveUp.label;
-                              &languages.customize.moveDown.label;
-                              &languages.customize.deleteButton.label;
-                              &languages.customize.selectLanguage.label;
-                              &languages.customize.addButton.label;"/>
-    </hbox>
-  </hbox>
-
-  <hbox id="translationBox" hidden="true">
-    <hbox align="center" flex="1">
-      <checkbox id="translate" preference="browser.translation.detectLanguage"
-                label="&translateWebPages.label;." accesskey="&translateWebPages.accesskey;"
-                onsyncfrompreference="return gMainPane.updateButtons('translateButton',
-                                              'browser.translation.detectLanguage');"/>
-      <hbox id="bingAttribution" hidden="true">
-        <label>&translation.options.attribution.beforeLogo;</label>
-        <separator orient="vertical" class="thin"/>
-        <image id="translationAttributionImage" aria-label="Microsoft Translator"
-               src="chrome://browser/content/microsoft-translator-attribution.png"/>
-        <separator orient="vertical" class="thin"/>
-        <label>&translation.options.attribution.afterLogo;</label>
-      </hbox>
-    </hbox>
-    <button id="translateButton"
-            class="accessory-button"
-            label="&translateExceptions.label;"
-            accesskey="&translateExceptions.accesskey;"/>
-  </hbox>
-  <checkbox id="checkSpelling"
-          label="&checkUserSpelling.label;"
-          accesskey="&checkUserSpelling.accesskey;"
-          onsyncfrompreference="return gMainPane.readCheckSpelling();"
-          onsynctopreference="return gMainPane.writeCheckSpelling();"
-          preference="layout.spellcheckDefault"/>
-</groupbox>
-
-<!-- Files and Applications -->
-<hbox id="filesAndApplicationsCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&filesAndApplications.label;</label>
-</hbox>
-
-<!--Downloads-->
-<groupbox id="downloadsGroup" data-category="paneGeneral" hidden="true">
-  <caption><label>&downloads.label;</label></caption>
-
-  <radiogroup id="saveWhere"
-              preference="browser.download.useDownloadDir"
-              onsyncfrompreference="return gMainPane.readUseDownloadDir();">
-    <hbox id="saveToRow">
-      <radio id="saveTo"
-            value="true"
-            label="&saveTo.label;"
-            accesskey="&saveTo.accesskey;"
-            aria-labelledby="saveTo downloadFolder"/>
-      <filefield id="downloadFolder"
-                flex="1"
-                preference="browser.download.folderList"
-                preference-editable="true"
-                aria-labelledby="saveTo"
-                onsyncfrompreference="return gMainPane.displayDownloadDirPref();"/>
-      <button id="chooseFolder"
-#ifdef XP_MACOSX
-              accesskey="&chooseFolderMac.accesskey;"
-              label="&chooseFolderMac.label;"
-#else
-              accesskey="&chooseFolderWin.accesskey;"
-              label="&chooseFolderWin.label;"
-#endif
-      />
-    </hbox>
-    <!-- Additional radio button added to support CloudStorage - Bug 1357171 -->
-    <radio id="saveToCloud"
-          value="true"
-          hidden="true"/>
-    <radio id="alwaysAsk"
-          value="false"
-          label="&alwaysAskWhere.label;"
-          accesskey="&alwaysAskWhere.accesskey;"/>
-  </radiogroup>
-</groupbox>
-
-<groupbox id="applicationsGroup" data-category="paneGeneral" hidden="true">
-  <caption><label>&applications.label;</label></caption>
-  <description>&applications.description;</description>
-  <textbox id="filter" flex="1"
-           type="search"
-           placeholder="&filter2.emptytext;"
-           aria-controls="handlersView"/>
-
-  <richlistbox id="handlersView" orient="vertical" persist="lastSelectedType"
-               preference="pref.downloads.disable_button.edit_actions"
-               flex="1">
-    <listheader equalsize="always">
-        <treecol id="typeColumn" label="&typeColumn.label;" value="type"
-                 accesskey="&typeColumn.accesskey;" persist="sortDirection"
-                 flex="1" sortDirection="ascending"/>
-        <treecol id="actionColumn" label="&actionColumn2.label;" value="action"
-                 accesskey="&actionColumn2.accesskey;" persist="sortDirection"
-                 flex="1"/>
-    </listheader>
-  </richlistbox>
-</groupbox>
-
-
-<!-- DRM Content -->
-<groupbox id="drmGroup" data-category="paneGeneral" data-subcategory="drm" hidden="true">
-  <caption><label>&drmContent2.label;</label></caption>
-  <grid id="contentGrid2">
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows id="contentRows-2">
-      <row id="playDRMContentRow">
-        <hbox align="center">
-          <checkbox id="playDRMContent" preference="media.eme.enabled"
-                    label="&playDRMContent2.label;" accesskey="&playDRMContent2.accesskey;"/>
-          <label id="playDRMContentLink" class="learnMore text-link">
-            &playDRMContent.learnMore.label;
-          </label>
-        </hbox>
-      </row>
-    </rows>
-  </grid>
-</groupbox>
-
-#ifdef HAVE_SHELL_SERVICE
-  <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
-  <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
-#endif
-
-<hbox id="updatesCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&updateApplication.label;</label>
-</hbox>
-
-<!-- Update -->
-<groupbox id="updateApp" data-category="paneGeneral" hidden="true">
-  <caption class="search-header" hidden="true"><label>&updateApplication.label;</label></caption>
-
-  <label>&updateApplicationDescription.label;</label>
-  <hbox align="start">
-    <vbox flex="1">
-      <description>
-        &updateApplication.version.pre;<label id="version"/>&updateApplication.version.post;
-        <label id="releasenotes" class="learnMore text-link" hidden="true">&releaseNotes.link;</label>
-      </description>
-      <description id="distribution" class="text-blurb" hidden="true"/>
-      <description id="distributionId" class="text-blurb" hidden="true"/>
-    </vbox>
-#ifdef MOZ_UPDATER
-    <spacer flex="1"/>
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <vbox>
-      <button id="showUpdateHistory"
-              class="accessory-button"
-              label="&updateHistory2.label;"
-              accesskey="&updateHistory2.accesskey;"
-              preference="app.update.disable_button.showUpdateHistory"
-              searchkeywords="&history.title; &history2.intro;"/>
-    </vbox>
-#endif
-  </hbox>
-#ifdef MOZ_UPDATER
-  <vbox id="updateBox">
-    <deck id="updateDeck" orient="vertical">
-      <hbox id="checkForUpdates" align="start">
-        <spacer flex="1"/>
-        <button id="checkForUpdatesButton"
-                label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                oncommand="gAppUpdater.checkForUpdates();"/>
-      </hbox>
-      <hbox id="downloadAndInstall" align="start">
-        <spacer flex="1"/>
-        <button id="downloadAndInstallButton"
-                oncommand="gAppUpdater.startDownload();"/>
-                <!-- label and accesskey will be filled by JS -->
-      </hbox>
-      <hbox id="apply" align="start">
-        <spacer flex="1"/>
-        <button id="updateButton"
-                label="&update.updateButton.label3;"
-                accesskey="&update.updateButton.accesskey;"
-                oncommand="gAppUpdater.buttonRestartAfterDownload();"/>
-      </hbox>
-      <hbox id="checkingForUpdates" align="start">
-        <image class="update-throbber"/><label>&update.checkingForUpdates;</label>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                disabled="true"/>
-      </hbox>
-      <hbox id="downloading" align="start">
-        <image class="update-throbber"/><label>&update.downloading.start;</label><label id="downloadStatus"/><label>&update.downloading.end;</label>
-      </hbox>
-      <hbox id="applying" align="start">
-        <image class="update-throbber"/><label>&update.applying;</label>
-      </hbox>
-      <hbox id="downloadFailed" align="start">
-        <label>&update.failed.start;</label><label id="failedLink" class="text-link">&update.failed.linkText;</label><label>&update.failed.end;</label>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                oncommand="gAppUpdater.checkForUpdates();"/>
-      </hbox>
-      <hbox id="adminDisabled" align="start">
-        <label>&update.adminDisabled;</label>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                disabled="true"/>
-      </hbox>
-      <hbox id="noUpdatesFound" align="start">
-        <image class="face-smile"/>
-        <label>&update.noUpdatesFound;</label>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                oncommand="gAppUpdater.checkForUpdates();"/>
-      </hbox>
-      <hbox id="otherInstanceHandlingUpdates" align="start">
-        <label>&update.otherInstanceHandlingUpdates;</label>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                disabled="true"/>
-      </hbox>
-      <hbox id="manualUpdate" align="start">
-        <image class="face-sad"/>
-        <description flex="1">
-          <label>&update.manual.start;</label><label id="manualLink" class="text-link"/><label>&update.manual.end;</label>
-        </description>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                disabled="true"/>
-      </hbox>
-      <hbox id="unsupportedSystem" align="start">
-        <description flex="1">
-          <label>&update.unsupported.start;</label><label id="unsupportedLink" class="learnMore text-link">&update.unsupported.linkText;</label><label>&update.unsupported.end;</label>
-        </description>
-        <spacer flex="1"/>
-        <button label="&update.checkForUpdatesButton.label;"
-                accesskey="&update.checkForUpdatesButton.accesskey;"
-                disabled="true"/>
-      </hbox>
-      <hbox id="restarting" align="start">
-        <image class="update-throbber"/><label>&update.restarting;</label>
-        <spacer flex="1"/>
-        <button label="&update.updateButton.label3;"
-                accesskey="&update.updateButton.accesskey;"
-                disabled="true"/>
-      </hbox>
-    </deck>
-  </vbox>
-#endif
-
-#ifdef MOZ_UPDATER
-  <description>&updateApplication.description;</description>
-  <radiogroup id="updateRadioGroup">
-    <radio id="autoDesktop"
-           value="auto"
-           label="&updateAuto3.label;"
-           accesskey="&updateAuto3.accesskey;"/>
-    <radio value="checkOnly"
-          label="&updateCheckChoose2.label;"
-          accesskey="&updateCheckChoose2.accesskey;"/>
-    <radio value="manual"
-          label="&updateManual2.label;"
-          accesskey="&updateManual2.accesskey;"/>
-  </radiogroup>
-#ifdef MOZ_MAINTENANCE_SERVICE
-  <checkbox id="useService"
-            label="&useService.label;"
-            accesskey="&useService.accesskey;"
-            preference="app.update.service.enabled"/>
-#endif
-#endif
-  <checkbox id="enableSearchUpdate"
-            label="&enableSearchUpdate2.label;"
-            accesskey="&enableSearchUpdate2.accesskey;"
-            preference="browser.search.update"/>
-</groupbox>
-
-<hbox id="performanceCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&performance.label;</label>
-</hbox>
-
-<!-- Performance -->
-<groupbox id="performanceGroup" data-category="paneGeneral" hidden="true">
-  <caption class="search-header" hidden="true"><label>&performance.label;</label></caption>
-
-  <hbox align="center">
-    <checkbox id="useRecommendedPerformanceSettings"
-              label="&useRecommendedPerformanceSettings2.label;"
-              accesskey="&useRecommendedPerformanceSettings2.accesskey;"
-              preference="browser.preferences.defaultPerformanceSettings.enabled"/>
-    <label id="performanceSettingsLearnMore" class="learnMore text-link">&performanceSettingsLearnMore.label;</label>
-  </hbox>
-  <description class="indent">&useRecommendedPerformanceSettings2.description;</description>
-
-  <vbox id="performanceSettings" class="indent" hidden="true">
-    <checkbox id="allowHWAccel"
-              label="&allowHWAccel.label;"
-              accesskey="&allowHWAccel.accesskey;"
-              preference="layers.acceleration.disabled"/>
-    <hbox align="center">
-      <label id="limitContentProcess" accesskey="&limitContentProcessOption.accesskey;" control="contentProcessCount">&limitContentProcessOption.label;</label>
-      <menulist id="contentProcessCount" preference="dom.ipc.processCount">
-        <menupopup>
-          <menuitem label="1" value="1"/>
-          <menuitem label="2" value="2"/>
-          <menuitem label="3" value="3"/>
-          <menuitem label="4" value="4"/>
-          <menuitem label="5" value="5"/>
-          <menuitem label="6" value="6"/>
-          <menuitem label="7" value="7"/>
-        </menupopup>
-      </menulist>
-    </hbox>
-    <description id="contentProcessCountEnabledDescription">&limitContentProcessOption.description;</description>
-    <description id="contentProcessCountDisabledDescription">&limitContentProcessOption.disabledDescription;<label class="text-link" href="https://wiki.mozilla.org/Electrolysis">&limitContentProcessOption.disabledDescriptionLink;</label></description>
-  </vbox>
-</groupbox>
-
-<hbox id="browsingCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&browsing.label;</label>
-</hbox>
-
-<!-- Browsing -->
-<groupbox id="browsingGroup" data-category="paneGeneral" hidden="true">
-  <caption class="search-header" hidden="true"><label>&browsing.label;</label></caption>
-
-  <checkbox id="useAutoScroll"
-            label="&useAutoScroll.label;"
-            accesskey="&useAutoScroll.accesskey;"
-            preference="general.autoScroll"/>
-  <checkbox id="useSmoothScrolling"
-            label="&useSmoothScrolling.label;"
-            accesskey="&useSmoothScrolling.accesskey;"
-            preference="general.smoothScroll"/>
-
-#ifdef XP_WIN
-  <checkbox id="useOnScreenKeyboard"
-            hidden="true"
-            label="&useOnScreenKeyboard.label;"
-            accesskey="&useOnScreenKeyboard.accesskey;"
-            preference="ui.osk.enabled"/>
-#endif
-  <checkbox id="useCursorNavigation"
-            label="&useCursorNavigation.label;"
-            accesskey="&useCursorNavigation.accesskey;"
-            preference="accessibility.browsewithcaret"/>
-  <checkbox id="searchStartTyping"
-            label="&searchOnStartTyping.label;"
-            accesskey="&searchOnStartTyping.accesskey;"
-            preference="accessibility.typeaheadfind"/>
-</groupbox>
-
-<hbox id="networkProxyCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneGeneral">
-  <label class="header-name" flex="1">&networkProxy.label;</label>
-</hbox>
-
-<!-- Network Proxy-->
-<groupbox id="connectionGroup" data-category="paneGeneral" hidden="true">
-  <caption class="search-header" hidden="true"><label>&networkProxy.label;</label></caption>
-
-  <hbox align="center">
-    <description flex="1" control="connectionSettings">&connectionDesc.label;</description>
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="connectionSettings"
-              class="accessory-button"
-              icon="network"
-              label="&connectionSettings.label;"
-              accesskey="&connectionSettings.accesskey;"
-              searchkeywords="&connectionsDialog.title;
-                              &noProxyTypeRadio.label;
-                              &WPADTypeRadio.label;
-                              &systemTypeRadio.label;
-                              &manualTypeRadio2.label;
-                              &http2.label;
-                              &ssl2.label;
-                              &ftp2.label;
-                              &port2.label;
-                              &socks2.label;
-                              &socks4.label;
-                              &socks5.label;
-                              &noproxy2.label;
-                              &noproxyExplain.label;
-                              &shareproxy.label;
-                              &autoTypeRadio2.label;
-                              &reload.label;
-                              &autologinproxy.label;
-                              &socksRemoteDNS.label2;"/>
-    </hbox>
-  </hbox>
-</groupbox>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/moz.build
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
-# vim: set filetype=python:
-# 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/.
-
-for var in ('MOZ_APP_NAME', 'MOZ_MACBUNDLE_NAME'):
-    DEFINES[var] = CONFIG[var]
-
-if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3', 'cocoa'):
-    DEFINES['HAVE_SHELL_SERVICE'] = 1
-
-JAR_MANIFESTS += ['jar.mn']
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/preferences.js
+++ /dev/null
@@ -1,362 +0,0 @@
-/* - 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/. */
-
-// Import globals from the files imported by the .xul files.
-/* import-globals-from subdialogs.js */
-/* import-globals-from main.js */
-/* import-globals-from search.js */
-/* import-globals-from containers.js */
-/* import-globals-from privacy.js */
-/* import-globals-from sync.js */
-/* import-globals-from findInPage.js */
-/* import-globals-from ../../../base/content/utilityOverlay.js */
-
-"use strict";
-
-var Cc = Components.classes;
-var Ci = Components.interfaces;
-var Cu = Components.utils;
-var Cr = Components.results;
-
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-Cu.import("resource://gre/modules/Services.jsm");
-Cu.import("resource://gre/modules/AppConstants.jsm");
-
-var gLastHash = "";
-
-var gCategoryInits = new Map();
-function init_category_if_required(category) {
-  let categoryInfo = gCategoryInits.get(category);
-  if (!categoryInfo) {
-    throw "Unknown in-content prefs category! Can't init " + category;
-  }
-  if (categoryInfo.inited) {
-    return;
-  }
-  categoryInfo.init();
-}
-
-function register_module(categoryName, categoryObject) {
-  gCategoryInits.set(categoryName, {
-    inited: false,
-    init() {
-      categoryObject.init();
-      this.inited = true;
-    }
-  });
-}
-
-document.addEventListener("DOMContentLoaded", init_all, {once: true});
-
-function init_all() {
-  document.documentElement.instantApply = true;
-
-  gSubDialog.init();
-  register_module("paneGeneral", gMainPane);
-  register_module("paneSearch", gSearchPane);
-  register_module("panePrivacy", gPrivacyPane);
-  register_module("paneContainers", gContainersPane);
-  register_module("paneSync", gSyncPane);
-  register_module("paneSearchResults", gSearchResultsPane);
-  gSearchResultsPane.init();
-
-  let categories = document.getElementById("categories");
-  categories.addEventListener("select", event => gotoPref(event.target.value));
-
-  document.documentElement.addEventListener("keydown", function(event) {
-    if (event.keyCode == KeyEvent.DOM_VK_TAB) {
-      categories.setAttribute("keyboard-navigation", "true");
-    }
-  });
-  categories.addEventListener("mousedown", function() {
-    this.removeAttribute("keyboard-navigation");
-  });
-
-  window.addEventListener("hashchange", onHashChange);
-  gotoPref();
-
-  init_dynamic_padding();
-
-  var initFinished = new CustomEvent("Initialized", {
-    "bubbles": true,
-    "cancelable": true
-  });
-  document.dispatchEvent(initFinished);
-
-  let helpButton = document.querySelector(".help-button");
-  let helpUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "preferences";
-  helpButton.setAttribute("href", helpUrl);
-
-  // Wait until initialization of all preferences are complete before
-  // notifying observers that the UI is now ready.
-  Services.obs.notifyObservers(window, "advanced-pane-loaded");
-}
-
-// Make the space above the categories list shrink on low window heights
-function init_dynamic_padding() {
-  let categories = document.getElementById("categories");
-  let catPadding = Number.parseInt(getComputedStyle(categories)
-                                     .getPropertyValue("padding-top"));
-  let helpButton = document.querySelector(".help-button");
-  let helpButtonCS = getComputedStyle(helpButton);
-  let helpHeight = Number.parseInt(helpButtonCS.height);
-  let helpBottom = Number.parseInt(helpButtonCS.bottom);
-  // Reduce the padding to account for less space, but due
-  // to bug 1357841, the status panel will overlap the link.
-  const reducedHelpButtonBottomFactor = .75;
-  let reducedHelpButtonBottom = helpBottom * reducedHelpButtonBottomFactor;
-  let fullHelpHeight = helpHeight + reducedHelpButtonBottom;
-  let fullHeight = categories.lastElementChild.getBoundingClientRect().bottom +
-                   fullHelpHeight;
-  let mediaRule = `
-  @media (max-height: ${fullHeight}px) {
-    #categories {
-      padding-top: calc(100vh - ${fullHeight - catPadding}px);
-      padding-bottom: ${fullHelpHeight}px;
-    }
-    .help-button {
-      bottom: ${reducedHelpButtonBottom / 2}px;
-    }
-  }
-  `;
-  let mediaStyle = document.createElementNS("http://www.w3.org/1999/xhtml", "html:style");
-  mediaStyle.setAttribute("type", "text/css");
-  mediaStyle.appendChild(document.createCDATASection(mediaRule));
-  document.documentElement.appendChild(mediaStyle);
-}
-
-function telemetryBucketForCategory(category) {
-  category = category.toLowerCase();
-  switch (category) {
-    case "containers":
-    case "general":
-    case "privacy":
-    case "search":
-    case "sync":
-    case "searchresults":
-      return category;
-    default:
-      return "unknown";
-  }
-}
-
-function onHashChange() {
-  gotoPref();
-}
-
-function gotoPref(aCategory) {
-  let categories = document.getElementById("categories");
-  const kDefaultCategoryInternalName = "paneGeneral";
-  const kDefaultCategory = "general";
-  let hash = document.location.hash;
-
-  let category = aCategory || hash.substr(1) || kDefaultCategoryInternalName;
-  let breakIndex = category.indexOf("-");
-  // Subcategories allow for selecting smaller sections of the preferences
-  // until proper search support is enabled (bug 1353954).
-  let subcategory = breakIndex != -1 && category.substring(breakIndex + 1);
-  if (subcategory) {
-    category = category.substring(0, breakIndex);
-  }
-  category = friendlyPrefCategoryNameToInternalName(category);
-  if (category != "paneSearchResults") {
-    gSearchResultsPane.searchInput.value = "";
-    gSearchResultsPane.getFindSelection(window).removeAllRanges();
-    gSearchResultsPane.removeAllSearchTooltips();
-    gSearchResultsPane.removeAllSearchMenuitemIndicators();
-  } else if (!gSearchResultsPane.searchInput.value) {
-    // Something tried to send us to the search results pane without
-    // a query string. Default to the General pane instead.
-    category = kDefaultCategoryInternalName;
-    document.location.hash = kDefaultCategory;
-    gSearchResultsPane.query = null;
-  }
-
-  // Updating the hash (below) or changing the selected category
-  // will re-enter gotoPref.
-  if (gLastHash == category && !subcategory)
-    return;
-
-  let item;
-  if (category != "paneSearchResults") {
-    item = categories.querySelector(".category[value=" + category + "]");
-    if (!item) {
-      category = kDefaultCategoryInternalName;
-      item = categories.querySelector(".category[value=" + category + "]");
-    }
-  }
-
-  try {
-    init_category_if_required(category);
-  } catch (ex) {
-    Cu.reportError("Error initializing preference category " + category + ": " + ex);
-    throw ex;
-  }
-
-  let friendlyName = internalPrefCategoryNameToFriendlyName(category);
-  if (gLastHash || category != kDefaultCategoryInternalName || subcategory) {
-    document.location.hash = friendlyName;
-  }
-  // Need to set the gLastHash before setting categories.selectedItem since
-  // the categories 'select' event will re-enter the gotoPref codepath.
-  gLastHash = category;
-  if (item) {
-    categories.selectedItem = item;
-  } else {
-    categories.clearSelection();
-  }
-  window.history.replaceState(category, document.title);
-  search(category, "data-category", subcategory, "data-subcategory");
-
-  let mainContent = document.querySelector(".main-content");
-  mainContent.scrollTop = 0;
-
-  Services.telemetry
-          .getHistogramById("FX_PREFERENCES_CATEGORY_OPENED_V2")
-          .add(telemetryBucketForCategory(friendlyName));
-}
-
-function search(aQuery, aAttribute, aSubquery, aSubAttribute) {
-  let mainPrefPane = document.getElementById("mainPrefPane");
-  let elements = mainPrefPane.children;
-  for (let element of elements) {
-    // If the "data-hidden-from-search" is "true", the
-    // element will not get considered during search. This
-    // should only be used when an element is still under
-    // development and should not be shown for any reason.
-    if (element.getAttribute("data-hidden-from-search") != "true" ||
-        element.getAttribute("data-subpanel") == "true") {
-      let attributeValue = element.getAttribute(aAttribute);
-      if (attributeValue == aQuery) {
-        if (!element.classList.contains("header") &&
-             aSubquery && aSubAttribute) {
-          let subAttributeValue = element.getAttribute(aSubAttribute);
-          element.hidden = subAttributeValue != aSubquery;
-        } else {
-          element.hidden = false;
-        }
-      } else {
-        element.hidden = true;
-      }
-    }
-    element.classList.remove("visually-hidden");
-  }
-
-  let keysets = mainPrefPane.getElementsByTagName("keyset");
-  for (let element of keysets) {
-    let attributeValue = element.getAttribute(aAttribute);
-    if (attributeValue == aQuery)
-      element.removeAttribute("disabled");
-    else
-      element.setAttribute("disabled", true);
-  }
-}
-
-function helpButtonCommand() {
-  let pane = history.state;
-  let categories = document.getElementById("categories");
-  let helpTopic = categories.querySelector(".category[value=" + pane + "]")
-                            .getAttribute("helpTopic");
-  openHelpLink(helpTopic);
-}
-
-function friendlyPrefCategoryNameToInternalName(aName) {
-  if (aName.startsWith("pane"))
-    return aName;
-  return "pane" + aName.substring(0, 1).toUpperCase() + aName.substr(1);
-}
-
-// This function is duplicated inside of utilityOverlay.js's openPreferences.
-function internalPrefCategoryNameToFriendlyName(aName) {
-  return (aName || "").replace(/^pane./, function(toReplace) { return toReplace[4].toLowerCase(); });
-}
-
-// Put up a confirm dialog with "ok to restart", "revert without restarting"
-// and "restart later" buttons and returns the index of the button chosen.
-// We can choose not to display the "restart later", or "revert" buttons,
-// altough the later still lets us revert by using the escape key.
-//
-// The constants are useful to interpret the return value of the function.
-const CONFIRM_RESTART_PROMPT_RESTART_NOW = 0;
-const CONFIRM_RESTART_PROMPT_CANCEL = 1;
-const CONFIRM_RESTART_PROMPT_RESTART_LATER = 2;
-function confirmRestartPrompt(aRestartToEnable, aDefaultButtonIndex,
-                              aWantRevertAsCancelButton,
-                              aWantRestartLaterButton) {
-  let brandName = document.getElementById("bundleBrand").getString("brandShortName");
-  let bundle = document.getElementById("bundlePreferences");
-  let msg = bundle.getFormattedString(aRestartToEnable ?
-                                      "featureEnableRequiresRestart" :
-                                      "featureDisableRequiresRestart",
-                                      [brandName]);
-  let title = bundle.getFormattedString("shouldRestartTitle", [brandName]);
-  let prompts = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
-
-  // Set up the first (index 0) button:
-  let button0Text = bundle.getFormattedString("okToRestartButton", [brandName]);
-  let buttonFlags = (Services.prompt.BUTTON_POS_0 *
-                     Services.prompt.BUTTON_TITLE_IS_STRING);
-
-
-  // Set up the second (index 1) button:
-  let button1Text = null;
-  if (aWantRevertAsCancelButton) {
-    button1Text = bundle.getString("revertNoRestartButton");
-    buttonFlags += (Services.prompt.BUTTON_POS_1 *
-                    Services.prompt.BUTTON_TITLE_IS_STRING);
-  } else {
-    buttonFlags += (Services.prompt.BUTTON_POS_1 *
-                    Services.prompt.BUTTON_TITLE_CANCEL);
-  }
-
-  // Set up the third (index 2) button:
-  let button2Text = null;
-  if (aWantRestartLaterButton) {
-    button2Text = bundle.getString("restartLater");
-    buttonFlags += (Services.prompt.BUTTON_POS_2 *
-                    Services.prompt.BUTTON_TITLE_IS_STRING);
-  }
-
-  switch (aDefaultButtonIndex) {
-    case 0:
-      buttonFlags += Services.prompt.BUTTON_POS_0_DEFAULT;
-      break;
-    case 1:
-      buttonFlags += Services.prompt.BUTTON_POS_1_DEFAULT;
-      break;
-    case 2:
-      buttonFlags += Services.prompt.BUTTON_POS_2_DEFAULT;
-      break;
-    default:
-      break;
-  }
-
-  let buttonIndex = prompts.confirmEx(window, title, msg, buttonFlags,
-                                      button0Text, button1Text, button2Text,
-                                      null, {});
-
-  // If we have the second confirmation dialog for restart, see if the user
-  // cancels out at that point.
-  if (buttonIndex == CONFIRM_RESTART_PROMPT_RESTART_NOW) {
-    let cancelQuit = Cc["@mozilla.org/supports-PRBool;1"]
-                       .createInstance(Ci.nsISupportsPRBool);
-    Services.obs.notifyObservers(cancelQuit, "quit-application-requested",
-                                  "restart");
-    if (cancelQuit.data) {
-      buttonIndex = CONFIRM_RESTART_PROMPT_CANCEL;
-    }
-  }
-  return buttonIndex;
-}
-
-// This function is used to append search keywords found
-// in the related subdialog to the button that will activate the subdialog.
-function appendSearchKeywords(aId, keywords) {
-  let element = document.getElementById(aId);
-  let searchKeywords = element.getAttribute("searchkeywords");
-  if (searchKeywords) {
-    keywords.push(searchKeywords);
-  }
-  element.setAttribute("searchkeywords", keywords.join(" "));
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/preferences.xul
+++ /dev/null
@@ -1,215 +0,0 @@
-<?xml version="1.0"?>
-<!-- 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/. -->
-
-<?xml-stylesheet href="chrome://global/skin/global.css"?>
-
-<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
-<?xml-stylesheet href="chrome://global/skin/in-content/common.css"?>
-<?xml-stylesheet
-  href="chrome://browser/skin/preferences/in-content-new/preferences.css"?>
-<?xml-stylesheet
-  href="chrome://browser/content/preferences/handlers.css"?>
-<?xml-stylesheet href="chrome://browser/skin/preferences/applications.css"?>
-<?xml-stylesheet href="chrome://browser/skin/preferences/in-content-new/search.css"?>
-<?xml-stylesheet href="chrome://browser/skin/preferences/in-content-new/containers.css"?>
-<?xml-stylesheet href="chrome://browser/skin/preferences/in-content-new/privacy.css"?>
-
-<!DOCTYPE page [
-<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
-<!ENTITY % globalPreferencesDTD SYSTEM "chrome://global/locale/preferences.dtd">
-<!ENTITY % preferencesDTD SYSTEM
-  "chrome://browser/locale/preferences/preferences.dtd">
-<!ENTITY % selectBookmarkDTD SYSTEM
-  "chrome://browser/locale/preferences/selectBookmark.dtd">
-<!ENTITY % languagesDTD SYSTEM "chrome://browser/locale/preferences/languages.dtd">
-<!ENTITY % fontDTD SYSTEM "chrome://browser/locale/preferences/fonts.dtd">
-<!ENTITY % colorsDTD SYSTEM "chrome://browser/locale/preferences/colors.dtd">
-<!ENTITY % permissionsDTD SYSTEM "chrome://browser/locale/preferences/permissions.dtd">
-<!ENTITY % passwordManagerDTD SYSTEM "chrome://passwordmgr/locale/passwordManager.dtd">
-<!ENTITY % historyDTD SYSTEM "chrome://mozapps/locale/update/history.dtd">
-<!ENTITY % certManagerDTD SYSTEM "chrome://pippki/locale/certManager.dtd">
-<!ENTITY % deviceManangerDTD SYSTEM "chrome://pippki/locale/deviceManager.dtd">
-<!ENTITY % connectionDTD SYSTEM "chrome://browser/locale/preferences/connection.dtd">
-<!ENTITY % siteDataSettingsDTD SYSTEM
-  "chrome://browser/locale/preferences/siteDataSettings.dtd" >
-<!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences/privacy.dtd">
-<!ENTITY % tabsDTD SYSTEM "chrome://browser/locale/preferences/tabs.dtd">
-<!ENTITY % searchDTD SYSTEM "chrome://browser/locale/preferences/search.dtd">
-<!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
-<!ENTITY % syncDTD SYSTEM "chrome://browser/locale/preferences/sync.dtd">
-<!ENTITY % securityDTD SYSTEM
-  "chrome://browser/locale/preferences/security.dtd">
-<!ENTITY % containersDTD SYSTEM
-  "chrome://browser/locale/preferences/containers.dtd">
-<!ENTITY % sanitizeDTD SYSTEM "chrome://browser/locale/sanitize.dtd">
-<!ENTITY % mainDTD SYSTEM "chrome://browser/locale/preferences/main.dtd">
-<!ENTITY % aboutHomeDTD SYSTEM "chrome://browser/locale/aboutHome.dtd">
-<!ENTITY % contentDTD SYSTEM "chrome://browser/locale/preferences/content.dtd">
-<!ENTITY % applicationsDTD SYSTEM
-  "chrome://browser/locale/preferences/applications.dtd">
-<!ENTITY % advancedDTD SYSTEM
-  "chrome://browser/locale/preferences/advanced.dtd">
-<!ENTITY % aboutDialogDTD SYSTEM "chrome://browser/locale/aboutDialog.dtd" >
-%aboutDialogDTD;
-%brandDTD;
-%globalPreferencesDTD;
-%preferencesDTD;
-%selectBookmarkDTD;
-%languagesDTD;
-%fontDTD;
-%colorsDTD;
-%permissionsDTD;
-%passwordManagerDTD;
-%historyDTD;
-%certManagerDTD;
-%deviceManangerDTD;
-%connectionDTD;
-%siteDataSettingsDTD;
-%privacyDTD;
-%tabsDTD;
-%searchDTD;
-%syncBrandDTD;
-%syncDTD;
-%securityDTD;
-%containersDTD;
-%sanitizeDTD;
-%mainDTD;
-%aboutHomeDTD;
-%contentDTD;
-%applicationsDTD;
-%advancedDTD;
-]>
-
-#ifdef XP_WIN
-#define USE_WIN_TITLE_STYLE
-#endif
-
-<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-      xmlns:html="http://www.w3.org/1999/xhtml"
-      disablefastfind="true"
-#ifdef USE_WIN_TITLE_STYLE
-      title="&prefWindow.titleWin;">
-#else
-      title="&prefWindow.title;">
-#endif
-
-  <html:link rel="shortcut icon"
-              href="chrome://browser/skin/settings.svg"/>
-
-  <script type="application/javascript"
-          src="chrome://browser/content/utilityOverlay.js"/>
-  <script type="application/javascript"
-          src="chrome://browser/content/preferences/in-content-new/preferences.js"/>
-  <script src="chrome://browser/content/preferences/in-content-new/findInPage.js"/>
-  <script src="chrome://browser/content/preferences/in-content-new/subdialogs.js"/>
-
-  <stringbundle id="bundleBrand"
-                src="chrome://branding/locale/brand.properties"/>
-  <stringbundle id="bundlePreferences"
-                src="chrome://browser/locale/preferences/preferences.properties"/>
-  <stringbundle id="pkiBundle"
-                src="chrome://pippki/locale/pippki.properties"/>
-  <stringbundle id="browserBundle"
-                src="chrome://browser/locale/browser.properties"/>
-
-  <stringbundleset id="appManagerBundleset">
-    <stringbundle id="appManagerBundle"
-                  src="chrome://browser/locale/preferences/applicationManager.properties"/>
-  </stringbundleset>
-
-  <stack flex="1">
-  <hbox flex="1">
-
-    <!-- category list -->
-    <richlistbox id="categories">
-      <richlistitem id="category-general"
-                    class="category"
-                    value="paneGeneral"
-                    helpTopic="prefs-main"
-                    tooltiptext="&paneGeneral.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneGeneral.title;</label>
-      </richlistitem>
-
-      <richlistitem id="category-search"
-                    class="category"
-                    value="paneSearch"
-                    helpTopic="prefs-search"
-                    tooltiptext="&paneSearch.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneSearch.title;</label>
-      </richlistitem>
-
-      <richlistitem id="category-containers"
-                    class="category"
-                    value="paneContainers"
-                    helpTopic="prefs-containers"
-                    hidden="true"/>
-
-      <richlistitem id="category-privacy"
-                    class="category"
-                    value="panePrivacy"
-                    helpTopic="prefs-privacy"
-                    tooltiptext="&panePrivacySecurity.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&panePrivacySecurity.title;</label>
-      </richlistitem>
-
-      <richlistitem id="category-sync"
-                    class="category"
-                    value="paneSync"
-                    helpTopic="prefs-weave"
-                    tooltiptext="&paneSync1.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneSync1.title;</label>
-      </richlistitem>
-    </richlistbox>
-
-    <keyset>
-      <key key="&focusSearch1.key;" modifiers="accel" id="focusSearch1" oncommand="gSearchResultsPane.searchInput.focus();"/>
-    </keyset>
-
-    <html:a class="help-button" target="_blank" aria-label="&helpButton2.label;">&helpButton2.label;</html:a>
-
-    <vbox class="main-content" flex="1" align="start">
-      <vbox class="pane-container">
-        <hbox class="search-container" pack="end">
-          <textbox type="search" id="searchInput" hidden="true" clickSelectsAll="true"/>
-        </hbox>
-        <prefpane id="mainPrefPane">
-#include searchResults.xul
-#include main.xul
-#include search.xul
-#include privacy.xul
-#include containers.xul
-#include sync.xul
-        </prefpane>
-      </vbox>
-    </vbox>
-  </hbox>
-
-  <stack id="dialogStack" hidden="true"/>
-  <vbox id="dialogTemplate" class="dialogOverlay" align="center" pack="center" topmost="true" hidden="true">
-    <groupbox class="dialogBox"
-              orient="vertical"
-              pack="end"
-              role="dialog"
-              aria-labelledby="dialogTitle">
-      <caption flex="1" align="center">
-        <label class="dialogTitle" flex="1"></label>
-        <button class="dialogClose close-icon"
-                aria-label="&preferencesCloseButton.label;"/>
-      </caption>
-      <browser class="dialogFrame"
-               autoscroll="false"
-               disablehistory="true"/>
-    </groupbox>
-  </vbox>
-  </stack>
-</page>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/privacy.js
+++ /dev/null
@@ -1,1628 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
-Components.utils.import("resource://gre/modules/PluralForm.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
-                                  "resource://gre/modules/PluralForm.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "LoginHelper",
-                                  "resource://gre/modules/LoginHelper.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "SiteDataManager",
-                                  "resource:///modules/SiteDataManager.jsm");
-
-Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
-
-const PREF_UPLOAD_ENABLED = "datareporting.healthreport.uploadEnabled";
-
-XPCOMUtils.defineLazyGetter(this, "AlertsServiceDND", function() {
-  try {
-    let alertsService = Cc["@mozilla.org/alerts-service;1"]
-                          .getService(Ci.nsIAlertsService)
-                          .QueryInterface(Ci.nsIAlertsDoNotDisturb);
-    // This will throw if manualDoNotDisturb isn't implemented.
-    alertsService.manualDoNotDisturb;
-    return alertsService;
-  } catch (ex) {
-    return undefined;
-  }
-});
-
-var gPrivacyPane = {
-  _pane: null,
-
-  /**
-   * Whether the use has selected the auto-start private browsing mode in the UI.
-   */
-  _autoStartPrivateBrowsing: false,
-
-  /**
-   * Whether the prompt to restart Firefox should appear when changing the autostart pref.
-   */
-  _shouldPromptForRestart: true,
-
-  /**
-   * Show the Tracking Protection UI depending on the
-   * privacy.trackingprotection.ui.enabled pref, and linkify its Learn More link
-   */
-  _initTrackingProtection() {
-    if (!Services.prefs.getBoolPref("privacy.trackingprotection.ui.enabled")) {
-      return;
-    }
-
-    let link = document.getElementById("trackingProtectionLearnMore");
-    let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "tracking-protection";
-    link.setAttribute("href", url);
-
-    this.trackingProtectionReadPrefs();
-
-    document.getElementById("trackingProtectionExceptions").hidden = false;
-    document.getElementById("trackingProtectionBox").hidden = false;
-    document.getElementById("trackingProtectionPBMBox").hidden = true;
-  },
-
-  /**
-   * Linkify the Learn More link of the Private Browsing Mode Tracking
-   * Protection UI.
-   */
-  _initTrackingProtectionPBM() {
-    let link = document.getElementById("trackingProtectionPBMLearnMore");
-    let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "tracking-protection-pbm";
-    link.setAttribute("href", url);
-  },
-
-  /**
-   * Initialize autocomplete to ensure prefs are in sync.
-   */
-  _initAutocomplete() {
-    Components.classes["@mozilla.org/autocomplete/search;1?name=unifiedcomplete"]
-              .getService(Components.interfaces.mozIPlacesAutoComplete);
-  },
-
-  /**
-   * Sets up the UI for the number of days of history to keep, and updates the
-   * label of the "Clear Now..." button.
-   */
-  init() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gPrivacyPane));
-    }
-
-    this._updateSanitizeSettingsButton();
-    this.initializeHistoryMode();
-    this.updateHistoryModePane();
-    this.updatePrivacyMicroControls();
-    this.initAutoStartPrivateBrowsingReverter();
-    this._initTrackingProtection();
-    this._initTrackingProtectionPBM();
-    this._initAutocomplete();
-
-    setEventListener("privacy.sanitize.sanitizeOnShutdown", "change",
-                     gPrivacyPane._updateSanitizeSettingsButton);
-    setEventListener("browser.privatebrowsing.autostart", "change",
-                     gPrivacyPane.updatePrivacyMicroControls);
-    setEventListener("historyMode", "command", function() {
-      gPrivacyPane.updateHistoryModePane();
-      gPrivacyPane.updateHistoryModePrefs();
-      gPrivacyPane.updatePrivacyMicroControls();
-      gPrivacyPane.updateAutostart();
-    });
-    setEventListener("historyRememberClear", "click", function() {
-      gPrivacyPane.clearPrivateDataNow(false);
-      return false;
-    });
-    setEventListener("historyRememberCookies", "click", function() {
-      gPrivacyPane.showCookies();
-      return false;
-    });
-    setEventListener("historyDontRememberClear", "click", function() {
-      gPrivacyPane.clearPrivateDataNow(true);
-      return false;
-    });
-    setEventListener("privateBrowsingAutoStart", "command",
-                     gPrivacyPane.updateAutostart);
-    setEventListener("cookieExceptions", "command",
-                     gPrivacyPane.showCookieExceptions);
-    setEventListener("showCookiesButton", "command",
-                     gPrivacyPane.showCookies);
-    setEventListener("clearDataSettings", "command",
-                     gPrivacyPane.showClearPrivateDataSettings);
-    setEventListener("trackingProtectionRadioGroup", "command",
-                     gPrivacyPane.trackingProtectionWritePrefs);
-    setEventListener("trackingProtectionExceptions", "command",
-                     gPrivacyPane.showTrackingProtectionExceptions);
-    setEventListener("changeBlockList", "command",
-                     gPrivacyPane.showBlockLists);
-    setEventListener("passwordExceptions", "command",
-      gPrivacyPane.showPasswordExceptions);
-    setEventListener("useMasterPassword", "command",
-      gPrivacyPane.updateMasterPasswordButton);
-    setEventListener("changeMasterPassword", "command",
-      gPrivacyPane.changeMasterPassword);
-    setEventListener("showPasswords", "command",
-      gPrivacyPane.showPasswords);
-    setEventListener("addonExceptions", "command",
-      gPrivacyPane.showAddonExceptions);
-    setEventListener("viewCertificatesButton", "command",
-                     gPrivacyPane.showCertificates);
-    setEventListener("viewSecurityDevicesButton", "command",
-                     gPrivacyPane.showSecurityDevices);
-    setEventListener("clearCacheButton", "command",
-                     gPrivacyPane.clearCache);
-
-    this._pane = document.getElementById("panePrivacy");
-    this._initMasterPasswordUI();
-    this._initSafeBrowsing();
-    this.updateCacheSizeInputField();
-    this.updateActualCacheSize();
-
-    setEventListener("notificationSettingsButton", "command",
-      gPrivacyPane.showNotificationExceptions);
-    setEventListener("locationSettingsButton", "command",
-      gPrivacyPane.showLocationExceptions);
-    setEventListener("cameraSettingsButton", "command",
-      gPrivacyPane.showCameraExceptions);
-    setEventListener("microphoneSettingsButton", "command",
-      gPrivacyPane.showMicrophoneExceptions);
-    setEventListener("popupPolicyButton", "command",
-      gPrivacyPane.showPopupExceptions);
-    setEventListener("notificationsDoNotDisturb", "command",
-      gPrivacyPane.toggleDoNotDisturbNotifications);
-
-    if (AlertsServiceDND) {
-      let notificationsDoNotDisturbBox =
-        document.getElementById("notificationsDoNotDisturbBox");
-      notificationsDoNotDisturbBox.removeAttribute("hidden");
-      if (AlertsServiceDND.manualDoNotDisturb) {
-        let notificationsDoNotDisturb =
-          document.getElementById("notificationsDoNotDisturb");
-        notificationsDoNotDisturb.setAttribute("checked", true);
-      }
-    }
-
-    setEventListener("cacheSize", "change",
-                     gPrivacyPane.updateCacheSizePref);
-
-    if (Services.prefs.getBoolPref("browser.preferences.offlineGroup.enabled")) {
-      this.updateOfflineApps();
-      this.updateActualAppCacheSize();
-      setEventListener("offlineNotifyExceptions", "command",
-                       gPrivacyPane.showOfflineExceptions);
-      setEventListener("offlineAppsList", "select",
-                       gPrivacyPane.offlineAppSelected);
-      setEventListener("offlineAppsListRemove", "command",
-                       gPrivacyPane.removeOfflineApp);
-      setEventListener("clearOfflineAppCacheButton", "command",
-                       gPrivacyPane.clearOfflineAppCache);
-      let bundlePrefs = document.getElementById("bundlePreferences");
-      document.getElementById("offlineAppsList")
-              .style.height = bundlePrefs.getString("offlineAppsList.height");
-      let offlineGroup = document.getElementById("offlineGroup");
-      offlineGroup.removeAttribute("data-hidden-from-search");
-    }
-
-    if (Services.prefs.getBoolPref("browser.storageManager.enabled")) {
-      Services.obs.addObserver(this, "sitedatamanager:sites-updated");
-      Services.obs.addObserver(this, "sitedatamanager:updating-sites");
-      let unload = () => {
-        window.removeEventListener("unload", unload);
-        Services.obs.removeObserver(this, "sitedatamanager:sites-updated");
-        Services.obs.removeObserver(this, "sitedatamanager:updating-sites");
-      };
-      window.addEventListener("unload", unload);
-      SiteDataManager.updateSites();
-      setEventListener("clearSiteDataButton", "command",
-                       gPrivacyPane.clearSiteData);
-      setEventListener("siteDataSettings", "command",
-                       gPrivacyPane.showSiteDataSettings);
-      let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "storage-permissions";
-      document.getElementById("siteDataLearnMoreLink").setAttribute("href", url);
-      let siteDataGroup = document.getElementById("siteDataGroup");
-      siteDataGroup.removeAttribute("data-hidden-from-search");
-    }
-
-    let notificationInfoURL =
-      Services.urlFormatter.formatURLPref("app.support.baseURL") + "push";
-    document.getElementById("notificationPermissionsLearnMore").setAttribute("href",
-                                                                         notificationInfoURL);
-    let drmInfoURL =
-      Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content";
-    document.getElementById("playDRMContentLink").setAttribute("href", drmInfoURL);
-    let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
-    // Force-disable/hide on WinXP:
-    if (navigator.platform.toLowerCase().startsWith("win")) {
-      emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
-    }
-    if (!emeUIEnabled) {
-      // Don't want to rely on .hidden for the toplevel groupbox because
-      // of the pane hiding/showing code potentially interfering:
-      document.getElementById("drmGroup").setAttribute("style", "display: none !important");
-    }
-
-    this.initDataCollection();
-    if (AppConstants.MOZ_CRASHREPORTER) {
-      this.initSubmitCrashes();
-    }
-    this.initSubmitHealthReport();
-    setEventListener("submitHealthReportBox", "command",
-                     gPrivacyPane.updateSubmitHealthReport);
-    this._initA11yState();
-    let bundlePrefs = document.getElementById("bundlePreferences");
-    let signonBundle = document.getElementById("signonBundle");
-    let pkiBundle = document.getElementById("pkiBundle");
-    appendSearchKeywords("passwordExceptions", [
-      bundlePrefs.getString("savedLoginsExceptions_title"),
-      bundlePrefs.getString("savedLoginsExceptions_desc2"),
-    ]);
-    appendSearchKeywords("showPasswords", [
-      signonBundle.getString("loginsDescriptionAll2"),
-    ]);
-    appendSearchKeywords("trackingProtectionExceptions", [
-      bundlePrefs.getString("trackingprotectionpermissionstitle"),
-      bundlePrefs.getString("trackingprotectionpermissionstext2"),
-    ]);
-    appendSearchKeywords("changeBlockList", [
-      bundlePrefs.getString("blockliststitle"),
-      bundlePrefs.getString("blockliststext"),
-    ]);
-    appendSearchKeywords("popupPolicyButton", [
-      bundlePrefs.getString("popuppermissionstitle2"),
-      bundlePrefs.getString("popuppermissionstext"),
-    ]);
-    appendSearchKeywords("notificationSettingsButton", [
-      bundlePrefs.getString("notificationspermissionstitle2"),
-      bundlePrefs.getString("notificationspermissionstext5"),
-    ]);
-    appendSearchKeywords("locationSettingsButton", [
-      bundlePrefs.getString("locationpermissionstitle"),
-      bundlePrefs.getString("locationpermissionstext"),
-    ]);
-    appendSearchKeywords("cameraSettingsButton", [
-      bundlePrefs.getString("camerapermissionstitle"),
-      bundlePrefs.getString("camerapermissionstext"),
-    ]);
-    appendSearchKeywords("microphoneSettingsButton", [
-      bundlePrefs.getString("microphonepermissionstitle"),
-      bundlePrefs.getString("microphonepermissionstext"),
-    ]);
-    appendSearchKeywords("addonExceptions", [
-      bundlePrefs.getString("addons_permissions_title2"),
-      bundlePrefs.getString("addonspermissionstext"),
-    ]);
-    appendSearchKeywords("viewSecurityDevicesButton", [
-      pkiBundle.getString("enable_fips"),
-    ]);
-    appendSearchKeywords("siteDataSettings", [
-      bundlePrefs.getString("siteDataSettings2.description"),
-      bundlePrefs.getString("removeAllCookies.label"),
-      bundlePrefs.getString("removeSelectedCookies.label"),
-    ]);
-
-    // Notify observers that the UI is now ready
-    Components.classes["@mozilla.org/observer-service;1"]
-              .getService(Components.interfaces.nsIObserverService)
-              .notifyObservers(window, "privacy-pane-loaded");
-  },
-
-  // TRACKING PROTECTION MODE
-
-  /**
-   * Selects the right item of the Tracking Protection radiogroup.
-   */
-  trackingProtectionReadPrefs() {
-    let enabledPref = document.getElementById("privacy.trackingprotection.enabled");
-    let pbmPref = document.getElementById("privacy.trackingprotection.pbmode.enabled");
-    let radiogroup = document.getElementById("trackingProtectionRadioGroup");
-
-    // Global enable takes precedence over enabled in Private Browsing.
-    if (enabledPref.value) {
-      radiogroup.value = "always";
-    } else if (pbmPref.value) {
-      radiogroup.value = "private";
-    } else {
-      radiogroup.value = "never";
-    }
-  },
-
-  /**
-   * Sets the pref values based on the selected item of the radiogroup.
-   */
-  trackingProtectionWritePrefs() {
-    let enabledPref = document.getElementById("privacy.trackingprotection.enabled");
-    let pbmPref = document.getElementById("privacy.trackingprotection.pbmode.enabled");
-    let radiogroup = document.getElementById("trackingProtectionRadioGroup");
-
-    switch (radiogroup.value) {
-      case "always":
-        enabledPref.value = true;
-        pbmPref.value = true;
-        break;
-      case "private":
-        enabledPref.value = false;
-        pbmPref.value = true;
-        break;
-      case "never":
-        enabledPref.value = false;
-        pbmPref.value = false;
-        break;
-    }
-  },
-
-  // HISTORY MODE
-
-  /**
-   * The list of preferences which affect the initial history mode settings.
-   * If the auto start private browsing mode pref is active, the initial
-   * history mode would be set to "Don't remember anything".
-   * If ALL of these preferences are set to the values that correspond
-   * to keeping some part of history, and the auto-start
-   * private browsing mode is not active, the initial history mode would be
-   * set to "Remember everything".
-   * Otherwise, the initial history mode would be set to "Custom".
-   *
-   * Extensions adding their own preferences can set values here if needed.
-   */
-  prefsForKeepingHistory: {
-    "places.history.enabled": true, // History is enabled
-    "browser.formfill.enable": true, // Form information is saved
-    "network.cookie.cookieBehavior": 0, // All cookies are enabled
-    "network.cookie.lifetimePolicy": 0, // Cookies use supplied lifetime
-    "privacy.sanitize.sanitizeOnShutdown": false, // Private date is NOT cleared on shutdown
-  },
-
-  /**
-   * The list of control IDs which are dependent on the auto-start private
-   * browsing setting, such that in "Custom" mode they would be disabled if
-   * the auto-start private browsing checkbox is checked, and enabled otherwise.
-   *
-   * Extensions adding their own controls can append their IDs to this array if needed.
-   */
-  dependentControls: [
-    "rememberHistory",
-    "rememberForms",
-    "keepUntil",
-    "keepCookiesUntil",
-    "alwaysClear",
-    "clearDataSettings"
-  ],
-
-  /**
-   * Check whether preferences values are set to keep history
-   *
-   * @param aPrefs an array of pref names to check for
-   * @returns boolean true if all of the prefs are set to keep history,
-   *                  false otherwise
-   */
-  _checkHistoryValues(aPrefs) {
-    for (let pref of Object.keys(aPrefs)) {
-      if (document.getElementById(pref).value != aPrefs[pref])
-        return false;
-    }
-    return true;
-  },
-
-  /**
-   * Initialize the history mode menulist based on the privacy preferences
-   */
-  initializeHistoryMode() {
-    let mode;
-    let getVal = aPref => document.getElementById(aPref).value;
-
-    if (getVal("privacy.history.custom"))
-      mode = "custom";
-    else if (this._checkHistoryValues(this.prefsForKeepingHistory)) {
-      if (getVal("browser.privatebrowsing.autostart"))
-        mode = "dontremember";
-      else
-        mode = "remember";
-    } else
-      mode = "custom";
-
-    document.getElementById("historyMode").value = mode;
-  },
-
-  /**
-   * Update the selected pane based on the history mode menulist
-   */
-  updateHistoryModePane() {
-    let selectedIndex = -1;
-    switch (document.getElementById("historyMode").value) {
-    case "remember":
-      selectedIndex = 0;
-      break;
-    case "dontremember":
-      selectedIndex = 1;
-      break;
-    case "custom":
-      selectedIndex = 2;
-      break;
-    }
-    document.getElementById("historyPane").selectedIndex = selectedIndex;
-    document.getElementById("privacy.history.custom").value = selectedIndex == 2;
-  },
-
-  /**
-   * Update the private browsing auto-start pref and the history mode
-   * micro-management prefs based on the history mode menulist
-   */
-  updateHistoryModePrefs() {
-    let pref = document.getElementById("browser.privatebrowsing.autostart");
-    switch (document.getElementById("historyMode").value) {
-    case "remember":
-      if (pref.value)
-        pref.value = false;
-
-      // select the remember history option if needed
-      document.getElementById("places.history.enabled").value = true;
-
-      // select the remember forms history option
-      document.getElementById("browser.formfill.enable").value = true;
-
-      // select the allow cookies option
-      document.getElementById("network.cookie.cookieBehavior").value = 0;
-      // select the cookie lifetime policy option
-      document.getElementById("network.cookie.lifetimePolicy").value = 0;
-
-      // select the clear on close option
-      document.getElementById("privacy.sanitize.sanitizeOnShutdown").value = false;
-      break;
-    case "dontremember":
-      if (!pref.value)
-        pref.value = true;
-      break;
-    }
-  },
-
-  /**
-   * Update the privacy micro-management controls based on the
-   * value of the private browsing auto-start checkbox.
-   */
-  updatePrivacyMicroControls() {
-    if (document.getElementById("historyMode").value == "custom") {
-      let disabled = this._autoStartPrivateBrowsing =
-        document.getElementById("privateBrowsingAutoStart").checked;
-      this.dependentControls.forEach(function(aElement) {
-        let control = document.getElementById(aElement);
-        let preferenceId = control.getAttribute("preference");
-        if (!preferenceId) {
-          let dependentControlId = control.getAttribute("control");
-          if (dependentControlId) {
-            let dependentControl = document.getElementById(dependentControlId);
-            preferenceId = dependentControl.getAttribute("preference");
-          }
-        }
-
-        let preference = preferenceId ? document.getElementById(preferenceId) : {};
-        control.disabled = disabled || preference.locked;
-      });
-
-      // adjust the cookie controls status
-      this.readAcceptCookies();
-      let lifetimePolicy = document.getElementById("network.cookie.lifetimePolicy").value;
-      if (lifetimePolicy != Ci.nsICookieService.ACCEPT_NORMALLY &&
-          lifetimePolicy != Ci.nsICookieService.ACCEPT_SESSION &&
-          lifetimePolicy != Ci.nsICookieService.ACCEPT_FOR_N_DAYS) {
-        lifetimePolicy = Ci.nsICookieService.ACCEPT_NORMALLY;
-      }
-      document.getElementById("keepCookiesUntil").value = disabled ? 2 : lifetimePolicy;
-
-      // adjust the checked state of the sanitizeOnShutdown checkbox
-      document.getElementById("alwaysClear").checked = disabled ? false :
-        document.getElementById("privacy.sanitize.sanitizeOnShutdown").value;
-
-      // adjust the checked state of the remember history checkboxes
-      document.getElementById("rememberHistory").checked = disabled ? false :
-        document.getElementById("places.history.enabled").value;
-      document.getElementById("rememberForms").checked = disabled ? false :
-        document.getElementById("browser.formfill.enable").value;
-
-      if (!disabled) {
-        // adjust the Settings button for sanitizeOnShutdown
-        this._updateSanitizeSettingsButton();
-      }
-    }
-  },
-
-  // PRIVATE BROWSING
-
-  /**
-   * Initialize the starting state for the auto-start private browsing mode pref reverter.
-   */
-  initAutoStartPrivateBrowsingReverter() {
-    let mode = document.getElementById("historyMode");
-    let autoStart = document.getElementById("privateBrowsingAutoStart");
-    this._lastMode = mode.selectedIndex;
-    this._lastCheckState = autoStart.hasAttribute("checked");
-  },
-
-  _lastMode: null,
-  _lastCheckState: null,
-  updateAutostart() {
-      let mode = document.getElementById("historyMode");
-      let autoStart = document.getElementById("privateBrowsingAutoStart");
-      let pref = document.getElementById("browser.privatebrowsing.autostart");
-      if ((mode.value == "custom" && this._lastCheckState == autoStart.checked) ||
-          (mode.value == "remember" && !this._lastCheckState) ||
-          (mode.value == "dontremember" && this._lastCheckState)) {
-          // These are all no-op changes, so we don't need to prompt.
-          this._lastMode = mode.selectedIndex;
-          this._lastCheckState = autoStart.hasAttribute("checked");
-          return;
-      }
-
-      if (!this._shouldPromptForRestart) {
-        // We're performing a revert. Just let it happen.
-        return;
-      }
-
-      let buttonIndex = confirmRestartPrompt(autoStart.checked, 1,
-                                             true, false);
-      if (buttonIndex == CONFIRM_RESTART_PROMPT_RESTART_NOW) {
-        pref.value = autoStart.hasAttribute("checked");
-        let appStartup = Cc["@mozilla.org/toolkit/app-startup;1"]
-                           .getService(Ci.nsIAppStartup);
-        appStartup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
-        return;
-      }
-
-      this._shouldPromptForRestart = false;
-
-      if (this._lastCheckState) {
-        autoStart.checked = "checked";
-      } else {
-        autoStart.removeAttribute("checked");
-      }
-      pref.value = autoStart.hasAttribute("checked");
-      mode.selectedIndex = this._lastMode;
-      mode.doCommand();
-
-      this._shouldPromptForRestart = true;
-  },
-
-  /**
-   * Displays fine-grained, per-site preferences for tracking protection.
-   */
-  showTrackingProtectionExceptions() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let params = {
-      permissionType: "trackingprotection",
-      hideStatusColumn: true,
-      windowTitle: bundlePreferences.getString("trackingprotectionpermissionstitle"),
-      introText: bundlePreferences.getString("trackingprotectionpermissionstext2"),
-    };
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  /**
-   * Displays the available block lists for tracking protection.
-   */
-  showBlockLists() {
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    let brandName = document.getElementById("bundleBrand")
-                            .getString("brandShortName");
-    var params = { brandShortName: brandName,
-                   windowTitle: bundlePreferences.getString("blockliststitle"),
-                   introText: bundlePreferences.getString("blockliststext") };
-    gSubDialog.open("chrome://browser/content/preferences/blocklists.xul",
-                    null, params);
-  },
-
-  /**
-   * Displays the Do Not Track settings dialog.
-   */
-  showDoNotTrackSettings() {
-    gSubDialog.open("chrome://browser/content/preferences/donottrack.xul",
-                    "resizable=no");
-  },
-
-  // HISTORY
-
-  /*
-   * Preferences:
-   *
-   * places.history.enabled
-   * - whether history is enabled or not
-   * browser.formfill.enable
-   * - true if entries in forms and the search bar should be saved, false
-   *   otherwise
-   */
-
-  // COOKIES
-
-  /*
-   * Preferences:
-   *
-   * network.cookie.cookieBehavior
-   * - determines how the browser should handle cookies:
-   *     0   means enable all cookies
-   *     1   means reject all third party cookies
-   *     2   means disable all cookies
-   *     3   means reject third party cookies unless at least one is already set for the eTLD
-   *         see netwerk/cookie/src/nsCookieService.cpp for details
-   * network.cookie.lifetimePolicy
-   * - determines how long cookies are stored:
-   *     0   means keep cookies until they expire
-   *     2   means keep cookies until the browser is closed
-   */
-
-  /**
-   * Reads the network.cookie.cookieBehavior preference value and
-   * enables/disables the rest of the cookie UI accordingly, returning true
-   * if cookies are enabled.
-   */
-  readAcceptCookies() {
-    var pref = document.getElementById("network.cookie.cookieBehavior");
-    var acceptThirdPartyLabel = document.getElementById("acceptThirdPartyLabel");
-    var acceptThirdPartyMenu = document.getElementById("acceptThirdPartyMenu");
-    var keepUntil = document.getElementById("keepUntil");
-    var menu = document.getElementById("keepCookiesUntil");
-
-    // enable the rest of the UI for anything other than "disable all cookies"
-    var acceptCookies = (pref.value != 2);
-
-    acceptThirdPartyLabel.disabled = acceptThirdPartyMenu.disabled = !acceptCookies;
-    keepUntil.disabled = menu.disabled = this._autoStartPrivateBrowsing || !acceptCookies;
-
-    return acceptCookies;
-  },
-
-  /**
-   * Enables/disables the "keep until" label and menulist in response to the
-   * "accept cookies" checkbox being checked or unchecked.
-   */
-  writeAcceptCookies() {
-    var accept = document.getElementById("acceptCookies");
-    var acceptThirdPartyMenu = document.getElementById("acceptThirdPartyMenu");
-
-    // if we're enabling cookies, automatically select 'accept third party always'
-    if (accept.checked)
-      acceptThirdPartyMenu.selectedIndex = 0;
-
-    return accept.checked ? 0 : 2;
-  },
-
-  /**
-   * Converts between network.cookie.cookieBehavior and the third-party cookie UI
-   */
-  readAcceptThirdPartyCookies() {
-    var pref = document.getElementById("network.cookie.cookieBehavior");
-    switch (pref.value) {
-      case 0:
-        return "always";
-      case 1:
-        return "never";
-      case 2:
-        return "never";
-      case 3:
-        return "visited";
-      default:
-        return undefined;
-    }
-  },
-
-  writeAcceptThirdPartyCookies() {
-    var accept = document.getElementById("acceptThirdPartyMenu").selectedItem;
-    switch (accept.value) {
-      case "always":
-        return 0;
-      case "visited":
-        return 3;
-      case "never":
-        return 1;
-      default:
-        return undefined;
-    }
-  },
-
-  /**
-   * Displays fine-grained, per-site preferences for cookies.
-   */
-  showCookieExceptions() {
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    var params = { blockVisible: true,
-                   sessionVisible: true,
-                   allowVisible: true,
-                   prefilledHost: "",
-                   permissionType: "cookie",
-                   windowTitle: bundlePreferences.getString("cookiepermissionstitle"),
-                   introText: bundlePreferences.getString("cookiepermissionstext") };
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  /**
-   * Displays all the user's cookies in a dialog.
-   */
-  showCookies(aCategory) {
-    gSubDialog.open("chrome://browser/content/preferences/cookies.xul");
-  },
-
-  // CLEAR PRIVATE DATA
-
-  /*
-   * Preferences:
-   *
-   * privacy.sanitize.sanitizeOnShutdown
-   * - true if the user's private data is cleared on startup according to the
-   *   Clear Private Data settings, false otherwise
-   */
-
-  /**
-   * Displays the Clear Private Data settings dialog.
-   */
-  showClearPrivateDataSettings() {
-    gSubDialog.open("chrome://browser/content/preferences/sanitize.xul", "resizable=no");
-  },
-
-
-  /**
-   * Displays a dialog from which individual parts of private data may be
-   * cleared.
-   */
-  clearPrivateDataNow(aClearEverything) {
-    var ts = document.getElementById("privacy.sanitize.timeSpan");
-    var timeSpanOrig = ts.value;
-
-    if (aClearEverything) {
-      ts.value = 0;
-    }
-
-    gSubDialog.open("chrome://browser/content/sanitize.xul", "resizable=no", null, () => {
-      // reset the timeSpan pref
-      if (aClearEverything) {
-        ts.value = timeSpanOrig;
-      }
-
-      Services.obs.notifyObservers(null, "clear-private-data");
-    });
-  },
-
-  /**
-   * Enables or disables the "Settings..." button depending
-   * on the privacy.sanitize.sanitizeOnShutdown preference value
-   */
-  _updateSanitizeSettingsButton() {
-    var settingsButton = document.getElementById("clearDataSettings");
-    var sanitizeOnShutdownPref = document.getElementById("privacy.sanitize.sanitizeOnShutdown");
-
-    settingsButton.disabled = !sanitizeOnShutdownPref.value;
-   },
-
-  // CONTAINERS
-
-  /*
-   * preferences:
-   *
-   * privacy.userContext.enabled
-   * - true if containers is enabled
-   */
-
-   /**
-    * Enables/disables the Settings button used to configure containers
-    */
-   readBrowserContainersCheckbox() {
-     var pref = document.getElementById("privacy.userContext.enabled");
-     var settings = document.getElementById("browserContainersSettings");
-
-     settings.disabled = !pref.value;
-   },
-
-   toggleDoNotDisturbNotifications(event) {
-     AlertsServiceDND.manualDoNotDisturb = event.target.checked;
-   },
-
-  // GEOLOCATION
-
-  /**
-   * Displays the location exceptions dialog where specific site location
-   * preferences can be set.
-   */
-  showLocationExceptions() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let params = { permissionType: "geo"};
-    params.windowTitle = bundlePreferences.getString("locationpermissionstitle");
-    params.introText = bundlePreferences.getString("locationpermissionstext");
-
-    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
-                    "resizable=yes", params);
-  },
-
-  // CAMERA
-
-  /**
-   * Displays the camera exceptions dialog where specific site camera
-   * preferences can be set.
-   */
-  showCameraExceptions() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let params = { permissionType: "camera"};
-    params.windowTitle = bundlePreferences.getString("camerapermissionstitle");
-    params.introText = bundlePreferences.getString("camerapermissionstext");
-
-    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
-                    "resizable=yes", params);
-  },
-
-  // MICROPHONE
-
-  /**
-   * Displays the microphone exceptions dialog where specific site microphone
-   * preferences can be set.
-   */
-  showMicrophoneExceptions() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let params = { permissionType: "microphone"};
-    params.windowTitle = bundlePreferences.getString("microphonepermissionstitle");
-    params.introText = bundlePreferences.getString("microphonepermissionstext");
-
-    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
-                    "resizable=yes", params);
-  },
-
-  // NOTIFICATIONS
-
-  /**
-   * Displays the notifications exceptions dialog where specific site notification
-   * preferences can be set.
-   */
-  showNotificationExceptions() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let params = { permissionType: "desktop-notification"};
-    params.windowTitle = bundlePreferences.getString("notificationspermissionstitle2");
-    params.introText = bundlePreferences.getString("notificationspermissionstext5");
-
-    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
-                    "resizable=yes", params);
-
-    try {
-      Services.telemetry
-              .getHistogramById("WEB_NOTIFICATION_EXCEPTIONS_OPENED").add();
-    } catch (e) {}
-  },
-
-
-  // POP-UPS
-
-  /**
-   * Displays the popup exceptions dialog where specific site popup preferences
-   * can be set.
-   */
-  showPopupExceptions() {
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    var params = { blockVisible: false, sessionVisible: false, allowVisible: true,
-                   prefilledHost: "", permissionType: "popup" }
-    params.windowTitle = bundlePreferences.getString("popuppermissionstitle2");
-    params.introText = bundlePreferences.getString("popuppermissionstext");
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    "resizable=yes", params);
-  },
-
-   // UTILITY FUNCTIONS
-
-  /**
-   * Utility function to enable/disable the button specified by aButtonID based
-   * on the value of the Boolean preference specified by aPreferenceID.
-   */
-  updateButtons(aButtonID, aPreferenceID) {
-    var button = document.getElementById(aButtonID);
-    var preference = document.getElementById(aPreferenceID);
-    button.disabled = preference.value != true;
-    return undefined;
-  },
-
-  // BEGIN UI CODE
-
-  /*
-   * Preferences:
-   *
-   * dom.disable_open_during_load
-   * - true if popups are blocked by default, false otherwise
-   */
-
-  // POP-UPS
-
-  /**
-   * Displays a dialog in which the user can view and modify the list of sites
-   * where passwords are never saved.
-   */
-  showPasswordExceptions() {
-    var bundlePrefs = document.getElementById("bundlePreferences");
-    var params = {
-      blockVisible: true,
-      sessionVisible: false,
-      allowVisible: false,
-      hideStatusColumn: true,
-      prefilledHost: "",
-      permissionType: "login-saving",
-      windowTitle: bundlePrefs.getString("savedLoginsExceptions_title"),
-      introText: bundlePrefs.getString("savedLoginsExceptions_desc2")
-    };
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  /**
-   * Initializes master password UI: the "use master password" checkbox, selects
-   * the master password button to show, and enables/disables it as necessary.
-   * The master password is controlled by various bits of NSS functionality, so
-   * the UI for it can't be controlled by the normal preference bindings.
-   */
-  _initMasterPasswordUI() {
-    var noMP = !LoginHelper.isMasterPasswordSet();
-
-    var button = document.getElementById("changeMasterPassword");
-    button.disabled = noMP;
-
-    var checkbox = document.getElementById("useMasterPassword");
-    checkbox.checked = !noMP;
-  },
-
-  /**
-   * Enables/disables the master password button depending on the state of the
-   * "use master password" checkbox, and prompts for master password removal if
-   * one is set.
-   */
-  updateMasterPasswordButton() {
-    var checkbox = document.getElementById("useMasterPassword");
-    var button = document.getElementById("changeMasterPassword");
-    button.disabled = !checkbox.checked;
-
-    // unchecking the checkbox should try to immediately remove the master
-    // password, because it's impossible to non-destructively remove the master
-    // password used to encrypt all the passwords without providing it (by
-    // design), and it would be extremely odd to pop up that dialog when the
-    // user closes the prefwindow and saves his settings
-    if (!checkbox.checked)
-      this._removeMasterPassword();
-    else
-      this.changeMasterPassword();
-
-    this._initMasterPasswordUI();
-  },
-
-  /**
-   * Displays the "remove master password" dialog to allow the user to remove
-   * the current master password.  When the dialog is dismissed, master password
-   * UI is automatically updated.
-   */
-  _removeMasterPassword() {
-    var secmodDB = Cc["@mozilla.org/security/pkcs11moduledb;1"].
-                   getService(Ci.nsIPKCS11ModuleDB);
-    if (secmodDB.isFIPSEnabled) {
-      var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
-                          getService(Ci.nsIPromptService);
-      var bundle = document.getElementById("bundlePreferences");
-      promptService.alert(window,
-                          bundle.getString("pw_change_failed_title"),
-                          bundle.getString("pw_change2empty_in_fips_mode"));
-      this._initMasterPasswordUI();
-    } else {
-      gSubDialog.open("chrome://mozapps/content/preferences/removemp.xul",
-                      null, null, this._initMasterPasswordUI.bind(this));
-    }
-  },
-
-  /**
-   * Displays a dialog in which the master password may be changed.
-   */
-  changeMasterPassword() {
-    gSubDialog.open("chrome://mozapps/content/preferences/changemp.xul",
-                    "resizable=no", null, this._initMasterPasswordUI.bind(this));
-  },
-
-    /**
-   * Shows the sites where the user has saved passwords and the associated login
-   * information.
-   */
-  showPasswords() {
-    gSubDialog.open("chrome://passwordmgr/content/passwordManager.xul");
-  },
-
-  /**
-   * Enables/disables the Exceptions button used to configure sites where
-   * passwords are never saved. When browser is set to start in Private
-   * Browsing mode, the "Remember passwords" UI is useless, so we disable it.
-   */
-  readSavePasswords() {
-    var pref = document.getElementById("signon.rememberSignons");
-    var excepts = document.getElementById("passwordExceptions");
-
-    if (PrivateBrowsingUtils.permanentPrivateBrowsing) {
-      document.getElementById("savePasswords").disabled = true;
-      excepts.disabled = true;
-      return false;
-    }
-    excepts.disabled = !pref.value;
-    // don't override pref value in UI
-    return undefined;
-  },
-
-  /**
-   * Enables/disables the add-ons Exceptions button depending on whether
-   * or not add-on installation warnings are displayed.
-   */
-  readWarnAddonInstall() {
-    var warn = document.getElementById("xpinstall.whitelist.required");
-    var exceptions = document.getElementById("addonExceptions");
-
-    exceptions.disabled = !warn.value;
-
-    // don't override the preference value
-    return undefined;
-  },
-
-  _initSafeBrowsing() {
-    let enableSafeBrowsing = document.getElementById("enableSafeBrowsing");
-    let blockDownloads = document.getElementById("blockDownloads");
-    let blockUncommonUnwanted = document.getElementById("blockUncommonUnwanted");
-
-    let safeBrowsingPhishingPref = document.getElementById("browser.safebrowsing.phishing.enabled");
-    let safeBrowsingMalwarePref = document.getElementById("browser.safebrowsing.malware.enabled");
-
-    let blockDownloadsPref = document.getElementById("browser.safebrowsing.downloads.enabled");
-    let malwareTable = document.getElementById("urlclassifier.malwareTable");
-
-    let blockUnwantedPref = document.getElementById("browser.safebrowsing.downloads.remote.block_potentially_unwanted");
-    let blockUncommonPref = document.getElementById("browser.safebrowsing.downloads.remote.block_uncommon");
-
-    enableSafeBrowsing.addEventListener("command", function() {
-      safeBrowsingPhishingPref.value = enableSafeBrowsing.checked;
-      safeBrowsingMalwarePref.value = enableSafeBrowsing.checked;
-
-      if (enableSafeBrowsing.checked) {
-        blockDownloads.removeAttribute("disabled");
-        if (blockDownloads.checked) {
-          blockUncommonUnwanted.removeAttribute("disabled");
-        }
-      } else {
-        blockDownloads.setAttribute("disabled", "true");
-        blockUncommonUnwanted.setAttribute("disabled", "true");
-      }
-    });
-
-    blockDownloads.addEventListener("command", function() {
-      blockDownloadsPref.value = blockDownloads.checked;
-      if (blockDownloads.checked) {
-        blockUncommonUnwanted.removeAttribute("disabled");
-      } else {
-        blockUncommonUnwanted.setAttribute("disabled", "true");
-      }
-    });
-
-    blockUncommonUnwanted.addEventListener("command", function() {
-      blockUnwantedPref.value = blockUncommonUnwanted.checked;
-      blockUncommonPref.value = blockUncommonUnwanted.checked;
-
-      let malware = malwareTable.value
-        .split(",")
-        .filter(x => x !== "goog-unwanted-shavar" && x !== "test-unwanted-simple");
-
-      if (blockUncommonUnwanted.checked) {
-        malware.push("goog-unwanted-shavar");
-        malware.push("test-unwanted-simple");
-      }
-
-      // sort alphabetically to keep the pref consistent
-      malware.sort();
-
-      malwareTable.value = malware.join(",");
-    });
-
-    // set initial values
-
-    enableSafeBrowsing.checked = safeBrowsingPhishingPref.value && safeBrowsingMalwarePref.value;
-    if (!enableSafeBrowsing.checked) {
-      blockDownloads.setAttribute("disabled", "true");
-      blockUncommonUnwanted.setAttribute("disabled", "true");
-    }
-
-    blockDownloads.checked = blockDownloadsPref.value;
-    if (!blockDownloadsPref.value) {
-      blockUncommonUnwanted.setAttribute("disabled", "true");
-    }
-
-    blockUncommonUnwanted.checked = blockUnwantedPref.value && blockUncommonPref.value;
-  },
-
-  /**
-   * Displays the exceptions lists for add-on installation warnings.
-   */
-  showAddonExceptions() {
-    var bundlePrefs = document.getElementById("bundlePreferences");
-
-    var params = this._addonParams;
-    if (!params.windowTitle || !params.introText) {
-      params.windowTitle = bundlePrefs.getString("addons_permissions_title2");
-      params.introText = bundlePrefs.getString("addonspermissionstext");
-    }
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  /**
-   * Parameters for the add-on install permissions dialog.
-   */
-  _addonParams:
-    {
-      blockVisible: false,
-      sessionVisible: false,
-      allowVisible: true,
-      prefilledHost: "",
-      permissionType: "install"
-    },
-
-  /**
-   * readEnableOCSP is used by the preferences UI to determine whether or not
-   * the checkbox for OCSP fetching should be checked (it returns true if it
-   * should be checked and false otherwise). The about:config preference
-   * "security.OCSP.enabled" is an integer rather than a boolean, so it can't be
-   * directly mapped from {true,false} to {checked,unchecked}. The possible
-   * values for "security.OCSP.enabled" are:
-   * 0: fetching is disabled
-   * 1: fetch for all certificates
-   * 2: fetch only for EV certificates
-   * Hence, if "security.OCSP.enabled" is non-zero, the checkbox should be
-   * checked. Otherwise, it should be unchecked.
-   */
-  readEnableOCSP() {
-    var preference = document.getElementById("security.OCSP.enabled");
-    // This is the case if the preference is the default value.
-    if (preference.value === undefined) {
-      return true;
-    }
-    return preference.value != 0;
-  },
-
-  /**
-   * writeEnableOCSP is used by the preferences UI to map the checked/unchecked
-   * state of the OCSP fetching checkbox to the value that the preference
-   * "security.OCSP.enabled" should be set to (it returns that value). See the
-   * readEnableOCSP documentation for more background. We unfortunately don't
-   * have enough information to map from {true,false} to all possible values for
-   * "security.OCSP.enabled", but a reasonable alternative is to map from
-   * {true,false} to {<the default value>,0}. That is, if the box is checked,
-   * "security.OCSP.enabled" will be set to whatever default it should be, given
-   * the platform and channel. If the box is unchecked, the preference will be
-   * set to 0. Obviously this won't work if the default is 0, so we will have to
-   * revisit this if we ever set it to 0.
-   */
-  writeEnableOCSP() {
-    var checkbox = document.getElementById("enableOCSP");
-    var defaults = Services.prefs.getDefaultBranch(null);
-    var defaultValue = defaults.getIntPref("security.OCSP.enabled");
-    return checkbox.checked ? defaultValue : 0;
-  },
-
-  /**
-   * Displays the user's certificates and associated options.
-   */
-  showCertificates() {
-    gSubDialog.open("chrome://pippki/content/certManager.xul");
-  },
-
-  /**
-   * Displays a dialog from which the user can manage his security devices.
-   */
-  showSecurityDevices() {
-    gSubDialog.open("chrome://pippki/content/device_manager.xul");
-  },
-
-  /**
-   * Clears the cache.
-   */
-  clearCache() {
-    try {
-      var cache = Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
-                            .getService(Components.interfaces.nsICacheStorageService);
-      cache.clear();
-    } catch (ex) {}
-    this.updateActualCacheSize();
-  },
-
-  showOfflineExceptions() {
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    var params = { blockVisible: false,
-                   sessionVisible: false,
-                   allowVisible: false,
-                   prefilledHost: "",
-                   permissionType: "offline-app",
-                   manageCapability: Components.interfaces.nsIPermissionManager.DENY_ACTION,
-                   windowTitle: bundlePreferences.getString("offlinepermissionstitle"),
-                   introText: bundlePreferences.getString("offlinepermissionstext") };
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-
-  offlineAppSelected() {
-    var removeButton = document.getElementById("offlineAppsListRemove");
-    var list = document.getElementById("offlineAppsList");
-    if (list.selectedItem) {
-      removeButton.setAttribute("disabled", "false");
-    } else {
-      removeButton.setAttribute("disabled", "true");
-    }
-  },
-
-  showSiteDataSettings() {
-    gSubDialog.open("chrome://browser/content/preferences/siteDataSettings.xul");
-  },
-
-  toggleSiteData(shouldShow) {
-    let clearButton = document.getElementById("clearSiteDataButton");
-    let settingsButton = document.getElementById("siteDataSettings");
-    clearButton.disabled = !shouldShow;
-    settingsButton.disabled = !shouldShow;
-  },
-
-  updateTotalDataSizeLabel(usage) {
-    let prefStrBundle = document.getElementById("bundlePreferences");
-    let totalSiteDataSizeLabel = document.getElementById("totalSiteDataSize");
-    if (usage < 0) {
-      totalSiteDataSizeLabel.textContent = prefStrBundle.getString("loadingSiteDataSize");
-    } else {
-      let size = DownloadUtils.convertByteUnits(usage);
-      totalSiteDataSizeLabel.textContent = prefStrBundle.getFormattedString("totalSiteDataSize", size);
-    }
-  },
-
-  // Retrieves the amount of space currently used by disk cache
-  updateActualCacheSize() {
-    var actualSizeLabel = document.getElementById("actualDiskCacheSize");
-    var prefStrBundle = document.getElementById("bundlePreferences");
-
-    // Needs to root the observer since cache service keeps only a weak reference.
-    this.observer = {
-      onNetworkCacheDiskConsumption(consumption) {
-        var size = DownloadUtils.convertByteUnits(consumption);
-        // The XBL binding for the string bundle may have been destroyed if
-        // the page was closed before this callback was executed.
-        if (!prefStrBundle.getFormattedString) {
-          return;
-        }
-        actualSizeLabel.textContent = prefStrBundle.getFormattedString("actualDiskCacheSize", size);
-      },
-
-      QueryInterface: XPCOMUtils.generateQI([
-        Components.interfaces.nsICacheStorageConsumptionObserver,
-        Components.interfaces.nsISupportsWeakReference
-      ])
-    };
-
-    actualSizeLabel.textContent = prefStrBundle.getString("actualDiskCacheSizeCalculated");
-
-    try {
-      var cacheService =
-        Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
-                  .getService(Components.interfaces.nsICacheStorageService);
-      cacheService.asyncGetDiskConsumption(this.observer);
-    } catch (e) {}
-  },
-
-  updateCacheSizeUI(smartSizeEnabled) {
-    document.getElementById("useCacheBefore").disabled = smartSizeEnabled;
-    document.getElementById("cacheSize").disabled = smartSizeEnabled;
-    document.getElementById("useCacheAfter").disabled = smartSizeEnabled;
-  },
-
-  readSmartSizeEnabled() {
-    // The smart_size.enabled preference element is inverted="true", so its
-    // value is the opposite of the actual pref value
-    var disabled = document.getElementById("browser.cache.disk.smart_size.enabled").value;
-    this.updateCacheSizeUI(!disabled);
-  },
-
-  /**
-   * Converts the cache size from units of KB to units of MB and stores it in
-   * the textbox element.
-   *
-   * Preferences:
-   *
-   * browser.cache.disk.capacity
-   * - the size of the browser cache in KB
-   * - Only used if browser.cache.disk.smart_size.enabled is disabled
-   */
-  updateCacheSizeInputField() {
-    let cacheSizeElem = document.getElementById("cacheSize");
-    let cachePref = document.getElementById("browser.cache.disk.capacity");
-    cacheSizeElem.value = cachePref.value / 1024;
-    if (cachePref.locked)
-      cacheSizeElem.disabled = true;
-  },
-
-  /**
-   * Updates the cache size preference once user enters a new value.
-   * We intentionally do not set preference="browser.cache.disk.capacity"
-   * onto the textbox directly, as that would update the pref at each keypress
-   * not only after the final value is entered.
-   */
-  updateCacheSizePref() {
-    let cacheSizeElem = document.getElementById("cacheSize");
-    let cachePref = document.getElementById("browser.cache.disk.capacity");
-    // Converts the cache size as specified in UI (in MB) to KB.
-    let intValue = parseInt(cacheSizeElem.value, 10);
-    cachePref.value = isNaN(intValue) ? 0 : intValue * 1024;
-  },
-
-  clearSiteData() {
-    let flags =
-      Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_0 +
-      Services.prompt.BUTTON_TITLE_CANCEL * Services.prompt.BUTTON_POS_1 +
-      Services.prompt.BUTTON_POS_0_DEFAULT;
-    let prefStrBundle = document.getElementById("bundlePreferences");
-    let title = prefStrBundle.getString("clearSiteDataPromptTitle");
-    let text = prefStrBundle.getString("clearSiteDataPromptText");
-    let btn0Label = prefStrBundle.getString("clearSiteDataNow");
-
-    let result = Services.prompt.confirmEx(
-      window, title, text, flags, btn0Label, null, null, null, {});
-    if (result == 0) {
-      SiteDataManager.removeAll();
-    }
-  },
-
-  initDataCollection() {
-    this._setupLearnMoreLink("toolkit.datacollection.infoURL",
-                             "dataCollectionPrivacyNotice");
-  },
-
-  initSubmitCrashes() {
-    this._setupLearnMoreLink("toolkit.crashreporter.infoURL",
-                             "crashReporterLearnMore");
-  },
-
-  /**
-   * Set up or hide the Learn More links for various data collection options
-   */
-  _setupLearnMoreLink(pref, element) {
-    // set up the Learn More link with the correct URL
-    let url = Services.prefs.getCharPref(pref);
-    let el = document.getElementById(element);
-
-    if (url) {
-      el.setAttribute("href", url);
-    } else {
-      el.setAttribute("hidden", "true");
-    }
-  },
-
-  /**
-   * Initialize the health report service reference and checkbox.
-   */
-  initSubmitHealthReport() {
-    this._setupLearnMoreLink("datareporting.healthreport.infoURL", "FHRLearnMore");
-
-    let checkbox = document.getElementById("submitHealthReportBox");
-
-    // Telemetry is only sending data if MOZ_TELEMETRY_REPORTING is defined.
-    // We still want to display the preferences panel if that's not the case, but
-    // we want it to be disabled and unchecked.
-    if (Services.prefs.prefIsLocked(PREF_UPLOAD_ENABLED) ||
-        !AppConstants.MOZ_TELEMETRY_REPORTING) {
-      checkbox.setAttribute("disabled", "true");
-      return;
-    }
-
-    checkbox.checked = Services.prefs.getBoolPref(PREF_UPLOAD_ENABLED) &&
-                       AppConstants.MOZ_TELEMETRY_REPORTING;
-  },
-
-  /**
-   * Update the health report preference with state from checkbox.
-   */
-  updateSubmitHealthReport() {
-    let checkbox = document.getElementById("submitHealthReportBox");
-    Services.prefs.setBoolPref(PREF_UPLOAD_ENABLED, checkbox.checked);
-  },
-
-  // Methods for Offline Apps (AppCache)
-
-  /**
-   * Clears the application cache.
-   */
-  clearOfflineAppCache() {
-    Components.utils.import("resource:///modules/offlineAppCache.jsm");
-    OfflineAppCacheHelper.clear();
-
-    this.updateActualAppCacheSize();
-    this.updateOfflineApps();
-  },
-
-  // Retrieves the amount of space currently used by offline cache
-  updateActualAppCacheSize() {
-    var visitor = {
-      onCacheStorageInfo(aEntryCount, aConsumption, aCapacity, aDiskDirectory) {
-        var actualSizeLabel = document.getElementById("actualAppCacheSize");
-        var sizeStrings = DownloadUtils.convertByteUnits(aConsumption);
-        var prefStrBundle = document.getElementById("bundlePreferences");
-        // The XBL binding for the string bundle may have been destroyed if
-        // the page was closed before this callback was executed.
-        if (!prefStrBundle.getFormattedString) {
-          return;
-        }
-        var sizeStr = prefStrBundle.getFormattedString("actualAppCacheSize", sizeStrings);
-        actualSizeLabel.value = sizeStr;
-      }
-    };
-
-    try {
-      var cacheService =
-        Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
-                  .getService(Components.interfaces.nsICacheStorageService);
-      var storage = cacheService.appCacheStorage(LoadContextInfo.default, null);
-      storage.asyncVisitStorage(visitor, false);
-    } catch (e) {}
-  },
-
-  readOfflineNotify() {
-    var pref = document.getElementById("browser.offline-apps.notify");
-    var button = document.getElementById("offlineNotifyExceptions");
-    button.disabled = !pref.value;
-    return pref.value;
-  },
-
-  // XXX: duplicated in browser.js
-  _getOfflineAppUsage(perm, groups) {
-    let cacheService = Cc["@mozilla.org/network/application-cache-service;1"].
-                       getService(Ci.nsIApplicationCacheService);
-    if (!groups) {
-      try {
-        groups = cacheService.getGroups();
-      } catch (ex) {
-        return 0;
-      }
-    }
-
-    let usage = 0;
-    for (let group of groups) {
-      let uri = Services.io.newURI(group);
-      if (perm.matchesURI(uri, true)) {
-        let cache = cacheService.getActiveCache(group);
-        usage += cache.usage;
-      }
-    }
-
-    return usage;
-  },
-
-  /**
-   * Updates the list of offline applications
-   */
-  updateOfflineApps() {
-    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
-                       .getService(Components.interfaces.nsIPermissionManager);
-
-    var list = document.getElementById("offlineAppsList");
-    while (list.firstChild) {
-      list.firstChild.remove();
-    }
-
-    var groups;
-    try {
-      var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
-                         getService(Components.interfaces.nsIApplicationCacheService);
-      groups = cacheService.getGroups();
-    } catch (e) {
-      return;
-    }
-
-    var bundle = document.getElementById("bundlePreferences");
-
-    var enumerator = pm.enumerator;
-    while (enumerator.hasMoreElements()) {
-      var perm = enumerator.getNext().QueryInterface(Components.interfaces.nsIPermission);
-      if (perm.type == "offline-app" &&
-          perm.capability != Components.interfaces.nsIPermissionManager.DEFAULT_ACTION &&
-          perm.capability != Components.interfaces.nsIPermissionManager.DENY_ACTION) {
-        var row = document.createElement("listitem");
-        row.id = "";
-        row.className = "offlineapp";
-        row.setAttribute("origin", perm.principal.origin);
-        var converted = DownloadUtils.
-                        convertByteUnits(this._getOfflineAppUsage(perm, groups));
-        row.setAttribute("usage",
-                         bundle.getFormattedString("offlineAppUsage",
-                                                   converted));
-        list.appendChild(row);
-      }
-    }
-  },
-
-  removeOfflineApp() {
-    var list = document.getElementById("offlineAppsList");
-    var item = list.selectedItem;
-    var origin = item.getAttribute("origin");
-    var principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin(origin);
-
-    var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
-                            .getService(Components.interfaces.nsIPromptService);
-    var flags = prompts.BUTTON_TITLE_IS_STRING * prompts.BUTTON_POS_0 +
-                prompts.BUTTON_TITLE_CANCEL * prompts.BUTTON_POS_1;
-
-    var bundle = document.getElementById("bundlePreferences");
-    var title = bundle.getString("offlineAppRemoveTitle");
-    var prompt = bundle.getFormattedString("offlineAppRemovePrompt", [principal.URI.prePath]);
-    var confirm = bundle.getString("offlineAppRemoveConfirm");
-    var result = prompts.confirmEx(window, title, prompt, flags, confirm,
-                                   null, null, null, {});
-    if (result != 0)
-      return;
-
-    // get the permission
-    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
-                       .getService(Components.interfaces.nsIPermissionManager);
-    var perm = pm.getPermissionObject(principal, "offline-app", true);
-    if (perm) {
-      // clear offline cache entries
-      try {
-        var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
-                           getService(Components.interfaces.nsIApplicationCacheService);
-        var groups = cacheService.getGroups();
-        for (var i = 0; i < groups.length; i++) {
-          var uri = Services.io.newURI(groups[i]);
-          if (perm.matchesURI(uri, true)) {
-            var cache = cacheService.getActiveCache(groups[i]);
-            cache.discard();
-          }
-        }
-      } catch (e) {}
-
-      pm.removePermission(perm);
-    }
-    list.removeChild(item);
-    gPrivacyPane.offlineAppSelected();
-    this.updateActualAppCacheSize();
-  },
-  // Methods for Offline Apps (AppCache) end
-
-  observe(aSubject, aTopic, aData) {
-    switch (aTopic) {
-      case "sitedatamanager:updating-sites":
-        // While updating, we want to disable this section and display loading message until updated
-        this.toggleSiteData(false);
-        this.updateTotalDataSizeLabel(-1);
-        break;
-
-      case "sitedatamanager:sites-updated":
-        this.toggleSiteData(true);
-        SiteDataManager.getTotalUsage()
-          .then(this.updateTotalDataSizeLabel.bind(this));
-        break;
-    }
-  },
-
-  // Accessibility checkbox helpers
-  _initA11yState() {
-    this._initA11yString();
-    let checkbox = document.getElementById("a11yPrivacyCheckbox");
-    switch (Services.prefs.getIntPref("accessibility.force_disabled")) {
-      case 1: // access blocked
-        checkbox.checked = true;
-        break;
-      case -1: // a11y is forced on for testing
-      case 0: // access allowed
-        checkbox.checked = false;
-        break;
-    }
-  },
-
-  _initA11yString() {
-    let a11yLearnMoreLink =
-      Services.urlFormatter.formatURLPref("app.support.baseURL") +
-        "accessibility";
-    document.getElementById("a11yLearnMoreLink")
-            .setAttribute("href", a11yLearnMoreLink);
-  },
-
-  updateA11yPrefs(checked) {
-    Services.prefs.setIntPref("accessibility.force_disabled", checked ? 1 : 0);
-  }
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/privacy.xul
+++ /dev/null
@@ -1,862 +0,0 @@
-# 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/.
-
-<!-- Privacy panel -->
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content-new/privacy.js"/>
-
-<preferences id="privacyPreferences" hidden="true" data-category="panePrivacy">
-
-  <!-- Tracking -->
-  <preference id="privacy.trackingprotection.enabled"
-              name="privacy.trackingprotection.enabled"
-              type="bool"/>
-  <preference id="privacy.trackingprotection.pbmode.enabled"
-              name="privacy.trackingprotection.pbmode.enabled"
-              type="bool"/>
-
-  <!-- XXX button prefs -->
-  <preference id="pref.privacy.disable_button.cookie_exceptions"
-              name="pref.privacy.disable_button.cookie_exceptions"
-              type="bool"/>
-  <preference id="pref.privacy.disable_button.view_cookies"
-              name="pref.privacy.disable_button.view_cookies"
-              type="bool"/>
-  <preference id="pref.privacy.disable_button.change_blocklist"
-              name="pref.privacy.disable_button.change_blocklist"
-              type="bool"/>
-  <preference id="pref.privacy.disable_button.tracking_protection_exceptions"
-              name="pref.privacy.disable_button.tracking_protection_exceptions"
-              type="bool"/>
-
-  <!-- Location Bar -->
-  <preference id="browser.urlbar.autocomplete.enabled"
-              name="browser.urlbar.autocomplete.enabled"
-              type="bool"/>
-  <preference id="browser.urlbar.suggest.bookmark"
-              name="browser.urlbar.suggest.bookmark"
-              type="bool"/>
-  <preference id="browser.urlbar.suggest.history"
-              name="browser.urlbar.suggest.history"
-              type="bool"/>
-  <preference id="browser.urlbar.suggest.openpage"
-              name="browser.urlbar.suggest.openpage"
-              type="bool"/>
-
-  <!-- History -->
-  <preference id="places.history.enabled"
-              name="places.history.enabled"
-              type="bool"/>
-  <preference id="browser.formfill.enable"
-              name="browser.formfill.enable"
-              type="bool"/>
-  <preference id="privacy.history.custom"
-              name="privacy.history.custom"
-              type="bool"/>
-  <!-- Cookies -->
-  <preference id="network.cookie.cookieBehavior"
-              name="network.cookie.cookieBehavior"
-              type="int"/>
-  <preference id="network.cookie.lifetimePolicy"
-              name="network.cookie.lifetimePolicy"
-              type="int"/>
-  <preference id="network.cookie.blockFutureCookies"
-              name="network.cookie.blockFutureCookies"
-              type="bool"/>
-  <!-- Clear Private Data -->
-  <preference id="privacy.sanitize.sanitizeOnShutdown"
-              name="privacy.sanitize.sanitizeOnShutdown"
-              type="bool"/>
-  <preference id="privacy.sanitize.timeSpan"
-              name="privacy.sanitize.timeSpan"
-              type="int"/>
-  <!-- Private Browsing -->
-  <preference id="browser.privatebrowsing.autostart"
-              name="browser.privatebrowsing.autostart"
-              type="bool"/>
-  <!-- Do not track -->
-  <preference id="privacy.donottrackheader.enabled"
-              name="privacy.donottrackheader.enabled"
-              type="bool"/>
-  <!-- Popups -->
-  <preference id="dom.disable_open_during_load"
-              name="dom.disable_open_during_load"
-              type="bool"/>
-  <!-- Passwords -->
-  <preference id="signon.rememberSignons" name="signon.rememberSignons" type="bool"/>
-
-  <!-- XXX buttons -->
-  <preference id="pref.privacy.disable_button.view_passwords"
-              name="pref.privacy.disable_button.view_passwords"
-              type="bool"/>
-  <preference id="pref.privacy.disable_button.view_passwords_exceptions"
-              name="pref.privacy.disable_button.view_passwords_exceptions"
-              type="bool"/>
-
-  <!-- Certificates tab
-   * security.default_personal_cert
-     - a string:
-         "Select Automatically"   select a certificate automatically when a site
-                                  requests one
-         "Ask Every Time"         present a dialog to the user so he can select
-                                  the certificate to use on a site which
-                                  requests one -->
-  <preference id="security.default_personal_cert"
-              name="security.default_personal_cert"
-              type="string"/>
-
-  <preference id="security.disable_button.openCertManager"
-              name="security.disable_button.openCertManager"
-              type="bool"/>
-
-  <preference id="security.disable_button.openDeviceManager"
-              name="security.disable_button.openDeviceManager"
-              type="bool"/>
-
-  <preference id="security.OCSP.enabled"
-              name="security.OCSP.enabled"
-              type="int"/>
-
-  <!-- Add-ons, malware, phishing -->
-  <preference id="xpinstall.whitelist.required"
-              name="xpinstall.whitelist.required"
-              type="bool"/>
-
-  <preference id="browser.safebrowsing.malware.enabled"
-              name="browser.safebrowsing.malware.enabled"
-              type="bool"/>
-  <preference id="browser.safebrowsing.phishing.enabled"
-              name="browser.safebrowsing.phishing.enabled"
-              type="bool"/>
-
-  <preference id="browser.safebrowsing.downloads.enabled"
-              name="browser.safebrowsing.downloads.enabled"
-              type="bool"/>
-
-  <preference id="urlclassifier.malwareTable"
-              name="urlclassifier.malwareTable"
-              type="string"/>
-
-  <preference id="browser.safebrowsing.downloads.remote.block_potentially_unwanted"
-              name="browser.safebrowsing.downloads.remote.block_potentially_unwanted"
-              type="bool"/>
-  <preference id="browser.safebrowsing.downloads.remote.block_uncommon"
-              name="browser.safebrowsing.downloads.remote.block_uncommon"
-              type="bool"/>
-
-  <!-- Network tab -->
-  <preference id="browser.cache.disk.capacity"
-              name="browser.cache.disk.capacity"
-              type="int"/>
-  <preference id="browser.offline-apps.notify"
-              name="browser.offline-apps.notify"
-              type="bool"/>
-
-  <preference id="browser.cache.disk.smart_size.enabled"
-              name="browser.cache.disk.smart_size.enabled"
-              inverted="true"
-              type="bool"/>
-
-  <!-- Data Choices tab -->
-#ifdef MOZ_CRASHREPORTER
-  <preference id="browser.crashReports.unsubmittedCheck.autoSubmit"
-              name="browser.crashReports.unsubmittedCheck.autoSubmit"
-              type="bool"/>
-#endif
-
-</preferences>
-
-<stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
-<stringbundle id="signonBundle" src="chrome://passwordmgr/locale/passwordmgr.properties"/>
-
-<hbox id="browserPrivacyCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="panePrivacy">
-  <label class="header-name" flex="1">&browserPrivacy.label;</label>
-</hbox>
-
-<!-- Passwords -->
-<groupbox id="passwordsGroup" orient="vertical" data-category="panePrivacy" hidden="true">
-  <caption><label>&formsAndPasswords.label;</label></caption>
-
-  <vbox id="passwordSettings">
-    <hbox id="savePasswordsBox">
-      <checkbox id="savePasswords"
-                label="&rememberLogins2.label;" accesskey="&rememberLogins2.accesskey;"
-                preference="signon.rememberSignons"
-                onsyncfrompreference="return gPrivacyPane.readSavePasswords();"
-                flex="1" />
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox>
-        <button id="passwordExceptions"
-                class="accessory-button"
-                label="&passwordExceptions.label;"
-                accesskey="&passwordExceptions.accesskey;"
-                preference="pref.privacy.disable_button.view_passwords_exceptions"
-                searchkeywords="&address2.label;"/>
-      </hbox>
-    </hbox>
-    <hbox id="showPasswordBox" pack="end">
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox>
-        <button id="showPasswords"
-                class="accessory-button"
-                label="&savedLogins.label;" accesskey="&savedLogins.accesskey;"
-                preference="pref.privacy.disable_button.view_passwords"
-                searchkeywords="&savedLogins.title;"/>
-      </hbox>
-    </hbox>
-  </vbox>
-  <hbox id="masterPasswordRow">
-    <checkbox id="useMasterPassword"
-              label="&useMasterPassword.label;"
-              accesskey="&useMasterPassword.accesskey;"
-              flex="1"/>
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="changeMasterPassword"
-              class="accessory-button"
-              label="&changeMasterPassword.label;"
-              accesskey="&changeMasterPassword.accesskey;"/>
-    </hbox>
-  </hbox>
-</groupbox>
-
-<!-- History -->
-<groupbox id="historyGroup" data-category="panePrivacy" hidden="true">
-  <caption><label>&history.label;</label></caption>
-  <hbox align="center">
-    <label id="historyModeLabel"
-           control="historyMode"
-           accesskey="&historyHeader2.pre.accesskey;">&historyHeader2.pre.label;
-    </label>
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <menulist id="historyMode">
-        <menupopup>
-          <menuitem label="&historyHeader.remember.label;" value="remember" searchkeywords="&rememberDescription.label;
-                                                                                            &rememberActions.pre.label;
-                                                                                            &rememberActions.clearHistory.label;
-                                                                                            &rememberActions.middle.label;
-                                                                                            &rememberActions.removeCookies.label;
-                                                                                            &rememberActions.post.label;"/>
-          <menuitem label="&historyHeader.dontremember.label;" value="dontremember" searchkeywords="&dontrememberDescription.label;
-                                                                                                    &dontrememberActions.pre.label;
-                                                                                                    &dontrememberActions.clearHistory.label;
-                                                                                                    &dontrememberActions.post.label;"/>
-          <menuitem label="&historyHeader.custom.label;" value="custom" searchkeywords="&privateBrowsingPermanent2.label;
-                                                                                        &rememberHistory2.label;
-                                                                                        &rememberSearchForm.label;
-                                                                                        &acceptCookies2.label;
-                                                                                        &cookieExceptions.label;
-                                                                                        &acceptThirdParty2.pre.label;
-                                                                                        &acceptThirdParty.always.label;
-                                                                                        &acceptThirdParty.visited.label;
-                                                                                        &acceptThirdParty.never.label;
-                                                                                        &keepUntil2.label;
-                                                                                        &expire.label;
-                                                                                        &close.label;
-                                                                                        &showCookies.label;
-                                                                                        &clearOnClose.label;
-                                                                                        &clearOnCloseSettings.label;"/>
-        </menupopup>
-      </menulist>
-    </hbox>
-    <label>&historyHeader.post.label;</label>
-  </hbox>
-  <deck id="historyPane">
-    <vbox id="historyRememberPane">
-      <hbox align="center" flex="1">
-        <vbox flex="1">
-          <description>&rememberDescription.label;</description>
-          <separator class="thin"/>
-          <description>&rememberActions.pre.label;<label
-          class="text-link" id="historyRememberClear"
-          >&rememberActions.clearHistory.label;</label>&rememberActions.middle.label;<label
-          class="text-link" id="historyRememberCookies"
-          >&rememberActions.removeCookies.label;</label>&rememberActions.post.label;</description>
-        </vbox>
-      </hbox>
-    </vbox>
-    <vbox id="historyDontRememberPane">
-      <hbox align="center" flex="1">
-        <vbox flex="1">
-          <description>&dontrememberDescription.label;</description>
-          <separator class="thin"/>
-          <description>&dontrememberActions.pre.label;<label
-          class="text-link" id="historyDontRememberClear"
-          >&dontrememberActions.clearHistory.label;</label>&dontrememberActions.post.label;</description>
-        </vbox>
-      </hbox>
-    </vbox>
-    <vbox id="historyCustomPane">
-      <separator class="thin"/>
-      <vbox>
-        <checkbox id="privateBrowsingAutoStart"
-                  label="&privateBrowsingPermanent2.label;"
-                  accesskey="&privateBrowsingPermanent2.accesskey;"
-                  preference="browser.privatebrowsing.autostart"/>
-        <vbox class="indent">
-          <checkbox id="rememberHistory"
-                    label="&rememberHistory2.label;"
-                    accesskey="&rememberHistory2.accesskey;"
-                    preference="places.history.enabled"/>
-          <checkbox id="rememberForms"
-                    label="&rememberSearchForm.label;"
-                    accesskey="&rememberSearchForm.accesskey;"
-                    preference="browser.formfill.enable"/>
-          <hbox id="cookiesBox">
-            <checkbox id="acceptCookies" label="&acceptCookies2.label;"
-                      preference="network.cookie.cookieBehavior"
-                      accesskey="&acceptCookies2.accesskey;"
-                      onsyncfrompreference="return gPrivacyPane.readAcceptCookies();"
-                      onsynctopreference="return gPrivacyPane.writeAcceptCookies();"
-                      flex="1" />
-            <button id="cookieExceptions"
-                    class="accessory-button"
-                    label="&cookieExceptions.label;" accesskey="&cookieExceptions.accesskey;"
-                    preference="pref.privacy.disable_button.cookie_exceptions"/>
-          </hbox>
-          <hbox id="acceptThirdPartyRow"
-                class="indent"
-                align="center">
-            <label id="acceptThirdPartyLabel" control="acceptThirdPartyMenu"
-                   accesskey="&acceptThirdParty2.pre.accesskey;">&acceptThirdParty2.pre.label;</label>
-            <menulist id="acceptThirdPartyMenu" preference="network.cookie.cookieBehavior"
-            onsyncfrompreference="return gPrivacyPane.readAcceptThirdPartyCookies();"
-            onsynctopreference="return gPrivacyPane.writeAcceptThirdPartyCookies();">
-              <menupopup>
-                <menuitem label="&acceptThirdParty.always.label;" value="always"/>
-                <menuitem label="&acceptThirdParty.visited.label;" value="visited"/>
-                <menuitem label="&acceptThirdParty.never.label;" value="never"/>
-              </menupopup>
-            </menulist>
-          </hbox>
-          <hbox id="keepRow"
-                class="indent"
-                align="center">
-            <label id="keepUntil"
-                   control="keepCookiesUntil"
-                   accesskey="&keepUntil2.accesskey;">&keepUntil2.label;</label>
-            <menulist id="keepCookiesUntil"
-                      preference="network.cookie.lifetimePolicy">
-              <menupopup>
-                <menuitem label="&expire.label;" value="0"/>
-                <menuitem label="&close.label;" value="2"/>
-              </menupopup>
-            </menulist>
-            <spacer flex="1"/>
-            <button id="showCookiesButton"
-                    class="accessory-button"
-                    label="&showCookies.label;" accesskey="&showCookies.accesskey;"
-                    preference="pref.privacy.disable_button.view_cookies"/>
-          </hbox>
-          <hbox id="clearDataBox"
-                align="center">
-            <checkbox id="alwaysClear"
-                      preference="privacy.sanitize.sanitizeOnShutdown"
-                      label="&clearOnClose.label;"
-                      accesskey="&clearOnClose.accesskey;"
-                      flex="1" />
-            <button id="clearDataSettings"
-                    class="accessory-button"
-                    label="&clearOnCloseSettings.label;"
-                    accesskey="&clearOnCloseSettings.accesskey;"/>
-          </hbox>
-        </vbox>
-      </vbox>
-    </vbox>
-  </deck>
-</groupbox>
-
-<!-- Address Bar -->
-<groupbox id="locationBarGroup"
-          data-category="panePrivacy"
-          hidden="true">
-  <caption><label>&addressBar.label;</label></caption>
-  <label id="locationBarSuggestionLabel">&addressBar.suggest.label;</label>
-  <checkbox id="historySuggestion" label="&locbar.history2.label;"
-            accesskey="&locbar.history2.accesskey;"
-            preference="browser.urlbar.suggest.history"/>
-  <checkbox id="bookmarkSuggestion" label="&locbar.bookmarks.label;"
-            accesskey="&locbar.bookmarks.accesskey;"
-            preference="browser.urlbar.suggest.bookmark"/>
-  <checkbox id="openpageSuggestion" label="&locbar.openpage.label;"
-            accesskey="&locbar.openpage.accesskey;"
-            preference="browser.urlbar.suggest.openpage"/>
-  <label class="text-link" onclick="gotoPref('search')">
-    &suggestionSettings2.label;
-  </label>
-</groupbox>
-
-<!-- Cache -->
-<groupbox id="cacheGroup" data-category="panePrivacy" hidden="true">
-  <caption><label>&httpCache.label;</label></caption>
-
-  <hbox align="center">
-    <label id="actualDiskCacheSize" flex="1"/>
-    <button id="clearCacheButton"
-            class="accessory-button"
-            icon="clear"
-            label="&clearCacheNow.label;" accesskey="&clearCacheNow.accesskey;"/>
-  </hbox>
-  <checkbox preference="browser.cache.disk.smart_size.enabled"
-            id="allowSmartSize"
-            onsyncfrompreference="return gPrivacyPane.readSmartSizeEnabled();"
-            label="&overrideSmartCacheSize.label;"
-            accesskey="&overrideSmartCacheSize.accesskey;"/>
-  <hbox align="center" class="indent">
-    <label id="useCacheBefore" control="cacheSize"
-            accesskey="&limitCacheSizeBefore.accesskey;">
-      &limitCacheSizeBefore.label;
-    </label>
-    <textbox id="cacheSize" type="number" size="4" max="1024"
-              aria-labelledby="useCacheBefore cacheSize useCacheAfter"/>
-    <label id="useCacheAfter" flex="1">&limitCacheSizeAfter.label;</label>
-  </hbox>
-</groupbox>
-
-<!-- Site Data -->
-<groupbox id="siteDataGroup" hidden="true" data-category="panePrivacy" data-hidden-from-search="true">
-  <caption><label>&siteData.label;</label></caption>
-
-  <hbox align="baseline">
-    <vbox flex="1">
-      <description flex="1">
-        <label id="totalSiteDataSize"></label>
-        <label id="siteDataLearnMoreLink" class="learnMore text-link">&siteDataLearnMoreLink.label;</label>
-      </description>
-    </vbox>
-    <vbox align="end">
-      <button id="siteDataSettings"
-              class="accessory-button"
-              label="&siteDataSettings.label;"
-              accesskey="&siteDataSettings.accesskey;"
-              searchkeywords="&window.title;
-                              &hostCol.label;
-                              &statusCol.label;
-                              &usageCol.label;"/>
-      <button id="clearSiteDataButton"
-          class="accessory-button"
-          icon="clear"
-          label="&clearSiteData.label;" accesskey="&clearSiteData.accesskey;"/>
-    </vbox>
-  </hbox>
-</groupbox>
-
-<!-- Tracking -->
-<groupbox id="trackingGroup" data-category="panePrivacy" hidden="true">
-  <caption><label>&trackingProtectionHeader2.label;</label></caption>
-  <vbox>
-    <hbox align="start">
-      <vbox flex="1">
-        <description>
-          &trackingProtection2.description;
-        </description>
-      </vbox>
-      <spacer flex="1"/>
-    </hbox>
-    <hbox>
-      <vbox id="trackingProtectionBox" flex="1" hidden="true">
-        <description id="trackingProtectionDesc"
-                     control="trackingProtectionRadioGroup">
-          &trackingProtection2.radioGroupLabel;
-           <label id="trackingProtectionLearnMore" class="learnMore text-link">&trackingProtectionLearnMore.label;</label>
-        </description>
-        <radiogroup id="trackingProtectionRadioGroup" aria-labelledby="trackingProtectionDesc">
-          <radio value="always"
-                 label="&trackingProtectionAlways.label;"
-                 accesskey="&trackingProtectionAlways.accesskey;"/>
-          <radio value="private"
-                 label="&trackingProtectionPrivate.label;"
-                 accesskey="&trackingProtectionPrivate.accesskey;"/>
-          <radio value="never"
-                 label="&trackingProtectionNever.label;"
-                 accesskey="&trackingProtectionNever.accesskey;"/>
-        </radiogroup>
-      </vbox>
-      <vbox id="trackingProtectionPBMBox" flex="1">
-        <hbox align="center">
-          <checkbox id="trackingProtectionPBM"
-                    preference="privacy.trackingprotection.pbmode.enabled"
-                    accesskey="&trackingProtectionPBM6.accesskey;"/>
-          <label flex="1">&trackingProtectionPBM6.label;<label id="trackingProtectionPBMLearnMore"
-                 class="learnMore text-link">&trackingProtectionPBMLearnMore.label;</label>
-          </label>
-        </hbox>
-      </vbox>
-      <vbox id="trackingProtectionAdvancedSettings">
-        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-        <hbox>
-          <button id="trackingProtectionExceptions"
-                  class="accessory-button"
-                  flex="1"
-                  hidden="true"
-                  label="&trackingProtectionExceptions.label;"
-                  accesskey="&trackingProtectionExceptions.accesskey;"
-                  preference="pref.privacy.disable_button.tracking_protection_exceptions"
-                  searchkeywords="&removepermission2.label;
-                                  &removeallpermissions2.label;
-                                  &button.cancel.label;
-                                  &button.ok.label;"/>
-        </hbox>
-        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-        <hbox>
-          <button id="changeBlockList"
-                  class="accessory-button"
-                  flex="1"
-                  label="&changeBlockList2.label;"
-                  accesskey="&changeBlockList2.accesskey;"
-                  preference="pref.privacy.disable_button.change_blocklist"
-                  searchkeywords="&button.cancel.label; &button.ok.label;"/>
-        </hbox>
-      </vbox>
-    </hbox>
-    <vbox id="doNotTrackLearnMoreBox">
-      <label>&doNotTrack.description;<label
-      class="learnMore text-link" href="https://www.mozilla.org/dnt"
-      >&doNotTrack.learnMore.label;</label></label>
-      <radiogroup id="doNotTrackRadioGroup" aria-labelledby="doNotTrackDesc" preference="privacy.donottrackheader.enabled">
-        <radio value="false" label="&doNotTrack.default.label;"/>
-        <radio value="true" label="&doNotTrack.always.label;"/>
-      </radiogroup>
-    </vbox>
-  </vbox>
-</groupbox>
-
-<hbox id="permissionsCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="panePrivacy">
-  <label class="header-name" flex="1">&permissions.label;</label>
-</hbox>
-
-<!-- Permissions -->
-<groupbox id="permissionsGroup" data-category="panePrivacy" hidden="true">
-  <caption class="search-header" hidden="true"><label>&permissions.label;</label></caption>
-
-  <grid>
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows>
-      <row id="locationSettingsRow" align="center">
-        <description flex="1">
-          <image class="geo-icon permission-icon" />
-          <separator orient="vertical" class="thin"/>
-          <label id="locationPermissionsLabel">&locationPermissions.label;</label>
-        </description>
-        <hbox pack="end">
-          <button id="locationSettingsButton"
-                  class="accessory-button"
-                  label="&locationSettingsButton.label;"
-                  accesskey="&locationSettingsButton.accesskey;"
-                  searchkeywords="&removepermission2.label;
-                                  &removeallpermissions2.label;
-                                  &button.cancel.label;
-                                  &button.ok.label;"/>
-        </hbox>
-      </row>
-
-      <row id="cameraSettingsRow" align="center">
-        <description flex="1">
-          <image class="camera-icon permission-icon" />
-          <separator orient="vertical" class="thin"/>
-          <label id="cameraPermissionsLabel">&cameraPermissions.label;</label>
-        </description>
-        <hbox pack="end">
-          <button id="cameraSettingsButton"
-                  class="accessory-button"
-                  label="&cameraSettingsButton.label;"
-                  accesskey="&cameraSettingsButton.accesskey;"
-                  searchkeywords="&removepermission2.label;
-                                  &removeallpermissions2.label;
-                                  &button.cancel.label;
-                                  &button.ok.label;"/>
-        </hbox>
-      </row>
-
-      <row id="microphoneSettingsRow" align="center">
-        <description flex="1">
-          <image class="microphone-icon permission-icon" />
-          <separator orient="vertical" class="thin"/>
-          <label id="microphonePermissionsLabel">&microphonePermissions.label;</label>
-        </description>
-        <hbox pack="end">
-          <button id="microphoneSettingsButton"
-                  class="accessory-button"
-                  label="&microphoneSettingsButton.label;"
-                  accesskey="&microphoneSettingsButton.accesskey;"
-                  searchkeywords="&removepermission2.label;
-                                  &removeallpermissions2.label;
-                                  &button.cancel.label;
-                                  &button.ok.label;"/>
-        </hbox>
-      </row>
-
-      <row id="notificationSettingsRow" align="center">
-        <description flex="1">
-          <image class="desktop-notification-icon permission-icon" />
-          <separator orient="vertical" class="thin"/>
-          <label id="notificationPermissionsLabel">&notificationPermissions.label;</label>
-          <label id="notificationPermissionsLearnMore"
-                 class="learnMore text-link">&notificationPermissionsLearnMore.label;</label>
-        </description>
-        <hbox pack="end">
-          <button id="notificationSettingsButton"
-                  class="accessory-button"
-                  label="&notificationSettingsButton.label;"
-                  accesskey="&notificationSettingsButton.accesskey;"
-                  searchkeywords="&removepermission2.label;
-                                  &removeallpermissions2.label;
-                                  &button.cancel.label;
-                                  &button.ok.label;"/>
-        </hbox>
-      </row>
-    </rows>
-  </grid>
-
-  <separator flex="1"/>
-
-  <vbox id="notificationsDoNotDisturbBox" hidden="true">
-    <checkbox id="notificationsDoNotDisturb" label="&notificationsDoNotDisturb.label;"
-              accesskey="&notificationsDoNotDisturb.accesskey;"/>
-    <label id="notificationsDoNotDisturbDetails"
-           class="indent">&notificationsDoNotDisturbDetails.value;</label>
-  </vbox>
-
-  <hbox align="start">
-    <checkbox id="popupPolicy" preference="dom.disable_open_during_load"
-              label="&blockPopups.label;" accesskey="&blockPopups.accesskey;"
-              onsyncfrompreference="return gPrivacyPane.updateButtons('popupPolicyButton',
-                                         'dom.disable_open_during_load');"
-              flex="1" />
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="popupPolicyButton"
-              class="accessory-button"
-              label="&popupExceptions.label;"
-              accesskey="&popupExceptions.accesskey;"
-              searchkeywords="&address2.label; &button.cancel.label; &button.ok.label;"/>
-    </hbox>
-  </hbox>
-
-  <hbox id="addonInstallBox">
-    <checkbox id="warnAddonInstall"
-              label="&warnOnAddonInstall2.label;"
-              accesskey="&warnOnAddonInstall2.accesskey;"
-              preference="xpinstall.whitelist.required"
-              onsyncfrompreference="return gPrivacyPane.readWarnAddonInstall();"
-              flex="1" />
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="addonExceptions"
-              class="accessory-button"
-              label="&addonExceptions.label;"
-              accesskey="&addonExceptions.accesskey;"
-              searchkeywords="&address2.label;
-                              &allow.label;
-                              &removepermission2.label;
-                              &removeallpermissions2.label;
-                              &button.cancel.label;
-                              &button.ok.label;"/>
-    </hbox>
-  </hbox>
-
-  <vbox id="a11yPermissionsBox">
-    <description flex="1">
-      <checkbox id="a11yPrivacyCheckbox" label="&a11yPrivacy.checkbox.label;"
-                accesskey="&a11yPrivacy.checkbox.accesskey;"
-                oncommand="return gPrivacyPane.updateA11yPrefs(this.checked)"/>
-      <label id="a11yLearnMoreLink" class="learnMore text-link"
-              value="&a11yPrivacy.learnmore.label;"></label>
-    </description>
-  </vbox>
-</groupbox>
-
-<hbox id="dataCollectionCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="panePrivacy"
-      data-subcategory="reports">
-  <label class="header-name" flex="1">&dataCollection.label;</label>
-</hbox>
-
-<!-- Firefox Data Collection and Use -->
-#ifdef MOZ_DATA_REPORTING
-<groupbox id="dataCollectionGroup" data-category="panePrivacy" data-subcategory="reports" hidden="true">
-  <caption class="search-header" hidden="true"><label>&dataCollection.label;</label></caption>
-
-  <vbox>
-    <description>
-      &dataCollectionDesc.label;<label id="dataCollectionPrivacyNotice" class="learnMore text-link">&dataCollectionPrivacyNotice.label;</label>
-    </description>
-    <description flex="1">
-      <checkbox id="submitHealthReportBox" label="&enableHealthReport1.label;"
-                accesskey="&enableHealthReport1.accesskey;"/>
-      <label id="FHRLearnMore"
-             class="learnMore text-link">&healthReportLearnMore.label;</label>
-    </description>
-#ifndef MOZ_TELEMETRY_REPORTING
-    <description id="TelemetryDisabledDesc" class="indent" control="telemetryGroup">&healthReportingDisabled.label;</description>
-#endif
-  </vbox>
-#ifdef MOZ_CRASHREPORTER
-  <hbox align="center">
-    <checkbox id="automaticallySubmitCrashesBox"
-              preference="browser.crashReports.unsubmittedCheck.autoSubmit"
-              label="&alwaysSubmitCrashReports1.label;"
-              accesskey="&alwaysSubmitCrashReports1.accesskey;"/>
-    <label id="crashReporterLearnMore"
-           class="learnMore text-link">&crashReporterLearnMore.label;</label>
-  </hbox>
-#endif
-</groupbox>
-#endif
-
-<hbox id="securityCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="panePrivacy">
-  <label class="header-name" flex="1">&security.label;</label>
-</hbox>
-
-<!-- addons, forgery (phishing) UI Security -->
-<groupbox id="addonsPhishingGroup" data-category="panePrivacy" hidden="true">
-  <caption><label>&phishingProtection.label;</label></caption>
-  <checkbox id="enableSafeBrowsing"
-            label="&enableSafeBrowsing.label;"
-            accesskey="&enableSafeBrowsing.accesskey;" />
-  <vbox class="indent">
-    <checkbox id="blockDownloads"
-              label="&blockDownloads.label;"
-              accesskey="&blockDownloads.accesskey;" />
-    <checkbox id="blockUncommonUnwanted"
-              label="&blockUncommonAndUnwanted.label;"
-              accesskey="&blockUncommonAndUnwanted.accesskey;" />
-  </vbox>
-</groupbox>
-
-<!-- Certificates -->
-<groupbox id="certSelection" data-category="panePrivacy" hidden="true">
-  <caption><label>&certificateTab.label;</label></caption>
-  <description id="CertSelectionDesc" control="certSelection">&certPersonal2.description;</description>
-
-  <!--
-    The values on these radio buttons may look like l10n issues, but
-    they're not - this preference uses *those strings* as its values.
-    I KID YOU NOT.
-  -->
-  <radiogroup id="certSelection"
-              preftype="string"
-              preference="security.default_personal_cert"
-              aria-labelledby="CertSelectionDesc">
-    <radio label="&selectCerts.auto;"
-           accesskey="&selectCerts.auto.accesskey;"
-           value="Select Automatically"/>
-    <radio label="&selectCerts.ask;"
-           accesskey="&selectCerts.ask.accesskey;"
-           value="Ask Every Time"/>
-  </radiogroup>
-  <hbox align="start">
-    <checkbox id="enableOCSP"
-              label="&enableOCSP.label;"
-              accesskey="&enableOCSP.accesskey;"
-              onsyncfrompreference="return gPrivacyPane.readEnableOCSP();"
-              onsynctopreference="return gPrivacyPane.writeEnableOCSP();"
-              preference="security.OCSP.enabled"
-              flex="1" />
-    <vbox>
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox pack="end">
-        <button id="viewCertificatesButton"
-                class="accessory-button"
-                label="&viewCerts2.label;"
-                accesskey="&viewCerts2.accesskey;"
-                preference="security.disable_button.openCertManager"
-                searchkeywords="&certmgr.tab.mine;
-                                &certmgr.tab.others2;
-                                &certmgr.tab.websites3;
-                                &certmgr.tab.ca;
-                                &certmgr.tab.orphan2;
-                                &certmgr.mine2;
-                                &certmgr.others2;
-                                &certmgr.websites3;
-                                &certmgr.cas2;
-                                &certmgr.orphans2;
-                                &certmgr.certname;
-                                &certmgr.tokenname;
-                                &certmgr.view2.label;
-                                &certmgr.export.label;
-                                &certmgr.delete2.label;"/>
-      </hbox>
-      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-      <hbox pack="end">
-        <button id="viewSecurityDevicesButton"
-                class="accessory-button"
-                label="&viewSecurityDevices2.label;"
-                accesskey="&viewSecurityDevices2.accesskey;"
-                preference="security.disable_button.openDeviceManager"
-                searchkeywords="&devmgr.title;
-                                &devmgr.devlist.label;
-                                &devmgr.details.title;
-                                &devmgr.details.title2;
-                                &devmgr.button.login.label;
-                                &devmgr.button.logout.label;
-                                &devmgr.button.changepw.label;
-                                &devmgr.button.load.label;
-                                &devmgr.button.unload.label;"/>
-      </hbox>
-    </vbox>
-  </hbox>
-</groupbox>
-
-<!-- Offline apps -->
-<groupbox id="offlineGroup" data-category="panePrivacy" hidden="true" data-hidden-from-search="true">
-  <caption><label>&offlineStorage2.label;</label></caption>
-
-  <hbox align="center">
-    <label id="actualAppCacheSize" flex="1"/>
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="clearOfflineAppCacheButton"
-              class="accessory-button"
-              icon="clear"
-              label="&clearOfflineAppCacheNow.label;" accesskey="&clearOfflineAppCacheNow.accesskey;"/>
-    </hbox>
-  </hbox>
-  <hbox align="center">
-    <checkbox id="offlineNotify"
-              label="&offlineStorageNotify.label;" accesskey="&offlineStorageNotify.accesskey;"
-              preference="browser.offline-apps.notify"
-              onsyncfrompreference="return gPrivacyPane.readOfflineNotify();"
-              flex="1" />
-    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-    <hbox>
-      <button id="offlineNotifyExceptions"
-              class="accessory-button"
-              label="&offlineStorageNotifyExceptions.label;"
-              accesskey="&offlineStorageNotifyExceptions.accesskey;"/>
-    </hbox>
-  </hbox>
-  <hbox>
-    <vbox flex="1">
-      <label id="offlineAppsListLabel">&offlineAppsList3.label;</label>
-      <listbox id="offlineAppsList"
-              flex="1"
-              aria-labelledby="offlineAppsListLabel">
-      </listbox>
-    </vbox>
-    <vbox pack="end">
-      <button id="offlineAppsListRemove"
-              class="accessory-button"
-              disabled="true"
-              label="&offlineAppsListRemove.label;"
-              accesskey="&offlineAppsListRemove.accesskey;"/>
-    </vbox>
-  </hbox>
-</groupbox>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/search.js
+++ /dev/null
@@ -1,604 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
-                                  "resource://gre/modules/PlacesUtils.jsm");
-
-const ENGINE_FLAVOR = "text/x-moz-search-engine";
-
-var gEngineView = null;
-
-var gSearchPane = {
-
-  /**
-   * Initialize autocomplete to ensure prefs are in sync.
-   */
-  _initAutocomplete() {
-    Components.classes["@mozilla.org/autocomplete/search;1?name=unifiedcomplete"]
-              .getService(Components.interfaces.mozIPlacesAutoComplete);
-  },
-
-  init() {
-    gEngineView = new EngineView(new EngineStore());
-    document.getElementById("engineList").view = gEngineView;
-    this.buildDefaultEngineDropDown();
-
-    let addEnginesLink = document.getElementById("addEngines");
-    let searchEnginesURL = Services.wm.getMostRecentWindow("navigator:browser")
-                                      .BrowserSearch.searchEnginesURL;
-    addEnginesLink.setAttribute("href", searchEnginesURL);
-
-    window.addEventListener("click", this);
-    window.addEventListener("command", this);
-    window.addEventListener("dragstart", this);
-    window.addEventListener("keypress", this);
-    window.addEventListener("select", this);
-    window.addEventListener("blur", this, true);
-
-    Services.obs.addObserver(this, "browser-search-engine-modified");
-    window.addEventListener("unload", () => {
-      Services.obs.removeObserver(this, "browser-search-engine-modified");
-    });
-
-    this._initAutocomplete();
-
-    let suggestsPref =
-      document.getElementById("browser.search.suggest.enabled");
-    suggestsPref.addEventListener("change", () => {
-      this.updateSuggestsCheckbox();
-    });
-    this.updateSuggestsCheckbox();
-  },
-
-  updateSuggestsCheckbox() {
-    let suggestsPref =
-      document.getElementById("browser.search.suggest.enabled");
-    let permanentPB =
-      Services.prefs.getBoolPref("browser.privatebrowsing.autostart");
-    let urlbarSuggests = document.getElementById("urlBarSuggestion");
-    urlbarSuggests.disabled = !suggestsPref.value || permanentPB;
-
-    let urlbarSuggestsPref =
-      document.getElementById("browser.urlbar.suggest.searches");
-    urlbarSuggests.checked = urlbarSuggestsPref.value;
-    if (urlbarSuggests.disabled) {
-      urlbarSuggests.checked = false;
-    }
-
-    let permanentPBLabel =
-      document.getElementById("urlBarSuggestionPermanentPBLabel");
-    permanentPBLabel.hidden = urlbarSuggests.hidden || !permanentPB;
-  },
-
-  buildDefaultEngineDropDown() {
-    // This is called each time something affects the list of engines.
-    let list = document.getElementById("defaultEngine");
-    // Set selection to the current default engine.
-    let currentEngine = Services.search.currentEngine.name;
-
-    // If the current engine isn't in the list any more, select the first item.
-    let engines = gEngineView._engineStore._engines;
-    if (!engines.some(e => e.name == currentEngine))
-      currentEngine = engines[0].name;
-
-    // Now clean-up and rebuild the list.
-    list.removeAllItems();
-    gEngineView._engineStore._engines.forEach(e => {
-      let item = list.appendItem(e.name);
-      item.setAttribute("class", "menuitem-iconic searchengine-menuitem menuitem-with-favicon");
-      if (e.iconURI) {
-        item.setAttribute("image", e.iconURI.spec);
-      }
-      item.engine = e;
-      if (e.name == currentEngine)
-        list.selectedItem = item;
-    });
-  },
-
-  handleEvent(aEvent) {
-    switch (aEvent.type) {
-      case "click":
-        if (aEvent.target.id != "engineChildren" &&
-            !aEvent.target.classList.contains("searchEngineAction")) {
-          let engineList = document.getElementById("engineList");
-          // We don't want to toggle off selection while editing keyword
-          // so proceed only when the input field is hidden.
-          // We need to check that engineList.view is defined here
-          // because the "click" event listener is on <window> and the
-          // view might have been destroyed if the pane has been navigated
-          // away from.
-          if (engineList.inputField.hidden && engineList.view) {
-            let selection = engineList.view.selection;
-            if (selection.count > 0) {
-              selection.toggleSelect(selection.currentIndex);
-            }
-            engineList.blur();
-          }
-        }
-        break;
-      case "command":
-        switch (aEvent.target.id) {
-          case "":
-            if (aEvent.target.parentNode &&
-                aEvent.target.parentNode.parentNode &&
-                aEvent.target.parentNode.parentNode.id == "defaultEngine") {
-              gSearchPane.setDefaultEngine();
-            }
-            break;
-          case "restoreDefaultSearchEngines":
-            gSearchPane.onRestoreDefaults();
-            break;
-          case "removeEngineButton":
-            Services.search.removeEngine(gEngineView.selectedEngine.originalEngine);
-            break;
-        }
-        break;
-      case "dragstart":
-        if (aEvent.target.id == "engineChildren") {
-          onDragEngineStart(aEvent);
-        }
-        break;
-      case "keypress":
-        if (aEvent.target.id == "engineList") {
-          gSearchPane.onTreeKeyPress(aEvent);
-        }
-        break;
-      case "select":
-        if (aEvent.target.id == "engineList") {
-          gSearchPane.onTreeSelect();
-        }
-        break;
-      case "blur":
-        if (aEvent.target.id == "engineList" &&
-            aEvent.target.inputField == document.getBindingParent(aEvent.originalTarget)) {
-          gSearchPane.onInputBlur();
-        }
-        break;
-    }
-  },
-
-  observe(aEngine, aTopic, aVerb) {
-    if (aTopic == "browser-search-engine-modified") {
-      aEngine.QueryInterface(Components.interfaces.nsISearchEngine);
-      switch (aVerb) {
-      case "engine-added":
-        gEngineView._engineStore.addEngine(aEngine);
-        gEngineView.rowCountChanged(gEngineView.lastIndex, 1);
-        gSearchPane.buildDefaultEngineDropDown();
-        break;
-      case "engine-changed":
-        gEngineView._engineStore.reloadIcons();
-        gEngineView.invalidate();
-        break;
-      case "engine-removed":
-        gSearchPane.remove(aEngine);
-        break;
-      case "engine-current":
-        // If the user is going through the drop down using up/down keys, the
-        // dropdown may still be open (eg. on Windows) when engine-current is
-        // fired, so rebuilding the list unconditionally would get in the way.
-        let selectedEngine =
-          document.getElementById("defaultEngine").selectedItem.engine;
-        if (selectedEngine.name != aEngine.name)
-          gSearchPane.buildDefaultEngineDropDown();
-        break;
-      case "engine-default":
-        // Not relevant
-        break;
-      }
-    }
-  },
-
-  onInputBlur(aEvent) {
-    let tree = document.getElementById("engineList");
-    if (!tree.hasAttribute("editing"))
-      return;
-
-    // Accept input unless discarded.
-    let accept = aEvent.charCode != KeyEvent.DOM_VK_ESCAPE;
-    tree.stopEditing(accept);
-  },
-
-  onTreeSelect() {
-    document.getElementById("removeEngineButton").disabled =
-      !gEngineView.isEngineSelectedAndRemovable();
-  },
-
-  onTreeKeyPress(aEvent) {
-    let index = gEngineView.selectedIndex;
-    let tree = document.getElementById("engineList");
-    if (tree.hasAttribute("editing"))
-      return;
-
-    if (aEvent.charCode == KeyEvent.DOM_VK_SPACE) {
-      // Space toggles the checkbox.
-      let newValue = !gEngineView._engineStore.engines[index].shown;
-      gEngineView.setCellValue(index, tree.columns.getFirstColumn(),
-                               newValue.toString());
-      // Prevent page from scrolling on the space key.
-      aEvent.preventDefault();
-    } else {
-      let isMac = Services.appinfo.OS == "Darwin";
-      if ((isMac && aEvent.keyCode == KeyEvent.DOM_VK_RETURN) ||
-          (!isMac && aEvent.keyCode == KeyEvent.DOM_VK_F2)) {
-        tree.startEditing(index, tree.columns.getLastColumn());
-      } else if (aEvent.keyCode == KeyEvent.DOM_VK_DELETE ||
-                 (isMac && aEvent.shiftKey &&
-                  aEvent.keyCode == KeyEvent.DOM_VK_BACK_SPACE &&
-                  gEngineView.isEngineSelectedAndRemovable())) {
-        // Delete and Shift+Backspace (Mac) removes selected engine.
-        Services.search.removeEngine(gEngineView.selectedEngine.originalEngine);
-     }
-    }
-  },
-
-  onRestoreDefaults() {
-    let num = gEngineView._engineStore.restoreDefaultEngines();
-    gEngineView.rowCountChanged(0, num);
-    gEngineView.invalidate();
-  },
-
-  showRestoreDefaults(aEnable) {
-    document.getElementById("restoreDefaultSearchEngines").disabled = !aEnable;
-  },
-
-  remove(aEngine) {
-    let index = gEngineView._engineStore.removeEngine(aEngine);
-    gEngineView.rowCountChanged(index, -1);
-    gEngineView.invalidate();
-    gEngineView.selection.select(Math.min(index, gEngineView.lastIndex));
-    gEngineView.ensureRowIsVisible(gEngineView.currentIndex);
-    document.getElementById("engineList").focus();
-  },
-
-  async editKeyword(aEngine, aNewKeyword) {
-    let keyword = aNewKeyword.trim();
-    if (keyword) {
-      let eduplicate = false;
-      let dupName = "";
-
-      // Check for duplicates in Places keywords.
-      let bduplicate = !!(await PlacesUtils.keywords.fetch(keyword));
-
-      // Check for duplicates in changes we haven't committed yet
-      let engines = gEngineView._engineStore.engines;
-      let lc_keyword = keyword.toLocaleLowerCase();
-      for (let engine of engines) {
-        if (engine.alias &&
-            engine.alias.toLocaleLowerCase() == lc_keyword &&
-            engine.name != aEngine.name) {
-          eduplicate = true;
-          dupName = engine.name;
-          break;
-        }
-      }
-
-      // Notify the user if they have chosen an existing engine/bookmark keyword
-      if (eduplicate || bduplicate) {
-        let strings = document.getElementById("engineManagerBundle");
-        let dtitle = strings.getString("duplicateTitle");
-        let bmsg = strings.getString("duplicateBookmarkMsg");
-        let emsg = strings.getFormattedString("duplicateEngineMsg", [dupName]);
-
-        Services.prompt.alert(window, dtitle, eduplicate ? emsg : bmsg);
-        return false;
-      }
-    }
-
-    gEngineView._engineStore.changeEngine(aEngine, "alias", keyword);
-    gEngineView.invalidate();
-    return true;
-  },
-
-  saveOneClickEnginesList() {
-    let hiddenList = [];
-    for (let engine of gEngineView._engineStore.engines) {
-      if (!engine.shown)
-        hiddenList.push(engine.name);
-    }
-    document.getElementById("browser.search.hiddenOneOffs").value =
-      hiddenList.join(",");
-  },
-
-  setDefaultEngine() {
-    Services.search.currentEngine =
-      document.getElementById("defaultEngine").selectedItem.engine;
-  }
-};
-
-function onDragEngineStart(event) {
-  var selectedIndex = gEngineView.selectedIndex;
-  var tree = document.getElementById("engineList");
-  var row = { }, col = { }, child = { };
-  tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child);
-  if (selectedIndex >= 0 && !gEngineView.isCheckBox(row.value, col.value)) {
-    event.dataTransfer.setData(ENGINE_FLAVOR, selectedIndex.toString());
-    event.dataTransfer.effectAllowed = "move";
-  }
-}
-
-
-function EngineStore() {
-  let pref = document.getElementById("browser.search.hiddenOneOffs").value;
-  this.hiddenList = pref ? pref.split(",") : [];
-
-  this._engines = Services.search.getVisibleEngines().map(this._cloneEngine, this);
-  this._defaultEngines = Services.search.getDefaultEngines().map(this._cloneEngine, this);
-
-  // check if we need to disable the restore defaults button
-  var someHidden = this._defaultEngines.some(e => e.hidden);
-  gSearchPane.showRestoreDefaults(someHidden);
-}
-EngineStore.prototype = {
-  _engines: null,
-  _defaultEngines: null,
-
-  get engines() {
-    return this._engines;
-  },
-  set engines(val) {
-    this._engines = val;
-    return val;
-  },
-
-  _getIndexForEngine(aEngine) {
-    return this._engines.indexOf(aEngine);
-  },
-
-  _getEngineByName(aName) {
-    return this._engines.find(engine => engine.name == aName);
-  },
-
-  _cloneEngine(aEngine) {
-    var clonedObj = {};
-    for (var i in aEngine)
-      clonedObj[i] = aEngine[i];
-    clonedObj.originalEngine = aEngine;
-    clonedObj.shown = this.hiddenList.indexOf(clonedObj.name) == -1;
-    return clonedObj;
-  },
-
-  // Callback for Array's some(). A thisObj must be passed to some()
-  _isSameEngine(aEngineClone) {
-    return aEngineClone.originalEngine == this.originalEngine;
-  },
-
-  addEngine(aEngine) {
-    this._engines.push(this._cloneEngine(aEngine));
-  },
-
-  moveEngine(aEngine, aNewIndex) {
-    if (aNewIndex < 0 || aNewIndex > this._engines.length - 1)
-      throw new Error("ES_moveEngine: invalid aNewIndex!");
-    var index = this._getIndexForEngine(aEngine);
-    if (index == -1)
-      throw new Error("ES_moveEngine: invalid engine?");
-
-    if (index == aNewIndex)
-      return; // nothing to do
-
-    // Move the engine in our internal store
-    var removedEngine = this._engines.splice(index, 1)[0];
-    this._engines.splice(aNewIndex, 0, removedEngine);
-
-    Services.search.moveEngine(aEngine.originalEngine, aNewIndex);
-  },
-
-  removeEngine(aEngine) {
-    if (this._engines.length == 1) {
-      throw new Error("Cannot remove last engine!");
-    }
-
-    let engineName = aEngine.name;
-    let index = this._engines.findIndex(element => element.name == engineName);
-
-    if (index == -1)
-      throw new Error("invalid engine?");
-
-    let removedEngine = this._engines.splice(index, 1)[0];
-
-    if (this._defaultEngines.some(this._isSameEngine, removedEngine))
-      gSearchPane.showRestoreDefaults(true);
-    gSearchPane.buildDefaultEngineDropDown();
-    return index;
-  },
-
-  restoreDefaultEngines() {
-    var added = 0;
-
-    for (var i = 0; i < this._defaultEngines.length; ++i) {
-      var e = this._defaultEngines[i];
-
-      // If the engine is already in the list, just move it.
-      if (this._engines.some(this._isSameEngine, e)) {
-        this.moveEngine(this._getEngineByName(e.name), i);
-      } else {
-        // Otherwise, add it back to our internal store
-
-        // The search service removes the alias when an engine is hidden,
-        // so clear any alias we may have cached before unhiding the engine.
-        e.alias = "";
-
-        this._engines.splice(i, 0, e);
-        let engine = e.originalEngine;
-        engine.hidden = false;
-        Services.search.moveEngine(engine, i);
-        added++;
-      }
-    }
-    Services.search.resetToOriginalDefaultEngine();
-    gSearchPane.showRestoreDefaults(false);
-    gSearchPane.buildDefaultEngineDropDown();
-    return added;
-  },
-
-  changeEngine(aEngine, aProp, aNewValue) {
-    var index = this._getIndexForEngine(aEngine);
-    if (index == -1)
-      throw new Error("invalid engine?");
-
-    this._engines[index][aProp] = aNewValue;
-    aEngine.originalEngine[aProp] = aNewValue;
-  },
-
-  reloadIcons() {
-    this._engines.forEach(function(e) {
-      e.uri = e.originalEngine.uri;
-    });
-  }
-};
-
-function EngineView(aEngineStore) {
-  this._engineStore = aEngineStore;
-}
-EngineView.prototype = {
-  _engineStore: null,
-  tree: null,
-
-  get lastIndex() {
-    return this.rowCount - 1;
-  },
-  get selectedIndex() {
-    var seln = this.selection;
-    if (seln.getRangeCount() > 0) {
-      var min = {};
-      seln.getRangeAt(0, min, {});
-      return min.value;
-    }
-    return -1;
-  },
-  get selectedEngine() {
-    return this._engineStore.engines[this.selectedIndex];
-  },
-
-  // Helpers
-  rowCountChanged(index, count) {
-    this.tree.rowCountChanged(index, count);
-  },
-
-  invalidate() {
-    this.tree.invalidate();
-  },
-
-  ensureRowIsVisible(index) {
-    this.tree.ensureRowIsVisible(index);
-  },
-
-  getSourceIndexFromDrag(dataTransfer) {
-    return parseInt(dataTransfer.getData(ENGINE_FLAVOR));
-  },
-
-  isCheckBox(index, column) {
-    return column.id == "engineShown";
-  },
-
-  isEngineSelectedAndRemovable() {
-    return this.selectedIndex != -1 && this.lastIndex != 0;
-  },
-
-  // nsITreeView
-  get rowCount() {
-    return this._engineStore.engines.length;
-  },
-
-  getImageSrc(index, column) {
-    if (column.id == "engineName") {
-      if (this._engineStore.engines[index].iconURI)
-        return this._engineStore.engines[index].iconURI.spec;
-
-      if (window.devicePixelRatio > 1)
-        return "chrome://browser/skin/search-engine-placeholder@2x.png";
-      return "chrome://browser/skin/search-engine-placeholder.png";
-    }
-
-    return "";
-  },
-
-  getCellText(index, column) {
-    if (column.id == "engineName")
-      return this._engineStore.engines[index].name;
-    else if (column.id == "engineKeyword")
-      return this._engineStore.engines[index].alias;
-    return "";
-  },
-
-  setTree(tree) {
-    this.tree = tree;
-  },
-
-  canDrop(targetIndex, orientation, dataTransfer) {
-    var sourceIndex = this.getSourceIndexFromDrag(dataTransfer);
-    return (sourceIndex != -1 &&
-            sourceIndex != targetIndex &&
-            sourceIndex != targetIndex + orientation);
-  },
-
-  drop(dropIndex, orientation, dataTransfer) {
-    var sourceIndex = this.getSourceIndexFromDrag(dataTransfer);
-    var sourceEngine = this._engineStore.engines[sourceIndex];
-
-    const nsITreeView = Components.interfaces.nsITreeView;
-    if (dropIndex > sourceIndex) {
-      if (orientation == nsITreeView.DROP_BEFORE)
-        dropIndex--;
-    } else if (orientation == nsITreeView.DROP_AFTER) {
-      dropIndex++;
-    }
-
-    this._engineStore.moveEngine(sourceEngine, dropIndex);
-    gSearchPane.showRestoreDefaults(true);
-    gSearchPane.buildDefaultEngineDropDown();
-
-    // Redraw, and adjust selection
-    this.invalidate();
-    this.selection.select(dropIndex);
-  },
-
-  selection: null,
-  getRowProperties(index) { return ""; },
-  getCellProperties(index, column) { return ""; },
-  getColumnProperties(column) { return ""; },
-  isContainer(index) { return false; },
-  isContainerOpen(index) { return false; },
-  isContainerEmpty(index) { return false; },
-  isSeparator(index) { return false; },
-  isSorted(index) { return false; },
-  getParentIndex(index) { return -1; },
-  hasNextSibling(parentIndex, index) { return false; },
-  getLevel(index) { return 0; },
-  getProgressMode(index, column) { },
-  getCellValue(index, column) {
-    if (column.id == "engineShown")
-      return this._engineStore.engines[index].shown;
-    return undefined;
-  },
-  toggleOpenState(index) { },
-  cycleHeader(column) { },
-  selectionChanged() { },
-  cycleCell(row, column) { },
-  isEditable(index, column) { return column.id != "engineName"; },
-  isSelectable(index, column) { return false; },
-  setCellValue(index, column, value) {
-    if (column.id == "engineShown") {
-      this._engineStore.engines[index].shown = value == "true";
-      gEngineView.invalidate();
-      gSearchPane.saveOneClickEnginesList();
-    }
-  },
-  setCellText(index, column, value) {
-    if (column.id == "engineKeyword") {
-      gSearchPane.editKeyword(this._engineStore.engines[index], value)
-                 .then(valid => {
-        if (!valid)
-          document.getElementById("engineList").startEditing(index, column);
-      });
-    }
-  },
-  performAction(action) { },
-  performActionOnRow(action, index) { },
-  performActionOnCell(action, index, column) { }
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/search.xul
+++ /dev/null
@@ -1,87 +0,0 @@
-    <preferences id="searchPreferences" hidden="true" data-category="paneSearch">
-
-      <preference id="browser.search.suggest.enabled"
-                  name="browser.search.suggest.enabled"
-                  type="bool"/>
-
-      <preference id="browser.urlbar.suggest.searches"
-                  name="browser.urlbar.suggest.searches"
-                  type="bool"/>
-
-      <preference id="browser.search.hiddenOneOffs"
-                  name="browser.search.hiddenOneOffs"
-                  type="unichar"/>
-
-    </preferences>
-
-    <script type="application/javascript"
-            src="chrome://browser/content/preferences/in-content-new/search.js"/>
-
-    <stringbundle id="engineManagerBundle" src="chrome://browser/locale/engineManager.properties"/>
-
-    <hbox id="searchCategory"
-          class="subcategory"
-          hidden="true"
-          data-category="paneSearch">
-      <label class="header-name" flex="1">&paneSearch.title;</label>
-    </hbox>
-
-    <!-- Default Search Engine -->
-    <groupbox id="defaultEngineGroup" data-category="paneSearch">
-      <caption><label>&defaultSearchEngine.label;</label></caption>
-      <description>&chooseYourDefaultSearchEngine2.label;</description>
-      <hbox>
-        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
-        <hbox>
-          <menulist id="defaultEngine">
-            <menupopup/>
-          </menulist>
-        </hbox>
-      </hbox>
-      <checkbox id="suggestionsInSearchFieldsCheckbox"
-                label="&provideSearchSuggestions.label;"
-                accesskey="&provideSearchSuggestions.accesskey;"
-                preference="browser.search.suggest.enabled"/>
-      <vbox class="indent">
-        <checkbox id="urlBarSuggestion" label="&showURLBarSuggestions2.label;"
-                  accesskey="&showURLBarSuggestions2.accesskey;"
-                  preference="browser.urlbar.suggest.searches"/>
-        <hbox id="urlBarSuggestionPermanentPBLabel"
-              align="center" class="indent">
-          <label flex="1">&urlBarSuggestionsPermanentPB.label;</label>
-        </hbox>
-      </vbox>
-    </groupbox>
-
-    <groupbox id="oneClickSearchProvidersGroup" data-category="paneSearch">
-      <caption><label>&oneClickSearchEngines.label;</label></caption>
-      <description>&chooseWhichOneToDisplay2.label;</description>
-
-      <tree id="engineList" flex="1" rows="8" hidecolumnpicker="true" editable="true"
-            seltype="single">
-        <treechildren id="engineChildren" flex="1"/>
-        <treecols>
-          <treecol id="engineShown" type="checkbox" editable="true" sortable="false"/>
-          <treecol id="engineName" flex="4" label="&engineNameColumn.label;" sortable="false"/>
-          <treecol id="engineKeyword" flex="1" label="&engineKeywordColumn.label;" editable="true"
-                   sortable="false"/>
-        </treecols>
-      </tree>
-
-      <hbox>
-        <button id="restoreDefaultSearchEngines"
-                label="&restoreDefaultSearchEngines.label;"
-                accesskey="&restoreDefaultSearchEngines.accesskey;"
-                />
-        <spacer flex="1"/>
-        <button id="removeEngineButton"
-                class="searchEngineAction"
-                label="&removeEngine.label;"
-                accesskey="&removeEngine.accesskey;"
-                disabled="true"
-                />
-      </hbox>
-      <hbox id="addEnginesBox" pack="start">
-        <label id="addEngines" class="text-link">&findMoreSearchEngines.label;</label>
-      </hbox>
-    </groupbox>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/subdialogs.js
+++ /dev/null
@@ -1,598 +0,0 @@
-/* - 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/. */
-
-/* import-globals-from ../../../base/content/utilityOverlay.js */
-/* import-globals-from preferences.js */
-
-"use strict";
-
-/**
- * SubDialog constructor creates a new subdialog from a template and appends
- * it to the parentElement.
- * @param {DOMNode} template: The template is copied to create a new dialog.
- * @param {DOMNode} parentElement: New dialog is appended onto parentElement.
- * @param {String}  id: A unique identifier for the dialog.
- */
-function SubDialog({template, parentElement, id}) {
-  this._id = id;
-
-  this._overlay = template.cloneNode(true);
-  this._frame = this._overlay.querySelector(".dialogFrame");
-  this._box = this._overlay.querySelector(".dialogBox");
-  this._closeButton = this._overlay.querySelector(".dialogClose");
-  this._titleElement = this._overlay.querySelector(".dialogTitle");
-
-  this._overlay.id = `dialogOverlay-${id}`;
-  this._frame.setAttribute("name", `dialogFrame-${id}`);
-  this._frameCreated = new Promise(resolve => {
-    this._frame.addEventListener("load", resolve, {once: true});
-  });
-
-  parentElement.appendChild(this._overlay);
-  this._overlay.hidden = false;
-}
-
-SubDialog.prototype = {
-  _closingCallback: null,
-  _closingEvent: null,
-  _isClosing: false,
-  _frame: null,
-  _frameCreated: null,
-  _overlay: null,
-  _box: null,
-  _openedURL: null,
-  _injectedStyleSheets: [
-    "chrome://browser/skin/preferences/preferences.css",
-    "chrome://global/skin/in-content/common.css",
-    "chrome://browser/skin/preferences/in-content-new/preferences.css",
-    "chrome://browser/skin/preferences/in-content-new/dialog.css",
-  ],
-  _resizeObserver: null,
-  _template: null,
-  _id: null,
-  _titleElement: null,
-  _closeButton: null,
-
-  updateTitle(aEvent) {
-    if (aEvent.target != this._frame.contentDocument)
-      return;
-    this._titleElement.textContent = this._frame.contentDocument.title;
-  },
-
-  injectXMLStylesheet(aStylesheetURL) {
-    let contentStylesheet = this._frame.contentDocument.createProcessingInstruction(
-      "xml-stylesheet",
-      'href="' + aStylesheetURL + '" type="text/css"'
-    );
-    this._frame.contentDocument.insertBefore(contentStylesheet,
-                                             this._frame.contentDocument.documentElement);
-  },
-
-  async open(aURL, aFeatures = null, aParams = null, aClosingCallback = null) {
-    // Wait until frame is ready to prevent browser crash in tests
-    await this._frameCreated;
-    // If we're open on some (other) URL or we're closing, open when closing has finished.
-    if (this._openedURL || this._isClosing) {
-      if (!this._isClosing) {
-        this.close();
-      }
-      let args = Array.from(arguments);
-      this._closingPromise.then(() => {
-        this.open.apply(this, args);
-      });
-      return;
-    }
-    this._addDialogEventListeners();
-
-    let features = (aFeatures ? aFeatures + "," : "") + "resizable,dialog=no,centerscreen";
-    let dialog = window.openDialog(aURL, `dialogFrame-${this._id}`, features, aParams);
-    if (aClosingCallback) {
-      this._closingCallback = aClosingCallback.bind(dialog);
-    }
-
-    this._closingEvent = null;
-    this._isClosing = false;
-    this._openedURL = aURL;
-
-    features = features.replace(/,/g, "&");
-    let featureParams = new URLSearchParams(features.toLowerCase());
-    this._box.setAttribute("resizable", featureParams.has("resizable") &&
-                                        featureParams.get("resizable") != "no" &&
-                                        featureParams.get("resizable") != "0");
-  },
-
-  close(aEvent = null) {
-    if (this._isClosing) {
-      return;
-    }
-    this._isClosing = true;
-    this._closingPromise = new Promise(resolve => {
-      this._resolveClosePromise = resolve;
-    });
-
-    if (this._closingCallback) {
-      try {
-        this._closingCallback.call(null, aEvent);
-      } catch (ex) {
-        Cu.reportError(ex);
-      }
-      this._closingCallback = null;
-    }
-
-    this._removeDialogEventListeners();
-
-    this._overlay.style.visibility = "";
-    // Clear the sizing inline styles.
-    this._frame.removeAttribute("style");
-    // Clear the sizing attributes
-    this._box.removeAttribute("width");
-    this._box.removeAttribute("height");
-    this._box.style.removeProperty("min-height");
-    this._box.style.removeProperty("min-width");
-
-    this._overlay.dispatchEvent(new CustomEvent("dialogclose", {
-      bubbles: true,
-      detail: { dialog: this },
-    }));
-
-    setTimeout(() => {
-      // Unload the dialog after the event listeners run so that the load of about:blank isn't
-      // cancelled by the ESC <key>.
-      let onBlankLoad = e => {
-        if (this._frame.contentWindow.location.href == "about:blank") {
-          this._frame.removeEventListener("load", onBlankLoad);
-          // We're now officially done closing, so update the state to reflect that.
-          this._openedURL = null;
-          this._isClosing = false;
-          this._resolveClosePromise();
-        }
-      };
-      this._frame.addEventListener("load", onBlankLoad);
-      this._frame.loadURI("about:blank");
-    }, 0);
-  },
-
-  handleEvent(aEvent) {
-    switch (aEvent.type) {
-      case "click":
-        // Close the dialog if the user clicked the overlay background, just
-        // like when the user presses the ESC key (case "command" below).
-        if (aEvent.target === this._overlay) {
-          this._frame.contentWindow.close();
-        }
-        break;
-      case "command":
-        this._frame.contentWindow.close();
-        break;
-      case "dialogclosing":
-        this._onDialogClosing(aEvent);
-        break;
-      case "DOMTitleChanged":
-        this.updateTitle(aEvent);
-        break;
-      case "DOMFrameContentLoaded":
-        this._onContentLoaded(aEvent);
-        break;
-      case "load":
-        this._onLoad(aEvent);
-        break;
-      case "unload":
-        this._onUnload(aEvent);
-        break;
-      case "keydown":
-        this._onKeyDown(aEvent);
-        break;
-      case "focus":
-        this._onParentWinFocus(aEvent);
-        break;
-    }
-  },
-
-  /* Private methods */
-
-  _onUnload(aEvent) {
-    if (aEvent.target.location.href == this._openedURL) {
-      this._frame.contentWindow.close();
-    }
-  },
-
-  _onContentLoaded(aEvent) {
-    if (aEvent.target != this._frame || aEvent.target.contentWindow.location == "about:blank") {
-      return;
-    }
-
-    for (let styleSheetURL of this._injectedStyleSheets) {
-      this.injectXMLStylesheet(styleSheetURL);
-    }
-
-    // Provide the ability for the dialog to know that it is being loaded "in-content".
-    this._frame.contentDocument.documentElement.setAttribute("subdialog", "true");
-
-    this._frame.contentWindow.addEventListener("dialogclosing", this);
-
-    let oldResizeBy = this._frame.contentWindow.resizeBy;
-    this._frame.contentWindow.resizeBy = (resizeByWidth, resizeByHeight) => {
-      // Only handle resizeByHeight currently.
-      let frameHeight = this._frame.clientHeight;
-      let boxMinHeight = parseFloat(getComputedStyle(this._box).minHeight, 10);
-
-      this._frame.style.height = (frameHeight + resizeByHeight) + "px";
-      this._box.style.minHeight = (boxMinHeight + resizeByHeight) + "px";
-
-      oldResizeBy.call(this._frame.contentWindow, resizeByWidth, resizeByHeight);
-    };
-
-    // Make window.close calls work like dialog closing.
-    let oldClose = this._frame.contentWindow.close;
-    this._frame.contentWindow.close = () => {
-      var closingEvent = this._closingEvent;
-      if (!closingEvent) {
-        closingEvent = new CustomEvent("dialogclosing", {
-          bubbles: true,
-          detail: { button: null },
-        });
-
-        this._frame.contentWindow.dispatchEvent(closingEvent);
-      }
-
-      this.close(closingEvent);
-      oldClose.call(this._frame.contentWindow);
-    };
-
-    // XXX: Hack to make focus during the dialog's load functions work. Make the element visible
-    // sooner in DOMContentLoaded but mostly invisible instead of changing visibility just before
-    // the dialog's load event.
-    this._overlay.style.visibility = "visible";
-    this._overlay.style.opacity = "0.01";
-  },
-
-  _onLoad(aEvent) {
-    if (aEvent.target.contentWindow.location == "about:blank") {
-      return;
-    }
-
-    // Do this on load to wait for the CSS to load and apply before calculating the size.
-    let docEl = this._frame.contentDocument.documentElement;
-
-    let groupBoxTitle = document.getAnonymousElementByAttribute(this._box, "class", "groupbox-title");
-    let groupBoxTitleHeight = groupBoxTitle.clientHeight +
-                              parseFloat(getComputedStyle(groupBoxTitle).borderBottomWidth);
-
-    let groupBoxBody = document.getAnonymousElementByAttribute(this._box, "class", "groupbox-body");
-    // These are deduced from styles which we don't change, so it's safe to get them now:
-    let boxVerticalPadding = 2 * parseFloat(getComputedStyle(groupBoxBody).paddingTop);
-    let boxHorizontalPadding = 2 * parseFloat(getComputedStyle(groupBoxBody).paddingLeft);
-    let boxHorizontalBorder = 2 * parseFloat(getComputedStyle(this._box).borderLeftWidth);
-    let boxVerticalBorder = 2 * parseFloat(getComputedStyle(this._box).borderTopWidth);
-
-    // The difference between the frame and box shouldn't change, either:
-    let boxRect = this._box.getBoundingClientRect();
-    let frameRect = this._frame.getBoundingClientRect();
-    let frameSizeDifference = (frameRect.top - boxRect.top) + (boxRect.bottom - frameRect.bottom);
-
-    // Then determine and set a bunch of width stuff:
-    let frameMinWidth = docEl.style.width || docEl.scrollWidth + "px";
-    let frameWidth = docEl.getAttribute("width") ? docEl.getAttribute("width") + "px" :
-                     frameMinWidth;
-    this._frame.style.width = frameWidth;
-    this._box.style.minWidth = "calc(" +
-                               (boxHorizontalBorder + boxHorizontalPadding) +
-                               "px + " + frameMinWidth + ")";
-
-    // Now do the same but for the height. We need to do this afterwards because otherwise
-    // XUL assumes we'll optimize for height and gives us "wrong" values which then are no
-    // longer correct after we set the width:
-    let frameMinHeight = docEl.style.height || docEl.scrollHeight + "px";
-    let frameHeight = docEl.getAttribute("height") ? docEl.getAttribute("height") + "px" :
-                                                     frameMinHeight;
-
-    // Now check if the frame height we calculated is possible at this window size,
-    // accounting for titlebar, padding/border and some spacing.
-    let maxHeight = window.innerHeight - frameSizeDifference - 30;
-    // Do this with a frame height in pixels...
-    let comparisonFrameHeight;
-    if (frameHeight.endsWith("em")) {
-      let fontSize = parseFloat(getComputedStyle(this._frame).fontSize);
-      comparisonFrameHeight = parseFloat(frameHeight, 10) * fontSize;
-    } else if (frameHeight.endsWith("px")) {
-      comparisonFrameHeight = parseFloat(frameHeight, 10);
-    } else {
-      Cu.reportError("This dialog (" + this._frame.contentWindow.location.href + ") " +
-                     "set a height in non-px-non-em units ('" + frameHeight + "'), " +
-                     "which is likely to lead to bad sizing in in-content preferences. " +
-                     "Please consider changing this.");
-      comparisonFrameHeight = parseFloat(frameHeight);
-    }
-
-    if (comparisonFrameHeight > maxHeight) {
-      // If the height is bigger than that of the window, we should let the contents scroll:
-      frameHeight = maxHeight + "px";
-      frameMinHeight = maxHeight + "px";
-      let containers = this._frame.contentDocument.querySelectorAll(".largeDialogContainer");
-      for (let container of containers) {
-        container.classList.add("doScroll");
-      }
-    }
-
-    this._frame.style.height = frameHeight;
-    this._box.style.minHeight = "calc(" +
-                                (boxVerticalBorder + groupBoxTitleHeight + boxVerticalPadding) +
-                                "px + " + frameMinHeight + ")";
-
-    this._overlay.dispatchEvent(new CustomEvent("dialogopen", {
-      bubbles: true,
-      detail: { dialog: this },
-    }));
-    this._overlay.style.visibility = "visible";
-    this._overlay.style.opacity = ""; // XXX: focus hack continued from _onContentLoaded
-
-    if (this._box.getAttribute("resizable") == "true") {
-      this._onResize = this._onResize.bind(this);
-      this._resizeObserver = new MutationObserver(this._onResize);
-      this._resizeObserver.observe(this._box, {attributes: true});
-    }
-
-    this._trapFocus();
-
-    // Search within main document and highlight matched keyword.
-    gSearchResultsPane.searchWithinNode(this._titleElement, gSearchResultsPane.query);
-
-    // Search within sub-dialog document and highlight matched keyword.
-    gSearchResultsPane.searchWithinNode(this._frame.contentDocument.firstElementChild,
-      gSearchResultsPane.query);
-
-    // Creating tooltips for all the instances found
-    for (let node of gSearchResultsPane.listSearchTooltips) {
-      if (!node.tooltipNode) {
-        gSearchResultsPane.createSearchTooltip(node, gSearchResultsPane.query);
-      }
-    }
-  },
-
-  _onResize(mutations) {
-    let frame = this._frame;
-    // The width and height styles are needed for the initial
-    // layout of the frame, but afterward they need to be removed
-    // or their presence will restrict the contents of the <browser>
-    // from resizing to a smaller size.
-    frame.style.removeProperty("width");
-    frame.style.removeProperty("height");
-
-    let docEl = frame.contentDocument.documentElement;
-    let persistedAttributes = docEl.getAttribute("persist");
-    if (!persistedAttributes ||
-        (!persistedAttributes.includes("width") &&
-         !persistedAttributes.includes("height"))) {
-      return;
-    }
-
-    for (let mutation of mutations) {
-      if (mutation.attributeName == "width") {
-        docEl.setAttribute("width", docEl.scrollWidth);
-      } else if (mutation.attributeName == "height") {
-        docEl.setAttribute("height", docEl.scrollHeight);
-      }
-    }
-  },
-
-  _onDialogClosing(aEvent) {
-    this._frame.contentWindow.removeEventListener("dialogclosing", this);
-    this._closingEvent = aEvent;
-  },
-
-  _onKeyDown(aEvent) {
-    if (aEvent.currentTarget == window && aEvent.keyCode == aEvent.DOM_VK_ESCAPE &&
-        !aEvent.defaultPrevented) {
-      this.close(aEvent);
-      return;
-    }
-    if (aEvent.keyCode != aEvent.DOM_VK_TAB ||
-        aEvent.ctrlKey || aEvent.altKey || aEvent.metaKey) {
-      return;
-    }
-
-    let fm = Services.focus;
-
-    let isLastFocusableElement = el => {
-      // XXXgijs unfortunately there is no way to get the last focusable element without asking
-      // the focus manager to move focus to it.
-      let rv = el == fm.moveFocus(this._frame.contentWindow, null, fm.MOVEFOCUS_LAST, 0);
-      fm.setFocus(el, 0);
-      return rv;
-    };
-
-    let forward = !aEvent.shiftKey;
-    // check if focus is leaving the frame (incl. the close button):
-    if ((aEvent.target == this._closeButton && !forward) ||
-        (isLastFocusableElement(aEvent.originalTarget) && forward)) {
-      aEvent.preventDefault();
-      aEvent.stopImmediatePropagation();
-      let parentWin = this._getBrowser().ownerGlobal;
-      if (forward) {
-        fm.moveFocus(parentWin, null, fm.MOVEFOCUS_FIRST, fm.FLAG_BYKEY);
-      } else {
-        // Somehow, moving back 'past' the opening doc is not trivial. Cheat by doing it in 2 steps:
-        fm.moveFocus(window, null, fm.MOVEFOCUS_ROOT, fm.FLAG_BYKEY);
-        fm.moveFocus(parentWin, null, fm.MOVEFOCUS_BACKWARD, fm.FLAG_BYKEY);
-      }
-    }
-  },
-
-  _onParentWinFocus(aEvent) {
-    // Explicitly check for the focus target of |window| to avoid triggering this when the window
-    // is refocused
-    if (aEvent.target != this._closeButton && aEvent.target != window) {
-      this._closeButton.focus();
-    }
-  },
-
-  _addDialogEventListeners() {
-    // Make the close button work.
-    this._closeButton.addEventListener("command", this);
-
-    // DOMTitleChanged isn't fired on the frame, only on the chromeEventHandler
-    let chromeBrowser = this._getBrowser();
-    chromeBrowser.addEventListener("DOMTitleChanged", this, true);
-
-    // Similarly DOMFrameContentLoaded only fires on the top window
-    window.addEventListener("DOMFrameContentLoaded", this, true);
-
-    // Wait for the stylesheets injected during DOMContentLoaded to load before showing the dialog
-    // otherwise there is a flicker of the stylesheet applying.
-    this._frame.addEventListener("load", this);
-
-    chromeBrowser.addEventListener("unload", this, true);
-
-    // Ensure we get <esc> keypresses even if nothing in the subdialog is focusable
-    // (happens on OS X when only text inputs and lists are focusable, and
-    //  the subdialog only has checkboxes/radiobuttons/buttons)
-    window.addEventListener("keydown", this, true);
-
-    this._overlay.addEventListener("click", this, true);
-  },
-
-  _removeDialogEventListeners() {
-    let chromeBrowser = this._getBrowser();
-    chromeBrowser.removeEventListener("DOMTitleChanged", this, true);
-    chromeBrowser.removeEventListener("unload", this, true);
-
-    this._closeButton.removeEventListener("command", this);
-
-    window.removeEventListener("DOMFrameContentLoaded", this, true);
-    this._frame.removeEventListener("load", this);
-    this._frame.contentWindow.removeEventListener("dialogclosing", this);
-    window.removeEventListener("keydown", this, true);
-
-    this._overlay.removeEventListener("click", this, true);
-
-    if (this._resizeObserver) {
-      this._resizeObserver.disconnect();
-      this._resizeObserver = null;
-    }
-    this._untrapFocus();
-  },
-
-  _trapFocus() {
-    let fm = Services.focus;
-    fm.moveFocus(this._frame.contentWindow, null, fm.MOVEFOCUS_FIRST, 0);
-    this._frame.contentDocument.addEventListener("keydown", this, true);
-    this._closeButton.addEventListener("keydown", this);
-
-    window.addEventListener("focus", this, true);
-  },
-
-  _untrapFocus() {
-    this._frame.contentDocument.removeEventListener("keydown", this, true);
-    this._closeButton.removeEventListener("keydown", this);
-    window.removeEventListener("focus", this);
-  },
-
-  _getBrowser() {
-    return window.QueryInterface(Ci.nsIInterfaceRequestor)
-                 .getInterface(Ci.nsIWebNavigation)
-                 .QueryInterface(Ci.nsIDocShell)
-                 .chromeEventHandler;
-  },
-};
-
-var gSubDialog = {
-  /**
-   * New dialogs are stacked on top of the existing ones, and they are pushed
-   * to the end of the _dialogs array.
-   * @type {Array}
-   */
-  _dialogs: [],
-  _dialogStack: null,
-  _dialogTemplate: null,
-  _nextDialogID: 0,
-  _preloadDialog: null,
-  get _topDialog() {
-    return this._dialogs.length > 0 ? this._dialogs[this._dialogs.length - 1] : undefined;
-  },
-
-  init() {
-    this._dialogStack = document.getElementById("dialogStack");
-    this._dialogTemplate = document.getElementById("dialogTemplate");
-    this._preloadDialog = new SubDialog({template: this._dialogTemplate,
-                                         parentElement: this._dialogStack,
-                                         id: this._nextDialogID++});
-  },
-
-  open(aURL, aFeatures = null, aParams = null, aClosingCallback = null) {
-    // If we're already open/opening on this URL, do nothing.
-    if (this._topDialog && this._topDialog._openedURL == aURL) {
-      return;
-    }
-
-    this._preloadDialog.open(aURL, aFeatures, aParams, aClosingCallback);
-    this._dialogs.push(this._preloadDialog);
-    this._preloadDialog = new SubDialog({template: this._dialogTemplate,
-                                         parentElement: this._dialogStack,
-                                         id: this._nextDialogID++});
-
-    if (this._dialogs.length == 1) {
-      this._dialogStack.hidden = false;
-      this._ensureStackEventListeners();
-    }
-  },
-
-  close() {
-    this._topDialog.close();
-  },
-
-  handleEvent(aEvent) {
-    switch (aEvent.type) {
-      case "dialogopen": {
-        this._onDialogOpen();
-        break;
-      }
-      case "dialogclose": {
-        this._onDialogClose(aEvent.detail.dialog);
-        break;
-      }
-    }
-  },
-
-  _onDialogOpen() {
-    let lowerDialog = this._dialogs.length > 1 ? this._dialogs[this._dialogs.length - 2] : undefined;
-    if (lowerDialog) {
-      lowerDialog._overlay.removeAttribute("topmost");
-      lowerDialog._removeDialogEventListeners();
-    }
-  },
-
-  _onDialogClose(dialog) {
-    let fm = Services.focus;
-    if (this._topDialog == dialog) {
-      // XXX: When a top-most dialog is closed, we reuse the closed dialog and
-      //      remove the preloadDialog. This is a temporary solution before we
-      //      rewrite all the test cases in Bug 1359023.
-      this._preloadDialog._overlay.remove();
-      this._preloadDialog = this._dialogs.pop();
-    } else {
-      dialog._overlay.remove();
-      this._dialogs.splice(this._dialogs.indexOf(dialog), 1);
-    }
-
-    if (this._topDialog) {
-      fm.moveFocus(this._topDialog._frame.contentWindow, null, fm.MOVEFOCUS_FIRST, fm.FLAG_BYKEY);
-      this._topDialog._overlay.setAttribute("topmost", true);
-      this._topDialog._addDialogEventListeners();
-    } else {
-      fm.moveFocus(window, null, fm.MOVEFOCUS_ROOT, fm.FLAG_BYKEY);
-      this._dialogStack.hidden = true;
-      this._removeStackEventListeners();
-    }
-  },
-
-  _ensureStackEventListeners() {
-    this._dialogStack.addEventListener("dialogopen", this);
-    this._dialogStack.addEventListener("dialogclose", this);
-  },
-
-  _removeStackEventListeners() {
-    this._dialogStack.removeEventListener("dialogopen", this);
-    this._dialogStack.removeEventListener("dialogclose", this);
-  },
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/sync.js
+++ /dev/null
@@ -1,514 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-Components.utils.import("resource://services-sync/main.js");
-Components.utils.import("resource://gre/modules/Services.jsm");
-
-XPCOMUtils.defineLazyGetter(this, "FxAccountsCommon", function() {
-  return Components.utils.import("resource://gre/modules/FxAccountsCommon.js", {});
-});
-
-XPCOMUtils.defineLazyModuleGetter(this, "fxAccounts",
-  "resource://gre/modules/FxAccounts.jsm");
-
-const FXA_PAGE_LOGGED_OUT = 0;
-const FXA_PAGE_LOGGED_IN = 1;
-
-// Indexes into the "login status" deck.
-// We are in a successful verified state - everything should work!
-const FXA_LOGIN_VERIFIED = 0;
-// We have logged in to an unverified account.
-const FXA_LOGIN_UNVERIFIED = 1;
-// We are logged in locally, but the server rejected our credentials.
-const FXA_LOGIN_FAILED = 2;
-
-var gSyncPane = {
-  get page() {
-    return document.getElementById("weavePrefsDeck").selectedIndex;
-  },
-
-  set page(val) {
-    document.getElementById("weavePrefsDeck").selectedIndex = val;
-  },
-
-  init() {
-    this._setupEventListeners();
-    this._adjustForPrefs();
-
-    // If the Service hasn't finished initializing, wait for it.
-    let xps = Components.classes["@mozilla.org/weave/service;1"]
-                                .getService(Components.interfaces.nsISupports)
-                                .wrappedJSObject;
-
-    if (xps.ready) {
-      this._init();
-      return;
-    }
-
-    // it may take some time before we can determine what provider to use
-    // and the state of that provider, so show the "please wait" page.
-    this._showLoadPage(xps);
-
-    let onUnload = function() {
-      window.removeEventListener("unload", onUnload);
-      try {
-        Services.obs.removeObserver(onReady, "weave:service:ready");
-      } catch (e) {}
-    };
-
-    let onReady = () => {
-      Services.obs.removeObserver(onReady, "weave:service:ready");
-      window.removeEventListener("unload", onUnload);
-      this._init();
-    };
-
-    Services.obs.addObserver(onReady, "weave:service:ready");
-    window.addEventListener("unload", onUnload);
-
-    xps.ensureLoaded();
-  },
-
-  // make whatever tweaks we need based on preferences.
-  _adjustForPrefs() {
-    // These 2 engines are unique in that there are prefs that make the
-    // entire engine unavailable (which is distinct from "disabled").
-    let enginePrefs = [
-      ["services.sync.engine.addresses.available", "engine.addresses"],
-      ["services.sync.engine.creditcards.available", "engine.creditcards"],
-    ];
-    let numHidden = 0;
-    for (let [availablePref, prefName] of enginePrefs) {
-      if (!Services.prefs.getBoolPref(availablePref)) {
-        let checkbox = document.querySelector("[preference=\"" + prefName + "\"]");
-        checkbox.hidden = true;
-        numHidden += 1;
-      }
-    }
-    // If we hid both, the list of prefs is unbalanced, so move "history" to
-    // the second column. (If we only moved one, it's still unbalanced, but
-    // there's an odd number of engines so that can't be avoided)
-    if (numHidden == 2) {
-      let history = document.querySelector("[preference=\"engine.history\"]");
-      let addons = document.querySelector("[preference=\"engine.addons\"]");
-      addons.parentNode.insertBefore(history, addons);
-    }
-  },
-
-  _showLoadPage(xps) {
-    let username = Services.prefs.getCharPref("services.sync.username", "");
-    if (!username) {
-      this.page = FXA_PAGE_LOGGED_OUT;
-      return;
-    }
-
-    // Use cached values while we wait for the up-to-date values
-    let cachedComputerName = Services.prefs.getCharPref("services.sync.client.name", "");
-    document.querySelector(".fxaEmailAddress").value = username;
-    this._populateComputerName(cachedComputerName);
-    this.page = FXA_PAGE_LOGGED_IN;
-  },
-
-  _init() {
-    let topics = ["weave:service:login:error",
-                  "weave:service:login:finish",
-                  "weave:service:start-over:finish",
-                  "weave:service:setup-complete",
-                  "weave:service:logout:finish",
-                  FxAccountsCommon.ONVERIFIED_NOTIFICATION,
-                  FxAccountsCommon.ONLOGIN_NOTIFICATION,
-                  FxAccountsCommon.ON_ACCOUNT_STATE_CHANGE_NOTIFICATION,
-                  FxAccountsCommon.ON_PROFILE_CHANGE_NOTIFICATION,
-                  ];
-    // Add the observers now and remove them on unload
-    // XXXzpao This should use Services.obs.* but Weave's Obs does nice handling
-    //        of `this`. Fix in a followup. (bug 583347)
-    topics.forEach(function(topic) {
-      Weave.Svc.Obs.add(topic, this.updateWeavePrefs, this);
-    }, this);
-
-    window.addEventListener("unload", function() {
-      topics.forEach(function(topic) {
-        Weave.Svc.Obs.remove(topic, this.updateWeavePrefs, this);
-      }, gSyncPane);
-    });
-
-    XPCOMUtils.defineLazyGetter(this, "_accountsStringBundle", () => {
-      return Services.strings.createBundle("chrome://browser/locale/accounts.properties");
-    });
-
-    let url = Services.prefs.getCharPref("identity.mobilepromo.android") + "sync-preferences";
-    document.getElementById("fxaMobilePromo-android").setAttribute("href", url);
-    document.getElementById("fxaMobilePromo-android-hasFxaAccount").setAttribute("href", url);
-    url = Services.prefs.getCharPref("identity.mobilepromo.ios") + "sync-preferences";
-    document.getElementById("fxaMobilePromo-ios").setAttribute("href", url);
-    document.getElementById("fxaMobilePromo-ios-hasFxaAccount").setAttribute("href", url);
-
-    document.getElementById("tosPP-small-ToS").setAttribute("href", Weave.Svc.Prefs.get("fxa.termsURL"));
-    document.getElementById("tosPP-small-PP").setAttribute("href", Weave.Svc.Prefs.get("fxa.privacyURL"));
-
-    fxAccounts.promiseAccountsManageURI(this._getEntryPoint()).then(accountsManageURI => {
-      document.getElementById("verifiedManage").setAttribute("href", accountsManageURI);
-    });
-
-    this.updateWeavePrefs();
-
-    // Notify observers that the UI is now ready
-    Components.classes["@mozilla.org/observer-service;1"]
-              .getService(Components.interfaces.nsIObserverService)
-              .notifyObservers(window, "sync-pane-loaded");
-  },
-
-  _toggleComputerNameControls(editMode) {
-    let textbox = document.getElementById("fxaSyncComputerName");
-    textbox.disabled = !editMode;
-    document.getElementById("fxaChangeDeviceName").hidden = editMode;
-    document.getElementById("fxaCancelChangeDeviceName").hidden = !editMode;
-    document.getElementById("fxaSaveChangeDeviceName").hidden = !editMode;
-  },
-
-  _focusComputerNameTextbox() {
-    let textbox = document.getElementById("fxaSyncComputerName");
-    let valLength = textbox.value.length;
-    textbox.focus();
-    textbox.setSelectionRange(valLength, valLength);
-  },
-
-  _blurComputerNameTextbox() {
-    document.getElementById("fxaSyncComputerName").blur();
-  },
-
-  _focusAfterComputerNameTextbox() {
-    // Focus the most appropriate element that's *not* the "computer name" box.
-    Services.focus.moveFocus(window,
-                             document.getElementById("fxaSyncComputerName"),
-                             Services.focus.MOVEFOCUS_FORWARD, 0);
-  },
-
-  _updateComputerNameValue(save) {
-    if (save) {
-      let textbox = document.getElementById("fxaSyncComputerName");
-      Weave.Service.clientsEngine.localName = textbox.value;
-    }
-    this._populateComputerName(Weave.Service.clientsEngine.localName);
-  },
-
-  _setupEventListeners() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gSyncPane));
-    }
-
-    setEventListener("fxaChangeDeviceName", "command", function() {
-      this._toggleComputerNameControls(true);
-      this._focusComputerNameTextbox();
-    });
-    setEventListener("fxaCancelChangeDeviceName", "command", function() {
-      // We explicitly blur the textbox because of bug 75324, then after
-      // changing the state of the buttons, force focus to whatever the focus
-      // manager thinks should be next (which on the mac, depends on an OSX
-      // keyboard access preference)
-      this._blurComputerNameTextbox();
-      this._toggleComputerNameControls(false);
-      this._updateComputerNameValue(false);
-      this._focusAfterComputerNameTextbox();
-    });
-    setEventListener("fxaSaveChangeDeviceName", "command", function() {
-      // Work around bug 75324 - see above.
-      this._blurComputerNameTextbox();
-      this._toggleComputerNameControls(false);
-      this._updateComputerNameValue(true);
-      this._focusAfterComputerNameTextbox();
-    });
-    setEventListener("noFxaSignIn", "command", function() {
-      gSyncPane.signIn();
-      return false;
-    });
-    setEventListener("fxaUnlinkButton", "command", function() {
-      gSyncPane.unlinkFirefoxAccount(true);
-    });
-    setEventListener("verifyFxaAccount", "command",
-      gSyncPane.verifyFirefoxAccount);
-    setEventListener("unverifiedUnlinkFxaAccount", "command", function() {
-      /* no warning as account can't have previously synced */
-      gSyncPane.unlinkFirefoxAccount(false);
-    });
-    setEventListener("rejectReSignIn", "command",
-      gSyncPane.reSignIn);
-    setEventListener("rejectUnlinkFxaAccount", "command", function() {
-      gSyncPane.unlinkFirefoxAccount(true);
-    });
-    setEventListener("fxaSyncComputerName", "keypress", function(e) {
-      if (e.keyCode == KeyEvent.DOM_VK_RETURN) {
-        document.getElementById("fxaSaveChangeDeviceName").click();
-      } else if (e.keyCode == KeyEvent.DOM_VK_ESCAPE) {
-        document.getElementById("fxaCancelChangeDeviceName").click();
-      }
-    });
-  },
-
-  updateWeavePrefs() {
-    let service = Components.classes["@mozilla.org/weave/service;1"]
-                  .getService(Components.interfaces.nsISupports)
-                  .wrappedJSObject;
-
-    let displayNameLabel = document.getElementById("fxaDisplayName");
-    let fxaEmailAddressLabels = document.querySelectorAll(".fxaEmailAddress");
-    displayNameLabel.hidden = true;
-
-    // determine the fxa status...
-    this._showLoadPage(service);
-
-    fxAccounts.getSignedInUser().then(data => {
-      if (!data) {
-        this.page = FXA_PAGE_LOGGED_OUT;
-        return false;
-      }
-      this.page = FXA_PAGE_LOGGED_IN;
-      // We are logged in locally, but maybe we are in a state where the
-      // server rejected our credentials (eg, password changed on the server)
-      let fxaLoginStatus = document.getElementById("fxaLoginStatus");
-      let syncReady;
-      // Not Verfied implies login error state, so check that first.
-      if (!data.verified) {
-        fxaLoginStatus.selectedIndex = FXA_LOGIN_UNVERIFIED;
-        syncReady = false;
-      // So we think we are logged in, so login problems are next.
-      // (Although if the Sync identity manager is still initializing, we
-      // ignore login errors and assume all will eventually be good.)
-      // LOGIN_FAILED_LOGIN_REJECTED explicitly means "you must log back in".
-      // All other login failures are assumed to be transient and should go
-      // away by themselves, so aren't reflected here.
-      } else if (Weave.Status.login == Weave.LOGIN_FAILED_LOGIN_REJECTED) {
-        fxaLoginStatus.selectedIndex = FXA_LOGIN_FAILED;
-        syncReady = false;
-      // Else we must be golden (or in an error state we expect to magically
-      // resolve itself)
-      } else {
-        fxaLoginStatus.selectedIndex = FXA_LOGIN_VERIFIED;
-        syncReady = true;
-      }
-      fxaEmailAddressLabels.forEach((label) => {
-        label.value = data.email;
-      });
-      this._populateComputerName(Weave.Service.clientsEngine.localName);
-      let engines = document.getElementById("fxaSyncEngines")
-      for (let checkbox of engines.querySelectorAll("checkbox")) {
-        checkbox.disabled = !syncReady;
-      }
-      document.getElementById("fxaChangeDeviceName").disabled = !syncReady;
-
-      // Clear the profile image (if any) of the previously logged in account.
-      document.querySelector("#fxaLoginVerified > .fxaProfileImage").style.removeProperty("list-style-image");
-
-      // If the account is verified the next promise in the chain will
-      // fetch profile data.
-      return data.verified;
-    }).then(isVerified => {
-      if (isVerified) {
-        return fxAccounts.getSignedInUserProfile();
-      }
-      return null;
-    }).then(data => {
-      let fxaLoginStatus = document.getElementById("fxaLoginStatus");
-      if (data) {
-        if (data.email) {
-          // A hack to handle that the user's email address may have changed.
-          // This can probably be removed as part of bug 1383663.
-          fxaEmailAddressLabels.forEach((label) => {
-            label.value = data.email;
-          });
-        }
-        if (data.displayName) {
-          fxaLoginStatus.setAttribute("hasName", true);
-          displayNameLabel.hidden = false;
-          displayNameLabel.textContent = data.displayName;
-        } else {
-          fxaLoginStatus.removeAttribute("hasName");
-        }
-        if (data.avatar) {
-          let bgImage = "url(\"" + data.avatar + "\")";
-          let profileImageElement = document.querySelector("#fxaLoginVerified > .fxaProfileImage");
-          profileImageElement.style.listStyleImage = bgImage;
-
-          let img = new Image();
-          img.onerror = () => {
-            // Clear the image if it has trouble loading. Since this callback is asynchronous
-            // we check to make sure the image is still the same before we clear it.
-            if (profileImageElement.style.listStyleImage === bgImage) {
-              profileImageElement.style.removeProperty("list-style-image");
-            }
-          };
-          img.src = data.avatar;
-        }
-      } else {
-        fxaLoginStatus.removeAttribute("hasName");
-      }
-    }, err => {
-      FxAccountsCommon.log.error(err);
-    }).catch(err => {
-      // If we get here something's really busted
-      Cu.reportError(String(err));
-    });
-  },
-
-  _getEntryPoint() {
-    let params = new URLSearchParams(document.URL.split("#")[0].split("?")[1] || "");
-    return params.get("entrypoint") || "preferences";
-  },
-
-  _openAboutAccounts(action) {
-    let entryPoint = this._getEntryPoint();
-    let params = new URLSearchParams();
-    if (action) {
-      params.set("action", action);
-    }
-    params.set("entrypoint", entryPoint);
-
-    this.replaceTabWithUrl("about:accounts?" + params);
-  },
-
-  openContentInBrowser(url, options) {
-    let win = Services.wm.getMostRecentWindow("navigator:browser");
-    if (!win) {
-      openUILinkIn(url, "tab");
-      return;
-    }
-    win.switchToTabHavingURI(url, true, options);
-  },
-
-  // Replace the current tab with the specified URL.
-  replaceTabWithUrl(url) {
-    // Get the <browser> element hosting us.
-    let browser = window.QueryInterface(Ci.nsIInterfaceRequestor)
-                        .getInterface(Ci.nsIWebNavigation)
-                        .QueryInterface(Ci.nsIDocShell)
-                        .chromeEventHandler;
-    // And tell it to load our URL.
-    browser.loadURI(url);
-  },
-
-  signUp() {
-    this._openAboutAccounts("signup");
-  },
-
-  signIn() {
-    this._openAboutAccounts("signin");
-  },
-
-  reSignIn() {
-    this._openAboutAccounts("reauth");
-  },
-
-
-  clickOrSpaceOrEnterPressed(event) {
-    // Note: charCode is deprecated, but 'char' not yet implemented.
-    // Replace charCode with char when implemented, see Bug 680830
-    return ((event.type == "click" && event.button == 0) ||
-            (event.type == "keypress" &&
-             (event.charCode == KeyEvent.DOM_VK_SPACE || event.keyCode == KeyEvent.DOM_VK_RETURN)));
-  },
-
-  openChangeProfileImage(event) {
-    if (this.clickOrSpaceOrEnterPressed(event)) {
-      fxAccounts.promiseAccountsChangeProfileURI(this._getEntryPoint(), "avatar")
-          .then(url => {
-        this.openContentInBrowser(url, {
-          replaceQueryString: true,
-          triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
-        });
-      });
-      // Prevent page from scrolling on the space key.
-      event.preventDefault();
-    }
-  },
-
-  openManageFirefoxAccount(event) {
-    if (this.clickOrSpaceOrEnterPressed(event)) {
-      this.manageFirefoxAccount();
-      // Prevent page from scrolling on the space key.
-      event.preventDefault();
-    }
-  },
-
-  manageFirefoxAccount() {
-    fxAccounts.promiseAccountsManageURI(this._getEntryPoint())
-      .then(url => {
-        this.openContentInBrowser(url, {
-          replaceQueryString: true,
-          triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
-        });
-      });
-  },
-
-  verifyFirefoxAccount() {
-    let showVerifyNotification = (data) => {
-      let isError = !data;
-      let maybeNot = isError ? "Not" : "";
-      let sb = this._accountsStringBundle;
-      let title = sb.GetStringFromName("verification" + maybeNot + "SentTitle");
-      let email = !isError && data ? data.email : "";
-      let body = sb.formatStringFromName("verification" + maybeNot + "SentBody", [email], 1);
-      new Notification(title, { body })
-    }
-
-    let onError = () => {
-      showVerifyNotification();
-    };
-
-    let onSuccess = data => {
-      if (data) {
-        showVerifyNotification(data);
-      } else {
-        onError();
-      }
-    };
-
-    fxAccounts.resendVerificationEmail()
-      .then(fxAccounts.getSignedInUser, onError)
-      .then(onSuccess, onError);
-  },
-
-  unlinkFirefoxAccount(confirm) {
-    if (confirm) {
-      // We use a string bundle shared with aboutAccounts.
-      let sb = Services.strings.createBundle("chrome://browser/locale/syncSetup.properties");
-      let disconnectLabel = sb.GetStringFromName("disconnect.label");
-      let title = sb.GetStringFromName("disconnect.verify.title");
-      let body = sb.GetStringFromName("disconnect.verify.bodyHeading") +
-                 "\n\n" +
-                 sb.GetStringFromName("disconnect.verify.bodyText");
-      let ps = Services.prompt;
-      let buttonFlags = (ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING) +
-                        (ps.BUTTON_POS_1 * ps.BUTTON_TITLE_CANCEL) +
-                        ps.BUTTON_POS_1_DEFAULT;
-
-      let factory = Cc["@mozilla.org/prompter;1"]
-                      .getService(Ci.nsIPromptFactory);
-      let prompt = factory.getPrompt(window, Ci.nsIPrompt);
-      let bag = prompt.QueryInterface(Ci.nsIWritablePropertyBag2);
-      bag.setPropertyAsBool("allowTabModal", true);
-
-      let pressed = prompt.confirmEx(title, body, buttonFlags,
-                                     disconnectLabel, null, null, null, {});
-
-      if (pressed != 0) { // 0 is the "continue" button
-        return;
-      }
-    }
-    fxAccounts.signOut().then(() => {
-      this.updateWeavePrefs();
-    });
-  },
-
-  _populateComputerName(value) {
-    let textbox = document.getElementById("fxaSyncComputerName");
-    if (!textbox.hasAttribute("placeholder")) {
-      textbox.setAttribute("placeholder",
-                           Weave.Utils.getDefaultDeviceName());
-    }
-    textbox.value = value;
-  },
-};
deleted file mode 100755
--- a/browser/components/preferences/in-content-new/sync.xul
+++ /dev/null
@@ -1,242 +0,0 @@
-# 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/.
-
-<!-- Sync panel -->
-
-<preferences id="syncEnginePrefs" hidden="true" data-category="paneSync">
-  <preference id="engine.addons"
-              name="services.sync.engine.addons"
-              type="bool"/>
-  <preference id="engine.bookmarks"
-              name="services.sync.engine.bookmarks"
-              type="bool"/>
-  <preference id="engine.history"
-              name="services.sync.engine.history"
-              type="bool"/>
-  <preference id="engine.tabs"
-              name="services.sync.engine.tabs"
-              type="bool"/>
-  <preference id="engine.prefs"
-              name="services.sync.engine.prefs"
-              type="bool"/>
-  <preference id="engine.passwords"
-              name="services.sync.engine.passwords"
-              type="bool"/>
-  <preference id="engine.addresses"
-              name="services.sync.engine.addresses"
-              type="bool"/>
-  <preference id="engine.creditcards"
-              name="services.sync.engine.creditcards"
-              type="bool"/>
-</preferences>
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content-new/sync.js"/>
-
-<hbox id="firefoxAccountCategory"
-      class="subcategory"
-      hidden="true"
-      data-category="paneSync">
-  <label class="header-name" flex="1">&paneSync1.title;</label>
-</hbox>
-
-<deck id="weavePrefsDeck" data-category="paneSync" hidden="true">
-  <groupbox id="noFxaAccount">
-    <hbox>
-      <vbox flex="1">
-        <label id="noFxaCaption">&signedOut.caption;</label>
-        <description id="noFxaDescription" flex="1">&signedOut.description;</description>
-      </vbox>
-      <vbox>
-        <image class="fxaSyncIllustration"/>
-      </vbox>
-    </hbox>
-    <hbox id="fxaNoLoginStatus" align="center" flex="1">
-      <vbox>
-        <image class="fxaProfileImage"/>
-      </vbox>
-      <vbox flex="1">
-        <hbox align="center" flex="1">
-          <hbox align="center" flex="1">
-            <label id="signedOutAccountBoxTitle">&signedOut.accountBox.title;</label>
-          </hbox>
-          <button id="noFxaSignIn"
-                  class="accessory-button"
-                  label="&signedOut.accountBox.signin2;"
-                  accesskey="&signedOut.accountBox.signin2.accesskey;"/>
-        </hbox>
-        <hbox align="center" flex="1">
-          <html:a id="noFxaSignUp"
-                  class="openLink"
-                  accesskey="&signedOut.accountBox.create2.accesskey;"
-                  onclick="gSyncPane.signUp();"
-                  onkeypress="gSyncPane.signUp();">&signedOut.accountBox.create2;</html:a>
-        </hbox>
-      </vbox>
-    </hbox>
-    <label class="fxaMobilePromo">
-        &mobilePromo3.start;<!-- We put these comments to avoid inserting white spaces
-        --><image class="androidLink"></image><label id="fxaMobilePromo-android"
-                  class="text-link"><!--
-        -->&mobilePromo3.androidLink;</label><!--
-        -->&mobilePromo3.iOSBefore;<!--
-        --><image class="iOSLink"></image><label id="fxaMobilePromo-ios"
-                  class="text-link"><!--
-        -->&mobilePromo3.iOSLink;</label><!--
-        -->&mobilePromo3.end;
-    </label>
-  </groupbox>
-
-  <vbox id="hasFxaAccount">
-    <hbox>
-      <vbox id="fxaContentWrapper" flex="1">
-        <groupbox id="fxaGroup">
-          <caption class="search-header" hidden="true"><label>&paneSync1.title;</label></caption>
-
-          <deck id="fxaLoginStatus" flex="1">
-
-            <!-- logged in and verified and all is good -->
-            <hbox id="fxaLoginVerified" align="center" flex="1">
-              <image class="fxaProfileImage actionable"
-                     role="button"
-                     onclick="gSyncPane.openChangeProfileImage(event);"
-                     onkeypress="gSyncPane.openChangeProfileImage(event);"
-                     tooltiptext="&profilePicture.tooltip;"/>
-              <vbox flex="1" pack="center">
-                <hbox flex="1" align="center">
-                  <label id="fxaDisplayName" hidden="true"/>
-                  <label class="fxaEmailAddress" flex="1" crop="end"/>
-                  <button id="fxaUnlinkButton"
-                          class="accessory-button"
-                          label="&disconnect3.label;"
-                          accesskey="&disconnect3.accesskey;"/>
-                </hbox>
-                <hbox>
-                  <html:a id="verifiedManage" class="openLink"
-                          accesskey="&verifiedManage.accesskey;"
-                          onkeypress="gSyncPane.openManageFirefoxAccount(event);">&verifiedManage.label;</html:a>
-                </hbox>
-              </vbox>
-            </hbox>
-
-            <!-- logged in to an unverified account -->
-            <hbox id="fxaLoginUnverified">
-              <vbox>
-                <image class="fxaProfileImage"/>
-              </vbox>
-              <vbox flex="1" pack="center">
-                <hbox>
-                  <image class="fxaLoginRejectedWarning"/>
-                  <description flex="1">
-                    &signedInUnverified.beforename.label;
-                    <label class="fxaEmailAddress"/>
-                    &signedInUnverified.aftername.label;
-                  </description>
-                </hbox>
-                <hbox class="fxaAccountBoxButtons">
-                  <button id="verifyFxaAccount" label="&verify.label;" accesskey="&verify.accesskey;"></button>
-                  <button id="unverifiedUnlinkFxaAccount" label="&forget.label;" accesskey="&forget.accesskey;"></button>
-                </hbox>
-              </vbox>
-            </hbox>
-
-            <!-- logged in locally but server rejected credentials -->
-            <hbox id="fxaLoginRejected">
-              <vbox>
-                <image class="fxaProfileImage"/>
-              </vbox>
-              <vbox flex="1" pack="center">
-                <hbox>
-                  <image class="fxaLoginRejectedWarning"/>
-                  <description flex="1">
-                    &signedInLoginFailure.beforename.label;
-                    <label class="fxaEmailAddress"/>
-                    &signedInLoginFailure.aftername.label;
-                  </description>
-                </hbox>
-                <hbox class="fxaAccountBoxButtons">
-                  <button id="rejectReSignIn" label="&signIn.label;" accesskey="&signIn.accesskey;"></button>
-                  <button id="rejectUnlinkFxaAccount" label="&forget.label;" accesskey="&forget.accesskey;"></button>
-                </hbox>
-              </vbox>
-            </hbox>
-          </deck>
-        </groupbox>
-        <groupbox id="syncOptions">
-          <caption><label>&signedIn.settings.label;</label></caption>
-          <description>&signedIn.settings.description;</description>
-          <hbox id="fxaSyncEngines">
-            <vbox flex="1">
-              <checkbox label="&engine.tabs.label2;"
-                        accesskey="&engine.tabs.accesskey;"
-                        preference="engine.tabs"/>
-              <checkbox label="&engine.bookmarks.label;"
-                        accesskey="&engine.bookmarks.accesskey;"
-                        preference="engine.bookmarks"/>
-              <checkbox label="&engine.logins.label;"
-                        accesskey="&engine.logins.accesskey;"
-                        preference="engine.passwords"/>
-              <checkbox label="&engine.history.label;"
-                        accesskey="&engine.history.accesskey;"
-                        preference="engine.history"/>
-            </vbox>
-            <vbox flex="1">
-              <checkbox label="&engine.addons.label;"
-                        accesskey="&engine.addons.accesskey;"
-                        preference="engine.addons"/>
-              <checkbox label="&engine.prefs.label;"
-                        accesskey="&engine.prefs.accesskey;"
-                        preference="engine.prefs"/>
-              <checkbox label="&engine.addresses.label;"
-                        accesskey="&engine.addresses.accesskey;"
-                        preference="engine.addresses"/>
-              <checkbox label="&engine.creditcards.label;"
-                        accesskey="&engine.creditcards.accesskey;"
-                        preference="engine.creditcards"/>
-            </vbox>
-            <spacer/>
-          </hbox>
-        </groupbox>
-      </vbox>
-    </hbox>
-    <groupbox>
-      <caption>
-        <label control="fxaSyncComputerName">
-          &fxaSyncDeviceName.label;
-        </label>
-      </caption>
-      <hbox id="fxaDeviceName">
-        <textbox id="fxaSyncComputerName" flex="1" disabled="true"/>
-        <button id="fxaChangeDeviceName"
-                label="&changeSyncDeviceName2.label;"
-                accesskey="&changeSyncDeviceName2.accesskey;"/>
-        <button id="fxaCancelChangeDeviceName"
-                label="&cancelChangeSyncDeviceName.label;"
-                accesskey="&cancelChangeSyncDeviceName.accesskey;"
-                hidden="true"/>
-        <button id="fxaSaveChangeDeviceName"
-                label="&saveChangeSyncDeviceName.label;"
-                accesskey="&saveChangeSyncDeviceName.accesskey;"
-                hidden="true"/>
-      </hbox>
-    </groupbox>
-    <label class="fxaMobilePromo">
-        &mobilePromo3.start;<!-- We put these comments to avoid inserting white spaces
-        --><image class="androidLink"></image><label class="text-link" id="fxaMobilePromo-android-hasFxaAccount"><!--
-        -->&mobilePromo3.androidLink;</label><!--
-        -->&mobilePromo3.iOSBefore;<!--
-        --><image class="iOSLink"></image><label class="text-link" id="fxaMobilePromo-ios-hasFxaAccount"><!--
-        -->&mobilePromo3.iOSLink;</label><!--
-        -->&mobilePromo3.end;
-    </label>
-    <vbox id="tosPP-small" align="start">
-      <label id="tosPP-small-ToS" class="text-link">
-        &prefs.tosLink.label;
-      </label>
-      <label id="tosPP-small-PP" class="text-link">
-        &fxaPrivacyNotice.link.label;
-      </label>
-    </vbox>
-  </vbox>
-</deck>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/.eslintrc.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": [
-    "plugin:mozilla/browser-test"
-  ]
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser.ini
+++ /dev/null
@@ -1,80 +0,0 @@
-[DEFAULT]
-support-files =
-  head.js
-  privacypane_tests_perwindow.js
-  site_data_test.html
-  offline/offline.html
-  offline/manifest.appcache
-
-[browser_applications_selection.js]
-skip-if = os == 'linux' # bug 1382057
-[browser_advanced_update.js]
-skip-if = !updater
-[browser_basic_rebuild_fonts_test.js]
-[browser_bug410900.js]
-[browser_bug705422.js]
-[browser_bug731866.js]
-[browser_search_within_preferences_1.js]
-[browser_search_within_preferences_2.js]
-[browser_search_within_preferences_command.js]
-[browser_search_subdialogs_within_preferences_1.js]
-[browser_search_subdialogs_within_preferences_2.js]
-[browser_search_subdialogs_within_preferences_3.js]
-[browser_search_subdialogs_within_preferences_4.js]
-[browser_search_subdialogs_within_preferences_5.js]
-[browser_search_subdialogs_within_preferences_6.js]
-[browser_search_subdialogs_within_preferences_7.js]
-[browser_search_subdialogs_within_preferences_8.js]
-[browser_bug795764_cachedisabled.js]
-[browser_bug1018066_resetScrollPosition.js]
-[browser_bug1020245_openPreferences_to_paneContent.js]
-[browser_bug1184989_prevent_scrolling_when_preferences_flipped.js]
-[browser_engines.js]
-support-files =
-  browser_bug1184989_prevent_scrolling_when_preferences_flipped.xul
-[browser_change_app_handler.js]
-skip-if = os != "win" || (os == "win" && os_version == "6.1")
-# This test tests the windows-specific app selection dialog, so can't run on non-Windows.
-# Skip the test on Window 7, see the detail at Bug 1381706.
-[browser_checkspelling.js]
-[browser_connection.js]
-[browser_connection_bug388287.js]
-[browser_cookies_exceptions.js]
-[browser_defaultbrowser_alwayscheck.js]
-[browser_healthreport.js]
-skip-if = true || !healthreport # Bug 1185403 for the "true"
-[browser_homepages_filter_aboutpreferences.js]
-[browser_layersacceleration.js]
-[browser_masterpassword.js]
-[browser_notifications_do_not_disturb.js]
-[browser_password_management.js]
-[browser_performance.js]
-skip-if = !e10s
-[browser_performance_e10srollout.js]
-skip-if = !e10s
-[browser_performance_non_e10s.js]
-skip-if = e10s
-[browser_permissions_urlFieldHidden.js]
-[browser_proxy_backup.js]
-[browser_privacypane_1.js]
-[browser_privacypane_3.js]
-[browser_privacypane_4.js]
-[browser_privacypane_5.js]
-[browser_privacypane_8.js]
-[browser_sanitizeOnShutdown_prefLocked.js]
-[browser_searchsuggestions.js]
-[browser_security-1.js]
-[browser_security-2.js]
-[browser_siteData.js]
-[browser_siteData2.js]
-[browser_siteData3.js]
-[browser_site_login_exceptions.js]
-[browser_permissions_dialog.js]
-[browser_cookies_dialog.js]
-[browser_subdialogs.js]
-support-files =
-  subdialog.xul
-  subdialog2.xul
-[browser_telemetry.js]
-# Skip this test on Android as FHR and Telemetry are separate systems there.
-skip-if = !healthreport || !telemetry || (os == 'linux' && debug) || (os == 'android')
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_advanced_update.js
+++ /dev/null
@@ -1,161 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-const { classes: Cc, interfaces: Ci, manager: Cm, utils: Cu, results: Cr } = Components;
-
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-
-const uuidGenerator = Cc["@mozilla.org/uuid-generator;1"].getService(Ci.nsIUUIDGenerator);
-
-const mockUpdateManager = {
-  contractId: "@mozilla.org/updates/update-manager;1",
-
-  _mockClassId: uuidGenerator.generateUUID(),
-
-  _originalClassId: "",
-
-  _originalFactory: null,
-
-  QueryInterface: XPCOMUtils.generateQI([Ci.nsIUpdateManager]),
-
-  createInstance(outer, iiD) {
-    if (outer) {
-      throw Cr.NS_ERROR_NO_AGGREGATION;
-    }
-    return this.QueryInterface(iiD);
-  },
-
-  register() {
-    let registrar = Cm.QueryInterface(Ci.nsIComponentRegistrar);
-    if (!registrar.isCIDRegistered(this._mockClassId)) {
-      this._originalClassId = registrar.contractIDToCID(this.contractId);
-      this._originalFactory = Cm.getClassObject(Cc[this.contractId], Ci.nsIFactory);
-      registrar.unregisterFactory(this._originalClassId, this._originalFactory);
-      registrar.registerFactory(this._mockClassId, "Unregister after testing", this.contractId, this);
-    }
-  },
-
-  unregister() {
-    let registrar = Cm.QueryInterface(Ci.nsIComponentRegistrar);
-    registrar.unregisterFactory(this._mockClassId, this);
-    registrar.registerFactory(this._originalClassId, "", this.contractId, this._originalFactory);
-  },
-
-  get updateCount() {
-    return this._updates.length;
-  },
-
-  getUpdateAt(index) {
-    return this._updates[index];
-  },
-
-  _updates: [
-    {
-      name: "Firefox Developer Edition 49.0a2",
-      statusText: "The Update was successfully installed",
-      buildID: "20160728004010",
-      type: "minor",
-      installDate: 1469763105156,
-      detailsURL: "https://www.mozilla.org/firefox/aurora/"
-    },
-    {
-      name: "Firefox Developer Edition 43.0a2",
-      statusText: "The Update was successfully installed",
-      buildID: "20150929004011",
-      type: "minor",
-      installDate: 1443585886224,
-      detailsURL: "https://www.mozilla.org/firefox/aurora/"
-    },
-    {
-      name: "Firefox Developer Edition 42.0a2",
-      statusText: "The Update was successfully installed",
-      buildID: "20150920004018",
-      type: "major",
-      installDate: 1442818147544,
-      detailsURL: "https://www.mozilla.org/firefox/aurora/"
-    }
-  ]
-};
-
-function resetPreferences() {
-  Services.prefs.clearUserPref("browser.search.update");
-}
-
-function formatInstallDate(sec) {
-  var date = new Date(sec);
-  const dtOptions = { year: "numeric", month: "long", day: "numeric",
-                      hour: "numeric", minute: "numeric", second: "numeric" };
-  return date.toLocaleString(undefined, dtOptions);
-}
-
-registerCleanupFunction(resetPreferences);
-
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("advanced", { leaveOpen: true });
-  resetPreferences();
-  Services.prefs.setBoolPref("browser.search.update", false);
-
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let enableSearchUpdate = doc.getElementById("enableSearchUpdate");
-  is_element_visible(enableSearchUpdate, "Check search update preference is visible");
-
-  // Ensure that the update pref dialog reflects the actual pref value.
-  ok(!enableSearchUpdate.checked, "Ensure search updates are disabled");
-  Services.prefs.setBoolPref("browser.search.update", true);
-  ok(enableSearchUpdate.checked, "Ensure search updates are enabled");
-
-  gBrowser.removeCurrentTab();
-});
-
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("advanced", { leaveOpen: true });
-  let doc = gBrowser.selectedBrowser.contentDocument;
-
-  let showBtn = doc.getElementById("showUpdateHistory");
-  let dialogOverlay = content.gSubDialog._preloadDialog._overlay;
-
-  // XXX: For unknown reasons, this mock cannot be loaded by
-  // XPCOMUtils.defineLazyServiceGetter() called in aboutDialog-appUpdater.js.
-  // It is registered here so that we could assert update history subdialog
-  // without stopping the preferences advanced pane from loading.
-  // See bug 1361929.
-  mockUpdateManager.register();
-
-  // Test the dialog window opens
-  is(dialogOverlay.style.visibility, "", "The dialog should be invisible");
-  let promiseSubDialogLoaded = promiseLoadSubDialog("chrome://mozapps/content/update/history.xul");
-  showBtn.doCommand();
-  await promiseSubDialogLoaded;
-  is(dialogOverlay.style.visibility, "visible", "The dialog should be visible");
-
-  let dialogFrame = dialogOverlay.querySelector(".dialogFrame");
-  let frameDoc = dialogFrame.contentDocument;
-  let updates = frameDoc.querySelectorAll("update");
-
-  // Test the update history numbers are correct
-  is(updates.length, mockUpdateManager.updateCount, "The update count is incorrect.");
-
-  // Test the updates are displayed correctly
-  let update = null;
-  let updateData = null;
-  for (let i = 0; i < updates.length; ++i) {
-    update = updates[i];
-    updateData = mockUpdateManager.getUpdateAt(i);
-
-    is(update.name, updateData.name + " (" + updateData.buildID + ")", "Wrong update name");
-    is(update.type, updateData.type == "major" ? "New Version" : "Security Update", "Wrong update type");
-    is(update.installDate, formatInstallDate(updateData.installDate), "Wrong update installDate");
-    is(update.detailsURL, updateData.detailsURL, "Wrong update detailsURL");
-    is(update.status, updateData.statusText, "Wrong update status");
-  }
-
-  // Test the dialog window closes
-  let closeBtn = dialogOverlay.querySelector(".dialogClose");
-  closeBtn.doCommand();
-  is(dialogOverlay.style.visibility, "", "The dialog should be invisible");
-
-  mockUpdateManager.unregister();
-  gBrowser.removeCurrentTab();
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_applications_selection.js
+++ /dev/null
@@ -1,161 +0,0 @@
-var win;
-var feedItem;
-var container;
-
-SimpleTest.requestCompleteLog();
-
-add_task(async function setup() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  info("Preferences page opened on the paneGeneral pane.");
-
-  registerCleanupFunction(() => {
-    gBrowser.removeCurrentTab();
-  });
-});
-
-add_task(async function getFeedItem() {
-  win = gBrowser.selectedBrowser.contentWindow;
-
-  container = win.document.getElementById("handlersView");
-  feedItem = container.querySelector("richlistitem[type='application/vnd.mozilla.maybe.feed']");
-  Assert.ok(feedItem, "feedItem is present in handlersView.");
-});
-
-add_task(async function selectInternalOptionForFeed() {
-  // Select the item.
-  feedItem.scrollIntoView();
-  container.selectItem(feedItem);
-  Assert.ok(feedItem.selected, "Should be able to select our item.");
-
-  // Wait for the menu.
-  let list = await waitForCondition(() =>
-    win.document.getAnonymousElementByAttribute(feedItem, "class", "actionsMenu"));
-  info("Got list after item was selected");
-
-  // Find the "Add Live bookmarks option".
-  let chooseItems = list.getElementsByAttribute("action", Ci.nsIHandlerInfo.handleInternally);
-  Assert.equal(chooseItems.length, 1, "Should only be one action to handle internally");
-
-  // Select the option.
-  let cmdEvent = win.document.createEvent("xulcommandevent");
-  cmdEvent.initCommandEvent("command", true, true, win, 0, false, false, false, false, null, 0);
-  chooseItems[0].dispatchEvent(cmdEvent);
-
-  // Check that we display the correct result.
-  list = await waitForCondition(() =>
-    win.document.getAnonymousElementByAttribute(feedItem, "class", "actionsMenu"));
-  info("Got list after item was selected");
-  Assert.ok(list.selectedItem, "Should have a selected item.");
-  Assert.equal(list.selectedItem.getAttribute("action"),
-               Ci.nsIHandlerInfo.handleInternally,
-               "Newly selected item should be the expected one.");
-});
-
-// This builds on the previous selectInternalOptionForFeed task.
-add_task(async function reselectInternalOptionForFeed() {
-  // Now select a different option in the list - use the pdf item as that doesn't
-  // need to load any favicons.
-  let anotherItem = container.querySelector("richlistitem[type='application/pdf']");
-
-  container.selectItem(anotherItem);
-
-  // Wait for the menu so that we don't hit race conditions.
-  await waitForCondition(() =>
-    win.document.getAnonymousElementByAttribute(anotherItem, "class", "actionsMenu"));
-  info("Got list after item was selected");
-
-  // Now select the feed item again, and check what it is displaying.
-  container.selectItem(feedItem);
-
-  let list = await waitForCondition(() =>
-    win.document.getAnonymousElementByAttribute(feedItem, "class", "actionsMenu"));
-  info("Got list after item was selected");
-
-  Assert.ok(list.selectedItem,
-            "Should have a selected item");
-  Assert.equal(list.selectedItem.getAttribute("action"),
-               Ci.nsIHandlerInfo.handleInternally,
-               "Selected item should still be the same as the previously selected item.");
-});
-
-add_task(async function sortingCheck() {
-  win = gBrowser.selectedBrowser.contentWindow;
-
-  const handlerView = win.document.getElementById("handlersView");
-  const typeColumn = win.document.getElementById("typeColumn");
-  Assert.ok(typeColumn, "typeColumn is present in handlersView.");
-
-  // Test default sorting
-  assertSortByType("ascending");
-
-  const oldDir = typeColumn.getAttribute("sortDirection");
-
-
-  // Test sorting on the type column
-  typeColumn.click();
-  assertSortByType("descending");
-  Assert.notEqual(oldDir,
-               typeColumn.getAttribute("sortDirection"),
-               "Sort direction should change");
-
-  typeColumn.click();
-  assertSortByType("ascending");
-
-  const actionColumn = win.document.getElementById("actionColumn");
-  Assert.ok(actionColumn, "actionColumn is present in handlersView.");
-
-  // Test sorting on the action column
-  const oldActionDir = actionColumn.getAttribute("sortDirection");
-  actionColumn.click();
-  assertSortByAction("ascending");
-  Assert.notEqual(oldActionDir,
-               actionColumn.getAttribute("sortDirection"),
-               "Sort direction should change");
-
-  actionColumn.click();
-  assertSortByAction("descending");
-
-  function assertSortByAction(order) {
-  Assert.equal(actionColumn.getAttribute("sortDirection"),
-               order,
-               `Sort direction should be ${order}`);
-    let siteItems = handlerView.getElementsByTagName("richlistitem");
-    for (let i = 0; i < siteItems.length - 1; ++i) {
-      let aType = siteItems[i].getAttribute("actionDescription").toLowerCase();
-      let bType = siteItems[i + 1].getAttribute("actionDescription").toLowerCase();
-      let result = 0;
-      if (aType > bType) {
-        result = 1;
-      } else if (bType > aType) {
-        result = -1;
-      }
-      if (order == "ascending") {
-        Assert.lessOrEqual(result, 0, "Should sort applications in the ascending order by action");
-      } else {
-        Assert.greaterOrEqual(result, 0, "Should sort applications in the descending order by action");
-      }
-    }
-  }
-
-  function assertSortByType(order) {
-  Assert.equal(typeColumn.getAttribute("sortDirection"),
-               order,
-               `Sort direction should be ${order}`);
-    let siteItems = handlerView.getElementsByTagName("richlistitem");
-    for (let i = 0; i < siteItems.length - 1; ++i) {
-      let aType = siteItems[i].getAttribute("typeDescription").toLowerCase();
-      let bType = siteItems[i + 1].getAttribute("typeDescription").toLowerCase();
-      let result = 0;
-      if (aType > bType) {
-        result = 1;
-      } else if (bType > aType) {
-        result = -1;
-      }
-      if (order == "ascending") {
-        Assert.lessOrEqual(result, 0, "Should sort applications in the ascending order by type");
-      } else {
-        Assert.greaterOrEqual(result, 0, "Should sort applications in the descending order by type");
-      }
-    }
-  }
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_basic_rebuild_fonts_test.js
+++ /dev/null
@@ -1,110 +0,0 @@
-Services.prefs.setBoolPref("browser.preferences.instantApply", true);
-
-registerCleanupFunction(function() {
-  Services.prefs.clearUserPref("browser.preferences.instantApply");
-});
-
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  let doc = gBrowser.contentDocument;
-  var langGroup = Services.prefs.getComplexValue("font.language.group", Ci.nsIPrefLocalizedString).data
-  is(doc.getElementById("font.language.group").value, langGroup,
-     "Language group should be set correctly.");
-
-  let defaultFontType = Services.prefs.getCharPref("font.default." + langGroup);
-  let fontFamily = Services.prefs.getCharPref("font.name." + defaultFontType + "." + langGroup);
-  let fontFamilyField = doc.getElementById("defaultFont");
-  is(fontFamilyField.value, fontFamily, "Font family should be set correctly.");
-
-  let defaultFontSize = Services.prefs.getIntPref("font.size.variable." + langGroup);
-  let fontSizeField = doc.getElementById("defaultFontSize");
-  is(fontSizeField.value, defaultFontSize, "Font size should be set correctly.");
-
-  let promiseSubDialogLoaded = promiseLoadSubDialog("chrome://browser/content/preferences/fonts.xul");
-  doc.getElementById("advancedFonts").click();
-  let win = await promiseSubDialogLoaded;
-  doc = win.document;
-
-  // Simulate a dumb font backend.
-  win.FontBuilder._enumerator = {
-    _list: ["MockedFont1", "MockedFont2", "MockedFont3"],
-    _defaultFont: null,
-    EnumerateFonts(lang, type, list) {
-      return this._list;
-    },
-    EnumerateAllFonts() {
-      return this._list;
-    },
-    getDefaultFont() { return this._defaultFont; },
-    getStandardFamilyName(name) { return name; },
-  };
-  win.FontBuilder._allFonts = null;
-  win.FontBuilder._langGroupSupported = false;
-
-  let langGroupElement = doc.getElementById("font.language.group");
-  let selectLangsField = doc.getElementById("selectLangs");
-  let serifField = doc.getElementById("serif");
-  let armenian = "x-armn";
-  let western = "x-western";
-
-  langGroupElement.value = armenian;
-  selectLangsField.value = armenian;
-  is(serifField.value, "", "Font family should not be set.");
-
-  let armenianSerifElement = doc.getElementById("font.name.serif.x-armn");
-
-  langGroupElement.value = western;
-  selectLangsField.value = western;
-
-  // Simulate a font backend supporting language-specific enumeration.
-  // NB: FontBuilder has cached the return value from EnumerateAllFonts(),
-  // so _allFonts will always have 3 elements regardless of subsequent
-  // _list changes.
-  win.FontBuilder._enumerator._list = ["MockedFont2"];
-
-  langGroupElement.value = armenian;
-  selectLangsField.value = armenian;
-  is(serifField.value, "", "Font family should still be empty for indicating using 'default' font.");
-
-  langGroupElement.value = western;
-  selectLangsField.value = western;
-
-  // Simulate a system that has no fonts for the specified language.
-  win.FontBuilder._enumerator._list = [];
-
-  langGroupElement.value = armenian;
-  selectLangsField.value = armenian;
-  is(serifField.value, "", "Font family should not be set.");
-
-  // Setting default font to "MockedFont3".  Then, when serifField.value is
-  // empty, it should indicate using "MockedFont3" but it shouldn't be saved
-  // to "MockedFont3" in the pref.  It should be resolved at runtime.
-  win.FontBuilder._enumerator._list = ["MockedFont1", "MockedFont2", "MockedFont3"];
-  win.FontBuilder._enumerator._defaultFont = "MockedFont3";
-  langGroupElement.value = armenian;
-  selectLangsField.value = armenian;
-  is(serifField.value, "", "Font family should be empty even if there is a default font.");
-
-  armenianSerifElement.value = "MockedFont2";
-  serifField.value = "MockedFont2";
-  is(serifField.value, "MockedFont2", "Font family should be \"MockedFont2\" for now.");
-
-  langGroupElement.value = western;
-  selectLangsField.value = western;
-  is(serifField.value, "", "Font family of other language should not be set.");
-
-  langGroupElement.value = armenian;
-  selectLangsField.value = armenian;
-  is(serifField.value, "MockedFont2", "Font family should not be changed even after switching the language.");
-
-  // If MochedFont2 is removed from the system, the value should be treated
-  // as empty (i.e., 'default' font) after rebuilding the font list.
-  win.FontBuilder._enumerator._list = ["MockedFont1", "MockedFont3"];
-  win.FontBuilder._enumerator._allFonts = ["MockedFont1", "MockedFont3"];
-  serifField.removeAllItems(); // This will cause rebuilding the font list from available fonts.
-  langGroupElement.value = armenian;
-  selectLangsField.value = armenian;
-  is(serifField.value, "", "Font family should become empty due to the font uninstalled.");
-
-  gBrowser.removeCurrentTab();
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug1018066_resetScrollPosition.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-var originalWindowHeight;
-registerCleanupFunction(function() {
-  window.resizeTo(window.outerWidth, originalWindowHeight);
-  while (gBrowser.tabs[1])
-    gBrowser.removeTab(gBrowser.tabs[1]);
-});
-
-add_task(async function() {
-  originalWindowHeight = window.outerHeight;
-  window.resizeTo(window.outerWidth, 300);
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneSearch", {leaveOpen: true});
-  is(prefs.selectedPane, "paneSearch", "Search pane was selected");
-  let mainContent = gBrowser.contentDocument.querySelector(".main-content");
-  mainContent.scrollTop = 50;
-  is(mainContent.scrollTop, 50, "main-content should be scrolled 50 pixels");
-
-  gBrowser.contentWindow.gotoPref("paneGeneral");
-  is(mainContent.scrollTop, 0,
-     "Switching to a different category should reset the scroll position");
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug1020245_openPreferences_to_paneContent.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-Services.prefs.setBoolPref("browser.preferences.instantApply", true);
-
-registerCleanupFunction(function() {
-  Services.prefs.clearUserPref("browser.preferences.instantApply");
-});
-
-// Test opening to the differerent panes and subcategories in Preferences
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("panePrivacy");
-  is(prefs.selectedPane, "panePrivacy", "Privacy pane was selected");
-  prefs = await openPreferencesViaHash("privacy");
-  is(prefs.selectedPane, "panePrivacy", "Privacy pane is selected when hash is 'privacy'");
-  prefs = await openPreferencesViaOpenPreferencesAPI("nonexistant-category");
-  is(prefs.selectedPane, "paneGeneral", "General pane is selected by default when a nonexistant-category is requested");
-  prefs = await openPreferencesViaHash("nonexistant-category");
-  is(prefs.selectedPane, "paneGeneral", "General pane is selected when hash is a nonexistant-category");
-  prefs = await openPreferencesViaHash();
-  is(prefs.selectedPane, "paneGeneral", "General pane is selected by default");
-  prefs = await openPreferencesViaOpenPreferencesAPI("privacy-reports", {leaveOpen: true});
-  is(prefs.selectedPane, "panePrivacy", "Privacy pane is selected by default");
-  let doc = gBrowser.contentDocument;
-  is(doc.location.hash, "#privacy", "The subcategory should be removed from the URI");
-  ok(doc.querySelector("#locationBarGroup").hidden, "Location Bar prefs should be hidden when only Reports are requested");
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-// Test opening Preferences with subcategory on an existing Preferences tab. See bug 1358475.
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("general", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane is selected by default");
-  let doc = gBrowser.contentDocument;
-  is(doc.location.hash, "#general", "The subcategory should be removed from the URI");
-  // The reasons that here just call the `openPreferences` API without the helping function are
-  //   - already opened one about:preferences tab up there and
-  //   - the goal is to test on the existing tab and
-  //   - using `openPreferencesViaOpenPreferencesAPI` would introduce more handling of additional about:blank and unneccessary event
-  openPreferences("privacy-reports");
-  let selectedPane = gBrowser.contentWindow.history.state;
-  is(selectedPane, "panePrivacy", "Privacy pane should be selected");
-  is(doc.location.hash, "#privacy", "The subcategory should be removed from the URI");
-  ok(doc.querySelector("#locationBarGroup").hidden, "Location Bar prefs should be hidden when only Reports are requested");
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-
-function openPreferencesViaHash(aPane) {
-  return new Promise(resolve => {
-    gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:preferences" + (aPane ? "#" + aPane : ""));
-    let newTabBrowser = gBrowser.selectedBrowser;
-
-    newTabBrowser.addEventListener("Initialized", function() {
-      newTabBrowser.contentWindow.addEventListener("load", function() {
-        let win = gBrowser.contentWindow;
-        let selectedPane = win.history.state;
-        gBrowser.removeCurrentTab();
-        resolve({selectedPane});
-      }, {once: true});
-    }, {capture: true, once: true});
-
-  });
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.js
+++ /dev/null
@@ -1,95 +0,0 @@
-const ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
-
-const {Utils} = Cu.import("resource://gre/modules/sessionstore/Utils.jsm", {});
-const triggeringPrincipal_base64 = Utils.SERIALIZED_SYSTEMPRINCIPAL;
-
-add_task(async function() {
-  waitForExplicitFinish();
-
-  const tabURL = getRootDirectory(gTestPath) + "browser_bug1184989_prevent_scrolling_when_preferences_flipped.xul";
-
-  await BrowserTestUtils.withNewTab({ gBrowser, url: tabURL }, async function(browser) {
-    let doc = browser.contentDocument;
-    let container = doc.getElementById("container");
-
-    // Test button
-    let button = doc.getElementById("button");
-    button.focus();
-    EventUtils.synthesizeKey(" ", {});
-    await checkPageScrolling(container, "button");
-
-    // Test checkbox
-    let checkbox = doc.getElementById("checkbox");
-    checkbox.focus();
-    EventUtils.synthesizeKey(" ", {});
-    ok(checkbox.checked, "Checkbox is checked");
-    await checkPageScrolling(container, "checkbox");
-
-    // Test listbox
-    let listbox = doc.getElementById("listbox");
-    let listitem = doc.getElementById("listitem");
-    listbox.focus();
-    EventUtils.synthesizeKey(" ", {});
-    ok(listitem.selected, "Listitem is selected");
-    await checkPageScrolling(container, "listbox");
-
-    // Test radio
-    let radiogroup = doc.getElementById("radiogroup");
-    radiogroup.focus();
-    EventUtils.synthesizeKey(" ", {});
-    await checkPageScrolling(container, "radio");
-  });
-
-  await BrowserTestUtils.withNewTab({ gBrowser, url: "about:preferences#search" }, async function(browser) {
-    let doc = browser.contentDocument;
-    let container = doc.getElementsByClassName("main-content")[0];
-
-    // Test search
-    let engineList = doc.getElementById("engineList");
-    engineList.focus();
-    EventUtils.synthesizeKey(" ", {});
-    is(engineList.view.selection.currentIndex, 0, "Search engineList is selected");
-    EventUtils.synthesizeKey(" ", {});
-    await checkPageScrolling(container, "search engineList");
-  });
-
-  // Test session restore
-  const CRASH_URL = "about:mozilla";
-  const CRASH_FAVICON = "chrome://branding/content/icon32.png";
-  const CRASH_SHENTRY = {url: CRASH_URL};
-  const CRASH_TAB = {entries: [CRASH_SHENTRY], image: CRASH_FAVICON};
-  const CRASH_STATE = {windows: [{tabs: [CRASH_TAB]}]};
-
-  const TAB_URL = "about:sessionrestore";
-  const TAB_FORMDATA = {url: TAB_URL, id: {sessionData: CRASH_STATE}};
-  const TAB_SHENTRY = {url: TAB_URL, triggeringPrincipal_base64};
-  const TAB_STATE = {entries: [TAB_SHENTRY], formdata: TAB_FORMDATA};
-
-  let tab = gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:blank");
-
-  // Fake a post-crash tab
-  ss.setTabState(tab, JSON.stringify(TAB_STATE));
-
-  await BrowserTestUtils.browserLoaded(tab.linkedBrowser);
-  let doc = tab.linkedBrowser.contentDocument;
-
-  // Make body scrollable
-  doc.body.style.height = (doc.body.clientHeight + 100) + "px";
-
-  let tabList = doc.getElementById("tabList");
-  tabList.focus();
-  EventUtils.synthesizeKey(" ", {});
-  await checkPageScrolling(doc.documentElement, "session restore");
-
-  gBrowser.removeCurrentTab();
-  finish();
-});
-
-function checkPageScrolling(container, type) {
-  return new Promise(resolve => {
-    setTimeout(() => {
-      is(container.scrollTop, 0, "Page should not scroll when " + type + " flipped");
-      resolve();
-    }, 0);
-  });
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.xul
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!--
-  XUL Widget Test for Bug 1184989
-  -->
-<page title="Bug 1184989 Test"
-      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<vbox id="container" style="height: 200px; overflow: auto;">
-  <vbox style="height: 500px;">
-    <hbox>
-      <button id="button" label="button" />
-    </hbox>
-
-    <hbox>
-      <checkbox id="checkbox" label="checkbox" />
-    </hbox>
-
-    <hbox style="height: 50px;">
-      <listbox id="listbox">
-        <listitem id="listitem" label="listitem" />
-        <listitem label="listitem" />
-      </listbox>
-    </hbox>
-
-    <hbox>
-      <radiogroup id="radiogroup">
-        <radio id="radio" label="radio" />
-      </radiogroup>
-    </hbox>
-  </vbox>
-</vbox>
-
-</page>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug410900.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-Components.utils.import("resource://gre/modules/PlacesUtils.jsm");
-Components.utils.import("resource://gre/modules/NetUtil.jsm");
-
-function test() {
-  waitForExplicitFinish();
-
-  // Setup a phony handler to ensure the app pane will be populated.
-  var handler = Cc["@mozilla.org/uriloader/web-handler-app;1"].
-                createInstance(Ci.nsIWebHandlerApp);
-  handler.name = "App pane alive test";
-  handler.uriTemplate = "http://test.mozilla.org/%s";
-
-  var extps = Cc["@mozilla.org/uriloader/external-protocol-service;1"].
-              getService(Ci.nsIExternalProtocolService);
-  var info = extps.getProtocolHandlerInfo("apppanetest");
-  info.possibleApplicationHandlers.appendElement(handler);
-
-  var hserv = Cc["@mozilla.org/uriloader/handler-service;1"].
-              getService(Ci.nsIHandlerService);
-  hserv.store(info);
-
-  openPreferencesViaOpenPreferencesAPI("general", {leaveOpen: true}).then(
-      () => runTest(gBrowser.selectedBrowser.contentWindow)
-  );
-}
-
-function runTest(win) {
-  var rbox = win.document.getElementById("handlersView");
-  ok(rbox, "handlersView is present");
-
-  var items = rbox && rbox.getElementsByTagName("richlistitem");
-  ok(items && items.length > 0, "App handler list populated");
-
-  var handlerAdded = false;
-  for (let i = 0; i < items.length; i++) {
-    if (items[i].getAttribute("type") == "apppanetest")
-      handlerAdded = true;
-  }
-  ok(handlerAdded, "apppanetest protocol handler was successfully added");
-
-  gBrowser.removeCurrentTab();
-  finish();
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug705422.js
+++ /dev/null
@@ -1,144 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-function test() {
-  waitForExplicitFinish();
-  // Allow all cookies, then actually set up the test
-  SpecialPowers.pushPrefEnv({"set": [["network.cookie.cookieBehavior", 0]]}, initTest);
-}
-
-function initTest() {
-    const searchTerm = "example";
-    const dummyTerm = "elpmaxe";
-
-    var cm =  Components.classes["@mozilla.org/cookiemanager;1"]
-                        .getService(Components.interfaces.nsICookieManager);
-
-    // delete all cookies (might be left over from other tests)
-    cm.removeAll();
-
-    // data for cookies
-    var vals = [[searchTerm + ".com", dummyTerm, dummyTerm],           // match
-                [searchTerm + ".org", dummyTerm, dummyTerm],           // match
-                [dummyTerm + ".com", searchTerm, dummyTerm],           // match
-                [dummyTerm + ".edu", searchTerm + dummyTerm, dummyTerm], // match
-                [dummyTerm + ".net", dummyTerm, searchTerm],           // match
-                [dummyTerm + ".org", dummyTerm, searchTerm + dummyTerm], // match
-                [dummyTerm + ".int", dummyTerm, dummyTerm]];           // no match
-
-    // matches must correspond to above data
-    const matches = 6;
-
-    var ios = Components.classes["@mozilla.org/network/io-service;1"]
-                        .getService(Components.interfaces.nsIIOService);
-    var cookieSvc = Components.classes["@mozilla.org/cookieService;1"]
-                              .getService(Components.interfaces.nsICookieService);
-    var v;
-    // inject cookies
-    for (v in vals) {
-        let [host, name, value] = vals[v];
-        var cookieUri = ios.newURI("http://" + host);
-        cookieSvc.setCookieString(cookieUri, null, name + "=" + value + ";", null);
-    }
-
-    // open cookie manager
-    var cmd = window.openDialog("chrome://browser/content/preferences/cookies.xul",
-                                "Browser:Cookies", "", {});
-
-    // when it has loaded, run actual tests
-    cmd.addEventListener("load", function() { executeSoon(function() { runTest(cmd, searchTerm, vals.length, matches); }); });
-}
-
-function isDisabled(win, expectation) {
-    var disabled = win.document.getElementById("removeAllCookies").disabled;
-    is(disabled, expectation, "Remove all cookies button has correct state: " + (expectation ? "disabled" : "enabled"));
-}
-
-function runTest(win, searchTerm, cookies, matches) {
-    var cm =  Components.classes["@mozilla.org/cookiemanager;1"]
-                        .getService(Components.interfaces.nsICookieManager);
-
-
-    // number of cookies should match injected cookies
-    var injectedCookies = 0,
-        injectedEnumerator = cm.enumerator;
-    while (injectedEnumerator.hasMoreElements()) {
-        injectedCookies++;
-        injectedEnumerator.getNext();
-    }
-    is(injectedCookies, cookies, "Number of cookies match injected cookies");
-
-    // "delete all cookies" should be enabled
-    isDisabled(win, false);
-
-    // filter cookies and count matches
-    win.gCookiesWindow.setFilter(searchTerm);
-    is(win.gCookiesWindow._view.rowCount, matches, "Correct number of cookies shown after filter is applied");
-
-    // "delete all cookies" should be enabled
-    isDisabled(win, false);
-
-
-    // select first cookie and delete
-    var tree = win.document.getElementById("cookiesList");
-    var deleteButton = win.document.getElementById("removeSelectedCookies");
-    var rect = tree.treeBoxObject.getCoordsForCellItem(0, tree.columns[0], "cell");
-    EventUtils.synthesizeMouse(tree.body, rect.x + rect.width / 2, rect.y + rect.height / 2, {}, win);
-    EventUtils.synthesizeMouseAtCenter(deleteButton, {}, win);
-
-    // count cookies should be matches-1
-    is(win.gCookiesWindow._view.rowCount, matches - 1, "Deleted selected cookie");
-
-    // select two adjacent cells and delete
-    EventUtils.synthesizeMouse(tree.body, rect.x + rect.width / 2, rect.y + rect.height / 2, {}, win);
-    var eventObj = {};
-    if (navigator.platform.indexOf("Mac") >= 0)
-        eventObj.metaKey = true;
-    else
-        eventObj.ctrlKey = true;
-    rect = tree.treeBoxObject.getCoordsForCellItem(1, tree.columns[0], "cell");
-    EventUtils.synthesizeMouse(tree.body, rect.x + rect.width / 2, rect.y + rect.height / 2, eventObj, win);
-    EventUtils.synthesizeMouseAtCenter(deleteButton, {}, win);
-
-    // count cookies should be matches-3
-    is(win.gCookiesWindow._view.rowCount, matches - 3, "Deleted selected two adjacent cookies");
-
-    // "delete all cookies" should be enabled
-    isDisabled(win, false);
-
-    // delete all cookies and count
-    var deleteAllButton = win.document.getElementById("removeAllCookies");
-    EventUtils.synthesizeMouseAtCenter(deleteAllButton, {}, win);
-    is(win.gCookiesWindow._view.rowCount, 0, "Deleted all matching cookies");
-
-    // "delete all cookies" should be disabled
-    isDisabled(win, true);
-
-    // clear filter and count should be cookies-matches
-    win.gCookiesWindow.setFilter("");
-    is(win.gCookiesWindow._view.rowCount, cookies - matches, "Unmatched cookies remain");
-
-    // "delete all cookies" should be enabled
-    isDisabled(win, false);
-
-    // delete all cookies and count should be 0
-    EventUtils.synthesizeMouseAtCenter(deleteAllButton, {}, win);
-    is(win.gCookiesWindow._view.rowCount, 0, "Deleted all cookies");
-
-    // check that datastore is also at 0
-    var remainingCookies = 0,
-        remainingEnumerator = cm.enumerator;
-    while (remainingEnumerator.hasMoreElements()) {
-        remainingCookies++;
-        remainingEnumerator.getNext();
-    }
-    is(remainingCookies, 0, "Zero cookies remain");
-
-    // "delete all cookies" should be disabled
-    isDisabled(win, true);
-
-    // clean up
-    win.close();
-    finish();
-}
-
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug731866.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-Components.utils.import("resource://gre/modules/PlacesUtils.jsm");
-Components.utils.import("resource://gre/modules/NetUtil.jsm");
-
-const storageManagerDisabled = !SpecialPowers.getBoolPref("browser.storageManager.enabled");
-const offlineGroupDisabled = !SpecialPowers.getBoolPref("browser.preferences.offlineGroup.enabled");
-const browserContainersGroupDisabled = !SpecialPowers.getBoolPref("privacy.userContext.ui.enabled");
-
-function test() {
-  waitForExplicitFinish();
-  open_preferences(runTest);
-}
-
-var gElements;
-
-function checkElements(expectedPane) {
-  for (let element of gElements) {
-    // keyset and preferences elements fail is_element_visible checks because they are never visible.
-    // special-case the drmGroup item because its visibility depends on pref + OS version
-    if (element.nodeName == "keyset" ||
-        element.nodeName == "preferences" ||
-        element.id === "drmGroup") {
-      continue;
-    }
-    // The siteDataGroup in the Storage Management project is currently only pref-on on Nightly for testing purpose.
-    // During the test and the transition period, we have to check the pref to see if the siteDataGroup
-    // should be hidden always. This would be a bit bothersome, same as the offlineGroup as below.
-    // However, this checking is necessary to make sure we don't leak the siteDataGroup into beta/release build
-    if (element.id == "siteDataGroup" && storageManagerDisabled) {
-      is_element_hidden(element, "Disabled siteDataGroup should be hidden");
-      continue;
-    }
-    // The siteDataGroup in the Storage Management project will replace the offlineGroup eventually,
-    // so during the transition period, we have to check the pref to see if the offlineGroup
-    // should be hidden always. See the bug 1354530 for the details.
-    if (element.id == "offlineGroup" && offlineGroupDisabled) {
-      is_element_hidden(element, "Disabled offlineGroup should be hidden");
-      continue;
-    }
-    // The browserContainersGroup is still only pref-on on Nightly
-    if (element.id == "browserContainersGroup" && browserContainersGroupDisabled) {
-      is_element_hidden(element, "Disabled browserContainersGroup should be hidden");
-      continue;
-    }
-
-    let attributeValue = element.getAttribute("data-category");
-    let suffix = " (id=" + element.id + ")";
-    if (attributeValue == "pane" + expectedPane) {
-      is_element_visible(element, expectedPane + " elements should be visible" + suffix);
-    } else {
-      is_element_hidden(element, "Elements not in " + expectedPane + " should be hidden" + suffix);
-    }
-  }
-}
-
-function runTest(win) {
-  is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded");
-
-  let tab = win.document;
-  gElements = tab.getElementById("mainPrefPane").children;
-
-  let panes = [
-    "General", "Search",
-    "Privacy", "Sync",
-  ];
-
-  for (let pane of panes) {
-    win.gotoPref("pane" + pane);
-    checkElements(pane);
-  }
-
-  gBrowser.removeCurrentTab();
-  win.close();
-  finish();
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_bug795764_cachedisabled.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-const { interfaces: Ci, utils: Cu } = Components;
-Cu.import("resource://gre/modules/PlacesUtils.jsm");
-Cu.import("resource://gre/modules/NetUtil.jsm");
-
-function test() {
-  waitForExplicitFinish();
-
-  // Adding one fake site so that the SiteDataManager would run.
-  // Otherwise, without any site then it would just return so we would end up in not testing SiteDataManager.
-  let principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin("https://www.foo.com");
-  Services.perms.addFromPrincipal(principal, "persistent-storage", Ci.nsIPermissionManager.ALLOW_ACTION);
-  registerCleanupFunction(function() {
-    Services.perms.removeFromPrincipal(principal, "persistent-storage");
-  });
-
-  SpecialPowers.pushPrefEnv({set: [
-    ["browser.cache.offline.enable", false],
-    ["browser.cache.disk.enable", false],
-    ["browser.cache.memory.enable", false],
-    ["browser.storageManager.enabled", true],
-    ["browser.preferences.offlineGroup.enabled", true],
-    ["privacy.userContext.ui.enabled", true]
-  ]}).then(() => open_preferences(runTest));
-}
-
-function runTest(win) {
-  is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded");
-
-  let tab = win.document;
-  let elements = tab.getElementById("mainPrefPane").children;
-
-  // Test if privacy pane is opened correctly
-  win.gotoPref("panePrivacy");
-  for (let element of elements) {
-    if (element.nodeName == "preferences") {
-      continue;
-    }
-    let attributeValue = element.getAttribute("data-category");
-    if (attributeValue == "panePrivacy") {
-      is_element_visible(element, `Privacy element of id=${element.id} should be visible`);
-    } else {
-      is_element_hidden(element, `Non-Privacy element of id=${element.id} should be hidden`);
-    }
-  }
-
-  gBrowser.removeCurrentTab();
-  win.close();
-  finish();
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_change_app_handler.js
+++ /dev/null
@@ -1,101 +0,0 @@
-var gMimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
-var gHandlerSvc = Cc["@mozilla.org/uriloader/handler-service;1"].getService(Ci.nsIHandlerService);
-
-SimpleTest.requestCompleteLog();
-
-function setupFakeHandler() {
-  let info = gMimeSvc.getFromTypeAndExtension("text/plain", "foo.txt");
-  ok(info.possibleLocalHandlers.length, "Should have at least one known handler");
-  let handler = info.possibleLocalHandlers.queryElementAt(0, Ci.nsILocalHandlerApp);
-
-  let infoToModify = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
-  infoToModify.possibleApplicationHandlers.appendElement(handler);
-
-  gHandlerSvc.store(infoToModify);
-}
-
-add_task(async function() {
-  setupFakeHandler();
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-  let win = gBrowser.selectedBrowser.contentWindow;
-
-  let container = win.document.getElementById("handlersView");
-  let ourItem = container.querySelector("richlistitem[type='text/x-test-handler']");
-  ok(ourItem, "handlersView is present");
-  ourItem.scrollIntoView();
-  container.selectItem(ourItem);
-  ok(ourItem.selected, "Should be able to select our item.");
-
-  let list = await waitForCondition(() => win.document.getAnonymousElementByAttribute(ourItem, "class", "actionsMenu"));
-  info("Got list after item was selected");
-
-  let chooseItem = list.firstChild.querySelector(".choose-app-item");
-  let dialogLoadedPromise = promiseLoadSubDialog("chrome://global/content/appPicker.xul");
-  let cmdEvent = win.document.createEvent("xulcommandevent");
-  cmdEvent.initCommandEvent("command", true, true, win, 0, false, false, false, false, null, 0);
-  chooseItem.dispatchEvent(cmdEvent);
-
-  let dialog = await dialogLoadedPromise;
-  info("Dialog loaded");
-
-  let dialogDoc = dialog.document;
-  let dialogList = dialogDoc.getElementById("app-picker-listbox");
-  dialogList.selectItem(dialogList.firstChild);
-  let selectedApp = dialogList.firstChild.handlerApp;
-  dialogDoc.documentElement.acceptDialog();
-
-  // Verify results are correct in mime service:
-  let mimeInfo = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
-  ok(mimeInfo.preferredApplicationHandler.equals(selectedApp), "App should be set as preferred.");
-
-  // Check that we display this result:
-  list = await waitForCondition(() => win.document.getAnonymousElementByAttribute(ourItem, "class", "actionsMenu"));
-  info("Got list after item was selected");
-  ok(list.selectedItem, "Should have a selected item");
-  ok(mimeInfo.preferredApplicationHandler.equals(list.selectedItem.handlerApp),
-     "App should be visible as preferred item.");
-
-
-  // Now try to 'manage' this list:
-  dialogLoadedPromise = promiseLoadSubDialog("chrome://browser/content/preferences/applicationManager.xul");
-
-  let manageItem = list.firstChild.querySelector(".manage-app-item");
-  cmdEvent = win.document.createEvent("xulcommandevent");
-  cmdEvent.initCommandEvent("command", true, true, win, 0, false, false, false, false, null, 0);
-  manageItem.dispatchEvent(cmdEvent);
-
-  dialog = await dialogLoadedPromise;
-  info("Dialog loaded the second time");
-
-  dialogDoc = dialog.document;
-  dialogList = dialogDoc.getElementById("appList");
-  let itemToRemove = dialogList.querySelector('listitem[label="' + selectedApp.name + '"]');
-  dialogList.selectItem(itemToRemove);
-  let itemsBefore = dialogList.children.length;
-  dialogDoc.getElementById("remove").click();
-  ok(!itemToRemove.parentNode, "Item got removed from DOM");
-  is(dialogList.children.length, itemsBefore - 1, "Item got removed");
-  dialogDoc.documentElement.acceptDialog();
-
-  // Verify results are correct in mime service:
-  mimeInfo = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
-  ok(!mimeInfo.preferredApplicationHandler, "App should no longer be set as preferred.");
-
-  // Check that we display this result:
-  list = await waitForCondition(() => win.document.getAnonymousElementByAttribute(ourItem, "class", "actionsMenu"));
-  ok(list.selectedItem, "Should have a selected item");
-  ok(!list.selectedItem.handlerApp,
-     "No app should be visible as preferred item.");
-
-  let tabRemovedPromise = BrowserTestUtils.tabRemoved(gBrowser.selectedTab);
-  gBrowser.removeCurrentTab();
-  await tabRemovedPromise;
-});
-
-registerCleanupFunction(function() {
-  let infoToModify = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
-  gHandlerSvc.remove(infoToModify);
-});
-
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_connection.js
+++ /dev/null
@@ -1,98 +0,0 @@
-/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
-/* 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/. */
-
-Components.utils.import("resource://gre/modules/Services.jsm");
-
-function test() {
-  waitForExplicitFinish();
-
-  // network.proxy.type needs to be backed up and restored because mochitest
-  // changes this setting from the default
-  let oldNetworkProxyType = Services.prefs.getIntPref("network.proxy.type");
-  registerCleanupFunction(function() {
-    Services.prefs.setIntPref("network.proxy.type", oldNetworkProxyType);
-    Services.prefs.clearUserPref("network.proxy.no_proxies_on");
-    Services.prefs.clearUserPref("browser.preferences.instantApply");
-  });
-
-  let connectionURL = "chrome://browser/content/preferences/connection.xul";
-
-  /*
-  The connection dialog alone won't save onaccept since it uses type="child",
-  so it has to be opened as a sub dialog of the main pref tab.
-  Open the main tab here.
-  */
-  open_preferences(async function tabOpened(aContentWindow) {
-    is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded");
-    let dialog = await openAndLoadSubDialog(connectionURL);
-    let dialogClosingPromise = waitForEvent(dialog.document.documentElement, "dialogclosing");
-
-    ok(dialog, "connection window opened");
-    runConnectionTests(dialog);
-    dialog.document.documentElement.acceptDialog();
-
-    let dialogClosingEvent = await dialogClosingPromise;
-    ok(dialogClosingEvent, "connection window closed");
-    // runConnectionTests will have changed this pref - make sure it was
-    // sanitized correctly when the dialog was accepted
-    is(Services.prefs.getCharPref("network.proxy.no_proxies_on"),
-       ".a.com,.b.com,.c.com", "no_proxies_on pref has correct value");
-    gBrowser.removeCurrentTab();
-    finish();
-  });
-}
-
-// run a bunch of tests on the window containing connection.xul
-function runConnectionTests(win) {
-  let doc = win.document;
-  let networkProxyNone = doc.getElementById("networkProxyNone");
-  let networkProxyNonePref = doc.getElementById("network.proxy.no_proxies_on");
-  let networkProxyTypePref = doc.getElementById("network.proxy.type");
-
-  // make sure the networkProxyNone textbox is formatted properly
-  is(networkProxyNone.getAttribute("multiline"), "true",
-     "networkProxyNone textbox is multiline");
-  is(networkProxyNone.getAttribute("rows"), "2",
-     "networkProxyNone textbox has two rows");
-
-  // check if sanitizing the given input for the no_proxies_on pref results in
-  // expected string
-  function testSanitize(input, expected, errorMessage) {
-    networkProxyNonePref.value = input;
-    win.gConnectionsDialog.sanitizeNoProxiesPref();
-    is(networkProxyNonePref.value, expected, errorMessage);
-  }
-
-  // change this pref so proxy exceptions are actually configurable
-  networkProxyTypePref.value = 1;
-  is(networkProxyNone.disabled, false, "networkProxyNone textbox is enabled");
-
-  testSanitize(".a.com", ".a.com",
-               "sanitize doesn't mess up single filter");
-  testSanitize(".a.com, .b.com, .c.com", ".a.com, .b.com, .c.com",
-               "sanitize doesn't mess up multiple comma/space sep filters");
-  testSanitize(".a.com\n.b.com", ".a.com,.b.com",
-               "sanitize turns line break into comma");
-  testSanitize(".a.com,\n.b.com", ".a.com,.b.com",
-               "sanitize doesn't add duplicate comma after comma");
-  testSanitize(".a.com\n,.b.com", ".a.com,.b.com",
-               "sanitize doesn't add duplicate comma before comma");
-  testSanitize(".a.com,\n,.b.com", ".a.com,,.b.com",
-               "sanitize doesn't add duplicate comma surrounded by commas");
-  testSanitize(".a.com, \n.b.com", ".a.com, .b.com",
-               "sanitize doesn't add comma after comma/space");
-  testSanitize(".a.com\n .b.com", ".a.com, .b.com",
-               "sanitize adds comma before space");
-  testSanitize(".a.com\n\n\n;;\n;\n.b.com", ".a.com,.b.com",
-               "sanitize only adds one comma per substring of bad chars");
-  testSanitize(".a.com,,.b.com", ".a.com,,.b.com",
-               "duplicate commas from user are untouched");
-  testSanitize(".a.com\n.b.com\n.c.com,\n.d.com,\n.e.com",
-               ".a.com,.b.com,.c.com,.d.com,.e.com",
-               "sanitize replaces things globally");
-
-  // will check that this was sanitized properly after window closes
-  networkProxyNonePref.value = ".a.com;.b.com\n.c.com";
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_connection_bug388287.js
+++ /dev/null
@@ -1,124 +0,0 @@
-/* vim: set ts=8 sts=2 et sw=2 tw=80: */
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-Components.utils.import("resource://gre/modules/Services.jsm");
-
-function test() {
-  waitForExplicitFinish();
-  const connectionURL = "chrome://browser/content/preferences/connection.xul";
-  let closeable = false;
-  let finalTest = false;
-
-  // The changed preferences need to be backed up and restored because this mochitest
-  // changes them setting from the default
-  let oldNetworkProxyType = Services.prefs.getIntPref("network.proxy.type");
-  registerCleanupFunction(function() {
-    Services.prefs.setIntPref("network.proxy.type", oldNetworkProxyType);
-    Services.prefs.clearUserPref("network.proxy.share_proxy_settings");
-    for (let proxyType of ["http", "ssl", "ftp", "socks"]) {
-      Services.prefs.clearUserPref("network.proxy." + proxyType);
-      Services.prefs.clearUserPref("network.proxy." + proxyType + "_port");
-      if (proxyType == "http") {
-        continue;
-      }
-      Services.prefs.clearUserPref("network.proxy.backup." + proxyType);
-      Services.prefs.clearUserPref("network.proxy.backup." + proxyType + "_port");
-    }
-  });
-
-  /*
-   The connection dialog alone won't save onaccept since it uses type="child",
-   so it has to be opened as a sub dialog of the main pref tab.
-   Open the main tab here.
-   */
-  open_preferences(async function tabOpened(aContentWindow) {
-    let dialog, dialogClosingPromise;
-    let doc, proxyTypePref, sharePref, httpPref, httpPortPref, ftpPref, ftpPortPref;
-
-    // Convenient function to reset the variables for the new window
-    async function setDoc() {
-      if (closeable) {
-        let dialogClosingEvent = await dialogClosingPromise;
-        ok(dialogClosingEvent, "Connection dialog closed");
-      }
-
-      if (finalTest) {
-        gBrowser.removeCurrentTab();
-        finish();
-        return;
-      }
-
-      dialog = await openAndLoadSubDialog(connectionURL);
-      dialogClosingPromise = waitForEvent(dialog.document.documentElement, "dialogclosing");
-
-      doc = dialog.document;
-      proxyTypePref = doc.getElementById("network.proxy.type");
-      sharePref = doc.getElementById("network.proxy.share_proxy_settings");
-      httpPref = doc.getElementById("network.proxy.http");
-      httpPortPref = doc.getElementById("network.proxy.http_port");
-      ftpPref = doc.getElementById("network.proxy.ftp");
-      ftpPortPref = doc.getElementById("network.proxy.ftp_port");
-    }
-
-    // This batch of tests should not close the dialog
-    await setDoc();
-
-    // Testing HTTP port 0 with share on
-    proxyTypePref.value = 1;
-    sharePref.value = true;
-    httpPref.value = "localhost";
-    httpPortPref.value = 0;
-    doc.documentElement.acceptDialog();
-
-    // Testing HTTP port 0 + FTP port 80 with share off
-    sharePref.value = false;
-    ftpPref.value = "localhost";
-    ftpPortPref.value = 80;
-    doc.documentElement.acceptDialog();
-
-    // Testing HTTP port 80 + FTP port 0 with share off
-    httpPortPref.value = 80;
-    ftpPortPref.value = 0;
-    doc.documentElement.acceptDialog();
-
-    // From now on, the dialog should close since we are giving it legitimate inputs.
-    // The test will timeout if the onbeforeaccept kicks in erroneously.
-    closeable = true;
-
-    // Both ports 80, share on
-    httpPortPref.value = 80;
-    ftpPortPref.value = 80;
-    doc.documentElement.acceptDialog();
-
-    // HTTP 80, FTP 0, with share on
-    await setDoc();
-    proxyTypePref.value = 1;
-    sharePref.value = true;
-    ftpPref.value = "localhost";
-    httpPref.value = "localhost";
-    httpPortPref.value = 80;
-    ftpPortPref.value = 0;
-    doc.documentElement.acceptDialog();
-
-    // HTTP host empty, port 0 with share on
-    await setDoc();
-    proxyTypePref.value = 1;
-    sharePref.value = true;
-    httpPref.value = "";
-    httpPortPref.value = 0;
-    doc.documentElement.acceptDialog();
-
-    // HTTP 0, but in no proxy mode
-    await setDoc();
-    proxyTypePref.value = 0;
-    sharePref.value = true;
-    httpPref.value = "localhost";
-    httpPortPref.value = 0;
-
-    // This is the final test, don't spawn another connection window
-    finalTest = true;
-    doc.documentElement.acceptDialog();
-    await setDoc();
-  });
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_cookies_dialog.js
+++ /dev/null
@@ -1,50 +0,0 @@
-"use strict";
-
-Components.utils.import("resource://gre/modules/Services.jsm");
-
-const COOKIES_URL = "chrome://browser/content/preferences/cookies.xul";
-
-const URI = Services.io.newURI("http://www.example.com");
-var cookiesDialog;
-
-add_task(async function openCookiesSubDialog() {
-  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
-
-  let dialogOpened = promiseLoadSubDialog(COOKIES_URL);
-
-  await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
-    let doc = content.document;
-    let cookiesButton = doc.getElementById("historyRememberCookies");
-    cookiesButton.click();
-  });
-
-  cookiesDialog = await dialogOpened;
-});
-
-add_task(async function testDeleteCookie() {
-  let doc = cookiesDialog.document;
-
-  // Add a cookie.
-  Services.cookies.add(URI.host, URI.pathQueryRef, "", "", false, false, true, Date.now());
-
-  let tree = doc.getElementById("cookiesList");
-  Assert.equal(tree.view.rowCount, 1, "Row count should initially be 1");
-  tree.focus();
-  tree.view.selection.select(0);
-
-  if (AppConstants.platform == "macosx") {
-    EventUtils.synthesizeKey("VK_BACK_SPACE", {});
-  } else {
-    EventUtils.synthesizeKey("VK_DELETE", {});
-  }
-
-  await waitForCondition(() => tree.view.rowCount == 0);
-
-  is_element_visible(content.gSubDialog._dialogs[0]._box,
-    "Subdialog is visible after deleting an element");
-
-});
-
-add_task(async function removeTab() {
-  gBrowser.removeCurrentTab();
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_cookies_exceptions.js
+++ /dev/null
@@ -1,353 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-requestLongerTimeout(2);
-
-function test() {
-  waitForExplicitFinish();
-  requestLongerTimeout(3);
-  testRunner.runTests();
-}
-
-var testRunner = {
-
-  tests:
-    [
-      {
-        test(params) {
-          params.url.value = "test.com";
-          params.btnAllow.doCommand();
-          is(params.tree.view.rowCount, 1, "added exception shows up in treeview");
-          is(params.tree.view.getCellText(0, params.nameCol), "http://test.com",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.allowText,
-                                          "permission text should be set correctly");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://test.com", data: "added",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-      },
-      {
-        test(params) {
-          params.url.value = "test.com";
-          params.btnBlock.doCommand();
-          is(params.tree.view.getCellText(0, params.nameCol), "http://test.com",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.denyText,
-                                          "permission should change to deny in UI");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://test.com", data: "changed",
-                        capability: Ci.nsIPermissionManager.DENY_ACTION  }],
-      },
-      {
-        test(params) {
-          params.url.value = "test.com";
-          params.btnAllow.doCommand();
-          is(params.tree.view.getCellText(0, params.nameCol), "http://test.com",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.allowText,
-                                          "permission should revert back to allow");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://test.com", data: "changed",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-      },
-      {
-        test(params) {
-          params.url.value = "test.com";
-          params.btnRemove.doCommand();
-          is(params.tree.view.rowCount, 0, "exception should be removed");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://test.com", data: "deleted" }],
-      },
-      {
-        expectPermObservancesDuringTestFunction: true,
-        test(params) {
-          let uri = params.ioService.newURI("http://test.com");
-          params.pm.add(uri, "popup", Ci.nsIPermissionManager.DENY_ACTION);
-          is(params.tree.view.rowCount, 0, "adding unrelated permission should not change display");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "popup", origin: "http://test.com", data: "added",
-                        capability: Ci.nsIPermissionManager.DENY_ACTION }],
-        cleanUp(params) {
-          let uri = params.ioService.newURI("http://test.com");
-          params.pm.remove(uri, "popup");
-        },
-      },
-      {
-        test(params) {
-          params.url.value = "https://test.com:12345";
-          params.btnAllow.doCommand();
-          is(params.tree.view.rowCount, 1, "added exception shows up in treeview");
-          is(params.tree.view.getCellText(0, params.nameCol), "https://test.com:12345",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.allowText,
-                                          "permission text should be set correctly");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "https://test.com:12345", data: "added",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-      },
-      {
-        test(params) {
-          params.url.value = "https://test.com:12345";
-          params.btnBlock.doCommand();
-          is(params.tree.view.getCellText(0, params.nameCol), "https://test.com:12345",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.denyText,
-                                          "permission should change to deny in UI");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "https://test.com:12345", data: "changed",
-                        capability: Ci.nsIPermissionManager.DENY_ACTION  }],
-      },
-      {
-        test(params) {
-          params.url.value = "https://test.com:12345";
-          params.btnAllow.doCommand();
-          is(params.tree.view.getCellText(0, params.nameCol), "https://test.com:12345",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.allowText,
-                                          "permission should revert back to allow");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "https://test.com:12345", data: "changed",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-      },
-      {
-        test(params) {
-          params.url.value = "https://test.com:12345";
-          params.btnRemove.doCommand();
-          is(params.tree.view.rowCount, 0, "exception should be removed");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "https://test.com:12345", data: "deleted" }],
-      },
-      {
-        test(params) {
-          params.url.value = "localhost:12345";
-          params.btnAllow.doCommand();
-          is(params.tree.view.rowCount, 1, "added exception shows up in treeview");
-          is(params.tree.view.getCellText(0, params.nameCol), "http://localhost:12345",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.allowText,
-                                          "permission text should be set correctly");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://localhost:12345", data: "added",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-      },
-      {
-        test(params) {
-          params.url.value = "localhost:12345";
-          params.btnBlock.doCommand();
-          is(params.tree.view.getCellText(0, params.nameCol), "http://localhost:12345",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.denyText,
-                                          "permission should change to deny in UI");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://localhost:12345", data: "changed",
-                        capability: Ci.nsIPermissionManager.DENY_ACTION  }],
-      },
-      {
-        test(params) {
-          params.url.value = "localhost:12345";
-          params.btnAllow.doCommand();
-          is(params.tree.view.getCellText(0, params.nameCol), "http://localhost:12345",
-                                          "origin name should be set correctly");
-          is(params.tree.view.getCellText(0, params.statusCol), params.allowText,
-                                          "permission should revert back to allow");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://localhost:12345", data: "changed",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-      },
-      {
-        test(params) {
-          params.url.value = "localhost:12345";
-          params.btnRemove.doCommand();
-          is(params.tree.view.rowCount, 0, "exception should be removed");
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://localhost:12345", data: "deleted" }],
-      },
-      {
-        expectPermObservancesDuringTestFunction: true,
-        test(params) {
-          for (let URL of ["http://a", "http://z", "http://b"]) {
-            let URI = params.ioService.newURI(URL);
-            params.pm.add(URI, "cookie", Ci.nsIPermissionManager.ALLOW_ACTION);
-          }
-
-          is(params.tree.view.rowCount, 3, "Three permissions should be present");
-          is(params.tree.view.getCellText(0, params.nameCol), "http://a",
-             "site should be sorted. 'a' should be first");
-          is(params.tree.view.getCellText(1, params.nameCol), "http://b",
-             "site should be sorted. 'b' should be second");
-          is(params.tree.view.getCellText(2, params.nameCol), "http://z",
-             "site should be sorted. 'z' should be third");
-
-          // Sort descending then check results in cleanup since sorting isn't synchronous.
-          EventUtils.synthesizeMouseAtCenter(params.doc.getElementById("siteCol"), {},
-                                             params.doc.defaultView);
-          params.btnApplyChanges.doCommand();
-        },
-        observances: [{ type: "cookie", origin: "http://a", data: "added",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION },
-                      { type: "cookie", origin: "http://z", data: "added",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION },
-                      { type: "cookie", origin: "http://b", data: "added",
-                        capability: Ci.nsIPermissionManager.ALLOW_ACTION }],
-        cleanUp(params) {
-          is(params.tree.view.getCellText(0, params.nameCol), "http://z",
-             "site should be sorted. 'z' should be first");
-          is(params.tree.view.getCellText(1, params.nameCol), "http://b",
-             "site should be sorted. 'b' should be second");
-          is(params.tree.view.getCellText(2, params.nameCol), "http://a",
-             "site should be sorted. 'a' should be third");
-
-          for (let URL of ["http://a", "http://z", "http://b"]) {
-            let uri = params.ioService.newURI(URL);
-            params.pm.remove(uri, "cookie");
-          }
-        },
-      },
-    ],
-
-  _currentTest: -1,
-
-  runTests() {
-    this._currentTest++;
-
-    info("Running test #" + (this._currentTest + 1) + "\n");
-    let that = this;
-    let p = this.runCurrentTest(this._currentTest + 1);
-    p.then(function() {
-      if (that._currentTest == that.tests.length - 1) {
-        finish();
-      } else {
-        that.runTests();
-      }
-    });
-  },
-
-  runCurrentTest(testNumber) {
-    return new Promise(function(resolve, reject) {
-
-      let helperFunctions = {
-        windowLoad(win) {
-          let doc = win.document;
-          let params = {
-            doc,
-            tree: doc.getElementById("permissionsTree"),
-            nameCol: doc.getElementById("permissionsTree").treeBoxObject.columns.getColumnAt(0),
-            statusCol: doc.getElementById("permissionsTree").treeBoxObject.columns.getColumnAt(1),
-            url: doc.getElementById("url"),
-            btnAllow: doc.getElementById("btnAllow"),
-            btnBlock: doc.getElementById("btnBlock"),
-            btnApplyChanges: doc.getElementById("btnApplyChanges"),
-            btnRemove: doc.getElementById("removePermission"),
-            pm: Cc["@mozilla.org/permissionmanager;1"]
-                       .getService(Ci.nsIPermissionManager),
-            ioService: Cc["@mozilla.org/network/io-service;1"]
-                              .getService(Ci.nsIIOService),
-            allowText: win.gPermissionManager._getCapabilityString(
-                                Ci.nsIPermissionManager.ALLOW_ACTION),
-            denyText: win.gPermissionManager._getCapabilityString(
-                               Ci.nsIPermissionManager.DENY_ACTION),
-            allow: Ci.nsIPermissionManager.ALLOW_ACTION,
-            deny: Ci.nsIPermissionManager.DENY_ACTION,
-          };
-
-          let permObserver = {
-            observe(aSubject, aTopic, aData) {
-              if (aTopic != "perm-changed")
-                return;
-
-              if (testRunner.tests[testRunner._currentTest].observances.length == 0) {
-                // Should fail here as we are not expecting a notification, but we don't.
-                // See bug 1063410.
-                return;
-              }
-
-              let permission = aSubject.QueryInterface(Ci.nsIPermission);
-              let expected = testRunner.tests[testRunner._currentTest].observances.shift();
-
-              is(aData, expected.data, "type of message should be the same");
-              for (let prop of ["type", "capability"]) {
-                if (expected[prop])
-                  is(permission[prop], expected[prop],
-                    "property: \"" + prop + "\" should be equal");
-              }
-
-              if (expected.origin) {
-                is(permission.principal.origin, expected.origin,
-                   "property: \"origin\" should be equal");
-              }
-
-              os.removeObserver(permObserver, "perm-changed");
-
-              let testCase = testRunner.tests[testRunner._currentTest];
-              if (!testCase.expectPermObservancesDuringTestFunction) {
-                if (testCase.cleanUp) {
-                  testCase.cleanUp(params);
-                }
-
-                gBrowser.removeCurrentTab();
-                resolve();
-              }
-            },
-          };
-
-          let os = Cc["@mozilla.org/observer-service;1"]
-                     .getService(Ci.nsIObserverService);
-
-          os.addObserver(permObserver, "perm-changed");
-
-          if (testRunner._currentTest == 0) {
-            is(params.tree.view.rowCount, 0, "no cookie exceptions");
-          }
-
-          try {
-            let testCase = testRunner.tests[testRunner._currentTest];
-            testCase.test(params);
-            if (testCase.expectPermObservancesDuringTestFunction) {
-              if (testCase.cleanUp) {
-                testCase.cleanUp(params);
-              }
-
-              gBrowser.removeCurrentTab();
-              resolve();
-            }
-          } catch (ex) {
-            ok(false, "exception while running test #" +
-                      testNumber + ": " + ex);
-          }
-        },
-      };
-
-      registerCleanupFunction(function() {
-        Services.prefs.clearUserPref("privacy.history.custom");
-      });
-
-      openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true}).then(function() {
-        let doc = gBrowser.contentDocument;
-        let historyMode = doc.getElementById("historyMode");
-        historyMode.value = "custom";
-        historyMode.doCommand();
-
-        let promiseSubDialogLoaded =
-          promiseLoadSubDialog("chrome://browser/content/preferences/permissions.xul");
-        doc.getElementById("cookieExceptions").doCommand();
-
-        promiseSubDialogLoaded.then(function(win) {
-          helperFunctions.windowLoad(win);
-        });
-      });
-    });
-  },
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_defaultbrowser_alwayscheck.js
+++ /dev/null
@@ -1,103 +0,0 @@
-"use strict";
-
-const CHECK_DEFAULT_INITIAL = Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser");
-
-add_task(async function clicking_make_default_checks_alwaysCheck_checkbox() {
-  await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:preferences");
-
-  await test_with_mock_shellservice({isDefault: false}, async function() {
-    let setDefaultPane = content.document.getElementById("setDefaultPane");
-    Assert.equal(setDefaultPane.selectedIndex, "0",
-      "The 'make default' pane should be visible when not default");
-    let alwaysCheck = content.document.getElementById("alwaysCheckDefault");
-    Assert.ok(!alwaysCheck.checked, "Always Check is unchecked by default");
-    Assert.ok(!Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser"),
-      "alwaysCheck pref should be false by default in test runs");
-
-    let setDefaultButton = content.document.getElementById("setDefaultButton");
-    setDefaultButton.click();
-    content.window.gMainPane.updateSetDefaultBrowser();
-
-    await ContentTaskUtils.waitForCondition(() => alwaysCheck.checked,
-      "'Always Check' checkbox should get checked after clicking the 'Set Default' button");
-
-    Assert.ok(alwaysCheck.checked,
-      "Clicking 'Make Default' checks the 'Always Check' checkbox");
-    Assert.ok(Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser"),
-      "Checking the checkbox should set the pref to true");
-    Assert.ok(alwaysCheck.disabled,
-      "'Always Check' checkbox is locked with default browser and alwaysCheck=true");
-    Assert.equal(setDefaultPane.selectedIndex, "1",
-      "The 'make default' pane should not be visible when default");
-    Assert.ok(Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser"),
-      "checkDefaultBrowser pref is now enabled");
-  });
-
-  gBrowser.removeCurrentTab();
-  Services.prefs.clearUserPref("browser.shell.checkDefaultBrowser");
-});
-
-add_task(async function clicking_make_default_checks_alwaysCheck_checkbox() {
-  Services.prefs.lockPref("browser.shell.checkDefaultBrowser");
-  await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:preferences");
-
-  await test_with_mock_shellservice({isDefault: false}, async function() {
-    let setDefaultPane = content.document.getElementById("setDefaultPane");
-    Assert.equal(setDefaultPane.selectedIndex, "0",
-      "The 'make default' pane should be visible when not default");
-    let alwaysCheck = content.document.getElementById("alwaysCheckDefault");
-    Assert.ok(alwaysCheck.disabled, "Always Check is disabled when locked");
-    Assert.ok(alwaysCheck.checked,
-      "Always Check is checked because defaultPref is true and pref is locked");
-    Assert.ok(Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser"),
-      "alwaysCheck pref should ship with 'true' by default");
-
-    let setDefaultButton = content.document.getElementById("setDefaultButton");
-    setDefaultButton.click();
-    content.window.gMainPane.updateSetDefaultBrowser();
-
-    await ContentTaskUtils.waitForCondition(() => setDefaultPane.selectedIndex == "1",
-      "Browser is now default");
-
-    Assert.ok(alwaysCheck.checked,
-      "'Always Check' is still checked because it's locked");
-    Assert.ok(alwaysCheck.disabled,
-      "'Always Check is disabled because it's locked");
-    Assert.ok(Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser"),
-      "The pref is locked and so doesn't get changed");
-  });
-
-  Services.prefs.unlockPref("browser.shell.checkDefaultBrowser");
-  gBrowser.removeCurrentTab();
-});
-
-registerCleanupFunction(function() {
-  Services.prefs.unlockPref("browser.shell.checkDefaultBrowser");
-  Services.prefs.setBoolPref("browser.shell.checkDefaultBrowser", CHECK_DEFAULT_INITIAL);
-});
-
-async function test_with_mock_shellservice(options, testFn) {
-  await ContentTask.spawn(gBrowser.selectedBrowser, options, async function(contentOptions) {
-    let doc = content.document;
-    let win = doc.defaultView;
-    win.oldShellService = win.getShellService();
-    let mockShellService = {
-      _isDefault: false,
-      isDefaultBrowser() {
-        return this._isDefault;
-      },
-      setDefaultBrowser() {
-        this._isDefault = true;
-      },
-    };
-    win.getShellService = function() {
-      return mockShellService;
-    }
-    mockShellService._isDefault = contentOptions.isDefault;
-    win.gMainPane.updateSetDefaultBrowser();
-  });
-
-  await ContentTask.spawn(gBrowser.selectedBrowser, null, testFn);
-
-  Services.prefs.setBoolPref("browser.shell.checkDefaultBrowser", CHECK_DEFAULT_INITIAL);
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_healthreport.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-const FHR_UPLOAD_ENABLED = "datareporting.healthreport.uploadEnabled";
-
-function runPaneTest(fn) {
-  open_preferences((win) => {
-    let doc = win.document;
-    win.gotoPref("paneAdvanced");
-    let advancedPrefs = doc.getElementById("advancedPrefs");
-    let tab = doc.getElementById("dataChoicesTab");
-    advancedPrefs.selectedTab = tab;
-    fn(win, doc);
-  });
-}
-
-function test() {
-  waitForExplicitFinish();
-  resetPreferences();
-  registerCleanupFunction(resetPreferences);
-  runPaneTest(testBasic);
-}
-
-function testBasic(win, doc) {
-  is(Services.prefs.getBoolPref(FHR_UPLOAD_ENABLED), true,
-     "Health Report upload enabled on app first run.");
-
-  let checkbox = doc.getElementById("submitHealthReportBox");
-  ok(checkbox);
-  is(checkbox.checked, true, "Health Report checkbox is checked on app first run.");
-
-  checkbox.checked = false;
-  checkbox.doCommand();
-  is(Services.prefs.getBoolPref(FHR_UPLOAD_ENABLED), false,
-     "Unchecking checkbox opts out of FHR upload.");
-
-  checkbox.checked = true;
-  checkbox.doCommand();
-  is(Services.prefs.getBoolPref(FHR_UPLOAD_ENABLED), true,
-     "Checking checkbox allows FHR upload.");
-
-  win.close();
-  Services.prefs.lockPref(FHR_UPLOAD_ENABLED);
-  runPaneTest(testUploadDisabled);
-}
-
-function testUploadDisabled(win, doc) {
-  ok(Services.prefs.prefIsLocked(FHR_UPLOAD_ENABLED), "Upload enabled flag is locked.");
-  let checkbox = doc.getElementById("submitHealthReportBox");
-  is(checkbox.getAttribute("disabled"), "true", "Checkbox is disabled if upload flag is locked.");
-  Services.prefs.unlockPref(FHR_UPLOAD_ENABLED);
-
-  win.close();
-  finish();
-}
-
-function resetPreferences() {
-  Services.prefs.clearUserPref(FHR_UPLOAD_ENABLED);
-}
-
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_homepages_filter_aboutpreferences.js
+++ /dev/null
@@ -1,20 +0,0 @@
-add_task(async function() {
-  is(gBrowser.currentURI.spec, "about:blank", "Test starts with about:blank open");
-  await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:home");
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  let doc = gBrowser.contentDocument;
-  is(gBrowser.currentURI.spec, "about:preferences#general",
-     "#general should be in the URI for about:preferences");
-  let oldHomepagePref = Services.prefs.getCharPref("browser.startup.homepage");
-
-  let useCurrent = doc.getElementById("useCurrent");
-  useCurrent.click();
-
-  is(gBrowser.tabs.length, 3, "Three tabs should be open");
-  is(Services.prefs.getCharPref("browser.startup.homepage"), "about:blank|about:home",
-     "about:blank and about:home should be the only homepages set");
-
-  Services.prefs.setCharPref("browser.startup.homepage", oldHomepagePref);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_notifications_do_not_disturb.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-
-registerCleanupFunction(function() {
-  while (gBrowser.tabs[1])
-    gBrowser.removeTab(gBrowser.tabs[1]);
-});
-
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
-  is(prefs.selectedPane, "panePrivacy", "Privacy pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let notificationsDoNotDisturbBox = doc.getElementById("notificationsDoNotDisturbBox");
-  if (notificationsDoNotDisturbBox.hidden) {
-    todo(false, "Do not disturb is not available on this platform");
-    return;
-  }
-
-  let alertService;
-  try {
-    alertService = Cc["@mozilla.org/alerts-service;1"]
-                     .getService(Ci.nsIAlertsService)
-                     .QueryInterface(Ci.nsIAlertsDoNotDisturb);
-  } catch (ex) {
-    ok(true, "Do not disturb is not available on this platform: " + ex.message);
-    return;
-  }
-
-  let checkbox = doc.getElementById("notificationsDoNotDisturb");
-  ok(!checkbox.checked, "Checkbox should not be checked by default");
-  ok(!alertService.manualDoNotDisturb, "Do not disturb should be off by default");
-
-  let checkboxChanged = waitForEvent(checkbox, "command")
-  checkbox.click();
-  await checkboxChanged;
-  ok(alertService.manualDoNotDisturb, "Do not disturb should be enabled when checked");
-
-  checkboxChanged = waitForEvent(checkbox, "command")
-  checkbox.click();
-  await checkboxChanged;
-  ok(!alertService.manualDoNotDisturb, "Do not disturb should be disabled when unchecked");
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_password_management.js
+++ /dev/null
@@ -1,73 +0,0 @@
-"use strict";
-const PM_URL = "chrome://passwordmgr/content/passwordManager.xul";
-
-var passwordsDialog;
-
-add_task(async function test_setup() {
-  let pwmgr = Cc["@mozilla.org/login-manager;1"].
-                getService(Ci.nsILoginManager);
-  pwmgr.removeAllLogins();
-
-  // add login data
-  let nsLoginInfo = new Components.Constructor("@mozilla.org/login-manager/loginInfo;1",
-                                                 Ci.nsILoginInfo, "init");
-  let login = new nsLoginInfo("http://example.com/", "http://example.com/", null,
-                              "user", "password", "u1", "p1");
-  pwmgr.addLogin(login);
-
-  registerCleanupFunction(async function() {
-    pwmgr.removeAllLogins();
-  });
-});
-
-add_task(async function test_openPasswordSubDialog() {
-  // Undo the save password change.
-  registerCleanupFunction(async function() {
-    await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
-      let doc = content.document;
-      let savePasswordCheckBox = doc.getElementById("savePasswords");
-      if (savePasswordCheckBox.checked) {
-        savePasswordCheckBox.click();
-      }
-    });
-
-    gBrowser.removeCurrentTab();
-  });
-
-  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
-
-  let dialogOpened = promiseLoadSubDialog(PM_URL);
-
-  await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
-    let doc = content.document;
-    let savePasswordCheckBox = doc.getElementById("savePasswords");
-    Assert.ok(!savePasswordCheckBox.checked,
-              "Save Password CheckBox should be unchecked by default");
-    savePasswordCheckBox.click();
-
-    let showPasswordsButton = doc.getElementById("showPasswords");
-    showPasswordsButton.click();
-  });
-
-  passwordsDialog = await dialogOpened;
-});
-
-add_task(async function test_deletePasswordWithKey() {
-  let doc = passwordsDialog.document;
-
-  let tree = doc.getElementById("signonsTree");
-  Assert.equal(tree.view.rowCount, 1, "Row count should initially be 1");
-  tree.focus();
-  tree.view.selection.select(0);
-
-  if (AppConstants.platform == "macosx") {
-    EventUtils.synthesizeKey("VK_BACK_SPACE", {});
-  } else {
-    EventUtils.synthesizeKey("VK_DELETE", {});
-  }
-
-  await waitForCondition(() => tree.view.rowCount == 0);
-
-  is_element_visible(content.gSubDialog._dialogs[0]._box,
-    "Subdialog is visible after deleting an element");
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_performance.js
+++ /dev/null
@@ -1,156 +0,0 @@
-const DEFAULT_HW_ACCEL_PREF = Services.prefs.getDefaultBranch(null).getBoolPref("layers.acceleration.disabled");
-const DEFAULT_PROCESS_COUNT = Services.prefs.getDefaultBranch(null).getIntPref("dom.ipc.processCount");
-
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [
-    ["layers.acceleration.disabled", DEFAULT_HW_ACCEL_PREF],
-    ["dom.ipc.processCount", DEFAULT_PROCESS_COUNT],
-    ["browser.preferences.defaultPerformanceSettings.enabled", true],
-  ]});
-});
-
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
-    "pref value should be true before clicking on checkbox");
-  ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
-
-  useRecommendedPerformanceSettings.click();
-
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section is shown");
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), false,
-     "pref value should be false after clicking on checkbox");
-  ok(!useRecommendedPerformanceSettings.checked, "checkbox should not be checked after clicking on checkbox");
-
-  let allowHWAccel = doc.querySelector("#allowHWAccel");
-  let allowHWAccelPref = Services.prefs.getBoolPref("layers.acceleration.disabled");
-  is(allowHWAccelPref, DEFAULT_HW_ACCEL_PREF,
-    "pref value should be the default value before clicking on checkbox");
-  is(allowHWAccel.checked, !DEFAULT_HW_ACCEL_PREF, "checkbox should show the invert of the default value");
-
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  is(contentProcessCount.disabled, false, "process count control should be enabled");
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT, "default pref value should be default value");
-  is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT, "selected item should be the default one");
-
-  let contentProcessCountEnabledDescription = doc.querySelector("#contentProcessCountEnabledDescription");
-  is(contentProcessCountEnabledDescription.hidden, false, "process count enabled description should be shown");
-
-  let contentProcessCountDisabledDescription = doc.querySelector("#contentProcessCountDisabledDescription");
-  is(contentProcessCountDisabledDescription.hidden, true, "process count enabled description should be hidden");
-
-  allowHWAccel.click();
-  allowHWAccelPref = Services.prefs.getBoolPref("layers.acceleration.disabled");
-  is(allowHWAccelPref, !DEFAULT_HW_ACCEL_PREF,
-    "pref value should be opposite of the default value after clicking on checkbox");
-  is(allowHWAccel.checked, !allowHWAccelPref, "checkbox should show the invert of the current value");
-
-  contentProcessCount.value = 7;
-  contentProcessCount.doCommand();
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), 7, "pref value should be 7");
-  is(contentProcessCount.selectedItem.value, 7, "selected item should be 7");
-
-  allowHWAccel.click();
-  allowHWAccelPref = Services.prefs.getBoolPref("layers.acceleration.disabled");
-  is(allowHWAccelPref, DEFAULT_HW_ACCEL_PREF,
-    "pref value should be the default value after clicking on checkbox");
-  is(allowHWAccel.checked, !allowHWAccelPref, "checkbox should show the invert of the current value");
-
-  contentProcessCount.value = DEFAULT_PROCESS_COUNT;
-  contentProcessCount.doCommand();
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT, "pref value should be default value");
-  is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT, "selected item should be default one");
-
-  is(performanceSettings.hidden, false, "performance settings section should be still shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
-  let allowHWAccel = doc.querySelector("#allowHWAccel");
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  let performanceSettings = doc.querySelector("#performanceSettings");
-
-  useRecommendedPerformanceSettings.click();
-  allowHWAccel.click();
-  contentProcessCount.value = 7;
-  contentProcessCount.doCommand();
-  useRecommendedPerformanceSettings.click();
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
-    "pref value should be true before clicking on checkbox");
-  ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
-  is(performanceSettings.hidden, true, "performance settings section should be still shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let performanceSettings = doc.querySelector("#performanceSettings");
-
-  is(performanceSettings.hidden, true, "performance settings section should not be shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
-
-  is(performanceSettings.hidden, false, "performance settings section should be shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-add_task(async function() {
-  Services.prefs.setIntPref("dom.ipc.processCount", 7);
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section should be shown");
-
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), 7, "pref value should be 7");
-  is(contentProcessCount.selectedItem.value, 7, "selected item should be 7");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-add_task(async function() {
-  Services.prefs.setBoolPref("layers.acceleration.disabled", true);
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section should be shown");
-
-  let allowHWAccel = doc.querySelector("#allowHWAccel");
-  is(Services.prefs.getBoolPref("layers.acceleration.disabled"), true,
-    "pref value is false");
-  ok(!allowHWAccel.checked, "checkbox should not be checked");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_performance_e10srollout.js
+++ /dev/null
@@ -1,102 +0,0 @@
-const DEFAULT_HW_ACCEL_PREF = Services.prefs.getDefaultBranch(null).getBoolPref("layers.acceleration.disabled");
-const DEFAULT_PROCESS_COUNT = Services.prefs.getDefaultBranch(null).getIntPref("dom.ipc.processCount");
-
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [
-    ["layers.acceleration.disabled", DEFAULT_HW_ACCEL_PREF],
-    ["dom.ipc.processCount", DEFAULT_PROCESS_COUNT],
-    ["browser.preferences.defaultPerformanceSettings.enabled", true],
-  ]});
-});
-
-add_task(async function() {
-  Services.prefs.clearUserPref("dom.ipc.processCount");
-  Services.prefs.setIntPref("dom.ipc.processCount.web", DEFAULT_PROCESS_COUNT + 1);
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
-    "pref value should be true before clicking on checkbox");
-  ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
-
-  useRecommendedPerformanceSettings.click();
-
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section is shown");
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), false,
-     "pref value should be false after clicking on checkbox");
-  ok(!useRecommendedPerformanceSettings.checked, "checkbox should not be checked after clicking on checkbox");
-
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  is(contentProcessCount.disabled, false, "process count control should be enabled");
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT + 1, "e10s rollout value should be default value");
-  is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT + 1, "selected item should be the default one");
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  Services.prefs.clearUserPref("dom.ipc.processCount");
-  Services.prefs.clearUserPref("dom.ipc.processCount.web");
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-});
-
-add_task(async function() {
-  Services.prefs.clearUserPref("dom.ipc.processCount");
-  Services.prefs.setIntPref("dom.ipc.processCount.web", DEFAULT_PROCESS_COUNT + 1);
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section is shown");
-
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  is(contentProcessCount.disabled, false, "process count control should be enabled");
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT, "default value should be the current value");
-  is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT, "selected item should be the default one");
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  Services.prefs.clearUserPref("dom.ipc.processCount");
-  Services.prefs.clearUserPref("dom.ipc.processCount.web");
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-});
-
-add_task(async function() {
-  Services.prefs.setIntPref("dom.ipc.processCount", DEFAULT_PROCESS_COUNT + 2);
-  Services.prefs.setIntPref("dom.ipc.processCount.web", DEFAULT_PROCESS_COUNT + 1);
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section is shown");
-
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  is(contentProcessCount.disabled, false, "process count control should be enabled");
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT + 2, "process count should be the set value");
-  is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT + 2, "selected item should be the set one");
-
-  let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
-  useRecommendedPerformanceSettings.click();
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
-    "pref value should be true after clicking on checkbox");
-  is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT,
-    "process count should be default value");
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  Services.prefs.clearUserPref("dom.ipc.processCount");
-  Services.prefs.clearUserPref("dom.ipc.processCount.web");
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_performance_non_e10s.js
+++ /dev/null
@@ -1,100 +0,0 @@
-const DEFAULT_HW_ACCEL_PREF = Services.prefs.getDefaultBranch(null).getBoolPref("layers.acceleration.disabled");
-const DEFAULT_PROCESS_COUNT = Services.prefs.getDefaultBranch(null).getIntPref("dom.ipc.processCount");
-
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [
-    ["layers.acceleration.disabled", DEFAULT_HW_ACCEL_PREF],
-    ["dom.ipc.processCount", DEFAULT_PROCESS_COUNT],
-    ["browser.preferences.defaultPerformanceSettings.enabled", true],
-  ]});
-});
-
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
-    "pref value should be true before clicking on checkbox");
-  ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
-
-  useRecommendedPerformanceSettings.click();
-
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section is shown");
-
-  is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), false,
-     "pref value should be false after clicking on checkbox");
-  ok(!useRecommendedPerformanceSettings.checked, "checkbox should not be checked after clicking on checkbox");
-
-  let allowHWAccel = doc.querySelector("#allowHWAccel");
-  let allowHWAccelPref = Services.prefs.getBoolPref("layers.acceleration.disabled");
-  is(allowHWAccelPref, DEFAULT_HW_ACCEL_PREF,
-    "pref value should be the default value before clicking on checkbox");
-  is(allowHWAccel.checked, !DEFAULT_HW_ACCEL_PREF, "checkbox should show the invert of the default value");
-
-  let contentProcessCount = doc.querySelector("#contentProcessCount");
-  is(contentProcessCount.disabled, true, "process count control should be disabled");
-
-  let contentProcessCountEnabledDescription = doc.querySelector("#contentProcessCountEnabledDescription");
-  is(contentProcessCountEnabledDescription.hidden, true, "process count enabled description should be hidden");
-
-  let contentProcessCountDisabledDescription = doc.querySelector("#contentProcessCountDisabledDescription");
-  is(contentProcessCountDisabledDescription.hidden, false, "process count enabled description should be shown");
-
-  allowHWAccel.click();
-  allowHWAccelPref = Services.prefs.getBoolPref("layers.acceleration.disabled");
-  is(allowHWAccelPref, !DEFAULT_HW_ACCEL_PREF,
-    "pref value should be opposite of the default value after clicking on checkbox");
-  is(allowHWAccel.checked, !allowHWAccelPref, "checkbox should show the invert of the current value");
-
-  allowHWAccel.click();
-  allowHWAccelPref = Services.prefs.getBoolPref("layers.acceleration.disabled");
-  is(allowHWAccelPref, DEFAULT_HW_ACCEL_PREF,
-    "pref value should be the default value after clicking on checkbox");
-  is(allowHWAccel.checked, !allowHWAccelPref, "checkbox should show the invert of the current value");
-
-  is(performanceSettings.hidden, false, "performance settings section should be still shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-  let performanceSettings = doc.querySelector("#performanceSettings");
-
-  is(performanceSettings.hidden, true, "performance settings section should not be shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
-
-  is(performanceSettings.hidden, false, "performance settings section should be shown");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-add_task(async function() {
-  Services.prefs.setBoolPref("layers.acceleration.disabled", true);
-
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
-
-  let doc = gBrowser.contentDocument;
-
-  let performanceSettings = doc.querySelector("#performanceSettings");
-  is(performanceSettings.hidden, false, "performance settings section should be shown");
-
-  let allowHWAccel = doc.querySelector("#allowHWAccel");
-  is(Services.prefs.getBoolPref("layers.acceleration.disabled"), true,
-    "pref value is false");
-  ok(!allowHWAccel.checked, "checkbox should not be checked");
-
-  Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_permissions_urlFieldHidden.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-
-const PERMISSIONS_URL = "chrome://browser/content/preferences/permissions.xul";
-
-add_task(async function urlFieldVisibleForPopupPermissions(finish) {
-  await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let doc = win.document;
-  let popupPolicyCheckbox = doc.getElementById("popupPolicy");
-  ok(!popupPolicyCheckbox.checked, "popupPolicyCheckbox should be unchecked by default");
-  popupPolicyCheckbox.click();
-  let popupPolicyButton = doc.getElementById("popupPolicyButton");
-  ok(popupPolicyButton, "popupPolicyButton found");
-  let dialogPromise = promiseLoadSubDialog(PERMISSIONS_URL);
-  popupPolicyButton.click();
-  let dialog = await dialogPromise;
-  ok(dialog, "dialog loaded");
-
-  let urlLabel = dialog.document.getElementById("urlLabel");
-  ok(!urlLabel.hidden, "urlLabel should be visible when one of block/session/allow visible");
-  let url = dialog.document.getElementById("url");
-  ok(!url.hidden, "url should be visible when one of block/session/allow visible");
-
-  popupPolicyCheckbox.click();
-  gBrowser.removeCurrentTab();
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_privacypane_1.js
+++ /dev/null
@@ -1,19 +0,0 @@
-let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
-             getService(Ci.mozIJSSubScriptLoader);
-
-let rootDir = getRootDirectory(gTestPath);
-let jar = getJar(rootDir);
-if (jar) {
-  let tmpdir = extractJarToTmp(jar);
-  rootDir = "file://" + tmpdir.path + "/";
-}
-/* import-globals-from privacypane_tests_perwindow.js */
-loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
-
-run_test_subset([
-  test_pane_visibility,
-  test_dependent_elements,
-  test_dependent_cookie_elements,
-  test_dependent_clearonclose_elements,
-  test_dependent_prefs,
-]);
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_privacypane_3.js
+++ /dev/null
@@ -1,18 +0,0 @@
-let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
-             getService(Ci.mozIJSSubScriptLoader);
-let rootDir = getRootDirectory(gTestPath);
-let jar = getJar(rootDir);
-if (jar) {
-  let tmpdir = extractJarToTmp(jar);
-  rootDir = "file://" + tmpdir.path + "/";
-}
-/* import-globals-from privacypane_tests_perwindow.js */
-loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
-
-run_test_subset([
-  test_custom_retention("rememberHistory", "remember"),
-  test_custom_retention("rememberHistory", "custom"),
-  test_custom_retention("rememberForms", "custom"),
-  test_custom_retention("rememberForms", "custom"),
-  test_historymode_retention("remember", "custom"),
-]);
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_privacypane_4.js
+++ /dev/null
@@ -1,26 +0,0 @@
-requestLongerTimeout(2);
-
-let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
-             getService(Ci.mozIJSSubScriptLoader);
-let rootDir = getRootDirectory(gTestPath);
-let jar = getJar(rootDir);
-if (jar) {
-  let tmpdir = extractJarToTmp(jar);
-  rootDir = "file://" + tmpdir.path + "/";
-}
-/* import-globals-from privacypane_tests_perwindow.js */
-loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
-let runtime = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime);
-
-run_test_subset([
-  test_custom_retention("acceptCookies", "remember"),
-  test_custom_retention("acceptCookies", "custom"),
-  test_custom_retention("acceptThirdPartyMenu", "custom", "visited"),
-  test_custom_retention("acceptThirdPartyMenu", "custom", "always"),
-  test_custom_retention("keepCookiesUntil", "custom", 1),
-  test_custom_retention("keepCookiesUntil", "custom", 2),
-  test_custom_retention("keepCookiesUntil", "custom", 0),
-  test_custom_retention("alwaysClear", "custom"),
-  test_custom_retention("alwaysClear", "custom"),
-  test_historymode_retention("remember", "custom"),
-]);
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_privacypane_5.js
+++ /dev/null
@@ -1,18 +0,0 @@
-let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
-             getService(Ci.mozIJSSubScriptLoader);
-let rootDir = getRootDirectory(gTestPath);
-let jar = getJar(rootDir);
-if (jar) {
-  let tmpdir = extractJarToTmp(jar);
-  rootDir = "file://" + tmpdir.path + "/";
-}
-/* import-globals-from privacypane_tests_perwindow.js */
-loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
-
-run_test_subset([
-  test_locbar_suggestion_retention("history", true),
-  test_locbar_suggestion_retention("bookmark", true),
-  test_locbar_suggestion_retention("openpage", false),
-  test_locbar_suggestion_retention("history", true),
-  test_locbar_suggestion_retention("history", false),
-]);
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_privacypane_8.js
+++ /dev/null
@@ -1,27 +0,0 @@
-let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
-             getService(Ci.mozIJSSubScriptLoader);
-let rootDir = getRootDirectory(gTestPath);
-let jar = getJar(rootDir);
-if (jar) {
-  let tmpdir = extractJarToTmp(jar);
-  rootDir = "file://" + tmpdir.path + "/";
-}
-/* import-globals-from privacypane_tests_perwindow.js */
-loader.loadSubScript(rootDir + "privacypane_tests_perwindow.js", this);
-
-run_test_subset([
-  // history mode should be initialized to remember
-  test_historymode_retention("remember", undefined),
-
-  // history mode should remain remember; toggle acceptCookies checkbox
-  test_custom_retention("acceptCookies", "remember"),
-
-  // history mode should now be custom; set history mode to dontremember
-  test_historymode_retention("dontremember", "custom"),
-
-  // history mode should remain custom; set history mode to remember
-  test_historymode_retention("remember", "custom"),
-
-  // history mode should now be remember
-  test_historymode_retention("remember", "remember"),
-]);
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_proxy_backup.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
-/* 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/. */
-
-Components.utils.import("resource://gre/modules/Services.jsm");
-
-function test() {
-  waitForExplicitFinish();
-
-  // network.proxy.type needs to be backed up and restored because mochitest
-  // changes this setting from the default
-  let oldNetworkProxyType = Services.prefs.getIntPref("network.proxy.type");
-  registerCleanupFunction(function() {
-    Services.prefs.setIntPref("network.proxy.type", oldNetworkProxyType);
-    Services.prefs.clearUserPref("browser.preferences.instantApply");
-    Services.prefs.clearUserPref("network.proxy.share_proxy_settings");
-    for (let proxyType of ["http", "ssl", "ftp", "socks"]) {
-      Services.prefs.clearUserPref("network.proxy." + proxyType);
-      Services.prefs.clearUserPref("network.proxy." + proxyType + "_port");
-      if (proxyType == "http") {
-        continue;
-      }
-      Services.prefs.clearUserPref("network.proxy.backup." + proxyType);
-      Services.prefs.clearUserPref("network.proxy.backup." + proxyType + "_port");
-    }
-  });
-
-  let connectionURL = "chrome://browser/content/preferences/connection.xul";
-
-  // Set a shared proxy and a SOCKS backup
-  Services.prefs.setIntPref("network.proxy.type", 1);
-  Services.prefs.setBoolPref("network.proxy.share_proxy_settings", true);
-  Services.prefs.setCharPref("network.proxy.http", "example.com");
-  Services.prefs.setIntPref("network.proxy.http_port", 1200);
-  Services.prefs.setCharPref("network.proxy.socks", "example.com");
-  Services.prefs.setIntPref("network.proxy.socks_port", 1200);
-  Services.prefs.setCharPref("network.proxy.backup.socks", "127.0.0.1");
-  Services.prefs.setIntPref("network.proxy.backup.socks_port", 9050);
-
-  /*
-  The connection dialog alone won't save onaccept since it uses type="child",
-  so it has to be opened as a sub dialog of the main pref tab.
-  Open the main tab here.
-  */
-  open_preferences(async function tabOpened(aContentWindow) {
-    is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded");
-    let dialog = await openAndLoadSubDialog(connectionURL);
-    let dialogClosingPromise = waitForEvent(dialog.document.documentElement, "dialogclosing");
-
-    ok(dialog, "connection window opened");
-    dialog.document.documentElement.acceptDialog();
-
-    let dialogClosingEvent = await dialogClosingPromise;
-    ok(dialogClosingEvent, "connection window closed");
-
-    // The SOCKS backup should not be replaced by the shared value
-    is(Services.prefs.getCharPref("network.proxy.backup.socks"), "127.0.0.1", "Shared proxy backup shouldn't be replaced");
-    is(Services.prefs.getIntPref("network.proxy.backup.socks_port"), 9050, "Shared proxy port backup shouldn't be replaced");
-
-    gBrowser.removeCurrentTab();
-    finish();
-  });
-}
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_sanitizeOnShutdown_prefLocked.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-
-function switchToCustomHistoryMode(doc) {
-  // Select the last item in the menulist.
-  let menulist = doc.getElementById("historyMode");
-  menulist.focus();
-  EventUtils.sendKey("UP");
-}
-
-function testPrefStateMatchesLockedState() {
-  let win = gBrowser.contentWindow;
-  let doc = win.document;
-  switchToCustomHistoryMode(doc);
-
-  let checkbox = doc.getElementById("alwaysClear");
-  let preference = doc.getElementById("privacy.sanitize.sanitizeOnShutdown");
-  is(checkbox.disabled, preference.locked, "Always Clear checkbox should be enabled when preference is not locked.");
-
-  Services.prefs.clearUserPref("privacy.history.custom");
-  gBrowser.removeCurrentTab();
-}
-
-add_task(function setup() {
-  registerCleanupFunction(function resetPreferences() {
-    Services.prefs.unlockPref("privacy.sanitize.sanitizeOnShutdown");
-    Services.prefs.clearUserPref("privacy.history.custom");
-  });
-});
-
-add_task(async function test_preference_enabled_when_unlocked() {
-  await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
-  testPrefStateMatchesLockedState();
-});
-
-add_task(async function test_preference_disabled_when_locked() {
-  Services.prefs.lockPref("privacy.sanitize.sanitizeOnShutdown");
-  await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
-  testPrefStateMatchesLockedState();
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_search_within_preferences_1.js
+++ /dev/null
@@ -1,305 +0,0 @@
-"use strict";
-/**
- * This file contains tests for the Preferences search bar.
- */
-
-requestLongerTimeout(6);
-
-/**
- * Tests to see if search bar is being hidden when pref is turned off
- */
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({"set": [["browser.preferences.search", false]]});
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  let searchInput = gBrowser.contentDocument.querySelectorAll("#searchInput");
-  is(searchInput.length, 1, "There should only be one element name searchInput querySelectorAll");
-  is_element_hidden(searchInput[0], "Search box should be hidden");
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-  await SpecialPowers.popPrefEnv();
-});
-
-/**
- * Enabling searching functionality. Will display search bar from this testcase forward.
- */
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({"set": [["browser.preferences.search", true]]});
-});
-
-/**
- * Tests to see if search bar is being shown when pref is turned on
- */
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-  is_element_visible(searchInput, "Search box should be shown");
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-/**
- * Test for "Search Result" panel.
- * After it runs a search, it tests if the "Search Results" panel is the only selected category.
- * The search is then cleared, it then tests if the "General" panel is the only selected category.
- */
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-
-  // Performs search
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-
-  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
-    "Search input should be focused when visiting preferences");
-
-  let query = "password";
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
-  EventUtils.sendString(query);
-  await searchCompletedPromise;
-
-  let categoriesList = gBrowser.contentDocument.getElementById("categories");
-
-  for (let i = 0; i < categoriesList.childElementCount; i++) {
-    let child = categoriesList.children[i]
-    is(child.selected, false, "No other panel should be selected");
-  }
-  // Takes search off
-  searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
-  let count = query.length;
-  while (count--) {
-    EventUtils.sendKey("BACK_SPACE");
-  }
-  await searchCompletedPromise;
-
-  // Checks if back to generalPane
-  for (let i = 0; i < categoriesList.childElementCount; i++) {
-    let child = categoriesList.children[i]
-    if (child.id == "category-general") {
-      is(child.selected, true, "General panel should be selected");
-    } else if (child.id) {
-      is(child.selected, false, "No other panel should be selected");
-    }
-  }
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-/**
- * Test for "password" case. When we search "password", it should show the "passwordGroup"
- */
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-
-  // Performs search
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-
-  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
-    "Search input should be focused when visiting preferences");
-
-  let query = "password";
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
-  EventUtils.sendString(query);
-  await searchCompletedPromise;
-
-  let mainPrefTag = gBrowser.contentDocument.getElementById("mainPrefPane");
-
-  for (let i = 0; i < mainPrefTag.childElementCount; i++) {
-    let child = mainPrefTag.children[i]
-    if (child.id == "passwordsGroup" ||
-        child.id == "weavePrefsDeck" ||
-        child.id == "header-searchResults" ||
-        child.id == "certSelection" ||
-        child.id == "connectionGroup") {
-      is_element_visible(child, "Should be in search results");
-    } else if (child.id) {
-      is_element_hidden(child, "Should not be in search results");
-    }
-  }
-
-  // Takes search off
-  searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
-  let count = query.length;
-  while (count--) {
-    EventUtils.sendKey("BACK_SPACE");
-  }
-  await searchCompletedPromise;
-
-  // Checks if back to generalPane
-  for (let i = 0; i < mainPrefTag.childElementCount; i++) {
-    let child = mainPrefTag.children[i]
-    if (child.id == "paneGeneral"
-    || child.id == "startupGroup"
-    || child.id == "languagesGroup"
-    || child.id == "fontsGroup"
-    || child.id == "downloadsGroup"
-    || child.id == "applicationsGroup"
-    || child.id == "drmGroup"
-    || child.id == "updateApp"
-    || child.id == "browsingGroup"
-    || child.id == "performanceGroup"
-    || child.id == "connectionGroup"
-    || child.id == "generalCategory"
-    || child.id == "languageAndAppearanceCategory"
-    || child.id == "filesAndApplicationsCategory"
-    || child.id == "updatesCategory"
-    || child.id == "performanceCategory"
-    || child.id == "browsingCategory"
-    || child.id == "networkProxyCategory") {
-      is_element_visible(child, "Should be in general tab");
-    } else if (child.id) {
-      is_element_hidden(child, "Should not be in general tab");
-    }
-  }
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-/**
- * Test for if nothing is found
- */
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-
-  let noResultsEl = gBrowser.contentDocument.querySelector(".no-results-message");
-
-  is_element_hidden(noResultsEl, "Should not be in search results yet");
-
-  // Performs search
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-
-  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
-    "Search input should be focused when visiting preferences");
-
-  let query = "coach";
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
-  EventUtils.sendString(query);
-  await searchCompletedPromise;
-
-  is_element_visible(noResultsEl, "Should be in search results");
-
-  // Takes search off
-  searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
-  let count = query.length;
-  while (count--) {
-    EventUtils.sendKey("BACK_SPACE");
-  }
-  await searchCompletedPromise;
-
-  is_element_hidden(noResultsEl, "Should not be in search results");
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-/**
- * Test for if we go back to general tab after search case
- */
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
-  let generalPane = gBrowser.contentDocument.getElementById("generalCategory");
-
-  is_element_hidden(generalPane, "Should not be in general");
-
-  // Performs search
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-
-  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
-    "Search input should be focused when visiting preferences");
-
-  let query = "password";
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
-  EventUtils.sendString(query);
-  await searchCompletedPromise;
-
-  // Takes search off
-  searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
-  let count = query.length;
-  while (count--) {
-    EventUtils.sendKey("BACK_SPACE");
-  }
-  await searchCompletedPromise;
-
-  // Checks if back to normal
-  is_element_visible(generalPane, "Should be in generalPane");
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-/**
- * Test for "Site Data" case, verifying elements with data-hidden-from-search = true
- * are hidden in search result.
- */
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({"set": [["browser.storageManager.enabled", false]]});
-  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
-  let generalPane = gBrowser.contentDocument.getElementById("generalCategory");
-
-  is_element_hidden(generalPane, "Should not be in general");
-
-  // Performs search
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-
-  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
-    "Search input should be focused when visiting preferences");
-
-  let query = "site data";
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
-  EventUtils.sendString(query);
-  await searchCompletedPromise;
-
-  let mainPrefTag = gBrowser.contentDocument.getElementById("mainPrefPane");
-
-  let child = mainPrefTag.querySelector("#siteDataGroup");
-  is_element_hidden(child, "Should be hidden in search results");
-
-  // Takes search off
-  searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
-  let count = query.length;
-  while (count--) {
-    EventUtils.sendKey("BACK_SPACE");
-  }
-  await searchCompletedPromise;
-
-  // Checks if back to normal
-  is_element_visible(generalPane, "Should be in generalPane");
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-/**
- * Test for if we go to another tab after searching
- */
-add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-
-  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
-    "Search input should be focused when visiting preferences");
-
-  let query = "password";
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
-  EventUtils.sendString(query);
-  await searchCompletedPromise;
-
-  let privacyCategory = gBrowser.contentDocument.getElementById("category-privacy");
-  privacyCategory.click();
-  is(searchInput.value, "", "search input should be empty");
-  let categoriesList = gBrowser.contentDocument.getElementById("categories");
-  for (let i = 0; i < categoriesList.childElementCount; i++) {
-    let child = categoriesList.children[i]
-    if (child.id == "category-privacy") {
-      is(child.selected, true, "Privacy panel should be selected");
-    } else if (child.id) {
-      is(child.selected, false, "No other panel should be selected");
-    }
-  }
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_searchsuggestions.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var original = Services.prefs.getBoolPref("browser.search.suggest.enabled");
-
-registerCleanupFunction(() => {
-  Services.prefs.setBoolPref("browser.search.suggest.enabled", original);
-});
-
-// Open with suggestions enabled
-add_task(async function() {
-  Services.prefs.setBoolPref("browser.search.suggest.enabled", true);
-
-  await openPreferencesViaOpenPreferencesAPI("search", { leaveOpen: true });
-
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let urlbarBox = doc.getElementById("urlBarSuggestion");
-  ok(!urlbarBox.disabled, "Checkbox should be enabled");
-
-  Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
-
-  ok(urlbarBox.disabled, "Checkbox should be disabled");
-
-  gBrowser.removeCurrentTab();
-});
-
-// Open with suggestions disabled
-add_task(async function() {
-  Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
-
-  await openPreferencesViaOpenPreferencesAPI("search", { leaveOpen: true });
-
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let urlbarBox = doc.getElementById("urlBarSuggestion");
-  ok(urlbarBox.disabled, "Checkbox should be disabled");
-
-  Services.prefs.setBoolPref("browser.search.suggest.enabled", true);
-
-  ok(!urlbarBox.disabled, "Checkbox should be enabled");
-
-  gBrowser.removeCurrentTab();
-});
-
-add_task(async function() {
-  Services.prefs.setBoolPref("browser.search.suggest.enabled", original);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_siteData.js
+++ /dev/null
@@ -1,424 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
-
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-/* global sinon */
-Services.scriptloader.loadSubScript("resource://testing-common/sinon-2.3.2.js");
-
-const TEST_QUOTA_USAGE_HOST = "example.com";
-const TEST_QUOTA_USAGE_ORIGIN = "https://" + TEST_QUOTA_USAGE_HOST;
-const TEST_QUOTA_USAGE_URL = TEST_QUOTA_USAGE_ORIGIN + "/browser/browser/components/preferences/in-content-new/tests/site_data_test.html";
-const TEST_OFFLINE_HOST = "example.org";
-const TEST_OFFLINE_ORIGIN = "https://" + TEST_OFFLINE_HOST;
-const TEST_OFFLINE_URL = TEST_OFFLINE_ORIGIN + "/browser/browser/components/preferences/in-content-new/tests/offline/offline.html";
-const REMOVE_DIALOG_URL = "chrome://browser/content/preferences/siteDataRemoveSelected.xul";
-
-const { NetUtil } = Cu.import("resource://gre/modules/NetUtil.jsm", {});
-const { DownloadUtils } = Cu.import("resource://gre/modules/DownloadUtils.jsm", {});
-const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
-const { OfflineAppCacheHelper } = Cu.import("resource:///modules/offlineAppCache.jsm", {});
-
-const mockOfflineAppCacheHelper = {
-  clear: null,
-
-  originalClear: null,
-
-  register() {
-    this.originalClear = OfflineAppCacheHelper.clear;
-    this.clear = sinon.spy();
-    OfflineAppCacheHelper.clear = this.clear;
-  },
-
-  unregister() {
-    OfflineAppCacheHelper.clear = this.originalClear;
-  }
-};
-
-function getPersistentStoragePermStatus(origin) {
-  let uri = NetUtil.newURI(origin);
-  let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
-  return Services.perms.testExactPermissionFromPrincipal(principal, "persistent-storage");
-}
-
-function getQuotaUsage(origin) {
-  return new Promise(resolve => {
-    let uri = NetUtil.newURI(origin);
-    let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
-    Services.qms.getUsageForPrincipal(principal, request => resolve(request.result.usage));
-  });
-}
-
-// XXX: The intermittent bug 1331851
-// The implementation of nsICacheStorageConsumptionObserver must be passed as weak referenced,
-// so we must hold this observer here well. If we didn't, there would be a chance that
-// in Linux debug test run the observer was released before the operation at gecko was completed
-// (may be because of a relatively quicker GC cycle or a relatively slower operation).
-// As a result of that, we would never get the cache usage we want so the test would fail from timeout.
-const cacheUsageGetter = {
-  _promise: null,
-  _resolve: null,
-  get() {
-    if (!this._promise) {
-      this._promise = new Promise(resolve => {
-        this._resolve = resolve;
-        Services.cache2.asyncGetDiskConsumption(this);
-      });
-    }
-    return this._promise;
-  },
-  // nsICacheStorageConsumptionObserver implementations
-  onNetworkCacheDiskConsumption(usage) {
-    cacheUsageGetter._promise = null;
-    cacheUsageGetter._resolve(usage);
-  },
-  QueryInterface: XPCOMUtils.generateQI([
-    Components.interfaces.nsICacheStorageConsumptionObserver,
-    Components.interfaces.nsISupportsWeakReference
-  ]),
-};
-
-function promiseCookiesCleared() {
-  return TestUtils.topicObserved("cookie-changed", (subj, data) => {
-    return data === "cleared";
-  });
-}
-
-registerCleanupFunction(function() {
-  delete window.sinon;
-  mockOfflineAppCacheHelper.unregister();
-});
-
-// Test listing site using quota usage or site using appcache
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-
-  // Open a test site which would save into appcache
-  await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_OFFLINE_URL);
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  // Open a test site which would save into quota manager
-  await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_QUOTA_USAGE_URL);
-  await waitForEvent(gBrowser.selectedBrowser.contentWindow, "test-indexedDB-done");
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  let updatedPromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatedPromise;
-  await openSiteDataSettingsDialog();
-  let dialog = content.gSubDialog._topDialog;
-  let dialogFrame = dialog._frame;
-  let frameDoc = dialogFrame.contentDocument;
-
-  let siteItems = frameDoc.getElementsByTagName("richlistitem");
-  is(siteItems.length, 2, "Should list sites using quota usage or appcache");
-
-  let appcacheSite = frameDoc.querySelector(`richlistitem[host="${TEST_OFFLINE_HOST}"]`);
-  ok(appcacheSite, "Should list site using appcache");
-
-  let qoutaUsageSite = frameDoc.querySelector(`richlistitem[host="${TEST_QUOTA_USAGE_HOST}"]`);
-  ok(qoutaUsageSite, "Should list site using quota usage");
-
-  // Always remember to clean up
-  OfflineAppCacheHelper.clear();
-  await new Promise(resolve => {
-    let principal = Services.scriptSecurityManager
-                            .createCodebasePrincipalFromOrigin(TEST_QUOTA_USAGE_ORIGIN);
-    let request = Services.qms.clearStoragesForPrincipal(principal, null, true);
-    request.callback = resolve;
-  });
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-// Test buttons are disabled and loading message shown while updating sites
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  let updatedPromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatedPromise;
-
-  let actual = null;
-  let expected = null;
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let clearBtn = doc.getElementById("clearSiteDataButton");
-  let settingsButton = doc.getElementById("siteDataSettings");
-  let prefStrBundle = doc.getElementById("bundlePreferences");
-  let totalSiteDataSizeLabel = doc.getElementById("totalSiteDataSize");
-  is(clearBtn.disabled, false, "Should enable clear button after sites updated");
-  is(settingsButton.disabled, false, "Should enable settings button after sites updated");
-  await SiteDataManager.getTotalUsage()
-                       .then(usage => {
-                         actual = totalSiteDataSizeLabel.textContent;
-                         expected = prefStrBundle.getFormattedString(
-                           "totalSiteDataSize", DownloadUtils.convertByteUnits(usage));
-                          is(actual, expected, "Should show the right total site data size");
-                       });
-
-  Services.obs.notifyObservers(null, "sitedatamanager:updating-sites");
-  is(clearBtn.disabled, true, "Should disable clear button while updating sites");
-  is(settingsButton.disabled, true, "Should disable settings button while updating sites");
-  actual = totalSiteDataSizeLabel.textContent;
-  expected = prefStrBundle.getString("loadingSiteDataSize");
-  is(actual, expected, "Should show the loading message while updating");
-
-  Services.obs.notifyObservers(null, "sitedatamanager:sites-updated");
-  is(clearBtn.disabled, false, "Should enable clear button after sites updated");
-  is(settingsButton.disabled, false, "Should enable settings button after sites updated");
-  await SiteDataManager.getTotalUsage()
-                       .then(usage => {
-                         actual = totalSiteDataSizeLabel.textContent;
-                         expected = prefStrBundle.getFormattedString(
-                           "totalSiteDataSize", DownloadUtils.convertByteUnits(usage));
-                          is(actual, expected, "Should show the right total site data size");
-                       });
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-// Test the function of the "Clear All Data" button
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  addPersistentStoragePerm(TEST_QUOTA_USAGE_ORIGIN);
-
-  await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_QUOTA_USAGE_URL);
-  await waitForEvent(gBrowser.selectedBrowser.contentWindow, "test-indexedDB-done");
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-
-  // Test the initial states
-  let cacheUsage = await cacheUsageGetter.get();
-  let quotaUsage = await getQuotaUsage(TEST_QUOTA_USAGE_ORIGIN);
-  let totalUsage = await SiteDataManager.getTotalUsage();
-  Assert.greater(cacheUsage, 0, "The cache usage should not be 0");
-  Assert.greater(quotaUsage, 0, "The quota usage should not be 0");
-  Assert.greater(totalUsage, 0, "The total usage should not be 0");
-
-  // Test cancelling "Clear All Data"
-  // Click "Clear All Data" button and then cancel
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let cancelPromise = promiseAlertDialogOpen("cancel");
-  let clearBtn = doc.getElementById("clearSiteDataButton");
-  clearBtn.doCommand();
-  await cancelPromise;
-
-  // Test the items are not removed
-  let status = getPersistentStoragePermStatus(TEST_QUOTA_USAGE_ORIGIN);
-  is(status, Ci.nsIPermissionManager.ALLOW_ACTION, "Should not remove permission");
-
-  cacheUsage = await cacheUsageGetter.get();
-  quotaUsage = await getQuotaUsage(TEST_QUOTA_USAGE_ORIGIN);
-  totalUsage = await SiteDataManager.getTotalUsage();
-  Assert.greater(cacheUsage, 0, "The cache usage should not be 0");
-  Assert.greater(quotaUsage, 0, "The quota usage should not be 0");
-  Assert.greater(totalUsage, 0, "The total usage should not be 0");
-  // Test cancelling "Clear All Data" ends
-
-  // Test accepting "Clear All Data"
-  // Click "Clear All Data" button and then accept
-  let acceptPromise = promiseAlertDialogOpen("accept");
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  let cookiesClearedPromise = promiseCookiesCleared();
-
-  mockOfflineAppCacheHelper.register();
-  clearBtn.doCommand();
-  await acceptPromise;
-  await updatePromise;
-  mockOfflineAppCacheHelper.unregister();
-
-  // Test all the items are removed
-  await cookiesClearedPromise;
-
-  ok(mockOfflineAppCacheHelper.clear.calledOnce, "Should clear app cache");
-
-  status = getPersistentStoragePermStatus(TEST_QUOTA_USAGE_ORIGIN);
-  is(status, Ci.nsIPermissionManager.UNKNOWN_ACTION, "Should remove permission");
-
-  cacheUsage = await cacheUsageGetter.get();
-  quotaUsage = await getQuotaUsage(TEST_QUOTA_USAGE_ORIGIN);
-  totalUsage = await SiteDataManager.getTotalUsage();
-  is(cacheUsage, 0, "The cache usage should be removed");
-  is(quotaUsage, 0, "The quota usage should be removed");
-  is(totalUsage, 0, "The total usage should be removed");
-  // Test accepting "Clear All Data" ends
-
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-// Test sorting
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 1024 * 2,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://books.foo.com"),
-      persisted: false
-    },
-    {
-      usage: 1024 * 3,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-  ];
-
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-
-  let dialog = content.gSubDialog._topDialog;
-  let dialogFrame = dialog._frame;
-  let frameDoc = dialogFrame.contentDocument;
-  let hostCol = frameDoc.getElementById("hostCol");
-  let usageCol = frameDoc.getElementById("usageCol");
-  let statusCol = frameDoc.getElementById("statusCol");
-  let sitesList = frameDoc.getElementById("sitesList");
-
-  // Test default sorting
-  assertSortByUsage("descending");
-
-  // Test sorting on the usage column
-  usageCol.click();
-  assertSortByUsage("ascending");
-  usageCol.click();
-  assertSortByUsage("descending");
-
-  // Test sorting on the host column
-  hostCol.click();
-  assertSortByHost("ascending");
-  hostCol.click();
-  assertSortByHost("descending");
-
-  // Test sorting on the permission status column
-  statusCol.click();
-  assertSortByStatus("ascending");
-  statusCol.click();
-  assertSortByStatus("descending");
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  function assertSortByHost(order) {
-    let siteItems = sitesList.getElementsByTagName("richlistitem");
-    for (let i = 0; i < siteItems.length - 1; ++i) {
-      let aHost = siteItems[i].getAttribute("host");
-      let bHost = siteItems[i + 1].getAttribute("host");
-      let result = aHost.localeCompare(bHost);
-      if (order == "ascending") {
-        Assert.lessOrEqual(result, 0, "Should sort sites in the ascending order by host");
-      } else {
-        Assert.greaterOrEqual(result, 0, "Should sort sites in the descending order by host");
-      }
-    }
-  }
-
-  function assertSortByStatus(order) {
-    let siteItems = sitesList.getElementsByTagName("richlistitem");
-    for (let i = 0; i < siteItems.length - 1; ++i) {
-      let aHost = siteItems[i].getAttribute("host");
-      let bHost = siteItems[i + 1].getAttribute("host");
-      let a = findSiteByHost(aHost);
-      let b = findSiteByHost(bHost);
-      let result = 0;
-      if (a.persisted && !b.persisted) {
-        result = 1;
-      } else if (!a.persisted && b.persisted) {
-        result = -1;
-      }
-      if (order == "ascending") {
-        Assert.lessOrEqual(result, 0, "Should sort sites in the ascending order by permission status");
-      } else {
-        Assert.greaterOrEqual(result, 0, "Should sort sites in the descending order by permission status");
-      }
-    }
-  }
-
-  function assertSortByUsage(order) {
-    let siteItems = sitesList.getElementsByTagName("richlistitem");
-    for (let i = 0; i < siteItems.length - 1; ++i) {
-      let aHost = siteItems[i].getAttribute("host");
-      let bHost = siteItems[i + 1].getAttribute("host");
-      let a = findSiteByHost(aHost);
-      let b = findSiteByHost(bHost);
-      let result = a.usage - b.usage;
-      if (order == "ascending") {
-        Assert.lessOrEqual(result, 0, "Should sort sites in the ascending order by usage");
-      } else {
-        Assert.greaterOrEqual(result, 0, "Should sort sites in the descending order by usage");
-      }
-    }
-  }
-
-  function findSiteByHost(host) {
-    return mockSiteDataManager.fakeSites.find(site => site.principal.URI.host == host);
-  }
-});
-
-// Test search on the host column
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
-      persisted: false
-    },
-  ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
-
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let frameDoc = content.gSubDialog._topDialog._frame.contentDocument;
-  let searchBox = frameDoc.getElementById("searchBox");
-
-  searchBox.value = "xyz";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts.filter(host => host.includes("xyz")));
-
-  searchBox.value = "bar";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts.filter(host => host.includes("bar")));
-
-  searchBox.value = "";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts);
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_siteData2.js
+++ /dev/null
@@ -1,376 +0,0 @@
-"use strict";
-const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
-const REMOVE_DIALOG_URL = "chrome://browser/content/preferences/siteDataRemoveSelected.xul";
-
-function promiseSettingsDialogClose() {
-  return new Promise(resolve => {
-    let win = gBrowser.selectedBrowser.contentWindow;
-    let dialogOverlay = win.gSubDialog._topDialog._overlay;
-    let dialogWin = win.gSubDialog._topDialog._frame.contentWindow;
-    dialogWin.addEventListener("unload", function unload() {
-      if (dialogWin.document.documentURI === "chrome://browser/content/preferences/siteDataSettings.xul") {
-        isnot(dialogOverlay.style.visibility, "visible", "The Settings dialog should be hidden");
-        resolve();
-      }
-    }, { once: true });
-  });
-}
-
-function assertAllSitesNotListed(win) {
-  let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  let removeBtn = frameDoc.getElementById("removeSelected");
-  let removeAllBtn = frameDoc.getElementById("removeAll");
-  let sitesList = frameDoc.getElementById("sitesList");
-  let sites = sitesList.getElementsByTagName("richlistitem");
-  is(sites.length, 0, "Should not list all sites");
-  is(removeBtn.disabled, true, "Should disable the removeSelected button");
-  is(removeAllBtn.disabled, true, "Should disable the removeAllBtn button");
-}
-
-// Test selecting and removing all sites one by one
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
-      persisted: false
-    },
-  ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
-
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let frameDoc = null;
-  let saveBtn = null;
-  let cancelBtn = null;
-  let settingsDialogClosePromise = null;
-
-  // Test the initial state
-  assertSitesListed(doc, fakeHosts);
-
-  // Test the "Cancel" button
-  settingsDialogClosePromise = promiseSettingsDialogClose();
-  frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  cancelBtn = frameDoc.getElementById("cancel");
-  removeAllSitesOneByOne();
-  assertAllSitesNotListed(win);
-  cancelBtn.doCommand();
-  await settingsDialogClosePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts);
-
-  // Test the "Save Changes" button but cancelling save
-  let cancelPromise = promiseAlertDialogOpen("cancel");
-  settingsDialogClosePromise = promiseSettingsDialogClose();
-  frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  saveBtn = frameDoc.getElementById("save");
-  removeAllSitesOneByOne();
-  assertAllSitesNotListed(win);
-  saveBtn.doCommand();
-  await cancelPromise;
-  await settingsDialogClosePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts);
-
-  // Test the "Save Changes" button and accepting save
-  let acceptPromise = promiseAlertDialogOpen("accept");
-  settingsDialogClosePromise = promiseSettingsDialogClose();
-  updatePromise = promiseSiteDataManagerSitesUpdated();
-  frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  saveBtn = frameDoc.getElementById("save");
-  removeAllSitesOneByOne();
-  assertAllSitesNotListed(win);
-  saveBtn.doCommand();
-  await acceptPromise;
-  await settingsDialogClosePromise;
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-  assertAllSitesNotListed(win);
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  function removeAllSitesOneByOne() {
-    frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-    let removeBtn = frameDoc.getElementById("removeSelected");
-    let sitesList = frameDoc.getElementById("sitesList");
-    let sites = sitesList.getElementsByTagName("richlistitem");
-    for (let i = sites.length - 1; i >= 0; --i) {
-      sites[i].click();
-      removeBtn.doCommand();
-    }
-  }
-});
-
-// Test selecting and removing partial sites
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://s3-us-west-2.amazonaws.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://127.0.0.1"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://[0:0:0:0:0:0:0:1]"),
-      persisted: true
-    },
-  ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
-
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let frameDoc = null;
-  let saveBtn = null;
-  let cancelBtn = null;
-  let removeDialogOpenPromise = null;
-  let settingsDialogClosePromise = null;
-
-  // Test the initial state
-  assertSitesListed(doc, fakeHosts);
-
-  // Test the "Cancel" button
-  settingsDialogClosePromise = promiseSettingsDialogClose();
-  frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  cancelBtn = frameDoc.getElementById("cancel");
-  removeSelectedSite(fakeHosts.slice(0, 2));
-  assertSitesListed(doc, fakeHosts.slice(2));
-  cancelBtn.doCommand();
-  await settingsDialogClosePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts);
-
-  // Test the "Save Changes" button but canceling save
-  removeDialogOpenPromise = promiseWindowDialogOpen("cancel", REMOVE_DIALOG_URL);
-  settingsDialogClosePromise = promiseSettingsDialogClose();
-  frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  saveBtn = frameDoc.getElementById("save");
-  removeSelectedSite(fakeHosts.slice(0, 2));
-  assertSitesListed(doc, fakeHosts.slice(2));
-  saveBtn.doCommand();
-  await removeDialogOpenPromise;
-  await settingsDialogClosePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts);
-
-  // Test the "Save Changes" button and accepting save
-  removeDialogOpenPromise = promiseWindowDialogOpen("accept", REMOVE_DIALOG_URL);
-  settingsDialogClosePromise = promiseSettingsDialogClose();
-  frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  saveBtn = frameDoc.getElementById("save");
-  removeSelectedSite(fakeHosts.slice(0, 2));
-  assertSitesListed(doc, fakeHosts.slice(2));
-  saveBtn.doCommand();
-  await removeDialogOpenPromise;
-  await settingsDialogClosePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts.slice(2));
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-
-  function removeSelectedSite(hosts) {
-    frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-    let removeBtn = frameDoc.getElementById("removeSelected");
-    let sitesList = frameDoc.getElementById("sitesList");
-    hosts.forEach(host => {
-      let site = sitesList.querySelector(`richlistitem[host="${host}"]`);
-      if (site) {
-        site.click();
-        removeBtn.doCommand();
-      } else {
-        ok(false, `Should not select and remove inexistent site of ${host}`);
-      }
-    });
-  }
-});
-
-// Test searching and then removing only visible sites
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
-      persisted: false
-    },
-  ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
-
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-
-  // Search "foo" to only list foo.com sites
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  let searchBox = frameDoc.getElementById("searchBox");
-  searchBox.value = "xyz";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts.filter(host => host.includes("xyz")));
-
-  // Test only removing all visible sites listed
-  updatePromise = promiseSiteDataManagerSitesUpdated();
-  let acceptRemovePromise = promiseWindowDialogOpen("accept", REMOVE_DIALOG_URL);
-  let settingsDialogClosePromise = promiseSettingsDialogClose();
-  let removeAllBtn = frameDoc.getElementById("removeAll");
-  let saveBtn = frameDoc.getElementById("save");
-  removeAllBtn.doCommand();
-  saveBtn.doCommand();
-  await acceptRemovePromise;
-  await settingsDialogClosePromise;
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts.filter(host => !host.includes("xyz")));
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-// Test dynamically clearing all site data
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-  ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
-
-  // Test the initial state
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  assertSitesListed(doc, fakeHosts);
-
-  // Add more sites dynamically
-  mockSiteDataManager.fakeSites.push({
-    usage: 1024,
-    principal: Services.scriptSecurityManager
-                       .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-    persisted: true
-  }, {
-    usage: 1024,
-    principal: Services.scriptSecurityManager
-                       .createCodebasePrincipalFromOrigin("http://email.bar.com"),
-    persisted: false
-  });
-
-  // Test clearing all site data dynamically
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  updatePromise = promiseSiteDataManagerSitesUpdated();
-  let acceptRemovePromise = promiseAlertDialogOpen("accept");
-  let settingsDialogClosePromise = promiseSettingsDialogClose();
-  let removeAllBtn = frameDoc.getElementById("removeAll");
-  let saveBtn = frameDoc.getElementById("save");
-  removeAllBtn.doCommand();
-  saveBtn.doCommand();
-  await acceptRemovePromise;
-  await settingsDialogClosePromise;
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-  assertAllSitesNotListed(win);
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_siteData3.js
+++ /dev/null
@@ -1,107 +0,0 @@
-"use strict";
-const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
-const { DownloadUtils } = Cu.import("resource://gre/modules/DownloadUtils.jsm", {});
-
-// Test not displaying sites which store 0 byte and don't have persistent storage.
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: 0,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: true
-    },
-    {
-      usage: 0,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
-      persisted: false
-    },
-  ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
-
-  let updatePromise = promiseSiteDataManagerSitesUpdated();
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatePromise;
-  await openSiteDataSettingsDialog();
-  assertSitesListed(doc, fakeHosts.filter(host => host != "shopping.xyz.com"));
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
-// Test grouping and listing sites across scheme, port and origin attributes by host
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  const quotaUsage = 1024;
-  mockSiteDataManager.register(SiteDataManager);
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com^userContextId=1"),
-      persisted: true
-    },
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com:123"),
-      persisted: false
-    },
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://account.xyz.com"),
-      persisted: false
-    },
-  ];
-
-  let updatedPromise = promiseSiteDataManagerSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
-  await updatedPromise;
-  await openSiteDataSettingsDialog();
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let dialogFrame = win.gSubDialog._topDialog._frame;
-  let frameDoc = dialogFrame.contentDocument;
-
-  let siteItems = frameDoc.getElementsByTagName("richlistitem");
-  is(siteItems.length, 1, "Should group sites across scheme, port and origin attributes");
-
-  let expected = "account.xyz.com";
-  let host = siteItems[0].getAttribute("host");
-  is(host, expected, "Should group and list sites by host");
-
-  let prefStrBundle = frameDoc.getElementById("bundlePreferences");
-  expected = prefStrBundle.getFormattedString("siteUsage",
-    DownloadUtils.convertByteUnits(quotaUsage * mockSiteDataManager.fakeSites.length));
-  let usage = siteItems[0].getAttribute("usage");
-  is(usage, expected, "Should sum up usages across scheme, port and origin attributes");
-
-  expected = prefStrBundle.getString("persistent");
-  let status = siteItems[0].getAttribute("status");
-  is(status, expected, "Should mark persisted status across scheme, port and origin attributes");
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_site_login_exceptions.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-const PERMISSIONS_URL = "chrome://browser/content/preferences/permissions.xul";
-
-var exceptionsDialog;
-
-add_task(async function openLoginExceptionsSubDialog() {
-  // Undo the save password change.
-  registerCleanupFunction(async function() {
-    await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
-      let doc = content.document;
-      let savePasswordCheckBox = doc.getElementById("savePasswords");
-      if (savePasswordCheckBox.checked) {
-        savePasswordCheckBox.click();
-      }
-    });
-
-    gBrowser.removeCurrentTab();
-  });
-
-  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
-
-  let dialogOpened = promiseLoadSubDialog(PERMISSIONS_URL);
-
-  await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
-    let doc = content.document;
-    let savePasswordCheckBox = doc.getElementById("savePasswords");
-    Assert.ok(!savePasswordCheckBox.checked,
-              "Save Password CheckBox should be unchecked by default");
-    savePasswordCheckBox.click();
-
-    let loginExceptionsButton = doc.getElementById("passwordExceptions");
-    loginExceptionsButton.click();
-  });
-
-  exceptionsDialog = await dialogOpened;
-});
-
-add_task(async function addALoginException() {
-  let doc = exceptionsDialog.document;
-
-  let tree = doc.getElementById("permissionsTree");
-  Assert.equal(tree.view.rowCount, 0, "Row count should initially be 0");
-
-  let inputBox = doc.getElementById("url");
-  inputBox.focus();
-
-  EventUtils.sendString("www.example.com", exceptionsDialog);
-
-  let btnBlock = doc.getElementById("btnBlock");
-  btnBlock.click();
-
-  await waitForCondition(() => tree.view.rowCount == 1);
-
-  Assert.equal(tree.view.getCellText(0, tree.treeBoxObject.columns.getColumnAt(0)),
-               "http://www.example.com");
-});
-
-add_task(async function deleteALoginException() {
-  let doc = exceptionsDialog.document;
-
-  let tree = doc.getElementById("permissionsTree");
-  Assert.equal(tree.view.rowCount, 1, "Row count should initially be 1");
-  tree.focus();
-  tree.view.selection.select(0);
-
-  if (AppConstants.platform == "macosx") {
-    EventUtils.synthesizeKey("VK_BACK_SPACE", {});
-  } else {
-    EventUtils.synthesizeKey("VK_DELETE", {});
-  }
-
-  await waitForCondition(() => tree.view.rowCount == 0);
-
-  is_element_visible(content.gSubDialog._dialogs[0]._box,
-    "Subdialog is visible after deleting an element");
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_subdialogs.js
+++ /dev/null
@@ -1,347 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-/**
- * Tests for the sub-dialog infrastructure, not for actual sub-dialog functionality.
- */
-
-const gDialogURL = getRootDirectory(gTestPath) + "subdialog.xul";
-const gDialogURL2 = getRootDirectory(gTestPath) + "subdialog2.xul";
-
-function open_subdialog_and_test_generic_start_state(browser, domcontentloadedFn, url = gDialogURL) {
-  let domcontentloadedFnStr = domcontentloadedFn ?
-    "(" + domcontentloadedFn.toString() + ")()" :
-    "";
-  return ContentTask.spawn(browser, {url, domcontentloadedFnStr}, async function(args) {
-    let rv = { acceptCount: 0 };
-    let win = content.window;
-    content.gSubDialog.open(args.url, null, rv);
-    let subdialog = content.gSubDialog._topDialog;
-
-    info("waiting for subdialog DOMFrameContentLoaded");
-    await ContentTaskUtils.waitForEvent(win, "DOMFrameContentLoaded", true);
-    let result;
-    if (args.domcontentloadedFnStr) {
-      // eslint-disable-next-line no-eval
-      result = eval(args.domcontentloadedFnStr);
-    }
-
-    info("waiting for subdialog load");
-    await ContentTaskUtils.waitForEvent(subdialog._overlay, "dialogopen");
-    info("subdialog window is loaded");
-
-    let expectedStyleSheetURLs = subdialog._injectedStyleSheets.slice(0);
-    for (let styleSheet of subdialog._frame.contentDocument.styleSheets) {
-      let index = expectedStyleSheetURLs.indexOf(styleSheet.href);
-      if (index >= 0) {
-        expectedStyleSheetURLs.splice(index, 1);
-      }
-    }
-
-    Assert.ok(!!subdialog._frame.contentWindow, "The dialog should be non-null");
-    Assert.notEqual(subdialog._frame.contentWindow.location.toString(), "about:blank",
-      "Subdialog URL should not be about:blank");
-    Assert.equal(win.getComputedStyle(subdialog._overlay).visibility, "visible",
-      "Overlay should be visible");
-    Assert.equal(expectedStyleSheetURLs.length, 0,
-      "No stylesheets that were expected are missing");
-    return result;
-  });
-}
-
-async function close_subdialog_and_test_generic_end_state(browser, closingFn, closingButton, acceptCount, options) {
-  let getDialogsCount = () => {
-    return ContentTask.spawn(browser, null, () =>
-      content.window.gSubDialog._dialogs.length);
-  };
-  let getStackChildrenCount = () => {
-    return ContentTask.spawn(browser, null, () =>
-      content.window.gSubDialog._dialogStack.children.length);
-  };
-  let dialogclosingPromise = ContentTask.spawn(browser, {closingButton, acceptCount}, async function(expectations) {
-    let win = content.window;
-    let subdialog = win.gSubDialog._topDialog;
-    let frame = subdialog._frame;
-    info("waiting for dialogclosing");
-    let closingEvent =
-      await ContentTaskUtils.waitForEvent(frame.contentWindow, "dialogclosing");
-    let contentClosingButton = closingEvent.detail.button;
-    let actualAcceptCount = frame.contentWindow.arguments &&
-                            frame.contentWindow.arguments[0].acceptCount;
-
-    info("waiting for about:blank load");
-    await ContentTaskUtils.waitForEvent(frame, "load");
-
-    Assert.notEqual(win.getComputedStyle(subdialog._overlay).visibility, "visible",
-      "overlay is not visible");
-    Assert.equal(frame.getAttribute("style"), "", "inline styles should be cleared");
-    Assert.equal(frame.contentWindow.location.href.toString(), "about:blank",
-      "sub-dialog should be unloaded");
-    Assert.equal(contentClosingButton, expectations.closingButton,
-      "closing event should indicate button was '" + expectations.closingButton + "'");
-    Assert.equal(actualAcceptCount, expectations.acceptCount,
-      "should be 1 if accepted, 0 if canceled, undefined if closed w/out button");
-  });
-  let initialDialogsCount = await getDialogsCount();
-  let initialStackChildrenCount = await getStackChildrenCount();
-  if (options && options.runClosingFnOutsideOfContentTask) {
-    await closingFn();
-  } else {
-    ContentTask.spawn(browser, null, closingFn);
-  }
-
-  await dialogclosingPromise;
-  let endDialogsCount = await getDialogsCount();
-  let endStackChildrenCount = await getStackChildrenCount();
-  Assert.equal(initialDialogsCount - 1, endDialogsCount,
-    "dialog count should decrease by 1");
-  Assert.equal(initialStackChildrenCount - 1, endStackChildrenCount,
-    "stack children count should decrease by 1");
-}
-
-let tab;
-
-add_task(async function test_initialize() {
-  tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:preferences");
-});
-
-add_task(async function check_titlebar_focus_returnval_titlechanges_accepting() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  let domtitlechangedPromise = BrowserTestUtils.waitForEvent(tab.linkedBrowser, "DOMTitleChanged");
-  await ContentTask.spawn(tab.linkedBrowser, null, async function() {
-    let dialog = content.window.gSubDialog._topDialog;
-    let dialogWin = dialog._frame.contentWindow;
-    let dialogTitleElement = dialog._titleElement;
-    Assert.equal(dialogTitleElement.textContent, "Sample sub-dialog",
-       "Title should be correct initially");
-    Assert.equal(dialogWin.document.activeElement.value, "Default text",
-       "Textbox with correct text is focused");
-    dialogWin.document.title = "Updated title";
-  });
-
-  info("waiting for DOMTitleChanged event");
-  await domtitlechangedPromise;
-
-  ContentTask.spawn(tab.linkedBrowser, null, async function() {
-    let dialogTitleElement = content.window.gSubDialog._topDialog._titleElement;
-    Assert.equal(dialogTitleElement.textContent, "Updated title",
-      "subdialog should have updated title");
-  });
-
-  // Accept the dialog
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentDocument.documentElement.acceptDialog(); },
-    "accept", 1);
-});
-
-add_task(async function check_canceling_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  info("canceling the dialog");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentDocument.documentElement.cancelDialog(); },
-    "cancel", 0);
-});
-
-add_task(async function check_reopening_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-  info("opening another dialog which will close the first");
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser, "", gDialogURL2);
-
-  ContentTask.spawn(tab.linkedBrowser, null, async function() {
-    let win = content.window;
-    let dialogs = win.gSubDialog._dialogs;
-    let lowerDialog = dialogs[0];
-    let topDialog = dialogs[1];
-    Assert.equal(dialogs.length, 2, "There should be two visible dialogs");
-    Assert.equal(win.getComputedStyle(topDialog._overlay).visibility, "visible",
-      "The top dialog should be visible");
-    Assert.equal(win.getComputedStyle(lowerDialog._overlay).visibility, "visible",
-      "The lower dialog should be visible");
-    Assert.equal(win.getComputedStyle(topDialog._overlay).backgroundColor, "rgba(0, 0, 0, 0.5)",
-      "The top dialog should have a semi-transparent overlay");
-    Assert.equal(win.getComputedStyle(lowerDialog._overlay).backgroundColor, "rgba(0, 0, 0, 0)",
-      "The lower dialog should not have an overlay");
-  });
-
-  info("closing two dialogs");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentDocument.documentElement.acceptDialog(); },
-    "accept", 1);
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentDocument.documentElement.acceptDialog(); },
-    "accept", 1);
-});
-
-add_task(async function check_opening_while_closing() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-  info("closing");
-  content.window.gSubDialog._topDialog.close();
-  info("reopening immediately after calling .close()");
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentDocument.documentElement.acceptDialog(); },
-    "accept", 1);
-
-});
-
-add_task(async function window_close_on_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  info("canceling the dialog");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentWindow.window.close(); },
-    null, 0);
-});
-
-add_task(async function click_close_button_on_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  info("canceling the dialog");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { return BrowserTestUtils.synthesizeMouseAtCenter(".dialogClose", {}, tab.linkedBrowser); },
-    null, 0, {runClosingFnOutsideOfContentTask: true});
-});
-
-add_task(async function background_click_should_close_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  // Clicking on an inactive part of dialog itself should not close the dialog.
-  // Click the dialog title bar here to make sure nothing happens.
-  info("clicking the dialog title bar");
-  BrowserTestUtils.synthesizeMouseAtCenter(".dialogTitle", {}, tab.linkedBrowser);
-
-  // Close the dialog by clicking on the overlay background. Simulate a click
-  // at point (2,2) instead of (0,0) so we are sure we're clicking on the
-  // overlay background instead of some boundary condition that a real user
-  // would never click.
-  info("clicking the overlay background");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { return BrowserTestUtils.synthesizeMouseAtPoint(2, 2, {}, tab.linkedBrowser); },
-    null, 0, {runClosingFnOutsideOfContentTask: true});
-});
-
-add_task(async function back_navigation_on_subdialog_should_close_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  info("canceling the dialog");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.goBack(); },
-    null, undefined);
-});
-
-add_task(async function back_navigation_on_browser_tab_should_close_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  info("canceling the dialog");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { tab.linkedBrowser.goBack(); },
-    null, undefined, {runClosingFnOutsideOfContentTask: true});
-});
-
-add_task(async function escape_should_close_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  info("canceling the dialog");
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { return BrowserTestUtils.synthesizeKey("VK_ESCAPE", {}, tab.linkedBrowser); },
-    "cancel", 0, {runClosingFnOutsideOfContentTask: true});
-});
-
-add_task(async function correct_width_and_height_should_be_used_for_dialog() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser);
-
-  await ContentTask.spawn(tab.linkedBrowser, null, async function() {
-    let frameStyle = content.window.gSubDialog._topDialog._frame.style;
-    Assert.equal(frameStyle.width, "32em",
-      "Width should be set on the frame from the dialog");
-    Assert.equal(frameStyle.height, "5em",
-      "Height should be set on the frame from the dialog");
-  });
-
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentWindow.window.close(); },
-    null, 0);
-});
-
-add_task(async function wrapped_text_in_dialog_should_have_expected_scrollHeight() {
-  let oldHeight = await open_subdialog_and_test_generic_start_state(tab.linkedBrowser, function domcontentloadedFn() {
-    let frame = content.window.gSubDialog._topDialog._frame;
-    let doc = frame.contentDocument;
-    let scrollHeight = doc.documentElement.scrollHeight;
-    doc.documentElement.style.removeProperty("height");
-    doc.getElementById("desc").textContent = `
-      Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
-      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
-      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas
-      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
-      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
-      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas
-      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
-      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
-      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas
-      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
-      voluptatem sequi nesciunt.`
-    return scrollHeight;
-  });
-
-  await ContentTask.spawn(tab.linkedBrowser, oldHeight, async function(contentOldHeight) {
-    let frame = content.window.gSubDialog._topDialog._frame;
-    let docEl = frame.contentDocument.documentElement;
-    Assert.equal(frame.style.width, "32em",
-      "Width should be set on the frame from the dialog");
-    Assert.ok(docEl.scrollHeight > contentOldHeight,
-      "Content height increased (from " + contentOldHeight + " to " + docEl.scrollHeight + ").");
-    Assert.equal(frame.style.height, docEl.scrollHeight + "px",
-      "Height on the frame should be higher now");
-  });
-
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentWindow.window.close(); },
-    null, 0);
-});
-
-add_task(async function dialog_too_tall_should_get_reduced_in_height() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser, function domcontentloadedFn() {
-    let frame = content.window.gSubDialog._topDialog._frame;
-    frame.contentDocument.documentElement.style.height = "100000px";
-  });
-
-  await ContentTask.spawn(tab.linkedBrowser, null, async function() {
-    let frame = content.window.gSubDialog._topDialog._frame;
-    Assert.equal(frame.style.width, "32em", "Width should be set on the frame from the dialog");
-    Assert.ok(parseInt(frame.style.height, 10) < content.window.innerHeight,
-       "Height on the frame should be smaller than window's innerHeight");
-  });
-
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentWindow.window.close(); },
-    null, 0);
-});
-
-add_task(async function scrollWidth_and_scrollHeight_from_subdialog_should_size_the_browser() {
-  await open_subdialog_and_test_generic_start_state(tab.linkedBrowser, function domcontentloadedFn() {
-    let frame = content.window.gSubDialog._topDialog._frame;
-    frame.contentDocument.documentElement.style.removeProperty("height");
-    frame.contentDocument.documentElement.style.removeProperty("width");
-  });
-
-  await ContentTask.spawn(tab.linkedBrowser, null, async function() {
-    let frame = content.window.gSubDialog._topDialog._frame;
-    Assert.ok(frame.style.width.endsWith("px"),
-       "Width (" + frame.style.width + ") should be set to a px value of the scrollWidth from the dialog");
-    Assert.ok(frame.style.height.endsWith("px"),
-       "Height (" + frame.style.height + ") should be set to a px value of the scrollHeight from the dialog");
-  });
-
-  await close_subdialog_and_test_generic_end_state(tab.linkedBrowser,
-    function() { content.window.gSubDialog._topDialog._frame.contentWindow.window.close(); },
-    null, 0);
-});
-
-add_task(async function test_shutdown() {
-  gBrowser.removeTab(tab);
-});
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/browser_telemetry.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-* http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-const PREF_TELEMETRY_ENABLED = "toolkit.telemetry.enabled";
-
-function runPaneTest(fn) {
-  open_preferences((win) => {
-    let doc = win.document;
-    win.gotoPref("paneAdvanced");
-    let advancedPrefs = doc.getElementById("advancedPrefs");
-    let tab = doc.getElementById("dataChoicesTab");
-    advancedPrefs.selectedTab = tab;
-    fn(win, doc);
-  });
-}
-
-function test() {
-  waitForExplicitFinish();
-  resetPreferences();
-  registerCleanupFunction(resetPreferences);
-  runPaneTest(testTelemetryState);
-}
-
-function testTelemetryState(win, doc) {
-  let fhrCheckbox = doc.getElementById("submitHealthReportBox");
-  Assert.ok(fhrCheckbox.checked, "Health Report checkbox is checked on app first run.");
-
-  let telmetryCheckbox = doc.getElementById("submitTelemetryBox");
-  Assert.ok(!telmetryCheckbox.disabled,
-            "Telemetry checkbox must be enabled if FHR is checked.");
-  Assert.ok(Services.prefs.getBoolPref(PREF_TELEMETRY_ENABLED),
-            "Telemetry must be enabled if the checkbox is ticked.");
-
-  // Uncheck the FHR checkbox and make sure that Telemetry checkbox gets disabled.
-  fhrCheckbox.click();
-
-  Assert.ok(telmetryCheckbox.disabled,
-            "Telemetry checkbox must be disabled if FHR is unchecked.");
-  Assert.ok(!Services.prefs.getBoolPref(PREF_TELEMETRY_ENABLED),
-            "Telemetry must be disabled if the checkbox is unticked.");
-
-  win.close();
-  finish();
-}
-
-function resetPreferences() {
-  Services.prefs.clearUserPref("datareporting.healthreport.uploadEnabled");
-  Services.prefs.clearUserPref(PREF_TELEMETRY_ENABLED);
-}
-
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/head.js
+++ /dev/null
@@ -1,287 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-Components.utils.import("resource://gre/modules/Promise.jsm");
-
-// Tests within /browser/components/preferences/in-content-new/tests/
-// test the "new" preferences organization, after it was reorganized.
-// Thus, all of these tests should set the "oldOrganization" to false
-// before running.
-Services.prefs.setBoolPref("browser.preferences.useOldOrganization", false);
-registerCleanupFunction(function() {
-  Services.prefs.clearUserPref("browser.preferences.useOldOrganization");
-});
-
-const kDefaultWait = 2000;
-
-function is_hidden(aElement) {
-  var style = aElement.ownerGlobal.getComputedStyle(aElement);
-  if (style.display == "none")
-    return true;
-  if (style.visibility != "visible")
-    return true;
-
-  // Hiding a parent element will hide all its children
-  if (aElement.parentNode != aElement.ownerDocument)
-    return is_hidden(aElement.parentNode);
-
-  return false;
-}
-
-function is_element_visible(aElement, aMsg) {
-  isnot(aElement, null, "Element should not be null, when checking visibility");
-  ok(!is_hidden(aElement), aMsg);
-}
-
-function is_element_hidden(aElement, aMsg) {
-  isnot(aElement, null, "Element should not be null, when checking visibility");
-  ok(is_hidden(aElement), aMsg);
-}
-
-function open_preferences(aCallback) {
-  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:preferences");
-  let newTabBrowser = gBrowser.getBrowserForTab(gBrowser.selectedTab);
-  newTabBrowser.addEventListener("Initialized", function() {
-    aCallback(gBrowser.contentWindow);
-  }, {capture: true, once: true});
-}
-
-function openAndLoadSubDialog(aURL, aFeatures = null, aParams = null, aClosingCallback = null) {
-  let promise = promiseLoadSubDialog(aURL);
-  content.gSubDialog.open(aURL, aFeatures, aParams, aClosingCallback);
-  return promise;
-}
-
-function promiseLoadSubDialog(aURL) {
-  return new Promise((resolve, reject) => {
-    content.gSubDialog._dialogStack.addEventListener("dialogopen", function dialogopen(aEvent) {
-      if (aEvent.detail.dialog._frame.contentWindow.location == "about:blank")
-        return;
-      content.gSubDialog._dialogStack.removeEventListener("dialogopen", dialogopen);
-
-      is(aEvent.detail.dialog._frame.contentWindow.location.toString(), aURL,
-         "Check the proper URL is loaded");
-
-      // Check visibility
-      is_element_visible(aEvent.detail.dialog._overlay, "Overlay is visible");
-
-      // Check that stylesheets were injected
-      let expectedStyleSheetURLs = aEvent.detail.dialog._injectedStyleSheets.slice(0);
-      for (let styleSheet of aEvent.detail.dialog._frame.contentDocument.styleSheets) {
-        let i = expectedStyleSheetURLs.indexOf(styleSheet.href);
-        if (i >= 0) {
-          info("found " + styleSheet.href);
-          expectedStyleSheetURLs.splice(i, 1);
-        }
-      }
-      is(expectedStyleSheetURLs.length, 0, "All expectedStyleSheetURLs should have been found");
-
-      resolve(aEvent.detail.dialog._frame.contentWindow);
-    });
-  });
-}
-
-/**
- * Waits a specified number of miliseconds for a specified event to be
- * fired on a specified element.
- *
- * Usage:
- *    let receivedEvent = waitForEvent(element, "eventName");
- *    // Do some processing here that will cause the event to be fired
- *    // ...
- *    // Now yield until the Promise is fulfilled
- *    yield receivedEvent;
- *    if (receivedEvent && !(receivedEvent instanceof Error)) {
- *      receivedEvent.msg == "eventName";
- *      // ...
- *    }
- *
- * @param aSubject the element that should receive the event
- * @param aEventName the event to wait for
- * @param aTimeoutMs the number of miliseconds to wait before giving up
- * @returns a Promise that resolves to the received event, or to an Error
- */
-function waitForEvent(aSubject, aEventName, aTimeoutMs, aTarget) {
-  let eventDeferred = Promise.defer();
-  let timeoutMs = aTimeoutMs || kDefaultWait;
-  let stack = new Error().stack;
-  let timerID = setTimeout(function wfe_canceller() {
-    aSubject.removeEventListener(aEventName, listener);
-    eventDeferred.reject(new Error(aEventName + " event timeout at " + stack));
-  }, timeoutMs);
-
-  var listener = function(aEvent) {
-    if (aTarget && aTarget !== aEvent.target)
-        return;
-
-    // stop the timeout clock and resume
-    clearTimeout(timerID);
-    eventDeferred.resolve(aEvent);
-  };
-
-  function cleanup(aEventOrError) {
-    // unhook listener in case of success or failure
-    aSubject.removeEventListener(aEventName, listener);
-    return aEventOrError;
-  }
-  aSubject.addEventListener(aEventName, listener);
-  return eventDeferred.promise.then(cleanup, cleanup);
-}
-
-function openPreferencesViaOpenPreferencesAPI(aPane, aOptions) {
-  return new Promise(resolve => {
-    gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:blank");
-    openPreferences(aPane);
-    let newTabBrowser = gBrowser.selectedBrowser;
-
-    newTabBrowser.addEventListener("Initialized", function() {
-      newTabBrowser.contentWindow.addEventListener("load", function() {
-        let win = gBrowser.contentWindow;
-        let selectedPane = win.history.state;
-        if (!aOptions || !aOptions.leaveOpen)
-          gBrowser.removeCurrentTab();
-        resolve({selectedPane});
-      }, {once: true});
-    }, {capture: true, once: true});
-
-  });
-}
-
-function waitForCondition(aConditionFn, aMaxTries = 50, aCheckInterval = 100) {
-  return new Promise((resolve, reject) => {
-    function tryNow() {
-      tries++;
-      let rv = aConditionFn();
-      if (rv) {
-        resolve(rv);
-      } else if (tries < aMaxTries) {
-        tryAgain();
-      } else {
-        reject("Condition timed out: " + aConditionFn.toSource());
-      }
-    }
-    function tryAgain() {
-      setTimeout(tryNow, aCheckInterval);
-    }
-    let tries = 0;
-    tryAgain();
-  });
-}
-
-function promiseWindowDialogOpen(buttonAction, url) {
-  return new Promise(resolve => {
-    Services.ww.registerNotification(function onOpen(subj, topic, data) {
-      if (topic == "domwindowopened" && subj instanceof Ci.nsIDOMWindow) {
-        subj.addEventListener("load", function onLoad() {
-          if (subj.document.documentURI == url) {
-            Services.ww.unregisterNotification(onOpen);
-            let doc = subj.document.documentElement;
-            doc.getButton(buttonAction).click();
-            resolve();
-          }
-        }, {once: true});
-      }
-    });
-  });
-}
-
-function promiseAlertDialogOpen(buttonAction) {
-  return promiseWindowDialogOpen(buttonAction, "chrome://global/content/commonDialog.xul");
-}
-
-function addPersistentStoragePerm(origin) {
-  let uri = NetUtil.newURI(origin);
-  let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
-  Services.perms.addFromPrincipal(principal, "persistent-storage", Ci.nsIPermissionManager.ALLOW_ACTION);
-}
-
-function promiseSiteDataManagerSitesUpdated() {
-  return TestUtils.topicObserved("sitedatamanager:sites-updated", () => true);
-}
-
-function openSiteDataSettingsDialog() {
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let settingsBtn = doc.getElementById("siteDataSettings");
-  let dialogOverlay = content.gSubDialog._preloadDialog._overlay;
-  let dialogLoadPromise = promiseLoadSubDialog("chrome://browser/content/preferences/siteDataSettings.xul");
-  let dialogInitPromise = TestUtils.topicObserved("sitedata-settings-init", () => true);
-  let fullyLoadPromise = Promise.all([ dialogLoadPromise, dialogInitPromise ]).then(() => {
-    is(dialogOverlay.style.visibility, "visible", "The Settings dialog should be visible");
-  });
-  settingsBtn.doCommand();
-  return fullyLoadPromise;
-}
-
-function assertSitesListed(doc, hosts) {
-  let frameDoc = content.gSubDialog._topDialog._frame.contentDocument;
-  let removeBtn = frameDoc.getElementById("removeSelected");
-  let removeAllBtn = frameDoc.getElementById("removeAll");
-  let sitesList = frameDoc.getElementById("sitesList");
-  let totalSitesNumber = sitesList.getElementsByTagName("richlistitem").length;
-  is(totalSitesNumber, hosts.length, "Should list the right sites number");
-  hosts.forEach(host => {
-    let site = sitesList.querySelector(`richlistitem[host="${host}"]`);
-    ok(site, `Should list the site of ${host}`);
-  });
-  is(removeBtn.disabled, false, "Should enable the removeSelected button");
-  is(removeAllBtn.disabled, false, "Should enable the removeAllBtn button");
-}
-
-async function evaluateSearchResults(keyword, searchReults) {
-  searchReults = Array.isArray(searchReults) ? searchReults : [searchReults];
-  searchReults.push("header-searchResults");
-
-  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
-  searchInput.focus();
-  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
-      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == keyword);
-  EventUtils.sendString(keyword);
-  await searchCompletedPromise;
-
-  let mainPrefTag = gBrowser.contentDocument.getElementById("mainPrefPane");
-  for (let i = 0; i < mainPrefTag.childElementCount; i++) {
-    let child = mainPrefTag.children[i];
-    if (searchReults.includes(child.id)) {
-      is_element_visible(child, "Should be in search results");
-    } else if (child.id) {
-      is_element_hidden(child, "Should not be in search results");
-    }
-  }
-}
-
-const mockSiteDataManager = {
-
-  _SiteDataManager: null,
-  _originalQMS: null,
-  _originalRemoveQuotaUsage: null,
-
-  getUsage(onUsageResult) {
-    let result = this.fakeSites.map(site => ({
-      origin: site.principal.origin,
-      usage: site.usage,
-      persisted: site.persisted
-    }));
-    onUsageResult({ result });
-  },
-
-  _removeQuotaUsage(site) {
-    var target = site.principals[0].URI.host;
-    this.fakeSites = this.fakeSites.filter(fakeSite => {
-      return fakeSite.principal.URI.host != target;
-    });
-  },
-
-  register(SiteDataManager) {
-    this._SiteDataManager = SiteDataManager;
-    this._originalQMS = this._SiteDataManager._qms;
-    this._SiteDataManager._qms = this;
-    this._originalRemoveQuotaUsage = this._SiteDataManager._removeQuotaUsage;
-    this._SiteDataManager._removeQuotaUsage = this._removeQuotaUsage.bind(this);
-    this.fakeSites = null;
-  },
-
-  unregister() {
-    this._SiteDataManager._qms = this._originalQMS;
-    this._SiteDataManager._removeQuotaUsage = this._originalRemoveQuotaUsage;
-  }
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/offline/manifest.appcache
+++ /dev/null
@@ -1,3 +0,0 @@
-CACHE MANIFEST
-# V1
-offline.html
deleted file mode 100755
--- a/browser/components/preferences/in-content-new/tests/offline/offline.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html manifest="manifest.appcache">>
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="Cache-Control" content="public" />
-    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
-
-  </head>
-
-  <body>
-    <h1>Set up offline appcache Test</h1>
-  </body>
-</html>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/privacypane_tests_perwindow.js
+++ /dev/null
@@ -1,333 +0,0 @@
-// This file gets imported into the same scope as head.js.
-/* import-globals-from head.js */
-
-async function runTestOnPrivacyPrefPane(testFunc) {
-  info("runTestOnPrivacyPrefPane entered");
-  let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:preferences", true, true);
-  let browser = tab.linkedBrowser;
-  info("loaded about:preferences");
-  browser.contentWindow.gotoPref("panePrivacy");
-  info("viewing privacy pane, executing testFunc");
-  testFunc(browser.contentWindow);
-  await BrowserTestUtils.removeTab(tab);
-}
-
-function controlChanged(element) {
-  element.doCommand();
-}
-
-// We can only test the panes that don't trigger a preference update
-function test_pane_visibility(win) {
-  let modes = {
-    "remember": "historyRememberPane",
-    "custom": "historyCustomPane"
-  };
-
-  let historymode = win.document.getElementById("historyMode");
-  ok(historymode, "history mode menulist should exist");
-  let historypane = win.document.getElementById("historyPane");
-  ok(historypane, "history mode pane should exist");
-
-  for (let mode in modes) {
-    historymode.value = mode;
-    controlChanged(historymode);
-    is(historypane.selectedPanel, win.document.getElementById(modes[mode]),
-      "The correct pane should be selected for the " + mode + " mode");
-    is_element_visible(historypane.selectedPanel,
-                       "Correct pane should be visible for the " + mode + " mode");
-  }
-}
-
-function test_dependent_elements(win) {
-  let historymode = win.document.getElementById("historyMode");
-  ok(historymode, "history mode menulist should exist");
-  let pbautostart = win.document.getElementById("privateBrowsingAutoStart");
-  ok(pbautostart, "the private browsing auto-start checkbox should exist");
-  let controls = [
-    win.document.getElementById("rememberHistory"),
-    win.document.getElementById("rememberForms"),
-    win.document.getElementById("keepUntil"),
-    win.document.getElementById("keepCookiesUntil"),
-    win.document.getElementById("alwaysClear"),
-  ];
-  controls.forEach(function(control) {
-    ok(control, "the dependent controls should exist");
-  });
-  let independents = [
-    win.document.getElementById("acceptCookies"),
-    win.document.getElementById("acceptThirdPartyLabel"),
-    win.document.getElementById("acceptThirdPartyMenu")
-  ];
-  independents.forEach(function(control) {
-    ok(control, "the independent controls should exist");
-  });
-  let cookieexceptions = win.document.getElementById("cookieExceptions");
-  ok(cookieexceptions, "the cookie exceptions button should exist");
-  let keepuntil = win.document.getElementById("keepCookiesUntil");
-  ok(keepuntil, "the keep cookies until menulist should exist");
-  let alwaysclear = win.document.getElementById("alwaysClear");
-  ok(alwaysclear, "the clear data on close checkbox should exist");
-  let rememberhistory = win.document.getElementById("rememberHistory");
-  ok(rememberhistory, "the remember history checkbox should exist");
-  let rememberforms = win.document.getElementById("rememberForms");
-  ok(rememberforms, "the remember forms checkbox should exist");
-  let alwaysclearsettings = win.document.getElementById("clearDataSettings");
-  ok(alwaysclearsettings, "the clear data settings button should exist");
-
-  function expect_disabled(disabled) {
-    controls.forEach(function(control) {
-      is(control.disabled, disabled,
-        control.getAttribute("id") + " should " + (disabled ? "" : "not ") + "be disabled");
-    });
-    is(keepuntil.value, disabled ? 2 : 0,
-      "the keep cookies until menulist value should be as expected");
-    if (disabled) {
-     ok(!alwaysclear.checked,
-        "the clear data on close checkbox value should be as expected");
-     ok(!rememberhistory.checked,
-        "the remember history checkbox value should be as expected");
-     ok(!rememberforms.checked,
-        "the remember forms checkbox value should be as expected");
-    }
-  }
-  function check_independents(expected) {
-    independents.forEach(function(control) {
-      is(control.disabled, expected,
-        control.getAttribute("id") + " should " + (expected ? "" : "not ") + "be disabled");
-    });
-
-    ok(!cookieexceptions.disabled,
-      "the cookie exceptions button should never be disabled");
-    ok(alwaysclearsettings.disabled,
-      "the clear data settings button should always be disabled");
-  }
-
-  // controls should only change in custom mode
-  historymode.value = "remember";
-  controlChanged(historymode);
-  expect_disabled(false);
-  check_independents(false);
-
-  // setting the mode to custom shouldn't change anything
-  historymode.value = "custom";
-  controlChanged(historymode);
-  expect_disabled(false);
-  check_independents(false);
-}
-
-function test_dependent_cookie_elements(win) {
-  let historymode = win.document.getElementById("historyMode");
-  ok(historymode, "history mode menulist should exist");
-  let pbautostart = win.document.getElementById("privateBrowsingAutoStart");
-  ok(pbautostart, "the private browsing auto-start checkbox should exist");
-  let controls = [
-    win.document.getElementById("acceptThirdPartyLabel"),
-    win.document.getElementById("acceptThirdPartyMenu"),
-    win.document.getElementById("keepUntil"),
-    win.document.getElementById("keepCookiesUntil"),
-  ];
-  controls.forEach(function(control) {
-    ok(control, "the dependent cookie controls should exist");
-  });
-  let acceptcookies = win.document.getElementById("acceptCookies");
-  ok(acceptcookies, "the accept cookies checkbox should exist");
-
-  function expect_disabled(disabled) {
-    controls.forEach(function(control) {
-      is(control.disabled, disabled,
-        control.getAttribute("id") + " should " + (disabled ? "" : "not ") + "be disabled");
-    });
-  }
-
-  historymode.value = "custom";
-  controlChanged(historymode);
-  pbautostart.checked = false;
-  controlChanged(pbautostart);
-  expect_disabled(false);
-
-  acceptcookies.checked = false;
-  controlChanged(acceptcookies);
-  expect_disabled(true);
-
-  acceptcookies.checked = true;
-  controlChanged(acceptcookies);
-  expect_disabled(false);
-
-  let accessthirdparty = controls.shift();
-  acceptcookies.checked = false;
-  controlChanged(acceptcookies);
-  expect_disabled(true);
-  ok(accessthirdparty.disabled, "access third party button should be disabled");
-
-  pbautostart.checked = false;
-  controlChanged(pbautostart);
-  expect_disabled(true);
-  ok(accessthirdparty.disabled, "access third party button should be disabled");
-
-  acceptcookies.checked = true;
-  controlChanged(acceptcookies);
-  expect_disabled(false);
-  ok(!accessthirdparty.disabled, "access third party button should be enabled");
-}
-
-function test_dependent_clearonclose_elements(win) {
-  let historymode = win.document.getElementById("historyMode");
-  ok(historymode, "history mode menulist should exist");
-  let pbautostart = win.document.getElementById("privateBrowsingAutoStart");
-  ok(pbautostart, "the private browsing auto-start checkbox should exist");
-  let alwaysclear = win.document.getElementById("alwaysClear");
-  ok(alwaysclear, "the clear data on close checkbox should exist");
-  let alwaysclearsettings = win.document.getElementById("clearDataSettings");
-  ok(alwaysclearsettings, "the clear data settings button should exist");
-
-  function expect_disabled(disabled) {
-    is(alwaysclearsettings.disabled, disabled,
-      "the clear data settings should " + (disabled ? "" : "not ") + "be disabled");
-  }
-
-  historymode.value = "custom";
-  controlChanged(historymode);
-  pbautostart.checked = false;
-  controlChanged(pbautostart);
-  alwaysclear.checked = false;
-  controlChanged(alwaysclear);
-  expect_disabled(true);
-
-  alwaysclear.checked = true;
-  controlChanged(alwaysclear);
-  expect_disabled(false);
-
-  alwaysclear.checked = false;
-  controlChanged(alwaysclear);
-  expect_disabled(true);
-}
-
-function test_dependent_prefs(win) {
-  let historymode = win.document.getElementById("historyMode");
-  ok(historymode, "history mode menulist should exist");
-  let controls = [
-    win.document.getElementById("rememberHistory"),
-    win.document.getElementById("rememberForms"),
-    win.document.getElementById("acceptCookies")
-  ];
-  controls.forEach(function(control) {
-    ok(control, "the micro-management controls should exist");
-  });
-
-  let thirdPartyCookieMenu = win.document.getElementById("acceptThirdPartyMenu");
-  ok(thirdPartyCookieMenu, "the third-party cookie control should exist");
-
-  function expect_checked(checked) {
-    controls.forEach(function(control) {
-      is(control.checked, checked,
-        control.getAttribute("id") + " should " + (checked ? "not " : "") + "be checked");
-    });
-
-    is(thirdPartyCookieMenu.value == "always" || thirdPartyCookieMenu.value == "visited", checked, "third-party cookies should " + (checked ? "not " : "") + "be limited");
-  }
-
-  // controls should be checked in remember mode
-  historymode.value = "remember";
-  controlChanged(historymode);
-  expect_checked(true);
-
-  // even if they're unchecked in custom mode
-  historymode.value = "custom";
-  controlChanged(historymode);
-  thirdPartyCookieMenu.value = "never";
-  controlChanged(thirdPartyCookieMenu);
-  controls.forEach(function(control) {
-    control.checked = false;
-    controlChanged(control);
-  });
-  expect_checked(false);
-  historymode.value = "remember";
-  controlChanged(historymode);
-  expect_checked(true);
-}
-
-function test_historymode_retention(mode, expect) {
-  return function test_historymode_retention_fn(win) {
-    let historymode = win.document.getElementById("historyMode");
-    ok(historymode, "history mode menulist should exist");
-
-    if ((historymode.value == "remember" && mode == "dontremember") ||
-        (historymode.value == "dontremember" && mode == "remember") ||
-        (historymode.value == "custom" && mode == "dontremember")) {
-      return;
-    }
-
-    if (expect !== undefined) {
-      is(historymode.value, expect,
-        "history mode is expected to remain " + expect);
-    }
-
-    historymode.value = mode;
-    controlChanged(historymode);
-  };
-}
-
-function test_custom_retention(controlToChange, expect, valueIncrement) {
-  return function test_custom_retention_fn(win) {
-    let historymode = win.document.getElementById("historyMode");
-    ok(historymode, "history mode menulist should exist");
-
-    if (expect !== undefined) {
-      is(historymode.value, expect,
-        "history mode is expected to remain " + expect);
-    }
-
-    historymode.value = "custom";
-    controlChanged(historymode);
-
-    controlToChange = win.document.getElementById(controlToChange);
-    ok(controlToChange, "the control to change should exist");
-    switch (controlToChange.localName) {
-    case "checkbox":
-      controlToChange.checked = !controlToChange.checked;
-      break;
-    case "textbox":
-      controlToChange.value = parseInt(controlToChange.value) + valueIncrement;
-      break;
-    case "menulist":
-      controlToChange.value = valueIncrement;
-      break;
-    }
-    controlChanged(controlToChange);
-  };
-}
-
-function test_locbar_suggestion_retention(suggestion, autocomplete) {
-  return function(win) {
-    let elem = win.document.getElementById(suggestion + "Suggestion");
-    ok(elem, "Suggest " + suggestion + " checkbox should exist.");
-    elem.click();
-
-    is(Services.prefs.getBoolPref("browser.urlbar.autocomplete.enabled"), autocomplete,
-       "browser.urlbar.autocomplete.enabled pref should be " + autocomplete);
-  };
-}
-
-const gPrefCache = new Map();
-
-function cache_preferences(win) {
-  let prefs = win.document.querySelectorAll("#privacyPreferences > preference");
-  for (let pref of prefs)
-    gPrefCache.set(pref.name, pref.value);
-}
-
-function reset_preferences(win) {
-  let prefs = win.document.querySelectorAll("#privacyPreferences > preference");
-  for (let pref of prefs)
-    pref.value = gPrefCache.get(pref.name);
-}
-
-function run_test_subset(subset) {
-  info("subset: " + Array.from(subset, x => x.name).join(",") + "\n");
-  SpecialPowers.pushPrefEnv({"set": [["browser.preferences.instantApply", true]]});
-
-  let tests = [cache_preferences, ...subset, reset_preferences];
-  for (let test of tests) {
-    add_task(runTestOnPrivacyPrefPane.bind(undefined, test));
-  }
-}
deleted file mode 100755
--- a/browser/components/preferences/in-content-new/tests/site_data_test.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="Cache-Control" content="public" />
-    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
-
-    <title>Site Data Test</title>
-
-  </head>
-
-  <body>
-    <h1>Site Data Test</h1>
-    <script type="text/javascript">
-      let request = indexedDB.open("TestDatabase", 1);
-      request.onupgradeneeded = function(e) {
-        let db = e.target.result;
-        db.createObjectStore("TestStore", { keyPath: "id" });
-      };
-      request.onsuccess = function(e) {
-        let db = e.target.result;
-        let tx = db.transaction("TestStore", "readwrite");
-        let store = tx.objectStore("TestStore");
-        tx.oncomplete = () => window.dispatchEvent(new Event("test-indexedDB-done"));
-        store.put({ id: "test_id", description: "Site Data Test"});
-      }
-    </script>
-  </body>
-</html>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/subdialog.xul
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- Any copyright is dedicated to the Public Domain.
-   - http://creativecommons.org/publicdomain/zero/1.0/ -->
-
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-
-<dialog id="subDialog"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        title="Sample sub-dialog" style="width: 32em; height: 5em;"
-        onload="document.getElementById('textbox').focus();"
-        ondialogaccept="acceptSubdialog();">
-  <script>
-    function acceptSubdialog() {
-      window.arguments[0].acceptCount++;
-    }
-  </script>
-
-  <description id="desc">A sample sub-dialog for testing</description>
-
-  <textbox id="textbox" value="Default text" />
-
-  <separator class="thin"/>
-
-  <button oncommand="close();" icon="close" label="Close" />
-
-</dialog>
deleted file mode 100644
--- a/browser/components/preferences/in-content-new/tests/subdialog2.xul
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- Any copyright is dedicated to the Public Domain.
-   - http://creativecommons.org/publicdomain/zero/1.0/ -->
-
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-
-<dialog id="subDialog"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        title="Sample sub-dialog #2" style="width: 32em; height: 5em;"
-        onload="document.getElementById('textbox').focus();"
-        ondialogaccept="acceptSubdialog();">
-  <script>
-    function acceptSubdialog() {
-      window.arguments[0].acceptCount++;
-    }
-  </script>
-
-  <description id="desc">A sample sub-dialog for testing</description>
-
-  <textbox id="textbox" value="Default text" />
-
-  <separator class="thin"/>
-
-  <button oncommand="close();" icon="close" label="Close" />
-
-</dialog>
deleted file mode 100644
--- a/browser/components/preferences/in-content/advanced.js
+++ /dev/null
@@ -1,832 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-// Load DownloadUtils module for convertByteUnits
-Components.utils.import("resource://gre/modules/DownloadUtils.jsm");
-Components.utils.import("resource://gre/modules/LoadContextInfo.jsm");
-Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "SiteDataManager",
-                                  "resource:///modules/SiteDataManager.jsm");
-
-const PREF_UPLOAD_ENABLED = "datareporting.healthreport.uploadEnabled";
-
-var gAdvancedPane = {
-  _inited: false,
-
-  /**
-   * Brings the appropriate tab to the front and initializes various bits of UI.
-   */
-  init() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gAdvancedPane));
-    }
-
-    this._inited = true;
-    var advancedPrefs = document.getElementById("advancedPrefs");
-
-    var preference = document.getElementById("browser.preferences.advanced.selectedTabIndex");
-    if (preference.value !== null)
-        advancedPrefs.selectedIndex = preference.value;
-
-    if (AppConstants.MOZ_UPDATER) {
-      let onUnload = () => {
-        window.removeEventListener("unload", onUnload);
-        Services.prefs.removeObserver("app.update.", this);
-      };
-      window.addEventListener("unload", onUnload);
-      Services.prefs.addObserver("app.update.", this);
-      this.updateReadPrefs();
-    }
-    if (AppConstants.MOZ_CRASHREPORTER) {
-      this.initSubmitCrashes();
-    }
-    this.initTelemetry();
-    this.initSubmitHealthReport();
-    this.updateOnScreenKeyboardVisibility();
-    this.updateCacheSizeInputField();
-    this.updateActualCacheSize();
-
-    if (Services.prefs.getBoolPref("browser.storageManager.enabled")) {
-      Services.obs.addObserver(this, "sitedatamanager:sites-updated");
-      Services.obs.addObserver(this, "sitedatamanager:updating-sites");
-      let unload = () => {
-        window.removeEventListener("unload", unload);
-        Services.obs.removeObserver(this, "sitedatamanager:sites-updated");
-        Services.obs.removeObserver(this, "sitedatamanager:updating-sites");
-      };
-      window.addEventListener("unload", unload);
-      SiteDataManager.updateSites();
-      setEventListener("clearSiteDataButton", "command",
-                       gAdvancedPane.clearSiteData);
-      setEventListener("siteDataSettings", "command",
-                       gAdvancedPane.showSiteDataSettings);
-
-      let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "storage-permissions";
-      document.getElementById("siteDataLearnMoreLink").setAttribute("href", url);
-      let siteDataGroup = document.getElementById("siteDataGroup");
-      siteDataGroup.hidden = false;
-    }
-
-    setEventListener("layers.acceleration.disabled", "change",
-                     gAdvancedPane.updateHardwareAcceleration);
-    setEventListener("advancedPrefs", "select",
-                     gAdvancedPane.tabSelectionChanged);
-    setEventListener("submitHealthReportBox", "command",
-                     gAdvancedPane.updateSubmitHealthReport);
-
-    setEventListener("connectionSettings", "command",
-                     gAdvancedPane.showConnections);
-    setEventListener("clearCacheButton", "command",
-                     gAdvancedPane.clearCache);
-    if (AppConstants.MOZ_UPDATER) {
-      setEventListener("updateRadioGroup", "command",
-                       gAdvancedPane.updateWritePrefs);
-      setEventListener("showUpdateHistory", "command",
-                       gAdvancedPane.showUpdates);
-    }
-    setEventListener("viewCertificatesButton", "command",
-                     gAdvancedPane.showCertificates);
-    setEventListener("viewSecurityDevicesButton", "command",
-                     gAdvancedPane.showSecurityDevices);
-    setEventListener("cacheSize", "change",
-                     gAdvancedPane.updateCacheSizePref);
-
-    if (Services.prefs.getBoolPref("browser.preferences.offlineGroup.enabled")) {
-      this.updateOfflineApps();
-      this.updateActualAppCacheSize();
-      setEventListener("offlineNotifyExceptions", "command",
-                      gAdvancedPane.showOfflineExceptions);
-      setEventListener("offlineAppsList", "select",
-                      gAdvancedPane.offlineAppSelected);
-      setEventListener("offlineAppsListRemove", "command",
-                      gAdvancedPane.removeOfflineApp);
-      setEventListener("clearOfflineAppCacheButton", "command",
-                      gAdvancedPane.clearOfflineAppCache);
-      let bundlePrefs = document.getElementById("bundlePreferences");
-      document.getElementById("offlineAppsList")
-              .style.height = bundlePrefs.getString("offlineAppsList.height");
-      let offlineGroup = document.getElementById("offlineGroup");
-      offlineGroup.hidden = false;
-    }
-
-    if (AppConstants.MOZ_WIDGET_GTK) {
-      // GTK tabbox' allow the scroll wheel to change the selected tab,
-      // but we don't want this behavior for the in-content preferences.
-      let tabsElement = document.getElementById("tabsElement");
-      tabsElement.addEventListener("DOMMouseScroll", event => {
-        event.stopPropagation();
-      }, true);
-    }
-  },
-
-  /**
-   * Stores the identity of the current tab in preferences so that the selected
-   * tab can be persisted between openings of the preferences window.
-   */
-  tabSelectionChanged() {
-    if (!this._inited)
-      return;
-    var advancedPrefs = document.getElementById("advancedPrefs");
-    var preference = document.getElementById("browser.preferences.advanced.selectedTabIndex");
-
-    // tabSelectionChanged gets called twice due to the selectedIndex being set
-    // by both the selectedItem and selectedPanel callstacks. This guard is used
-    // to prevent double-counting in Telemetry.
-    if (preference.valueFromPreferences != advancedPrefs.selectedIndex) {
-      Services.telemetry
-              .getHistogramById("FX_PREFERENCES_CATEGORY_OPENED")
-              .add(telemetryBucketForCategory("advanced"));
-    }
-
-    preference.valueFromPreferences = advancedPrefs.selectedIndex;
-  },
-
-  // GENERAL TAB
-
-  /*
-   * Preferences:
-   *
-   * accessibility.browsewithcaret
-   * - true enables keyboard navigation and selection within web pages using a
-   *   visible caret, false uses normal keyboard navigation with no caret
-   * accessibility.typeaheadfind
-   * - when set to true, typing outside text areas and input boxes will
-   *   automatically start searching for what's typed within the current
-   *   document; when set to false, no search action happens
-   * ui.osk.enabled
-   * - when set to true, subject to other conditions, we may sometimes invoke
-   *   an on-screen keyboard when a text input is focused.
-   *   (Currently Windows-only, and depending on prefs, may be Windows-8-only)
-   * general.autoScroll
-   * - when set to true, clicking the scroll wheel on the mouse activates a
-   *   mouse mode where moving the mouse down scrolls the document downward with
-   *   speed correlated with the distance of the cursor from the original
-   *   position at which the click occurred (and likewise with movement upward);
-   *   if false, this behavior is disabled
-   * general.smoothScroll
-   * - set to true to enable finer page scrolling than line-by-line on page-up,
-   *   page-down, and other such page movements
-   * layout.spellcheckDefault
-   * - an integer:
-   *     0  disables spellchecking
-   *     1  enables spellchecking, but only for multiline text fields
-   *     2  enables spellchecking for all text fields
-   */
-
-  /**
-   * Stores the original value of the spellchecking preference to enable proper
-   * restoration if unchanged (since we're mapping a tristate onto a checkbox).
-   */
-  _storedSpellCheck: 0,
-
-  /**
-   * Returns true if any spellchecking is enabled and false otherwise, caching
-   * the current value to enable proper pref restoration if the checkbox is
-   * never changed.
-   */
-  readCheckSpelling() {
-    var pref = document.getElementById("layout.spellcheckDefault");
-    this._storedSpellCheck = pref.value;
-
-    return (pref.value != 0);
-  },
-
-  /**
-   * Returns the value of the spellchecking preference represented by UI,
-   * preserving the preference's "hidden" value if the preference is
-   * unchanged and represents a value not strictly allowed in UI.
-   */
-  writeCheckSpelling() {
-    var checkbox = document.getElementById("checkSpelling");
-    if (checkbox.checked) {
-      if (this._storedSpellCheck == 2) {
-        return 2;
-      }
-      return 1;
-    }
-    return 0;
-  },
-
-  /**
-   * readEnableOCSP is used by the preferences UI to determine whether or not
-   * the checkbox for OCSP fetching should be checked (it returns true if it
-   * should be checked and false otherwise). The about:config preference
-   * "security.OCSP.enabled" is an integer rather than a boolean, so it can't be
-   * directly mapped from {true,false} to {checked,unchecked}. The possible
-   * values for "security.OCSP.enabled" are:
-   * 0: fetching is disabled
-   * 1: fetch for all certificates
-   * 2: fetch only for EV certificates
-   * Hence, if "security.OCSP.enabled" is non-zero, the checkbox should be
-   * checked. Otherwise, it should be unchecked.
-   */
-  readEnableOCSP() {
-    var preference = document.getElementById("security.OCSP.enabled");
-    // This is the case if the preference is the default value.
-    if (preference.value === undefined) {
-      return true;
-    }
-    return preference.value != 0;
-  },
-
-  /**
-   * writeEnableOCSP is used by the preferences UI to map the checked/unchecked
-   * state of the OCSP fetching checkbox to the value that the preference
-   * "security.OCSP.enabled" should be set to (it returns that value). See the
-   * readEnableOCSP documentation for more background. We unfortunately don't
-   * have enough information to map from {true,false} to all possible values for
-   * "security.OCSP.enabled", but a reasonable alternative is to map from
-   * {true,false} to {<the default value>,0}. That is, if the box is checked,
-   * "security.OCSP.enabled" will be set to whatever default it should be, given
-   * the platform and channel. If the box is unchecked, the preference will be
-   * set to 0. Obviously this won't work if the default is 0, so we will have to
-   * revisit this if we ever set it to 0.
-   */
-  writeEnableOCSP() {
-    var checkbox = document.getElementById("enableOCSP");
-    var defaults = Services.prefs.getDefaultBranch(null);
-    var defaultValue = defaults.getIntPref("security.OCSP.enabled");
-    return checkbox.checked ? defaultValue : 0;
-  },
-
-  updateHardwareAcceleration() {
-    // Placeholder for restart
-  },
-
-  // DATA CHOICES TAB
-
-  /**
-   * Set up or hide the Learn More links for various data collection options
-   */
-  _setupLearnMoreLink(pref, element) {
-    // set up the Learn More link with the correct URL
-    let url = Services.prefs.getCharPref(pref);
-    let el = document.getElementById(element);
-
-    if (url) {
-      el.setAttribute("href", url);
-    } else {
-      el.setAttribute("hidden", "true");
-    }
-  },
-
-  /**
-   *
-   */
-  initSubmitCrashes() {
-    this._setupLearnMoreLink("toolkit.crashreporter.infoURL",
-                             "crashReporterLearnMore");
-  },
-
-  /**
-   * The preference/checkbox is configured in XUL.
-   *
-   * In all cases, set up the Learn More link sanely.
-   */
-  initTelemetry() {
-    this._setupLearnMoreLink("toolkit.telemetry.infoURL", "telemetryLearnMore");
-    // If we're not sending any Telemetry, disable the telemetry upload checkbox as well.
-    if (!AppConstants.MOZ_TELEMETRY_REPORTING) {
-      document.getElementById("submitTelemetryBox").setAttribute("disabled", "true");
-    }
-  },
-
-  /**
-   * Set the status of the telemetry controls based on the input argument.
-   * @param {Boolean} aEnabled False disables the controls, true enables them.
-   */
-  setTelemetrySectionEnabled(aEnabled) {
-    // If FHR is disabled, additional data sharing should be disabled as well.
-    let disabled = !aEnabled;
-    document.getElementById("submitTelemetryBox").disabled = disabled;
-    if (disabled) {
-      // If we disable FHR, untick the telemetry checkbox.
-      Services.prefs.setBoolPref("toolkit.telemetry.enabled", false);
-    }
-    document.getElementById("telemetryDataDesc").disabled = disabled;
-  },
-
-  /**
-   * Initialize the health report service reference and checkbox.
-   */
-  initSubmitHealthReport() {
-    this._setupLearnMoreLink("datareporting.healthreport.infoURL", "FHRLearnMore");
-
-    let checkbox = document.getElementById("submitHealthReportBox");
-
-    // Telemetry is only sending data if MOZ_TELEMETRY_REPORTING is defined.
-    // We still want to display the preferences panel if that's not the case, but
-    // we want it to be disabled and unchecked.
-    if (Services.prefs.prefIsLocked(PREF_UPLOAD_ENABLED) ||
-        !AppConstants.MOZ_TELEMETRY_REPORTING) {
-      checkbox.setAttribute("disabled", "true");
-      return;
-    }
-
-    checkbox.checked = Services.prefs.getBoolPref(PREF_UPLOAD_ENABLED) &&
-                       AppConstants.MOZ_TELEMETRY_REPORTING;
-    this.setTelemetrySectionEnabled(checkbox.checked);
-  },
-
-  /**
-   * Update the health report preference with state from checkbox.
-   */
-  updateSubmitHealthReport() {
-    let checkbox = document.getElementById("submitHealthReportBox");
-    Services.prefs.setBoolPref(PREF_UPLOAD_ENABLED, checkbox.checked);
-    this.setTelemetrySectionEnabled(checkbox.checked);
-  },
-
-  updateOnScreenKeyboardVisibility() {
-    if (AppConstants.platform == "win") {
-      let minVersion = Services.prefs.getBoolPref("ui.osk.require_win10") ? 10 : 6.2;
-      if (Services.vc.compare(Services.sysinfo.getProperty("version"), minVersion) >= 0) {
-        document.getElementById("useOnScreenKeyboard").hidden = false;
-      }
-    }
-  },
-
-  // NETWORK TAB
-
-  /*
-   * Preferences:
-   *
-   * browser.cache.disk.capacity
-   * - the size of the browser cache in KB
-   * - Only used if browser.cache.disk.smart_size.enabled is disabled
-   */
-
-  /**
-   * Displays a dialog in which proxy settings may be changed.
-   */
-  showConnections() {
-    gSubDialog.open("chrome://browser/content/preferences/connection.xul");
-  },
-
-  showSiteDataSettings() {
-    gSubDialog.open("chrome://browser/content/preferences/siteDataSettings.xul");
-  },
-
-  toggleSiteData(shouldShow) {
-    let clearButton = document.getElementById("clearSiteDataButton");
-    let settingsButton = document.getElementById("siteDataSettings");
-    clearButton.disabled = !shouldShow;
-    settingsButton.disabled = !shouldShow;
-  },
-
-  updateTotalDataSizeLabel(usage) {
-    let prefStrBundle = document.getElementById("bundlePreferences");
-    let totalSiteDataSizeLabel = document.getElementById("totalSiteDataSize");
-    if (usage < 0) {
-      totalSiteDataSizeLabel.textContent = prefStrBundle.getString("loadingSiteDataSize");
-    } else {
-      let size = DownloadUtils.convertByteUnits(usage);
-      totalSiteDataSizeLabel.textContent = prefStrBundle.getFormattedString("totalSiteDataSize", size);
-    }
-  },
-
-  // Retrieves the amount of space currently used by disk cache
-  updateActualCacheSize() {
-    var actualSizeLabel = document.getElementById("actualDiskCacheSize");
-    var prefStrBundle = document.getElementById("bundlePreferences");
-
-    // Needs to root the observer since cache service keeps only a weak reference.
-    this.observer = {
-      onNetworkCacheDiskConsumption(consumption) {
-        var size = DownloadUtils.convertByteUnits(consumption);
-        // The XBL binding for the string bundle may have been destroyed if
-        // the page was closed before this callback was executed.
-        if (!prefStrBundle.getFormattedString) {
-          return;
-        }
-        actualSizeLabel.value = prefStrBundle.getFormattedString("actualDiskCacheSize", size);
-      },
-
-      QueryInterface: XPCOMUtils.generateQI([
-        Components.interfaces.nsICacheStorageConsumptionObserver,
-        Components.interfaces.nsISupportsWeakReference
-      ])
-    };
-
-    actualSizeLabel.value = prefStrBundle.getString("actualDiskCacheSizeCalculated");
-
-    try {
-      var cacheService =
-        Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
-                  .getService(Components.interfaces.nsICacheStorageService);
-      cacheService.asyncGetDiskConsumption(this.observer);
-    } catch (e) {}
-  },
-
-  updateCacheSizeUI(smartSizeEnabled) {
-    document.getElementById("useCacheBefore").disabled = smartSizeEnabled;
-    document.getElementById("cacheSize").disabled = smartSizeEnabled;
-    document.getElementById("useCacheAfter").disabled = smartSizeEnabled;
-  },
-
-  readSmartSizeEnabled() {
-    // The smart_size.enabled preference element is inverted="true", so its
-    // value is the opposite of the actual pref value
-    var disabled = document.getElementById("browser.cache.disk.smart_size.enabled").value;
-    this.updateCacheSizeUI(!disabled);
-  },
-
-  /**
-   * Converts the cache size from units of KB to units of MB and stores it in
-   * the textbox element.
-   */
-  updateCacheSizeInputField() {
-    let cacheSizeElem = document.getElementById("cacheSize");
-    let cachePref = document.getElementById("browser.cache.disk.capacity");
-    cacheSizeElem.value = cachePref.value / 1024;
-    if (cachePref.locked)
-      cacheSizeElem.disabled = true;
-  },
-
-  /**
-   * Updates the cache size preference once user enters a new value.
-   * We intentionally do not set preference="browser.cache.disk.capacity"
-   * onto the textbox directly, as that would update the pref at each keypress
-   * not only after the final value is entered.
-   */
-  updateCacheSizePref() {
-    let cacheSizeElem = document.getElementById("cacheSize");
-    let cachePref = document.getElementById("browser.cache.disk.capacity");
-    // Converts the cache size as specified in UI (in MB) to KB.
-    let intValue = parseInt(cacheSizeElem.value, 10);
-    cachePref.value = isNaN(intValue) ? 0 : intValue * 1024;
-  },
-
-  /**
-   * Clears the cache.
-   */
-  clearCache() {
-    try {
-      var cache = Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
-                            .getService(Components.interfaces.nsICacheStorageService);
-      cache.clear();
-    } catch (ex) {}
-    this.updateActualCacheSize();
-  },
-
-  clearSiteData() {
-    let flags =
-      Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_0 +
-      Services.prompt.BUTTON_TITLE_CANCEL * Services.prompt.BUTTON_POS_1 +
-      Services.prompt.BUTTON_POS_0_DEFAULT;
-    let prefStrBundle = document.getElementById("bundlePreferences");
-    let title = prefStrBundle.getString("clearSiteDataPromptTitle");
-    let text = prefStrBundle.getString("clearSiteDataPromptText");
-    let btn0Label = prefStrBundle.getString("clearSiteDataNow");
-
-    let result = Services.prompt.confirmEx(
-      window, title, text, flags, btn0Label, null, null, null, {});
-    if (result == 0) {
-      SiteDataManager.removeAll();
-    }
-  },
-
-  // Methods for Offline Apps(Appcache)
-
-  /**
-   * Clears the application cache.
-   */
-  clearOfflineAppCache() {
-    Components.utils.import("resource:///modules/offlineAppCache.jsm");
-    OfflineAppCacheHelper.clear();
-
-    this.updateActualAppCacheSize();
-    this.updateOfflineApps();
-  },
-
-  // Retrieves the amount of space currently used by offline cache
-  updateActualAppCacheSize() {
-    var visitor = {
-      onCacheStorageInfo(aEntryCount, aConsumption, aCapacity, aDiskDirectory) {
-        var actualSizeLabel = document.getElementById("actualAppCacheSize");
-        var sizeStrings = DownloadUtils.convertByteUnits(aConsumption);
-        var prefStrBundle = document.getElementById("bundlePreferences");
-        // The XBL binding for the string bundle may have been destroyed if
-        // the page was closed before this callback was executed.
-        if (!prefStrBundle.getFormattedString) {
-          return;
-        }
-        var sizeStr = prefStrBundle.getFormattedString("actualAppCacheSize", sizeStrings);
-        actualSizeLabel.value = sizeStr;
-      }
-    };
-
-    try {
-      var cacheService =
-        Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
-                  .getService(Components.interfaces.nsICacheStorageService);
-      var storage = cacheService.appCacheStorage(LoadContextInfo.default, null);
-      storage.asyncVisitStorage(visitor, false);
-    } catch (e) {}
-  },
-
-  readOfflineNotify() {
-    var pref = document.getElementById("browser.offline-apps.notify");
-    var button = document.getElementById("offlineNotifyExceptions");
-    button.disabled = !pref.value;
-    return pref.value;
-  },
-
-  showOfflineExceptions() {
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    var params = { blockVisible: false,
-                   sessionVisible: false,
-                   allowVisible: false,
-                   prefilledHost: "",
-                   permissionType: "offline-app",
-                   manageCapability: Components.interfaces.nsIPermissionManager.DENY_ACTION,
-                   windowTitle: bundlePreferences.getString("offlinepermissionstitle"),
-                   introText: bundlePreferences.getString("offlinepermissionstext") };
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  // XXX: duplicated in browser.js
-  _getOfflineAppUsage(perm, groups) {
-    let cacheService = Cc["@mozilla.org/network/application-cache-service;1"].
-                       getService(Ci.nsIApplicationCacheService);
-    if (!groups) {
-      try {
-        groups = cacheService.getGroups();
-      } catch (ex) {
-        return 0;
-      }
-    }
-
-    let usage = 0;
-    for (let group of groups) {
-      let uri = Services.io.newURI(group);
-      if (perm.matchesURI(uri, true)) {
-        let cache = cacheService.getActiveCache(group);
-        usage += cache.usage;
-      }
-    }
-
-    return usage;
-  },
-
-  /**
-   * Updates the list of offline applications
-   */
-  updateOfflineApps() {
-    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
-                       .getService(Components.interfaces.nsIPermissionManager);
-
-    var list = document.getElementById("offlineAppsList");
-    while (list.firstChild) {
-      list.firstChild.remove();
-    }
-
-    var groups;
-    try {
-      var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
-                         getService(Components.interfaces.nsIApplicationCacheService);
-      groups = cacheService.getGroups();
-    } catch (e) {
-      return;
-    }
-
-    var bundle = document.getElementById("bundlePreferences");
-
-    var enumerator = pm.enumerator;
-    while (enumerator.hasMoreElements()) {
-      var perm = enumerator.getNext().QueryInterface(Components.interfaces.nsIPermission);
-      if (perm.type == "offline-app" &&
-          perm.capability != Components.interfaces.nsIPermissionManager.DEFAULT_ACTION &&
-          perm.capability != Components.interfaces.nsIPermissionManager.DENY_ACTION) {
-        var row = document.createElement("listitem");
-        row.id = "";
-        row.className = "offlineapp";
-        row.setAttribute("origin", perm.principal.origin);
-        var converted = DownloadUtils.
-                        convertByteUnits(this._getOfflineAppUsage(perm, groups));
-        row.setAttribute("usage",
-                         bundle.getFormattedString("offlineAppUsage",
-                                                   converted));
-        list.appendChild(row);
-      }
-    }
-  },
-
-  offlineAppSelected() {
-    var removeButton = document.getElementById("offlineAppsListRemove");
-    var list = document.getElementById("offlineAppsList");
-    if (list.selectedItem) {
-      removeButton.setAttribute("disabled", "false");
-    } else {
-      removeButton.setAttribute("disabled", "true");
-    }
-  },
-
-  removeOfflineApp() {
-    var list = document.getElementById("offlineAppsList");
-    var item = list.selectedItem;
-    var origin = item.getAttribute("origin");
-    var principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin(origin);
-
-    var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
-                            .getService(Components.interfaces.nsIPromptService);
-    var flags = prompts.BUTTON_TITLE_IS_STRING * prompts.BUTTON_POS_0 +
-                prompts.BUTTON_TITLE_CANCEL * prompts.BUTTON_POS_1;
-
-    var bundle = document.getElementById("bundlePreferences");
-    var title = bundle.getString("offlineAppRemoveTitle");
-    var prompt = bundle.getFormattedString("offlineAppRemovePrompt", [principal.URI.prePath]);
-    var confirm = bundle.getString("offlineAppRemoveConfirm");
-    var result = prompts.confirmEx(window, title, prompt, flags, confirm,
-                                   null, null, null, {});
-    if (result != 0)
-      return;
-
-    // get the permission
-    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
-                       .getService(Components.interfaces.nsIPermissionManager);
-    var perm = pm.getPermissionObject(principal, "offline-app", true);
-    if (perm) {
-      // clear offline cache entries
-      try {
-        var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
-                           getService(Components.interfaces.nsIApplicationCacheService);
-        var groups = cacheService.getGroups();
-        for (var i = 0; i < groups.length; i++) {
-          var uri = Services.io.newURI(groups[i]);
-          if (perm.matchesURI(uri, true)) {
-            var cache = cacheService.getActiveCache(groups[i]);
-            cache.discard();
-          }
-        }
-      } catch (e) {}
-
-      pm.removePermission(perm);
-    }
-    list.removeChild(item);
-    gAdvancedPane.offlineAppSelected();
-    this.updateActualAppCacheSize();
-  },
-  // Methods for Offline Apps(Appcache) end
-
-  // UPDATE TAB
-
-  /*
-   * Preferences:
-   *
-   * app.update.enabled
-   * - true if updates to the application are enabled, false otherwise
-   * app.update.auto
-   * - true if updates should be automatically downloaded and installed and
-   * false if the user should be asked what he wants to do when an update is
-   * available
-   * extensions.update.enabled
-   * - true if updates to extensions and themes are enabled, false otherwise
-   * browser.search.update
-   * - true if updates to search engines are enabled, false otherwise
-   */
-
-  /**
-   * Selects the item of the radiogroup based on the pref values and locked
-   * states.
-   *
-   * UI state matrix for update preference conditions
-   *
-   * UI Components:                              Preferences
-   * Radiogroup                                  i   = app.update.enabled
-   *                                             ii  = app.update.auto
-   *
-   * Disabled states:
-   * Element           pref  value  locked  disabled
-   * radiogroup        i     t/f    f       false
-   *                   i     t/f    *t*     *true*
-   *                   ii    t/f    f       false
-   *                   ii    t/f    *t*     *true*
-   */
-  updateReadPrefs() {
-    if (AppConstants.MOZ_UPDATER) {
-      var enabledPref = document.getElementById("app.update.enabled");
-      var autoPref = document.getElementById("app.update.auto");
-      var radiogroup = document.getElementById("updateRadioGroup");
-
-      if (!enabledPref.value)   // Don't care for autoPref.value in this case.
-        radiogroup.value = "manual";    // 3. Never check for updates.
-      else if (autoPref.value)  // enabledPref.value && autoPref.value
-        radiogroup.value = "auto";      // 1. Automatically install updates
-      else                      // enabledPref.value && !autoPref.value
-        radiogroup.value = "checkOnly"; // 2. Check, but let me choose
-
-      var canCheck = Components.classes["@mozilla.org/updates/update-service;1"].
-                       getService(Components.interfaces.nsIApplicationUpdateService).
-                       canCheckForUpdates;
-      // canCheck is false if the enabledPref is false and locked,
-      // or the binary platform or OS version is not known.
-      // A locked pref is sufficient to disable the radiogroup.
-      radiogroup.disabled = !canCheck || enabledPref.locked || autoPref.locked;
-
-      if (AppConstants.MOZ_MAINTENANCE_SERVICE) {
-        // Check to see if the maintenance service is installed.
-        // If it is don't show the preference at all.
-        var installed;
-        try {
-          var wrk = Components.classes["@mozilla.org/windows-registry-key;1"]
-                    .createInstance(Components.interfaces.nsIWindowsRegKey);
-          wrk.open(wrk.ROOT_KEY_LOCAL_MACHINE,
-                   "SOFTWARE\\Mozilla\\MaintenanceService",
-                   wrk.ACCESS_READ | wrk.WOW64_64);
-          installed = wrk.readIntValue("Installed");
-          wrk.close();
-        } catch (e) {
-        }
-        if (installed != 1) {
-          document.getElementById("useService").hidden = true;
-        }
-      }
-    }
-  },
-
-  /**
-   * Sets the pref values based on the selected item of the radiogroup.
-   */
-  updateWritePrefs() {
-    if (AppConstants.MOZ_UPDATER) {
-      var enabledPref = document.getElementById("app.update.enabled");
-      var autoPref = document.getElementById("app.update.auto");
-      var radiogroup = document.getElementById("updateRadioGroup");
-      switch (radiogroup.value) {
-        case "auto":      // 1. Automatically install updates for Desktop only
-          enabledPref.value = true;
-          autoPref.value = true;
-          break;
-        case "checkOnly": // 2. Check, but let me choose
-          enabledPref.value = true;
-          autoPref.value = false;
-          break;
-        case "manual":    // 3. Never check for updates.
-          enabledPref.value = false;
-          autoPref.value = false;
-      }
-    }
-  },
-
-  /**
-   * Displays the history of installed updates.
-   */
-  showUpdates() {
-    gSubDialog.open("chrome://mozapps/content/update/history.xul");
-  },
-
-  // ENCRYPTION TAB
-
-  /*
-   * Preferences:
-   *
-   * security.default_personal_cert
-   * - a string:
-   *     "Select Automatically"   select a certificate automatically when a site
-   *                              requests one
-   *     "Ask Every Time"         present a dialog to the user so he can select
-   *                              the certificate to use on a site which
-   *                              requests one
-   */
-
-  /**
-   * Displays the user's certificates and associated options.
-   */
-  showCertificates() {
-    gSubDialog.open("chrome://pippki/content/certManager.xul");
-  },
-
-  /**
-   * Displays a dialog from which the user can manage his security devices.
-   */
-  showSecurityDevices() {
-    gSubDialog.open("chrome://pippki/content/device_manager.xul");
-  },
-
-  observe(aSubject, aTopic, aData) {
-    switch (aTopic) {
-      case "nsPref:changed":
-        this.updateReadPrefs();
-        break;
-
-      case "sitedatamanager:updating-sites":
-        // While updating, we want to disable this section and display loading message until updated
-        this.toggleSiteData(false);
-        this.updateTotalDataSizeLabel(-1);
-        break;
-
-      case "sitedatamanager:sites-updated":
-        this.toggleSiteData(true);
-        SiteDataManager.getTotalUsage()
-          .then(this.updateTotalDataSizeLabel.bind(this));
-        break;
-    }
-  },
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content/advanced.xul
+++ /dev/null
@@ -1,421 +0,0 @@
-# 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/.
-
-<!-- Advanced panel -->
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content/advanced.js"/>
-
-<preferences id="advancedPreferences" hidden="true" data-category="paneAdvanced">
-  <preference id="browser.preferences.advanced.selectedTabIndex"
-              name="browser.preferences.advanced.selectedTabIndex"
-              type="int"/>
-
-  <!-- General tab -->
-  <preference id="accessibility.browsewithcaret"
-              name="accessibility.browsewithcaret"
-              type="bool"/>
-  <preference id="accessibility.typeaheadfind"
-              name="accessibility.typeaheadfind"
-              type="bool"/>
-  <preference id="accessibility.blockautorefresh"
-              name="accessibility.blockautorefresh"
-              type="bool"/>
-#ifdef XP_WIN
-  <preference id="ui.osk.enabled"
-              name="ui.osk.enabled"
-              type="bool"/>
-#endif
-
-  <preference id="general.autoScroll"
-              name="general.autoScroll"
-              type="bool"/>
-  <preference id="general.smoothScroll"
-              name="general.smoothScroll"
-              type="bool"/>
-  <preference id="layout.spellcheckDefault"
-              name="layout.spellcheckDefault"
-              type="int"/>
-  <preference id="toolkit.telemetry.enabled"
-              name="toolkit.telemetry.enabled"
-              type="bool"/>
-
-  <!-- Data Choices tab -->
-#ifdef MOZ_CRASHREPORTER
-  <preference id="browser.crashReports.unsubmittedCheck.autoSubmit"
-              name="browser.crashReports.unsubmittedCheck.autoSubmit"
-              type="bool"/>
-#endif
-
-  <!-- Network tab -->
-  <preference id="browser.cache.disk.capacity"
-              name="browser.cache.disk.capacity"
-              type="int"/>
-  <preference id="browser.offline-apps.notify"
-              name="browser.offline-apps.notify"
-              type="bool"/>
-
-  <preference id="browser.cache.disk.smart_size.enabled"
-              name="browser.cache.disk.smart_size.enabled"
-              inverted="true"
-              type="bool"/>
-
- <!-- Update tab -->
-#ifdef MOZ_UPDATER
-  <preference id="app.update.enabled"
-              name="app.update.enabled"
-              type="bool"/>
-  <preference id="app.update.auto"
-              name="app.update.auto"
-              type="bool"/>
-
-  <preference id="app.update.disable_button.showUpdateHistory"
-              name="app.update.disable_button.showUpdateHistory"
-              type="bool"/>
-
-#ifdef MOZ_MAINTENANCE_SERVICE
-  <preference id="app.update.service.enabled"
-              name="app.update.service.enabled"
-              type="bool"/>
-#endif
-#endif
-
-  <preference id="browser.search.update"
-              name="browser.search.update"
-              type="bool"/>
-
-  <!-- Certificates tab -->
-  <preference id="security.default_personal_cert"
-              name="security.default_personal_cert"
-              type="string"/>
-
-  <preference id="security.disable_button.openCertManager"
-              name="security.disable_button.openCertManager"
-              type="bool"/>
-
-  <preference id="security.disable_button.openDeviceManager"
-              name="security.disable_button.openDeviceManager"
-              type="bool"/>
-
-  <preference id="security.OCSP.enabled"
-              name="security.OCSP.enabled"
-              type="int"/>
-</preferences>
-
-#ifdef HAVE_SHELL_SERVICE
-  <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
-  <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
-#endif
-  <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences-old/preferences.properties"/>
-
-<hbox id="header-advanced"
-      class="header"
-      hidden="true"
-      data-category="paneAdvanced">
-  <label class="header-name" flex="1">&paneAdvanced.title;</label>
-  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
-</hbox>
-
-<tabbox id="advancedPrefs"
-        handleCtrlTab="false"
-        handleCtrlPageUpDown="false"
-        flex="1"
-        data-category="paneAdvanced"
-        hidden="true">
-
-  <tabs id="tabsElement">
-    <tab id="generalTab" label="&generalTab.label;"/>
-#ifdef MOZ_DATA_REPORTING
-    <tab id="dataChoicesTab" label="&dataChoicesTab.label;"/>
-#endif
-    <tab id="networkTab" label="&networkTab.label;"/>
-    <tab id="updateTab" label="&updateTab.label;"/>
-    <tab id="encryptionTab" label="&certificateTab.label;"/>
-  </tabs>
-
-  <tabpanels flex="1">
-
-    <!-- General -->
-    <tabpanel id="generalPanel" orient="vertical">
-      <!-- Accessibility -->
-      <groupbox id="accessibilityGroup" align="start">
-        <caption><label>&accessibility.label;</label></caption>
-
-#ifdef XP_WIN
-        <checkbox id="useOnScreenKeyboard"
-                  hidden="true"
-                  label="&useOnScreenKeyboard.label;"
-                  accesskey="&useOnScreenKeyboard.accesskey;"
-                  preference="ui.osk.enabled"/>
-#endif
-        <checkbox id="useCursorNavigation"
-                  label="&useCursorNavigation.label;"
-                  accesskey="&useCursorNavigation.accesskey;"
-                  preference="accessibility.browsewithcaret"/>
-        <checkbox id="searchStartTyping"
-                  label="&searchOnStartTyping.label;"
-                  accesskey="&searchOnStartTyping.accesskey;"
-                  preference="accessibility.typeaheadfind"/>
-        <checkbox id="blockAutoRefresh"
-                  label="&blockAutoReload.label;"
-                  accesskey="&blockAutoReload.accesskey;"
-                  preference="accessibility.blockautorefresh"/>
-      </groupbox>
-      <!-- Browsing -->
-      <groupbox id="browsingGroup" align="start">
-        <caption><label>&browsing.label;</label></caption>
-
-        <checkbox id="useAutoScroll"
-                  label="&useAutoScroll.label;"
-                  accesskey="&useAutoScroll.accesskey;"
-                  preference="general.autoScroll"/>
-        <checkbox id="useSmoothScrolling"
-                  label="&useSmoothScrolling.label;"
-                  accesskey="&useSmoothScrolling.accesskey;"
-                  preference="general.smoothScroll"/>
-        <checkbox id="checkSpelling"
-                  label="&checkUserSpelling.label;"
-                  accesskey="&checkUserSpelling.accesskey;"
-                  onsyncfrompreference="return gAdvancedPane.readCheckSpelling();"
-                  onsynctopreference="return gAdvancedPane.writeCheckSpelling();"
-                  preference="layout.spellcheckDefault"/>
-      </groupbox>
-    </tabpanel>
-#ifdef MOZ_DATA_REPORTING
-    <!-- Data Choices -->
-    <tabpanel id="dataChoicesPanel" orient="vertical">
-#ifdef MOZ_TELEMETRY_REPORTING
-      <description>&healthReportingDisabled.label;</description>
-      <separator class="thin"/>
-#endif
-      <groupbox>
-        <caption>
-          <checkbox id="submitHealthReportBox" label="&enableHealthReport.label;"
-                    accesskey="&enableHealthReport.accesskey;"/>
-        </caption>
-        <vbox>
-          <hbox class="indent" flex="1">
-            <label flex="1">&healthReportDesc.label;</label>
-            <label id="FHRLearnMore" flex="1"
-                   class="learnMore text-link">&healthReportLearnMore.label;</label>
-          </hbox>
-          <hbox class="indent">
-            <groupbox flex="1">
-              <caption>
-                <checkbox id="submitTelemetryBox" preference="toolkit.telemetry.enabled"
-                          label="&enableTelemetryData.label;"
-                          accesskey="&enableTelemetryData.accesskey;"/>
-              </caption>
-              <hbox class="indent" flex="1">
-                <label id="telemetryDataDesc" flex="1">&telemetryDesc.label;</label>
-                <label id="telemetryLearnMore" flex="1"
-                       class="learnMore text-link">&telemetryLearnMore.label;</label>
-              </hbox>
-            </groupbox>
-          </hbox>
-        </vbox>
-      </groupbox>
-#ifdef MOZ_CRASHREPORTER
-      <groupbox>
-        <caption>
-          <checkbox id="automaticallySubmitCrashesBox"
-                    preference="browser.crashReports.unsubmittedCheck.autoSubmit"
-                    label="&alwaysSubmitCrashReports.label;"
-                    accesskey="&alwaysSubmitCrashReports.accesskey;"/>
-        </caption>
-        <hbox class="indent" flex="1">
-          <label flex="1">&crashReporterDesc2.label;</label>
-          <label id="crashReporterLearnMore" flex="1"
-                 class="learnMore text-link">&crashReporterLearnMore.label;</label>
-        </hbox>
-      </groupbox>
-#endif
-    </tabpanel>
-#endif
-
-    <!-- Network -->
-    <tabpanel id="networkPanel" orient="vertical">
-
-      <!-- Connection -->
-      <groupbox id="connectionGroup">
-        <caption><label>&connection.label;</label></caption>
-
-        <hbox align="center">
-          <description flex="1" control="connectionSettings">&connectionDesc.label;</description>
-          <button id="connectionSettings" icon="network" label="&connectionSettings.label;"
-                  accesskey="&connectionSettings.accesskey;"/>
-        </hbox>
-      </groupbox>
-
-      <!-- Cache -->
-      <groupbox id="cacheGroup">
-        <caption><label>&httpCache.label;</label></caption>
-
-        <hbox align="center">
-          <label id="actualDiskCacheSize" flex="1"/>
-          <button id="clearCacheButton" icon="clear"
-                  label="&clearCacheNow.label;" accesskey="&clearCacheNow.accesskey;"/>
-        </hbox>
-        <hbox>
-          <checkbox preference="browser.cache.disk.smart_size.enabled"
-                    id="allowSmartSize"
-                    onsyncfrompreference="return gAdvancedPane.readSmartSizeEnabled();"
-                    label="&overrideSmartCacheSize.label;"
-                    accesskey="&overrideSmartCacheSize.accesskey;"/>
-        </hbox>
-        <hbox align="center" class="indent">
-          <label id="useCacheBefore" control="cacheSize"
-                 accesskey="&limitCacheSizeBefore.accesskey;">
-            &limitCacheSizeBefore.label;
-          </label>
-          <textbox id="cacheSize" type="number" size="4" max="1024"
-                   aria-labelledby="useCacheBefore cacheSize useCacheAfter"/>
-          <label id="useCacheAfter" flex="1">&limitCacheSizeAfter.label;</label>
-        </hbox>
-      </groupbox>
-
-      <!-- Offline apps -->
-      <groupbox id="offlineGroup" hidden="true">
-        <caption><label>&offlineStorage2.label;</label></caption>
-
-        <hbox align="center">
-          <label id="actualAppCacheSize" flex="1"/>
-          <button id="clearOfflineAppCacheButton" icon="clear"
-                  label="&clearOfflineAppCacheNow.label;" accesskey="&clearOfflineAppCacheNow.accesskey;"/>
-        </hbox>
-        <hbox align="center">
-          <checkbox id="offlineNotify"
-                    label="&offlineStorageNotify.label;" accesskey="&offlineStorageNotify.accesskey;"
-                    preference="browser.offline-apps.notify"
-                    onsyncfrompreference="return gAdvancedPane.readOfflineNotify();"/>
-          <spacer flex="1"/>
-          <button id="offlineNotifyExceptions"
-                  label="&offlineStorageNotifyExceptions.label;"
-                  accesskey="&offlineStorageNotifyExceptions.accesskey;"/>
-        </hbox>
-        <hbox>
-          <vbox flex="1">
-            <label id="offlineAppsListLabel">&offlineAppsList2.label;</label>
-            <listbox id="offlineAppsList"
-                    flex="1"
-                    aria-labelledby="offlineAppsListLabel">
-            </listbox>
-          </vbox>
-          <vbox pack="end">
-            <button id="offlineAppsListRemove"
-                    disabled="true"
-                    label="&offlineAppsListRemove.label;"
-                    accesskey="&offlineAppsListRemove.accesskey;"/>
-          </vbox>
-        </hbox>
-      </groupbox>
-
-      <!-- Site Data -->
-      <groupbox id="siteDataGroup" hidden="true">
-        <caption><label>&siteData.label;</label></caption>
-
-        <hbox align="baseline">
-          <label id="totalSiteDataSize"></label>
-          <label id="siteDataLearnMoreLink" class="learnMore text-link" value="&siteDataLearnMoreLink.label;"></label>
-          <spacer flex="1" />
-          <button id="clearSiteDataButton" icon="clear"
-                  label="&clearSiteData.label;" accesskey="&clearSiteData.accesskey;"/>
-        </hbox>
-        <vbox align="end">
-          <button id="siteDataSettings"
-                  label="&siteDataSettings.label;"
-                  accesskey="&siteDataSettings.accesskey;"/>
-        </vbox>
-      </groupbox>
-    </tabpanel>
-
-    <!-- Update -->
-    <tabpanel id="updatePanel" orient="vertical">
-#ifdef MOZ_UPDATER
-      <groupbox id="updateApp" align="start">
-        <caption><label>&updateApplication.label;</label></caption>
-        <radiogroup id="updateRadioGroup" align="start">
-          <radio id="autoDesktop"
-                 value="auto"
-                 label="&updateAuto1.label;"
-                 accesskey="&updateAuto1.accesskey;"/>
-          <radio value="checkOnly"
-                label="&updateCheckChoose.label;"
-                accesskey="&updateCheckChoose.accesskey;"/>
-          <radio value="manual"
-                label="&updateManual.label;"
-                accesskey="&updateManual.accesskey;"/>
-        </radiogroup>
-        <separator class="thin"/>
-        <hbox>
-          <button id="showUpdateHistory"
-                  label="&updateHistory.label;"
-                  accesskey="&updateHistory.accesskey;"
-                  preference="app.update.disable_button.showUpdateHistory"/>
-        </hbox>
-
-#ifdef MOZ_MAINTENANCE_SERVICE
-        <checkbox id="useService"
-                  label="&useService.label;"
-                  accesskey="&useService.accesskey;"
-                  preference="app.update.service.enabled"/>
-#endif
-      </groupbox>
-#endif
-      <groupbox id="updateOthers" align="start">
-        <caption><label>&autoUpdateOthers.label;</label></caption>
-        <checkbox id="enableSearchUpdate"
-                  label="&enableSearchUpdate.label;"
-                  accesskey="&enableSearchUpdate.accesskey;"
-                  preference="browser.search.update"/>
-      </groupbox>
-    </tabpanel>
-
-    <!-- Certificates -->
-    <tabpanel id="encryptionPanel" orient="vertical">
-      <groupbox id="certSelection" align="start">
-        <caption><label>&certPersonal.label;</label></caption>
-        <description id="CertSelectionDesc" control="certSelection">&certPersonal.description;</description>
-
-        <!--
-          The values on these radio buttons may look like l12y issues, but
-          they're not - this preference uses *those strings* as its values.
-          I KID YOU NOT.
-        -->
-        <radiogroup id="certSelection"
-                    preftype="string"
-                    preference="security.default_personal_cert"
-                    aria-labelledby="CertSelectionDesc">
-          <radio label="&selectCerts.auto;"
-                 accesskey="&selectCerts.auto.accesskey;"
-                 value="Select Automatically"/>
-          <radio label="&selectCerts.ask;"
-                 accesskey="&selectCerts.ask.accesskey;"
-                 value="Ask Every Time"/>
-        </radiogroup>
-      </groupbox>
-      <separator/>
-      <checkbox id="enableOCSP"
-                label="&enableOCSP.label;"
-                accesskey="&enableOCSP.accesskey;"
-                onsyncfrompreference="return gAdvancedPane.readEnableOCSP();"
-                onsynctopreference="return gAdvancedPane.writeEnableOCSP();"
-                preference="security.OCSP.enabled"/>
-      <separator/>
-      <hbox>
-        <button id="viewCertificatesButton"
-                flex="1"
-                label="&viewCerts.label;"
-                accesskey="&viewCerts.accesskey;"
-                preference="security.disable_button.openCertManager"/>
-        <button id="viewSecurityDevicesButton"
-                flex="1"
-                label="&viewSecurityDevices.label;"
-                accesskey="&viewSecurityDevices.accesskey;"
-                preference="security.disable_button.openDeviceManager"/>
-        <hbox flex="10"/>
-      </hbox>
-    </tabpanel>
-  </tabpanels>
-</tabbox>
deleted file mode 100644
--- a/browser/components/preferences/in-content/applications.js
+++ /dev/null
@@ -1,1894 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-"use strict";
-
-// Constants & Enumeration Values
-
-Components.utils.import("resource://gre/modules/Services.jsm");
-Components.utils.import("resource://gre/modules/AppConstants.jsm");
-const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed";
-const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed";
-const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed";
-const TYPE_PDF = "application/pdf";
-
-const PREF_PDFJS_DISABLED = "pdfjs.disabled";
-const TOPIC_PDFJS_HANDLER_CHANGED = "pdfjs:handlerChanged";
-
-const PREF_DISABLED_PLUGIN_TYPES = "plugin.disable_full_page_plugin_for_types";
-
-// Preferences that affect which entries to show in the list.
-const PREF_SHOW_PLUGINS_IN_LIST = "browser.download.show_plugins_in_list";
-const PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS =
-  "browser.download.hide_plugins_without_extensions";
-
-/*
- * Preferences where we store handling information about the feed type.
- *
- * browser.feeds.handler
- * - "bookmarks", "reader" (clarified further using the .default preference),
- *   or "ask" -- indicates the default handler being used to process feeds;
- *   "bookmarks" is obsolete; to specify that the handler is bookmarks,
- *   set browser.feeds.handler.default to "bookmarks";
- *
- * browser.feeds.handler.default
- * - "bookmarks", "client" or "web" -- indicates the chosen feed reader used
- *   to display feeds, either transiently (i.e., when the "use as default"
- *   checkbox is unchecked, corresponds to when browser.feeds.handler=="ask")
- *   or more permanently (i.e., the item displayed in the dropdown in Feeds
- *   preferences)
- *
- * browser.feeds.handler.webservice
- * - the URL of the currently selected web service used to read feeds
- *
- * browser.feeds.handlers.application
- * - nsIFile, stores the current client-side feed reading app if one has
- *   been chosen
- */
-const PREF_FEED_SELECTED_APP    = "browser.feeds.handlers.application";
-const PREF_FEED_SELECTED_WEB    = "browser.feeds.handlers.webservice";
-const PREF_FEED_SELECTED_ACTION = "browser.feeds.handler";
-const PREF_FEED_SELECTED_READER = "browser.feeds.handler.default";
-
-const PREF_VIDEO_FEED_SELECTED_APP    = "browser.videoFeeds.handlers.application";
-const PREF_VIDEO_FEED_SELECTED_WEB    = "browser.videoFeeds.handlers.webservice";
-const PREF_VIDEO_FEED_SELECTED_ACTION = "browser.videoFeeds.handler";
-const PREF_VIDEO_FEED_SELECTED_READER = "browser.videoFeeds.handler.default";
-
-const PREF_AUDIO_FEED_SELECTED_APP    = "browser.audioFeeds.handlers.application";
-const PREF_AUDIO_FEED_SELECTED_WEB    = "browser.audioFeeds.handlers.webservice";
-const PREF_AUDIO_FEED_SELECTED_ACTION = "browser.audioFeeds.handler";
-const PREF_AUDIO_FEED_SELECTED_READER = "browser.audioFeeds.handler.default";
-
-// The nsHandlerInfoAction enumeration values in nsIHandlerInfo identify
-// the actions the application can take with content of various types.
-// But since nsIHandlerInfo doesn't support plugins, there's no value
-// identifying the "use plugin" action, so we use this constant instead.
-const kActionUsePlugin = 5;
-
-const ICON_URL_APP = AppConstants.platform == "linux" ?
-                     "moz-icon://dummy.exe?size=16" :
-                     "chrome://browser/skin/preferences/application.png";
-
-// For CSS. Can be one of "ask", "save", "plugin" or "feed". If absent, the icon URL
-// was set by us to a custom handler icon and CSS should not try to override it.
-const APP_ICON_ATTR_NAME = "appHandlerIcon";
-
-// Utilities
-
-function getFileDisplayName(file) {
-  if (AppConstants.platform == "win") {
-    if (file instanceof Ci.nsILocalFileWin) {
-      try {
-        return file.getVersionInfoField("FileDescription");
-      } catch (e) {}
-    }
-  }
-  if (AppConstants.platform == "macosx") {
-    if (file instanceof Ci.nsILocalFileMac) {
-      try {
-        return file.bundleDisplayName;
-      } catch (e) {}
-    }
-  }
-  return file.leafName;
-}
-
-function getLocalHandlerApp(aFile) {
-  var localHandlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
-                        createInstance(Ci.nsILocalHandlerApp);
-  localHandlerApp.name = getFileDisplayName(aFile);
-  localHandlerApp.executable = aFile;
-
-  return localHandlerApp;
-}
-
-/**
- * An enumeration of items in a JS array.
- *
- * FIXME: use ArrayConverter once it lands (bug 380839).
- *
- * @constructor
- */
-function ArrayEnumerator(aItems) {
-  this._index = 0;
-  this._contents = aItems;
-}
-
-ArrayEnumerator.prototype = {
-  _index: 0,
-
-  hasMoreElements() {
-    return this._index < this._contents.length;
-  },
-
-  getNext() {
-    return this._contents[this._index++];
-  }
-};
-
-function isFeedType(t) {
-  return t == TYPE_MAYBE_FEED || t == TYPE_MAYBE_VIDEO_FEED || t == TYPE_MAYBE_AUDIO_FEED;
-}
-
-// HandlerInfoWrapper
-
-/**
- * This object wraps nsIHandlerInfo with some additional functionality
- * the Applications prefpane needs to display and allow modification of
- * the list of handled types.
- *
- * We create an instance of this wrapper for each entry we might display
- * in the prefpane, and we compose the instances from various sources,
- * including plugins and the handler service.
- *
- * We don't implement all the original nsIHandlerInfo functionality,
- * just the stuff that the prefpane needs.
- *
- * In theory, all of the custom functionality in this wrapper should get
- * pushed down into nsIHandlerInfo eventually.
- */
-function HandlerInfoWrapper(aType, aHandlerInfo) {
-  this._type = aType;
-  this.wrappedHandlerInfo = aHandlerInfo;
-}
-
-HandlerInfoWrapper.prototype = {
-  // The wrapped nsIHandlerInfo object.  In general, this object is private,
-  // but there are a couple cases where callers access it directly for things
-  // we haven't (yet?) implemented, so we make it a public property.
-  wrappedHandlerInfo: null,
-
-
-  // Convenience Utils
-
-  _handlerSvc: Cc["@mozilla.org/uriloader/handler-service;1"].
-               getService(Ci.nsIHandlerService),
-
-  _prefSvc: Cc["@mozilla.org/preferences-service;1"].
-            getService(Ci.nsIPrefBranch),
-
-  _categoryMgr: Cc["@mozilla.org/categorymanager;1"].
-                getService(Ci.nsICategoryManager),
-
-  element(aID) {
-    return document.getElementById(aID);
-  },
-
-
-  // nsIHandlerInfo
-
-  // The MIME type or protocol scheme.
-  _type: null,
-  get type() {
-    return this._type;
-  },
-
-  get description() {
-    if (this.wrappedHandlerInfo.description)
-      return this.wrappedHandlerInfo.description;
-
-    if (this.primaryExtension) {
-      var extension = this.primaryExtension.toUpperCase();
-      return this.element("bundlePreferences").getFormattedString("fileEnding",
-                                                                  [extension]);
-    }
-
-    return this.type;
-  },
-
-  get preferredApplicationHandler() {
-    return this.wrappedHandlerInfo.preferredApplicationHandler;
-  },
-
-  set preferredApplicationHandler(aNewValue) {
-    this.wrappedHandlerInfo.preferredApplicationHandler = aNewValue;
-
-    // Make sure the preferred handler is in the set of possible handlers.
-    if (aNewValue)
-      this.addPossibleApplicationHandler(aNewValue)
-  },
-
-  get possibleApplicationHandlers() {
-    return this.wrappedHandlerInfo.possibleApplicationHandlers;
-  },
-
-  addPossibleApplicationHandler(aNewHandler) {
-    var possibleApps = this.possibleApplicationHandlers.enumerate();
-    while (possibleApps.hasMoreElements()) {
-      if (possibleApps.getNext().equals(aNewHandler))
-        return;
-    }
-    this.possibleApplicationHandlers.appendElement(aNewHandler);
-  },
-
-  removePossibleApplicationHandler(aHandler) {
-    var defaultApp = this.preferredApplicationHandler;
-    if (defaultApp && aHandler.equals(defaultApp)) {
-      // If the app we remove was the default app, we must make sure
-      // it won't be used anymore
-      this.alwaysAskBeforeHandling = true;
-      this.preferredApplicationHandler = null;
-    }
-
-    var handlers = this.possibleApplicationHandlers;
-    for (var i = 0; i < handlers.length; ++i) {
-      var handler = handlers.queryElementAt(i, Ci.nsIHandlerApp);
-      if (handler.equals(aHandler)) {
-        handlers.removeElementAt(i);
-        break;
-      }
-    }
-  },
-
-  get hasDefaultHandler() {
-    return this.wrappedHandlerInfo.hasDefaultHandler;
-  },
-
-  get defaultDescription() {
-    return this.wrappedHandlerInfo.defaultDescription;
-  },
-
-  // What to do with content of this type.
-  get preferredAction() {
-    // If we have an enabled plugin, then the action is to use that plugin.
-    if (this.pluginName && !this.isDisabledPluginType)
-      return kActionUsePlugin;
-
-    // If the action is to use a helper app, but we don't have a preferred
-    // handler app, then switch to using the system default, if any; otherwise
-    // fall back to saving to disk, which is the default action in nsMIMEInfo.
-    // Note: "save to disk" is an invalid value for protocol info objects,
-    // but the alwaysAskBeforeHandling getter will detect that situation
-    // and always return true in that case to override this invalid value.
-    if (this.wrappedHandlerInfo.preferredAction == Ci.nsIHandlerInfo.useHelperApp &&
-        !gApplicationsPane.isValidHandlerApp(this.preferredApplicationHandler)) {
-      if (this.wrappedHandlerInfo.hasDefaultHandler)
-        return Ci.nsIHandlerInfo.useSystemDefault;
-      return Ci.nsIHandlerInfo.saveToDisk;
-    }
-
-    return this.wrappedHandlerInfo.preferredAction;
-  },
-
-  set preferredAction(aNewValue) {
-    // If the action is to use the plugin,
-    // we must set the preferred action to "save to disk".
-    // But only if it's not currently the preferred action.
-    if ((aNewValue == kActionUsePlugin) &&
-        (this.preferredAction != Ci.nsIHandlerInfo.saveToDisk)) {
-      aNewValue = Ci.nsIHandlerInfo.saveToDisk;
-    }
-
-    // We don't modify the preferred action if the new action is to use a plugin
-    // because handler info objects don't understand our custom "use plugin"
-    // value.  Also, leaving it untouched means that we can automatically revert
-    // to the old setting if the user ever removes the plugin.
-
-    if (aNewValue != kActionUsePlugin)
-      this.wrappedHandlerInfo.preferredAction = aNewValue;
-  },
-
-  get alwaysAskBeforeHandling() {
-    // If this type is handled only by a plugin, we can't trust the value
-    // in the handler info object, since it'll be a default based on the absence
-    // of any user configuration, and the default in that case is to always ask,
-    // even though we never ask for content handled by a plugin, so special case
-    // plugin-handled types by returning false here.
-    if (this.pluginName && this.handledOnlyByPlugin)
-      return false;
-
-    // If this is a protocol type and the preferred action is "save to disk",
-    // which is invalid for such types, then return true here to override that
-    // action.  This could happen when the preferred action is to use a helper
-    // app, but the preferredApplicationHandler is invalid, and there isn't
-    // a default handler, so the preferredAction getter returns save to disk
-    // instead.
-    if (!(this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) &&
-        this.preferredAction == Ci.nsIHandlerInfo.saveToDisk)
-      return true;
-
-    return this.wrappedHandlerInfo.alwaysAskBeforeHandling;
-  },
-
-  set alwaysAskBeforeHandling(aNewValue) {
-    this.wrappedHandlerInfo.alwaysAskBeforeHandling = aNewValue;
-  },
-
-
-  // nsIMIMEInfo
-
-  // The primary file extension associated with this type, if any.
-  //
-  // XXX Plugin objects contain an array of MimeType objects with "suffixes"
-  // properties; if this object has an associated plugin, shouldn't we check
-  // those properties for an extension?
-  get primaryExtension() {
-    try {
-      if (this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
-          this.wrappedHandlerInfo.primaryExtension)
-        return this.wrappedHandlerInfo.primaryExtension
-    } catch (ex) {}
-
-    return null;
-  },
-
-
-  // Plugin Handling
-
-  // A plugin that can handle this type, if any.
-  //
-  // Note: just because we have one doesn't mean it *will* handle the type.
-  // That depends on whether or not the type is in the list of types for which
-  // plugin handling is disabled.
-  plugin: null,
-
-  // Whether or not this type is only handled by a plugin or is also handled
-  // by some user-configured action as specified in the handler info object.
-  //
-  // Note: we can't just check if there's a handler info object for this type,
-  // because OS and user configuration is mixed up in the handler info object,
-  // so we always need to retrieve it for the OS info and can't tell whether
-  // it represents only OS-default information or user-configured information.
-  //
-  // FIXME: once handler info records are broken up into OS-provided records
-  // and user-configured records, stop using this boolean flag and simply
-  // check for the presence of a user-configured record to determine whether
-  // or not this type is only handled by a plugin.  Filed as bug 395142.
-  handledOnlyByPlugin: undefined,
-
-  get isDisabledPluginType() {
-    return this._getDisabledPluginTypes().indexOf(this.type) != -1;
-  },
-
-  _getDisabledPluginTypes() {
-    var types = "";
-
-    if (this._prefSvc.prefHasUserValue(PREF_DISABLED_PLUGIN_TYPES))
-      types = this._prefSvc.getCharPref(PREF_DISABLED_PLUGIN_TYPES);
-
-    // Only split if the string isn't empty so we don't end up with an array
-    // containing a single empty string.
-    if (types != "")
-      return types.split(",");
-
-    return [];
-  },
-
-  disablePluginType() {
-    var disabledPluginTypes = this._getDisabledPluginTypes();
-
-    if (disabledPluginTypes.indexOf(this.type) == -1)
-      disabledPluginTypes.push(this.type);
-
-    this._prefSvc.setCharPref(PREF_DISABLED_PLUGIN_TYPES,
-                              disabledPluginTypes.join(","));
-
-    // Update the category manager so existing browser windows update.
-    this._categoryMgr.deleteCategoryEntry("Gecko-Content-Viewers",
-                                          this.type,
-                                          false);
-  },
-
-  enablePluginType() {
-    var disabledPluginTypes = this._getDisabledPluginTypes();
-
-    var type = this.type;
-    disabledPluginTypes = disabledPluginTypes.filter(v => v != type);
-
-    this._prefSvc.setCharPref(PREF_DISABLED_PLUGIN_TYPES,
-                              disabledPluginTypes.join(","));
-
-    // Update the category manager so existing browser windows update.
-    this._categoryMgr.
-      addCategoryEntry("Gecko-Content-Viewers",
-                       this.type,
-                       "@mozilla.org/content/plugin/document-loader-factory;1",
-                       false,
-                       true);
-  },
-
-
-  // Storage
-
-  store() {
-    this._handlerSvc.store(this.wrappedHandlerInfo);
-  },
-
-
-  // Icons
-
-  get smallIcon() {
-    return this._getIcon(16);
-  },
-
-  _getIcon(aSize) {
-    if (this.primaryExtension)
-      return "moz-icon://goat." + this.primaryExtension + "?size=" + aSize;
-
-    if (this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo)
-      return "moz-icon://goat?size=" + aSize + "&contentType=" + this.type;
-
-    // FIXME: consider returning some generic icon when we can't get a URL for
-    // one (for example in the case of protocol schemes).  Filed as bug 395141.
-    return null;
-  }
-
-};
-
-
-// Feed Handler Info
-
-/**
- * This object implements nsIHandlerInfo for the feed types.  It's a separate
- * object because we currently store handling information for the feed type
- * in a set of preferences rather than the nsIHandlerService-managed datastore.
- *
- * This object inherits from HandlerInfoWrapper in order to get functionality
- * that isn't special to the feed type.
- *
- * XXX Should we inherit from HandlerInfoWrapper?  After all, we override
- * most of that wrapper's properties and methods, and we have to dance around
- * the fact that the wrapper expects to have a wrappedHandlerInfo, which we
- * don't provide.
- */
-
-function FeedHandlerInfo(aMIMEType) {
-  HandlerInfoWrapper.call(this, aMIMEType, null);
-}
-
-FeedHandlerInfo.prototype = {
-  __proto__: HandlerInfoWrapper.prototype,
-
-  // Convenience Utils
-
-  _converterSvc:
-    Cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"].
-    getService(Ci.nsIWebContentConverterService),
-
-  _shellSvc: AppConstants.HAVE_SHELL_SERVICE ? getShellService() : null,
-
-  // nsIHandlerInfo
-
-  get description() {
-    return this.element("bundlePreferences").getString(this._appPrefLabel);
-  },
-
-  get preferredApplicationHandler() {
-    switch (this.element(this._prefSelectedReader).value) {
-      case "client":
-        var file = this.element(this._prefSelectedApp).value;
-        if (file)
-          return getLocalHandlerApp(file);
-
-        return null;
-
-      case "web":
-        var uri = this.element(this._prefSelectedWeb).value;
-        if (!uri)
-          return null;
-        return this._converterSvc.getWebContentHandlerByURI(this.type, uri);
-
-      case "bookmarks":
-      default:
-        // When the pref is set to bookmarks, we handle feeds internally,
-        // we don't forward them to a local or web handler app, so there is
-        // no preferred handler.
-        return null;
-    }
-  },
-
-  set preferredApplicationHandler(aNewValue) {
-    if (aNewValue instanceof Ci.nsILocalHandlerApp) {
-      this.element(this._prefSelectedApp).value = aNewValue.executable;
-      this.element(this._prefSelectedReader).value = "client";
-    } else if (aNewValue instanceof Ci.nsIWebContentHandlerInfo) {
-      this.element(this._prefSelectedWeb).value = aNewValue.uri;
-      this.element(this._prefSelectedReader).value = "web";
-      // Make the web handler be the new "auto handler" for feeds.
-      // Note: we don't have to unregister the auto handler when the user picks
-      // a non-web handler (local app, Live Bookmarks, etc.) because the service
-      // only uses the "auto handler" when the selected reader is a web handler.
-      // We also don't have to unregister it when the user turns on "always ask"
-      // (i.e. preview in browser), since that also overrides the auto handler.
-      this._converterSvc.setAutoHandler(this.type, aNewValue);
-    }
-  },
-
-  _possibleApplicationHandlers: null,
-
-  get possibleApplicationHandlers() {
-    if (this._possibleApplicationHandlers)
-      return this._possibleApplicationHandlers;
-
-    // A minimal implementation of nsIMutableArray.  It only supports the two
-    // methods its callers invoke, namely appendElement and nsIArray::enumerate.
-    this._possibleApplicationHandlers = {
-      _inner: [],
-      _removed: [],
-
-      QueryInterface(aIID) {
-        if (aIID.equals(Ci.nsIMutableArray) ||
-            aIID.equals(Ci.nsIArray) ||
-            aIID.equals(Ci.nsISupports))
-          return this;
-
-        throw Cr.NS_ERROR_NO_INTERFACE;
-      },
-
-      get length() {
-        return this._inner.length;
-      },
-
-      enumerate() {
-        return new ArrayEnumerator(this._inner);
-      },
-
-      appendElement(aHandlerApp, aWeak) {
-        this._inner.push(aHandlerApp);
-      },
-
-      removeElementAt(aIndex) {
-        this._removed.push(this._inner[aIndex]);
-        this._inner.splice(aIndex, 1);
-      },
-
-      queryElementAt(aIndex, aInterface) {
-        return this._inner[aIndex].QueryInterface(aInterface);
-      }
-    };
-
-    // Add the selected local app if it's different from the OS default handler.
-    // Unlike for other types, we can store only one local app at a time for the
-    // feed type, since we store it in a preference that historically stores
-    // only a single path.  But we display all the local apps the user chooses
-    // while the prefpane is open, only dropping the list when the user closes
-    // the prefpane, for maximum usability and consistency with other types.
-    var preferredAppFile = this.element(this._prefSelectedApp).value;
-    if (preferredAppFile) {
-      let preferredApp = getLocalHandlerApp(preferredAppFile);
-      let defaultApp = this._defaultApplicationHandler;
-      if (!defaultApp || !defaultApp.equals(preferredApp))
-        this._possibleApplicationHandlers.appendElement(preferredApp);
-    }
-
-    // Add the registered web handlers.  There can be any number of these.
-    var webHandlers = this._converterSvc.getContentHandlers(this.type);
-    for (let webHandler of webHandlers)
-      this._possibleApplicationHandlers.appendElement(webHandler);
-
-    return this._possibleApplicationHandlers;
-  },
-
-  __defaultApplicationHandler: undefined,
-  get _defaultApplicationHandler() {
-    if (typeof this.__defaultApplicationHandler != "undefined")
-      return this.__defaultApplicationHandler;
-
-    var defaultFeedReader = null;
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      try {
-        defaultFeedReader = this._shellSvc.defaultFeedReader;
-      } catch (ex) {
-        // no default reader or _shellSvc is null
-      }
-    }
-
-    if (defaultFeedReader) {
-      let handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
-                       createInstance(Ci.nsIHandlerApp);
-      handlerApp.name = getFileDisplayName(defaultFeedReader);
-      handlerApp.QueryInterface(Ci.nsILocalHandlerApp);
-      handlerApp.executable = defaultFeedReader;
-
-      this.__defaultApplicationHandler = handlerApp;
-    } else {
-      this.__defaultApplicationHandler = null;
-    }
-
-    return this.__defaultApplicationHandler;
-  },
-
-  get hasDefaultHandler() {
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      try {
-        if (this._shellSvc.defaultFeedReader)
-          return true;
-      } catch (ex) {
-        // no default reader or _shellSvc is null
-      }
-    }
-
-    return false;
-  },
-
-  get defaultDescription() {
-    if (this.hasDefaultHandler)
-      return this._defaultApplicationHandler.name;
-
-    // Should we instead return null?
-    return "";
-  },
-
-  // What to do with content of this type.
-  get preferredAction() {
-    switch (this.element(this._prefSelectedAction).value) {
-
-      case "bookmarks":
-        return Ci.nsIHandlerInfo.handleInternally;
-
-      case "reader": {
-        let preferredApp = this.preferredApplicationHandler;
-        let defaultApp = this._defaultApplicationHandler;
-
-        // If we have a valid preferred app, return useSystemDefault if it's
-        // the default app; otherwise return useHelperApp.
-        if (gApplicationsPane.isValidHandlerApp(preferredApp)) {
-          if (defaultApp && defaultApp.equals(preferredApp))
-            return Ci.nsIHandlerInfo.useSystemDefault;
-
-          return Ci.nsIHandlerInfo.useHelperApp;
-        }
-
-        // The pref is set to "reader", but we don't have a valid preferred app.
-        // What do we do now?  Not sure this is the best option (perhaps we
-        // should direct the user to the default app, if any), but for now let's
-        // direct the user to live bookmarks.
-        return Ci.nsIHandlerInfo.handleInternally;
-      }
-
-      // If the action is "ask", then alwaysAskBeforeHandling will override
-      // the action, so it doesn't matter what we say it is, it just has to be
-      // something that doesn't cause the controller to hide the type.
-      case "ask":
-      default:
-        return Ci.nsIHandlerInfo.handleInternally;
-    }
-  },
-
-  set preferredAction(aNewValue) {
-    switch (aNewValue) {
-
-      case Ci.nsIHandlerInfo.handleInternally:
-        this.element(this._prefSelectedReader).value = "bookmarks";
-        break;
-
-      case Ci.nsIHandlerInfo.useHelperApp:
-        this.element(this._prefSelectedAction).value = "reader";
-        // The controller has already set preferredApplicationHandler
-        // to the new helper app.
-        break;
-
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        this.element(this._prefSelectedAction).value = "reader";
-        this.preferredApplicationHandler = this._defaultApplicationHandler;
-        break;
-    }
-  },
-
-  get alwaysAskBeforeHandling() {
-    return this.element(this._prefSelectedAction).value == "ask";
-  },
-
-  set alwaysAskBeforeHandling(aNewValue) {
-    if (aNewValue == true)
-      this.element(this._prefSelectedAction).value = "ask";
-    else
-      this.element(this._prefSelectedAction).value = "reader";
-  },
-
-  // Whether or not we are currently storing the action selected by the user.
-  // We use this to suppress notification-triggered updates to the list when
-  // we make changes that may spawn such updates, specifically when we change
-  // the action for the feed type, which results in feed preference updates,
-  // which spawn "pref changed" notifications that would otherwise cause us
-  // to rebuild the view unnecessarily.
-  _storingAction: false,
-
-
-  // nsIMIMEInfo
-
-  get primaryExtension() {
-    return "xml";
-  },
-
-
-  // Storage
-
-  // Changes to the preferred action and handler take effect immediately
-  // (we write them out to the preferences right as they happen),
-  // so we when the controller calls store() after modifying the handlers,
-  // the only thing we need to store is the removal of possible handlers
-  // XXX Should we hold off on making the changes until this method gets called?
-  store() {
-    for (let app of this._possibleApplicationHandlers._removed) {
-      if (app instanceof Ci.nsILocalHandlerApp) {
-        let pref = this.element(PREF_FEED_SELECTED_APP);
-        var preferredAppFile = pref.value;
-        if (preferredAppFile) {
-          let preferredApp = getLocalHandlerApp(preferredAppFile);
-          if (app.equals(preferredApp))
-            pref.reset();
-        }
-      } else {
-        app.QueryInterface(Ci.nsIWebContentHandlerInfo);
-        this._converterSvc.removeContentHandler(app.contentType, app.uri);
-      }
-    }
-    this._possibleApplicationHandlers._removed = [];
-  },
-
-
-  // Icons
-
-  get smallIcon() {
-    return this._smallIcon;
-  }
-
-};
-
-var feedHandlerInfo = {
-  __proto__: new FeedHandlerInfo(TYPE_MAYBE_FEED),
-  _prefSelectedApp: PREF_FEED_SELECTED_APP,
-  _prefSelectedWeb: PREF_FEED_SELECTED_WEB,
-  _prefSelectedAction: PREF_FEED_SELECTED_ACTION,
-  _prefSelectedReader: PREF_FEED_SELECTED_READER,
-  _smallIcon: "chrome://browser/skin/feeds/feedIcon16.png",
-  _appPrefLabel: "webFeed"
-}
-
-var videoFeedHandlerInfo = {
-  __proto__: new FeedHandlerInfo(TYPE_MAYBE_VIDEO_FEED),
-  _prefSelectedApp: PREF_VIDEO_FEED_SELECTED_APP,
-  _prefSelectedWeb: PREF_VIDEO_FEED_SELECTED_WEB,
-  _prefSelectedAction: PREF_VIDEO_FEED_SELECTED_ACTION,
-  _prefSelectedReader: PREF_VIDEO_FEED_SELECTED_READER,
-  _smallIcon: "chrome://browser/skin/feeds/videoFeedIcon16.png",
-  _appPrefLabel: "videoPodcastFeed"
-}
-
-var audioFeedHandlerInfo = {
-  __proto__: new FeedHandlerInfo(TYPE_MAYBE_AUDIO_FEED),
-  _prefSelectedApp: PREF_AUDIO_FEED_SELECTED_APP,
-  _prefSelectedWeb: PREF_AUDIO_FEED_SELECTED_WEB,
-  _prefSelectedAction: PREF_AUDIO_FEED_SELECTED_ACTION,
-  _prefSelectedReader: PREF_AUDIO_FEED_SELECTED_READER,
-  _smallIcon: "chrome://browser/skin/feeds/audioFeedIcon16.png",
-  _appPrefLabel: "audioPodcastFeed"
-}
-
-/**
- * InternalHandlerInfoWrapper provides a basic mechanism to create an internal
- * mime type handler that can be enabled/disabled in the applications preference
- * menu.
- */
-function InternalHandlerInfoWrapper(aMIMEType) {
-  var mimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
-  var handlerInfo = mimeSvc.getFromTypeAndExtension(aMIMEType, null);
-
-  HandlerInfoWrapper.call(this, aMIMEType, handlerInfo);
-}
-
-InternalHandlerInfoWrapper.prototype = {
-  __proto__: HandlerInfoWrapper.prototype,
-
-  // Override store so we so we can notify any code listening for registration
-  // or unregistration of this handler.
-  store() {
-    HandlerInfoWrapper.prototype.store.call(this);
-    Services.obs.notifyObservers(null, this._handlerChanged);
-  },
-
-  get enabled() {
-    throw Cr.NS_ERROR_NOT_IMPLEMENTED;
-  },
-
-  get description() {
-    return this.element("bundlePreferences").getString(this._appPrefLabel);
-  }
-};
-
-var pdfHandlerInfo = {
-  __proto__: new InternalHandlerInfoWrapper(TYPE_PDF),
-  _handlerChanged: TOPIC_PDFJS_HANDLER_CHANGED,
-  _appPrefLabel: "portableDocumentFormat",
-  get enabled() {
-    return !Services.prefs.getBoolPref(PREF_PDFJS_DISABLED);
-  },
-};
-
-
-// Prefpane Controller
-
-var gApplicationsPane = {
-  // The set of types the app knows how to handle.  A hash of HandlerInfoWrapper
-  // objects, indexed by type.
-  _handledTypes: {},
-
-  // The list of types we can show, sorted by the sort column/direction.
-  // An array of HandlerInfoWrapper objects.  We build this list when we first
-  // load the data and then rebuild it when users change a pref that affects
-  // what types we can show or change the sort column/direction.
-  // Note: this isn't necessarily the list of types we *will* show; if the user
-  // provides a filter string, we'll only show the subset of types in this list
-  // that match that string.
-  _visibleTypes: [],
-
-  // A count of the number of times each visible type description appears.
-  // We use these counts to determine whether or not to annotate descriptions
-  // with their types to distinguish duplicate descriptions from each other.
-  // A hash of integer counts, indexed by string description.
-  _visibleTypeDescriptionCount: {},
-
-
-  // Convenience & Performance Shortcuts
-
-  // These get defined by init().
-  _brandShortName: null,
-  _prefsBundle: null,
-  _list: null,
-  _filter: null,
-
-  _prefSvc: Cc["@mozilla.org/preferences-service;1"].
-            getService(Ci.nsIPrefBranch),
-
-  _mimeSvc: Cc["@mozilla.org/mime;1"].
-            getService(Ci.nsIMIMEService),
-
-  _helperAppSvc: Cc["@mozilla.org/uriloader/external-helper-app-service;1"].
-                 getService(Ci.nsIExternalHelperAppService),
-
-  _handlerSvc: Cc["@mozilla.org/uriloader/handler-service;1"].
-               getService(Ci.nsIHandlerService),
-
-  _ioSvc: Cc["@mozilla.org/network/io-service;1"].
-          getService(Ci.nsIIOService),
-
-
-  // Initialization & Destruction
-
-  init() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gApplicationsPane));
-    }
-
-    // Initialize shortcuts to some commonly accessed elements & values.
-    this._brandShortName =
-      document.getElementById("bundleBrand").getString("brandShortName");
-    this._prefsBundle = document.getElementById("bundlePreferences");
-    this._list = document.getElementById("handlersView");
-    this._filter = document.getElementById("filter");
-
-    // Observe preferences that influence what we display so we can rebuild
-    // the view when they change.
-    this._prefSvc.addObserver(PREF_SHOW_PLUGINS_IN_LIST, this);
-    this._prefSvc.addObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_APP, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_WEB, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_ACTION, this);
-    this._prefSvc.addObserver(PREF_FEED_SELECTED_READER, this);
-
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_APP, this);
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_WEB, this);
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_READER, this);
-
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_APP, this);
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_WEB, this);
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_READER, this);
-
-    setEventListener("filter", "command", gApplicationsPane.filter);
-    setEventListener("handlersView", "select",
-      gApplicationsPane.onSelectionChanged);
-    setEventListener("typeColumn", "click", gApplicationsPane.sort);
-    setEventListener("actionColumn", "click", gApplicationsPane.sort);
-
-    // Listen for window unload so we can remove our preference observers.
-    window.addEventListener("unload", this);
-
-    // Figure out how we should be sorting the list.  We persist sort settings
-    // across sessions, so we can't assume the default sort column/direction.
-    // XXX should we be using the XUL sort service instead?
-    if (document.getElementById("actionColumn").hasAttribute("sortDirection")) {
-      this._sortColumn = document.getElementById("actionColumn");
-      // The typeColumn element always has a sortDirection attribute,
-      // either because it was persisted or because the default value
-      // from the xul file was used.  If we are sorting on the other
-      // column, we should remove it.
-      document.getElementById("typeColumn").removeAttribute("sortDirection");
-    } else
-      this._sortColumn = document.getElementById("typeColumn");
-
-    // Load the data and build the list of handlers.
-    // By doing this in a timeout, we let the preferences dialog resize itself
-    // to an appropriate size before we add a bunch of items to the list.
-    // Otherwise, if there are many items, and the Applications prefpane
-    // is the one that gets displayed when the user first opens the dialog,
-    // the dialog might stretch too much in an attempt to fit them all in.
-    // XXX Shouldn't we perhaps just set a max-height on the richlistbox?
-    var _delayedPaneLoad = function(self) {
-      self._loadData();
-      self._rebuildVisibleTypes();
-      self._sortVisibleTypes();
-      self._rebuildView();
-
-      // Notify observers that the UI is now ready
-      Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService).
-      notifyObservers(window, "app-handler-pane-loaded");
-    }
-    setTimeout(_delayedPaneLoad, 0, this);
-  },
-
-  destroy() {
-    window.removeEventListener("unload", this);
-    this._prefSvc.removeObserver(PREF_SHOW_PLUGINS_IN_LIST, this);
-    this._prefSvc.removeObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_APP, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_WEB, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_ACTION, this);
-    this._prefSvc.removeObserver(PREF_FEED_SELECTED_READER, this);
-
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_APP, this);
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_WEB, this);
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_READER, this);
-
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_APP, this);
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_WEB, this);
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_ACTION, this);
-    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_READER, this);
-  },
-
-
-  // nsISupports
-
-  QueryInterface(aIID) {
-    if (aIID.equals(Ci.nsIObserver) ||
-        aIID.equals(Ci.nsIDOMEventListener ||
-        aIID.equals(Ci.nsISupports)))
-      return this;
-
-    throw Cr.NS_ERROR_NO_INTERFACE;
-  },
-
-
-  // nsIObserver
-
-  observe(aSubject, aTopic, aData) {
-    // Rebuild the list when there are changes to preferences that influence
-    // whether or not to show certain entries in the list.
-    if (aTopic == "nsPref:changed" && !this._storingAction) {
-      // These two prefs alter the list of visible types, so we have to rebuild
-      // that list when they change.
-      if (aData == PREF_SHOW_PLUGINS_IN_LIST ||
-          aData == PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS) {
-        this._rebuildVisibleTypes();
-        this._sortVisibleTypes();
-      }
-
-      // All the prefs we observe can affect what we display, so we rebuild
-      // the view when any of them changes.
-      this._rebuildView();
-    }
-  },
-
-
-  // nsIDOMEventListener
-
-  handleEvent(aEvent) {
-    if (aEvent.type == "unload") {
-      this.destroy();
-    }
-  },
-
-
-  // Composed Model Construction
-
-  _loadData() {
-    this._loadFeedHandler();
-    this._loadInternalHandlers();
-    this._loadPluginHandlers();
-    this._loadApplicationHandlers();
-  },
-
-  _loadFeedHandler() {
-    this._handledTypes[TYPE_MAYBE_FEED] = feedHandlerInfo;
-    feedHandlerInfo.handledOnlyByPlugin = false;
-
-    this._handledTypes[TYPE_MAYBE_VIDEO_FEED] = videoFeedHandlerInfo;
-    videoFeedHandlerInfo.handledOnlyByPlugin = false;
-
-    this._handledTypes[TYPE_MAYBE_AUDIO_FEED] = audioFeedHandlerInfo;
-    audioFeedHandlerInfo.handledOnlyByPlugin = false;
-  },
-
-  /**
-   * Load higher level internal handlers so they can be turned on/off in the
-   * applications menu.
-   */
-  _loadInternalHandlers() {
-    var internalHandlers = [pdfHandlerInfo];
-    for (let internalHandler of internalHandlers) {
-      if (internalHandler.enabled) {
-        this._handledTypes[internalHandler.type] = internalHandler;
-      }
-    }
-  },
-
-  /**
-   * Load the set of handlers defined by plugins.
-   *
-   * Note: if there's more than one plugin for a given MIME type, we assume
-   * the last one is the one that the application will use.  That may not be
-   * correct, but it's how we've been doing it for years.
-   *
-   * Perhaps we should instead query navigator.mimeTypes for the set of types
-   * supported by the application and then get the plugin from each MIME type's
-   * enabledPlugin property.  But if there's a plugin for a type, we need
-   * to know about it even if it isn't enabled, since we're going to give
-   * the user an option to enable it.
-   *
-   * Also note that enabledPlugin does not get updated when
-   * plugin.disable_full_page_plugin_for_types changes, so even if we could use
-   * enabledPlugin to get the plugin that would be used, we'd still need to
-   * check the pref ourselves to find out if it's enabled.
-   */
-  _loadPluginHandlers() {
-    "use strict";
-
-    let mimeTypes = navigator.mimeTypes;
-
-    for (let mimeType of mimeTypes) {
-      let handlerInfoWrapper;
-      if (mimeType.type in this._handledTypes) {
-        handlerInfoWrapper = this._handledTypes[mimeType.type];
-      } else {
-        let wrappedHandlerInfo =
-              this._mimeSvc.getFromTypeAndExtension(mimeType.type, null);
-        handlerInfoWrapper = new HandlerInfoWrapper(mimeType.type, wrappedHandlerInfo);
-        handlerInfoWrapper.handledOnlyByPlugin = true;
-        this._handledTypes[mimeType.type] = handlerInfoWrapper;
-      }
-      handlerInfoWrapper.pluginName = mimeType.enabledPlugin.name;
-    }
-  },
-
-  /**
-   * Load the set of handlers defined by the application datastore.
-   */
-  _loadApplicationHandlers() {
-    var wrappedHandlerInfos = this._handlerSvc.enumerate();
-    while (wrappedHandlerInfos.hasMoreElements()) {
-      let wrappedHandlerInfo =
-        wrappedHandlerInfos.getNext().QueryInterface(Ci.nsIHandlerInfo);
-      let type = wrappedHandlerInfo.type;
-
-      let handlerInfoWrapper;
-      if (type in this._handledTypes)
-        handlerInfoWrapper = this._handledTypes[type];
-      else {
-        handlerInfoWrapper = new HandlerInfoWrapper(type, wrappedHandlerInfo);
-        this._handledTypes[type] = handlerInfoWrapper;
-      }
-
-      handlerInfoWrapper.handledOnlyByPlugin = false;
-    }
-  },
-
-
-  // View Construction
-
-  _rebuildVisibleTypes() {
-    // Reset the list of visible types and the visible type description counts.
-    this._visibleTypes = [];
-    this._visibleTypeDescriptionCount = {};
-
-    // Get the preferences that help determine what types to show.
-    var showPlugins = this._prefSvc.getBoolPref(PREF_SHOW_PLUGINS_IN_LIST);
-    var hidePluginsWithoutExtensions =
-      this._prefSvc.getBoolPref(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS);
-
-    for (let type in this._handledTypes) {
-      let handlerInfo = this._handledTypes[type];
-
-      // Hide plugins without associated extensions if so prefed so we don't
-      // show a whole bunch of obscure types handled by plugins on Mac.
-      // Note: though protocol types don't have extensions, we still show them;
-      // the pref is only meant to be applied to MIME types, since plugins are
-      // only associated with MIME types.
-      // FIXME: should we also check the "suffixes" property of the plugin?
-      // Filed as bug 395135.
-      if (hidePluginsWithoutExtensions && handlerInfo.handledOnlyByPlugin &&
-          handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
-          !handlerInfo.primaryExtension)
-        continue;
-
-      // Hide types handled only by plugins if so prefed.
-      if (handlerInfo.handledOnlyByPlugin && !showPlugins)
-        continue;
-
-      // We couldn't find any reason to exclude the type, so include it.
-      this._visibleTypes.push(handlerInfo);
-
-      if (handlerInfo.description in this._visibleTypeDescriptionCount)
-        this._visibleTypeDescriptionCount[handlerInfo.description]++;
-      else
-        this._visibleTypeDescriptionCount[handlerInfo.description] = 1;
-    }
-  },
-
-  _rebuildView() {
-    // Clear the list of entries.
-    while (this._list.childNodes.length > 1)
-      this._list.removeChild(this._list.lastChild);
-
-    var visibleTypes = this._visibleTypes;
-
-    // If the user is filtering the list, then only show matching types.
-    if (this._filter.value)
-      visibleTypes = visibleTypes.filter(this._matchesFilter, this);
-
-    for (let visibleType of visibleTypes) {
-      let item = document.createElement("richlistitem");
-      item.setAttribute("type", visibleType.type);
-      item.setAttribute("typeDescription", this._describeType(visibleType));
-      if (visibleType.smallIcon)
-        item.setAttribute("typeIcon", visibleType.smallIcon);
-      item.setAttribute("actionDescription",
-                        this._describePreferredAction(visibleType));
-
-      if (!this._setIconClassForPreferredAction(visibleType, item)) {
-        item.setAttribute("actionIcon",
-                          this._getIconURLForPreferredAction(visibleType));
-      }
-
-      this._list.appendChild(item);
-    }
-
-    this._selectLastSelectedType();
-  },
-
-  _matchesFilter(aType) {
-    var filterValue = this._filter.value.toLowerCase();
-    return this._describeType(aType).toLowerCase().indexOf(filterValue) != -1 ||
-           this._describePreferredAction(aType).toLowerCase().indexOf(filterValue) != -1;
-  },
-
-  /**
-   * Describe, in a human-readable fashion, the type represented by the given
-   * handler info object.  Normally this is just the description provided by
-   * the info object, but if more than one object presents the same description,
-   * then we annotate the duplicate descriptions with the type itself to help
-   * users distinguish between those types.
-   *
-   * @param aHandlerInfo {nsIHandlerInfo} the type being described
-   * @returns {string} a description of the type
-   */
-  _describeType(aHandlerInfo) {
-    if (this._visibleTypeDescriptionCount[aHandlerInfo.description] > 1)
-      return this._prefsBundle.getFormattedString("typeDescriptionWithType",
-                                                  [aHandlerInfo.description,
-                                                   aHandlerInfo.type]);
-
-    return aHandlerInfo.description;
-  },
-
-  /**
-   * Describe, in a human-readable fashion, the preferred action to take on
-   * the type represented by the given handler info object.
-   *
-   * XXX Should this be part of the HandlerInfoWrapper interface?  It would
-   * violate the separation of model and view, but it might make more sense
-   * nonetheless (f.e. it would make sortTypes easier).
-   *
-   * @param aHandlerInfo {nsIHandlerInfo} the type whose preferred action
-   *                                      is being described
-   * @returns {string} a description of the action
-   */
-  _describePreferredAction(aHandlerInfo) {
-    // alwaysAskBeforeHandling overrides the preferred action, so if that flag
-    // is set, then describe that behavior instead.  For most types, this is
-    // the "alwaysAsk" string, but for the feed type we show something special.
-    if (aHandlerInfo.alwaysAskBeforeHandling) {
-      if (isFeedType(aHandlerInfo.type))
-        return this._prefsBundle.getFormattedString("previewInApp",
-                                                    [this._brandShortName]);
-      return this._prefsBundle.getString("alwaysAsk");
-    }
-
-    switch (aHandlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.saveToDisk:
-        return this._prefsBundle.getString("saveFile");
-
-      case Ci.nsIHandlerInfo.useHelperApp:
-        var preferredApp = aHandlerInfo.preferredApplicationHandler;
-        var name;
-        if (preferredApp instanceof Ci.nsILocalHandlerApp)
-          name = getFileDisplayName(preferredApp.executable);
-        else
-          name = preferredApp.name;
-        return this._prefsBundle.getFormattedString("useApp", [name]);
-
-      case Ci.nsIHandlerInfo.handleInternally:
-        // For the feed type, handleInternally means live bookmarks.
-        if (isFeedType(aHandlerInfo.type)) {
-          return this._prefsBundle.getFormattedString("addLiveBookmarksInApp",
-                                                      [this._brandShortName]);
-        }
-
-        if (aHandlerInfo instanceof InternalHandlerInfoWrapper) {
-          return this._prefsBundle.getFormattedString("previewInApp",
-                                                      [this._brandShortName]);
-        }
-
-        // For other types, handleInternally looks like either useHelperApp
-        // or useSystemDefault depending on whether or not there's a preferred
-        // handler app.
-        if (this.isValidHandlerApp(aHandlerInfo.preferredApplicationHandler))
-          return aHandlerInfo.preferredApplicationHandler.name;
-
-        return aHandlerInfo.defaultDescription;
-
-        // XXX Why don't we say the app will handle the type internally?
-        // Is it because the app can't actually do that?  But if that's true,
-        // then why would a preferredAction ever get set to this value
-        // in the first place?
-
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        return this._prefsBundle.getFormattedString("useDefault",
-                                                    [aHandlerInfo.defaultDescription]);
-
-      case kActionUsePlugin:
-        return this._prefsBundle.getFormattedString("usePluginIn",
-                                                    [aHandlerInfo.pluginName,
-                                                     this._brandShortName]);
-      default:
-        throw new Error(`Unexpected preferredAction: ${aHandlerInfo.preferredAction}`);
-    }
-  },
-
-  _selectLastSelectedType() {
-    // If the list is disabled by the pref.downloads.disable_button.edit_actions
-    // preference being locked, then don't select the type, as that would cause
-    // it to appear selected, with a different background and an actions menu
-    // that makes it seem like you can choose an action for the type.
-    if (this._list.disabled)
-      return;
-
-    var lastSelectedType = this._list.getAttribute("lastSelectedType");
-    if (!lastSelectedType)
-      return;
-
-    var item = this._list.getElementsByAttribute("type", lastSelectedType)[0];
-    if (!item)
-      return;
-
-    this._list.selectedItem = item;
-  },
-
-  /**
-   * Whether or not the given handler app is valid.
-   *
-   * @param aHandlerApp {nsIHandlerApp} the handler app in question
-   *
-   * @returns {boolean} whether or not it's valid
-   */
-  isValidHandlerApp(aHandlerApp) {
-    if (!aHandlerApp)
-      return false;
-
-    if (aHandlerApp instanceof Ci.nsILocalHandlerApp)
-      return this._isValidHandlerExecutable(aHandlerApp.executable);
-
-    if (aHandlerApp instanceof Ci.nsIWebHandlerApp)
-      return aHandlerApp.uriTemplate;
-
-    if (aHandlerApp instanceof Ci.nsIWebContentHandlerInfo)
-      return aHandlerApp.uri;
-
-    return false;
-  },
-
-  _isValidHandlerExecutable(aExecutable) {
-    let leafName;
-    if (AppConstants.platform == "win") {
-      leafName = `${AppConstants.MOZ_APP_NAME}.exe`;
-    } else if (AppConstants.platform == "macosx") {
-      leafName = AppConstants.MOZ_MACBUNDLE_NAME;
-    } else {
-      leafName = `${AppConstants.MOZ_APP_NAME}-bin`;
-    }
-    return aExecutable &&
-           aExecutable.exists() &&
-           aExecutable.isExecutable() &&
-// XXXben - we need to compare this with the running instance executable
-//          just don't know how to do that via script...
-// XXXmano TBD: can probably add this to nsIShellService
-           aExecutable.leafName != leafName;
-  },
-
-  /**
-   * Rebuild the actions menu for the selected entry.  Gets called by
-   * the richlistitem constructor when an entry in the list gets selected.
-   */
-  rebuildActionsMenu() {
-    var typeItem = this._list.selectedItem;
-    var handlerInfo = this._handledTypes[typeItem.type];
-    var menu =
-      document.getAnonymousElementByAttribute(typeItem, "class", "actionsMenu");
-    var menuPopup = menu.menupopup;
-
-    // Clear out existing items.
-    while (menuPopup.hasChildNodes())
-      menuPopup.removeChild(menuPopup.lastChild);
-
-    let internalMenuItem;
-    // Add the "Preview in Firefox" option for optional internal handlers.
-    if (handlerInfo instanceof InternalHandlerInfoWrapper) {
-      internalMenuItem = document.createElement("menuitem");
-      internalMenuItem.setAttribute("action", Ci.nsIHandlerInfo.handleInternally);
-      let label = this._prefsBundle.getFormattedString("previewInApp",
-                                                       [this._brandShortName]);
-      internalMenuItem.setAttribute("label", label);
-      internalMenuItem.setAttribute("tooltiptext", label);
-      internalMenuItem.setAttribute(APP_ICON_ATTR_NAME, "ask");
-      menuPopup.appendChild(internalMenuItem);
-    }
-
-    {
-      var askMenuItem = document.createElement("menuitem");
-      askMenuItem.setAttribute("action", Ci.nsIHandlerInfo.alwaysAsk);
-      let label;
-      if (isFeedType(handlerInfo.type))
-        label = this._prefsBundle.getFormattedString("previewInApp",
-                                                     [this._brandShortName]);
-      else
-        label = this._prefsBundle.getString("alwaysAsk");
-      askMenuItem.setAttribute("label", label);
-      askMenuItem.setAttribute("tooltiptext", label);
-      askMenuItem.setAttribute(APP_ICON_ATTR_NAME, "ask");
-      menuPopup.appendChild(askMenuItem);
-    }
-
-    // Create a menu item for saving to disk.
-    // Note: this option isn't available to protocol types, since we don't know
-    // what it means to save a URL having a certain scheme to disk, nor is it
-    // available to feeds, since the feed code doesn't implement the capability.
-    if ((handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) &&
-        !isFeedType(handlerInfo.type)) {
-      var saveMenuItem = document.createElement("menuitem");
-      saveMenuItem.setAttribute("action", Ci.nsIHandlerInfo.saveToDisk);
-      let label = this._prefsBundle.getString("saveFile");
-      saveMenuItem.setAttribute("label", label);
-      saveMenuItem.setAttribute("tooltiptext", label);
-      saveMenuItem.setAttribute(APP_ICON_ATTR_NAME, "save");
-      menuPopup.appendChild(saveMenuItem);
-    }
-
-    // If this is the feed type, add a Live Bookmarks item.
-    if (isFeedType(handlerInfo.type)) {
-      internalMenuItem = document.createElement("menuitem");
-      internalMenuItem.setAttribute("action", Ci.nsIHandlerInfo.handleInternally);
-      let label = this._prefsBundle.getFormattedString("addLiveBookmarksInApp",
-                                                       [this._brandShortName]);
-      internalMenuItem.setAttribute("label", label);
-      internalMenuItem.setAttribute("tooltiptext", label);
-      internalMenuItem.setAttribute(APP_ICON_ATTR_NAME, "feed");
-      menuPopup.appendChild(internalMenuItem);
-    }
-
-    // Add a separator to distinguish these items from the helper app items
-    // that follow them.
-    let menuseparator = document.createElement("menuseparator");
-    menuPopup.appendChild(menuseparator);
-
-    // Create a menu item for the OS default application, if any.
-    if (handlerInfo.hasDefaultHandler) {
-      var defaultMenuItem = document.createElement("menuitem");
-      defaultMenuItem.setAttribute("action", Ci.nsIHandlerInfo.useSystemDefault);
-      let label = this._prefsBundle.getFormattedString("useDefault",
-                                                       [handlerInfo.defaultDescription]);
-      defaultMenuItem.setAttribute("label", label);
-      defaultMenuItem.setAttribute("tooltiptext", handlerInfo.defaultDescription);
-      defaultMenuItem.setAttribute("image", this._getIconURLForSystemDefault(handlerInfo));
-
-      menuPopup.appendChild(defaultMenuItem);
-    }
-
-    // Create menu items for possible handlers.
-    let preferredApp = handlerInfo.preferredApplicationHandler;
-    let possibleApps = handlerInfo.possibleApplicationHandlers.enumerate();
-    var possibleAppMenuItems = [];
-    while (possibleApps.hasMoreElements()) {
-      let possibleApp = possibleApps.getNext();
-      if (!this.isValidHandlerApp(possibleApp))
-        continue;
-
-      let menuItem = document.createElement("menuitem");
-      menuItem.setAttribute("action", Ci.nsIHandlerInfo.useHelperApp);
-      let label;
-      if (possibleApp instanceof Ci.nsILocalHandlerApp)
-        label = getFileDisplayName(possibleApp.executable);
-      else
-        label = possibleApp.name;
-      label = this._prefsBundle.getFormattedString("useApp", [label]);
-      menuItem.setAttribute("label", label);
-      menuItem.setAttribute("tooltiptext", label);
-      menuItem.setAttribute("image", this._getIconURLForHandlerApp(possibleApp));
-
-      // Attach the handler app object to the menu item so we can use it
-      // to make changes to the datastore when the user selects the item.
-      menuItem.handlerApp = possibleApp;
-
-      menuPopup.appendChild(menuItem);
-      possibleAppMenuItems.push(menuItem);
-    }
-
-    // Create a menu item for the plugin.
-    if (handlerInfo.pluginName) {
-      var pluginMenuItem = document.createElement("menuitem");
-      pluginMenuItem.setAttribute("action", kActionUsePlugin);
-      let label = this._prefsBundle.getFormattedString("usePluginIn",
-                                                       [handlerInfo.pluginName,
-                                                        this._brandShortName]);
-      pluginMenuItem.setAttribute("label", label);
-      pluginMenuItem.setAttribute("tooltiptext", label);
-      pluginMenuItem.setAttribute(APP_ICON_ATTR_NAME, "plugin");
-      menuPopup.appendChild(pluginMenuItem);
-    }
-
-    // Create a menu item for selecting a local application.
-    let canOpenWithOtherApp = true;
-    if (AppConstants.platform == "win") {
-      // On Windows, selecting an application to open another application
-      // would be meaningless so we special case executables.
-      let executableType = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService)
-                                                    .getTypeFromExtension("exe");
-      canOpenWithOtherApp = handlerInfo.type != executableType;
-    }
-    if (canOpenWithOtherApp) {
-      let menuItem = document.createElement("menuitem");
-      menuItem.className = "choose-app-item";
-      menuItem.addEventListener("command", function(e) {
-        gApplicationsPane.chooseApp(e);
-      });
-      let label = this._prefsBundle.getString("useOtherApp");
-      menuItem.setAttribute("label", label);
-      menuItem.setAttribute("tooltiptext", label);
-      menuPopup.appendChild(menuItem);
-    }
-
-    // Create a menu item for managing applications.
-    if (possibleAppMenuItems.length) {
-      let menuItem = document.createElement("menuseparator");
-      menuPopup.appendChild(menuItem);
-      menuItem = document.createElement("menuitem");
-      menuItem.className = "manage-app-item";
-      menuItem.addEventListener("command", function(e) {
-        gApplicationsPane.manageApp(e);
-      });
-      menuItem.setAttribute("label", this._prefsBundle.getString("manageApp"));
-      menuPopup.appendChild(menuItem);
-    }
-
-    // Select the item corresponding to the preferred action.  If the always
-    // ask flag is set, it overrides the preferred action.  Otherwise we pick
-    // the item identified by the preferred action (when the preferred action
-    // is to use a helper app, we have to pick the specific helper app item).
-    if (handlerInfo.alwaysAskBeforeHandling)
-      menu.selectedItem = askMenuItem;
-    else switch (handlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.handleInternally:
-        if (internalMenuItem) {
-          menu.selectedItem = internalMenuItem;
-        } else {
-          Cu.reportError("No menu item defined to set!")
-        }
-        break;
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        menu.selectedItem = defaultMenuItem;
-        break;
-      case Ci.nsIHandlerInfo.useHelperApp:
-        if (preferredApp)
-          menu.selectedItem =
-            possibleAppMenuItems.filter(v => v.handlerApp.equals(preferredApp))[0];
-        break;
-      case kActionUsePlugin:
-        menu.selectedItem = pluginMenuItem;
-        break;
-      case Ci.nsIHandlerInfo.saveToDisk:
-        menu.selectedItem = saveMenuItem;
-        break;
-    }
-  },
-
-
-  // Sorting & Filtering
-
-  _sortColumn: null,
-
-  /**
-   * Sort the list when the user clicks on a column header.
-   */
-  sort(event) {
-    var column = event.target;
-
-    // If the user clicked on a new sort column, remove the direction indicator
-    // from the old column.
-    if (this._sortColumn && this._sortColumn != column)
-      this._sortColumn.removeAttribute("sortDirection");
-
-    this._sortColumn = column;
-
-    // Set (or switch) the sort direction indicator.
-    if (column.getAttribute("sortDirection") == "ascending")
-      column.setAttribute("sortDirection", "descending");
-    else
-      column.setAttribute("sortDirection", "ascending");
-
-    this._sortVisibleTypes();
-    this._rebuildView();
-  },
-
-  /**
-   * Sort the list of visible types by the current sort column/direction.
-   */
-  _sortVisibleTypes() {
-    if (!this._sortColumn)
-      return;
-
-    var t = this;
-
-    function sortByType(a, b) {
-      return t._describeType(a).toLowerCase().
-             localeCompare(t._describeType(b).toLowerCase());
-    }
-
-    function sortByAction(a, b) {
-      return t._describePreferredAction(a).toLowerCase().
-             localeCompare(t._describePreferredAction(b).toLowerCase());
-    }
-
-    switch (this._sortColumn.getAttribute("value")) {
-      case "type":
-        this._visibleTypes.sort(sortByType);
-        break;
-      case "action":
-        this._visibleTypes.sort(sortByAction);
-        break;
-    }
-
-    if (this._sortColumn.getAttribute("sortDirection") == "descending")
-      this._visibleTypes.reverse();
-  },
-
-  /**
-   * Filter the list when the user enters a filter term into the filter field.
-   */
-  filter() {
-    this._rebuildView();
-  },
-
-  focusFilterBox() {
-    this._filter.focus();
-    this._filter.select();
-  },
-
-
-  // Changes
-
-  onSelectAction(aActionItem) {
-    this._storingAction = true;
-
-    try {
-      this._storeAction(aActionItem);
-    } finally {
-      this._storingAction = false;
-    }
-  },
-
-  _storeAction(aActionItem) {
-    var typeItem = this._list.selectedItem;
-    var handlerInfo = this._handledTypes[typeItem.type];
-
-    let action = parseInt(aActionItem.getAttribute("action"));
-
-    // Set the plugin state if we're enabling or disabling a plugin.
-    if (action == kActionUsePlugin)
-      handlerInfo.enablePluginType();
-    else if (handlerInfo.pluginName && !handlerInfo.isDisabledPluginType)
-      handlerInfo.disablePluginType();
-
-    // Set the preferred application handler.
-    // We leave the existing preferred app in the list when we set
-    // the preferred action to something other than useHelperApp so that
-    // legacy datastores that don't have the preferred app in the list
-    // of possible apps still include the preferred app in the list of apps
-    // the user can choose to handle the type.
-    if (action == Ci.nsIHandlerInfo.useHelperApp)
-      handlerInfo.preferredApplicationHandler = aActionItem.handlerApp;
-
-    // Set the "always ask" flag.
-    if (action == Ci.nsIHandlerInfo.alwaysAsk)
-      handlerInfo.alwaysAskBeforeHandling = true;
-    else
-      handlerInfo.alwaysAskBeforeHandling = false;
-
-    // Set the preferred action.
-    handlerInfo.preferredAction = action;
-
-    handlerInfo.store();
-
-    // Make sure the handler info object is flagged to indicate that there is
-    // now some user configuration for the type.
-    handlerInfo.handledOnlyByPlugin = false;
-
-    // Update the action label and image to reflect the new preferred action.
-    typeItem.setAttribute("actionDescription",
-                          this._describePreferredAction(handlerInfo));
-    if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) {
-      typeItem.setAttribute("actionIcon",
-                            this._getIconURLForPreferredAction(handlerInfo));
-    }
-  },
-
-  manageApp(aEvent) {
-    // Don't let the normal "on select action" handler get this event,
-    // as we handle it specially ourselves.
-    aEvent.stopPropagation();
-
-    var typeItem = this._list.selectedItem;
-    var handlerInfo = this._handledTypes[typeItem.type];
-
-    let onComplete = () => {
-      // Rebuild the actions menu so that we revert to the previous selection,
-      // or "Always ask" if the previous default application has been removed
-      this.rebuildActionsMenu();
-
-      // update the richlistitem too. Will be visible when selecting another row
-      typeItem.setAttribute("actionDescription",
-                            this._describePreferredAction(handlerInfo));
-      if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) {
-        typeItem.setAttribute("actionIcon",
-                              this._getIconURLForPreferredAction(handlerInfo));
-      }
-    };
-
-    gSubDialog.open("chrome://browser/content/preferences/applicationManager.xul",
-                    "resizable=no", handlerInfo, onComplete);
-
-  },
-
-  chooseApp(aEvent) {
-    // Don't let the normal "on select action" handler get this event,
-    // as we handle it specially ourselves.
-    aEvent.stopPropagation();
-
-    var handlerApp;
-    let chooseAppCallback = aHandlerApp => {
-      // Rebuild the actions menu whether the user picked an app or canceled.
-      // If they picked an app, we want to add the app to the menu and select it.
-      // If they canceled, we want to go back to their previous selection.
-      this.rebuildActionsMenu();
-
-      // If the user picked a new app from the menu, select it.
-      if (aHandlerApp) {
-        let typeItem = this._list.selectedItem;
-        let actionsMenu =
-          document.getAnonymousElementByAttribute(typeItem, "class", "actionsMenu");
-        let menuItems = actionsMenu.menupopup.childNodes;
-        for (let i = 0; i < menuItems.length; i++) {
-          let menuItem = menuItems[i];
-          if (menuItem.handlerApp && menuItem.handlerApp.equals(aHandlerApp)) {
-            actionsMenu.selectedIndex = i;
-            this.onSelectAction(menuItem);
-            break;
-          }
-        }
-      }
-    };
-
-    if (AppConstants.platform == "win") {
-      var params = {};
-      var handlerInfo = this._handledTypes[this._list.selectedItem.type];
-
-      if (isFeedType(handlerInfo.type)) {
-        // MIME info will be null, create a temp object.
-        params.mimeInfo = this._mimeSvc.getFromTypeAndExtension(handlerInfo.type,
-                                                   handlerInfo.primaryExtension);
-      } else {
-        params.mimeInfo = handlerInfo.wrappedHandlerInfo;
-      }
-
-      params.title         = this._prefsBundle.getString("fpTitleChooseApp");
-      params.description   = handlerInfo.description;
-      params.filename      = null;
-      params.handlerApp    = null;
-
-      let onAppSelected = () => {
-        if (this.isValidHandlerApp(params.handlerApp)) {
-          handlerApp = params.handlerApp;
-
-          // Add the app to the type's list of possible handlers.
-          handlerInfo.addPossibleApplicationHandler(handlerApp);
-        }
-
-        chooseAppCallback(handlerApp);
-      };
-
-      gSubDialog.open("chrome://global/content/appPicker.xul",
-                      null, params, onAppSelected);
-    } else {
-      let winTitle = this._prefsBundle.getString("fpTitleChooseApp");
-      let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
-      let fpCallback = aResult => {
-        if (aResult == Ci.nsIFilePicker.returnOK && fp.file &&
-            this._isValidHandlerExecutable(fp.file)) {
-          handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
-                       createInstance(Ci.nsILocalHandlerApp);
-          handlerApp.name = getFileDisplayName(fp.file);
-          handlerApp.executable = fp.file;
-
-          // Add the app to the type's list of possible handlers.
-          let handler = this._handledTypes[this._list.selectedItem.type];
-          handler.addPossibleApplicationHandler(handlerApp);
-
-          chooseAppCallback(handlerApp);
-        }
-      };
-
-      // Prompt the user to pick an app.  If they pick one, and it's a valid
-      // selection, then add it to the list of possible handlers.
-      fp.init(window, winTitle, Ci.nsIFilePicker.modeOpen);
-      fp.appendFilters(Ci.nsIFilePicker.filterApps);
-      fp.open(fpCallback);
-    }
-  },
-
-  // Mark which item in the list was last selected so we can reselect it
-  // when we rebuild the list or when the user returns to the prefpane.
-  onSelectionChanged() {
-    if (this._list.selectedItem)
-      this._list.setAttribute("lastSelectedType",
-                              this._list.selectedItem.getAttribute("type"));
-  },
-
-  _setIconClassForPreferredAction(aHandlerInfo, aElement) {
-    // If this returns true, the attribute that CSS sniffs for was set to something
-    // so you shouldn't manually set an icon URI.
-    // This removes the existing actionIcon attribute if any, even if returning false.
-    aElement.removeAttribute("actionIcon");
-
-    if (aHandlerInfo.alwaysAskBeforeHandling) {
-      aElement.setAttribute(APP_ICON_ATTR_NAME, "ask");
-      return true;
-    }
-
-    switch (aHandlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.saveToDisk:
-        aElement.setAttribute(APP_ICON_ATTR_NAME, "save");
-        return true;
-
-      case Ci.nsIHandlerInfo.handleInternally:
-        if (isFeedType(aHandlerInfo.type)) {
-          aElement.setAttribute(APP_ICON_ATTR_NAME, "feed");
-          return true;
-        } else if (aHandlerInfo instanceof InternalHandlerInfoWrapper) {
-          aElement.setAttribute(APP_ICON_ATTR_NAME, "ask");
-          return true;
-        }
-        break;
-
-      case kActionUsePlugin:
-        aElement.setAttribute(APP_ICON_ATTR_NAME, "plugin");
-        return true;
-    }
-    aElement.removeAttribute(APP_ICON_ATTR_NAME);
-    return false;
-  },
-
-  _getIconURLForPreferredAction(aHandlerInfo) {
-    switch (aHandlerInfo.preferredAction) {
-      case Ci.nsIHandlerInfo.useSystemDefault:
-        return this._getIconURLForSystemDefault(aHandlerInfo);
-
-      case Ci.nsIHandlerInfo.useHelperApp:
-        let preferredApp = aHandlerInfo.preferredApplicationHandler;
-        if (this.isValidHandlerApp(preferredApp))
-          return this._getIconURLForHandlerApp(preferredApp);
-        // Explicit fall-through
-
-      // This should never happen, but if preferredAction is set to some weird
-      // value, then fall back to the generic application icon.
-      default:
-        return ICON_URL_APP;
-    }
-  },
-
-  _getIconURLForHandlerApp(aHandlerApp) {
-    if (aHandlerApp instanceof Ci.nsILocalHandlerApp)
-      return this._getIconURLForFile(aHandlerApp.executable);
-
-    if (aHandlerApp instanceof Ci.nsIWebHandlerApp)
-      return this._getIconURLForWebApp(aHandlerApp.uriTemplate);
-
-    if (aHandlerApp instanceof Ci.nsIWebContentHandlerInfo)
-      return this._getIconURLForWebApp(aHandlerApp.uri)
-
-    // We know nothing about other kinds of handler apps.
-    return "";
-  },
-
-  _getIconURLForFile(aFile) {
-    var fph = this._ioSvc.getProtocolHandler("file").
-              QueryInterface(Ci.nsIFileProtocolHandler);
-    var urlSpec = fph.getURLSpecFromFile(aFile);
-
-    return "moz-icon://" + urlSpec + "?size=16";
-  },
-
-  _getIconURLForWebApp(aWebAppURITemplate) {
-    var uri = this._ioSvc.newURI(aWebAppURITemplate);
-
-    // Unfortunately we can't use the favicon service to get the favicon,
-    // because the service looks in the annotations table for a record with
-    // the exact URL we give it, and users won't have such records for URLs
-    // they don't visit, and users won't visit the web app's URL template,
-    // they'll only visit URLs derived from that template (i.e. with %s
-    // in the template replaced by the URL of the content being handled).
-
-    if (/^https?$/.test(uri.scheme) && this._prefSvc.getBoolPref("browser.chrome.favicons"))
-      return uri.prePath + "/favicon.ico";
-
-    return "";
-  },
-
-  _getIconURLForSystemDefault(aHandlerInfo) {
-    // Handler info objects for MIME types on some OSes implement a property bag
-    // interface from which we can get an icon for the default app, so if we're
-    // dealing with a MIME type on one of those OSes, then try to get the icon.
-    if ("wrappedHandlerInfo" in aHandlerInfo) {
-      let wrappedHandlerInfo = aHandlerInfo.wrappedHandlerInfo;
-
-      if (wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
-          wrappedHandlerInfo instanceof Ci.nsIPropertyBag) {
-        try {
-          let url = wrappedHandlerInfo.getProperty("defaultApplicationIconURL");
-          if (url)
-            return url + "?size=16";
-        } catch (ex) {}
-      }
-    }
-
-    // If this isn't a MIME type object on an OS that supports retrieving
-    // the icon, or if we couldn't retrieve the icon for some other reason,
-    // then use a generic icon.
-    return ICON_URL_APP;
-  }
-
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content/applications.xul
+++ /dev/null
@@ -1,88 +0,0 @@
-# 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/.
-
-<!-- Applications panel -->
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content/applications.js"/>
-
-<preferences id="feedsPreferences" hidden="true" data-category="paneApplications">
-  <preference id="browser.feeds.handler"
-              name="browser.feeds.handler"
-              type="string"/>
-  <preference id="browser.feeds.handler.default"
-              name="browser.feeds.handler.default"
-              type="string"/>
-  <preference id="browser.feeds.handlers.application"
-              name="browser.feeds.handlers.application"
-              type="file"/>
-  <preference id="browser.feeds.handlers.webservice"
-              name="browser.feeds.handlers.webservice"
-              type="string"/>
-
-  <preference id="browser.videoFeeds.handler"
-              name="browser.videoFeeds.handler"
-              type="string"/>
-  <preference id="browser.videoFeeds.handler.default"
-              name="browser.videoFeeds.handler.default"
-              type="string"/>
-  <preference id="browser.videoFeeds.handlers.application"
-              name="browser.videoFeeds.handlers.application"
-              type="file"/>
-  <preference id="browser.videoFeeds.handlers.webservice"
-              name="browser.videoFeeds.handlers.webservice"
-              type="string"/>
-
-  <preference id="browser.audioFeeds.handler"
-              name="browser.audioFeeds.handler"
-              type="string"/>
-  <preference id="browser.audioFeeds.handler.default"
-              name="browser.audioFeeds.handler.default"
-              type="string"/>
-  <preference id="browser.audioFeeds.handlers.application"
-              name="browser.audioFeeds.handlers.application"
-              type="file"/>
-  <preference id="browser.audioFeeds.handlers.webservice"
-              name="browser.audioFeeds.handlers.webservice"
-              type="string"/>
-
-  <preference id="pref.downloads.disable_button.edit_actions"
-              name="pref.downloads.disable_button.edit_actions"
-              type="bool"/>
-</preferences>
-
-<hbox id="header-applications"
-      class="header"
-      hidden="true"
-      data-category="paneApplications">
-  <label class="header-name" flex="1">&paneApplications.title;</label>
-  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
-</hbox>
-
-<vbox id="applicationsContent"
-      data-category="paneApplications"
-      hidden="true"
-      flex="1">
-  <hbox>
-    <textbox id="filter" flex="1"
-             type="search"
-             placeholder="&filter.emptytext;"
-             aria-controls="handlersView"/>
-  </hbox>
-
-  <separator class="thin"/>
-
-  <richlistbox id="handlersView" orient="vertical" persist="lastSelectedType"
-               preference="pref.downloads.disable_button.edit_actions"
-               flex="1">
-    <listheader equalsize="always">
-        <treecol id="typeColumn" label="&typeColumn.label;" value="type"
-                 accesskey="&typeColumn.accesskey;" persist="sortDirection"
-                 flex="1" sortDirection="ascending"/>
-        <treecol id="actionColumn" label="&actionColumn2.label;" value="action"
-                 accesskey="&actionColumn2.accesskey;" persist="sortDirection"
-                 flex="1"/>
-    </listheader>
-  </richlistbox>
-</vbox>
--- a/browser/components/preferences/in-content/containers.js
+++ b/browser/components/preferences/in-content/containers.js
@@ -2,28 +2,28 @@
  * 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/. */
 
 /* import-globals-from preferences.js */
 
 Components.utils.import("resource://gre/modules/AppConstants.jsm");
 Components.utils.import("resource://gre/modules/ContextualIdentityService.jsm");
 
-const containersBundle = Services.strings.createBundle("chrome://browser/locale/preferences-old/containers.properties");
+const containersBundle = Services.strings.createBundle("chrome://browser/locale/preferences/containers.properties");
 
 const defaultContainerIcon = "fingerprint";
 const defaultContainerColor = "blue";
 
 let gContainersPane = {
 
   init() {
     this._list = document.getElementById("containersView");
 
     document.getElementById("backContainersLink").addEventListener("click", function() {
-      gotoPref("privacy");
+      gotoPref("general");
     });
 
     this._rebuildView();
   },
 
   _rebuildView() {
     const containers = ContextualIdentityService.getPublicIdentities();
     while (this._list.firstChild) {
--- a/browser/components/preferences/in-content/containers.xul
+++ b/browser/components/preferences/in-content/containers.xul
@@ -13,30 +13,29 @@
               name="privacy.userContext.enabled"
               type="bool"/>
 
 </preferences>
 
 <hbox hidden="true"
       class="container-header-links"
       data-category="paneContainers">
-  <label class="text-link" id="backContainersLink" value="&backLink.label;" />
+  <label class="text-link" id="backContainersLink">&backLink2.label;</label>
 </hbox>
 
 <hbox id="header-containers"
       class="header"
       hidden="true"
       data-category="paneContainers">
   <label class="header-name" flex="1">&paneContainers.title;</label>
-  <button class="help-button"
-          aria-label="&helpButton.label;"/>
 </hbox>
 
 <!-- Containers -->
-<groupbox id="browserContainersGroup" data-category="paneContainers" hidden="true">
+<groupbox id="browserContainersGroupPane" data-category="paneContainers" hidden="true"
+          data-hidden-from-search="true" data-subpanel="true">
   <vbox id="browserContainersbox">
 
     <richlistbox id="containersView" orient="vertical" persist="lastSelectedType"
                  flex="1">
     </richlistbox>
   </vbox>
   <vbox>
     <hbox flex="1">
deleted file mode 100644
--- a/browser/components/preferences/in-content/content.js
+++ /dev/null
@@ -1,279 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-/* import-globals-from ../../../../toolkit/mozapps/preferences/fontbuilder.js */
-
-XPCOMUtils.defineLazyGetter(this, "AlertsServiceDND", function() {
-  try {
-    let alertsService = Cc["@mozilla.org/alerts-service;1"]
-                          .getService(Ci.nsIAlertsService)
-                          .QueryInterface(Ci.nsIAlertsDoNotDisturb);
-    // This will throw if manualDoNotDisturb isn't implemented.
-    alertsService.manualDoNotDisturb;
-    return alertsService;
-  } catch (ex) {
-    return undefined;
-  }
-});
-
-var gContentPane = {
-  init() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gContentPane));
-    }
-
-    // Initializes the fonts dropdowns displayed in this pane.
-    this._rebuildFonts();
-
-    // Show translation preferences if we may:
-    const prefName = "browser.translation.ui.show";
-    if (Services.prefs.getBoolPref(prefName)) {
-      let row = document.getElementById("translationBox");
-      row.removeAttribute("hidden");
-      // Showing attribution only for Bing Translator.
-      Components.utils.import("resource:///modules/translation/Translation.jsm");
-      if (Translation.translationEngine == "bing") {
-        document.getElementById("bingAttribution").removeAttribute("hidden");
-      }
-    }
-
-    if (AlertsServiceDND) {
-      let notificationsDoNotDisturbRow =
-        document.getElementById("notificationsDoNotDisturbRow");
-      notificationsDoNotDisturbRow.removeAttribute("hidden");
-      if (AlertsServiceDND.manualDoNotDisturb) {
-        let notificationsDoNotDisturb =
-          document.getElementById("notificationsDoNotDisturb");
-        notificationsDoNotDisturb.setAttribute("checked", true);
-      }
-    }
-
-    setEventListener("font.language.group", "change",
-      gContentPane._rebuildFonts);
-    setEventListener("notificationsPolicyButton", "command",
-      gContentPane.showNotificationExceptions);
-    setEventListener("popupPolicyButton", "command",
-      gContentPane.showPopupExceptions);
-    setEventListener("advancedFonts", "command",
-      gContentPane.configureFonts);
-    setEventListener("colors", "command",
-      gContentPane.configureColors);
-    setEventListener("chooseLanguage", "command",
-      gContentPane.showLanguages);
-    setEventListener("translationAttributionImage", "click",
-      gContentPane.openTranslationProviderAttribution);
-    setEventListener("translateButton", "command",
-      gContentPane.showTranslationExceptions);
-    setEventListener("notificationsDoNotDisturb", "command",
-      gContentPane.toggleDoNotDisturbNotifications);
-
-    let notificationInfoURL =
-      Services.urlFormatter.formatURLPref("app.support.baseURL") + "push";
-    document.getElementById("notificationsPolicyLearnMore").setAttribute("href",
-                                                                         notificationInfoURL);
-
-    let drmInfoURL =
-      Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content";
-    document.getElementById("playDRMContentLink").setAttribute("href", drmInfoURL);
-    let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
-    // Force-disable/hide on WinXP:
-    if (navigator.platform.toLowerCase().startsWith("win")) {
-      emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
-    }
-    if (!emeUIEnabled) {
-      // Don't want to rely on .hidden for the toplevel groupbox because
-      // of the pane hiding/showing code potentially interfering:
-      document.getElementById("drmGroup").setAttribute("style", "display: none !important");
-    }
-  },
-
-  // UTILITY FUNCTIONS
-
-  /**
-   * Utility function to enable/disable the button specified by aButtonID based
-   * on the value of the Boolean preference specified by aPreferenceID.
-   */
-  updateButtons(aButtonID, aPreferenceID) {
-    var button = document.getElementById(aButtonID);
-    var preference = document.getElementById(aPreferenceID);
-    button.disabled = preference.value != true;
-    return undefined;
-  },
-
-  // BEGIN UI CODE
-
-  /*
-   * Preferences:
-   *
-   * dom.disable_open_during_load
-   * - true if popups are blocked by default, false otherwise
-   */
-
-  // NOTIFICATIONS
-
-  /**
-   * Displays the notifications exceptions dialog where specific site notification
-   * preferences can be set.
-   */
-  showNotificationExceptions() {
-    let bundlePreferences = document.getElementById("bundlePreferences");
-    let params = { permissionType: "desktop-notification" };
-    params.windowTitle = bundlePreferences.getString("notificationspermissionstitle");
-    params.introText = bundlePreferences.getString("notificationspermissionstext4");
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    "resizable=yes", params);
-
-    try {
-      Services.telemetry
-              .getHistogramById("WEB_NOTIFICATION_EXCEPTIONS_OPENED").add();
-    } catch (e) {}
-  },
-
-
-  // POP-UPS
-
-  /**
-   * Displays the popup exceptions dialog where specific site popup preferences
-   * can be set.
-   */
-  showPopupExceptions() {
-    var bundlePreferences = document.getElementById("bundlePreferences");
-    var params = { blockVisible: false, sessionVisible: false, allowVisible: true,
-                   prefilledHost: "", permissionType: "popup" }
-    params.windowTitle = bundlePreferences.getString("popuppermissionstitle2");
-    params.introText = bundlePreferences.getString("popuppermissionstext");
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    "resizable=yes", params);
-  },
-
-  // FONTS
-
-  /**
-   * Populates the default font list in UI.
-   */
-  _rebuildFonts() {
-    var preferences = document.getElementById("contentPreferences");
-    // Ensure preferences are "visible" to ensure bindings work.
-    preferences.hidden = false;
-    // Force flush:
-    preferences.clientHeight;
-    var langGroupPref = document.getElementById("font.language.group");
-    this._selectDefaultLanguageGroup(langGroupPref.value,
-                                     this._readDefaultFontTypeForLanguage(langGroupPref.value) == "serif");
-  },
-
-  /**
-   *
-   */
-  _selectDefaultLanguageGroup(aLanguageGroup, aIsSerif) {
-    const kFontNameFmtSerif         = "font.name.serif.%LANG%";
-    const kFontNameFmtSansSerif     = "font.name.sans-serif.%LANG%";
-    const kFontNameListFmtSerif     = "font.name-list.serif.%LANG%";
-    const kFontNameListFmtSansSerif = "font.name-list.sans-serif.%LANG%";
-    const kFontSizeFmtVariable      = "font.size.variable.%LANG%";
-
-    var preferences = document.getElementById("contentPreferences");
-    var prefs = [{ format: aIsSerif ? kFontNameFmtSerif : kFontNameFmtSansSerif,
-                   type: "fontname",
-                   element: "defaultFont",
-                   fonttype: aIsSerif ? "serif" : "sans-serif" },
-                 { format: aIsSerif ? kFontNameListFmtSerif : kFontNameListFmtSansSerif,
-                   type: "unichar",
-                   element: null,
-                   fonttype: aIsSerif ? "serif" : "sans-serif" },
-                 { format: kFontSizeFmtVariable,
-                   type: "int",
-                   element: "defaultFontSize",
-                   fonttype: null }];
-    for (var i = 0; i < prefs.length; ++i) {
-      var preference = document.getElementById(prefs[i].format.replace(/%LANG%/, aLanguageGroup));
-      if (!preference) {
-        preference = document.createElement("preference");
-        var name = prefs[i].format.replace(/%LANG%/, aLanguageGroup);
-        preference.id = name;
-        preference.setAttribute("name", name);
-        preference.setAttribute("type", prefs[i].type);
-        preferences.appendChild(preference);
-      }
-
-      if (!prefs[i].element)
-        continue;
-
-      var element = document.getElementById(prefs[i].element);
-      if (element) {
-        element.setAttribute("preference", preference.id);
-
-        if (prefs[i].fonttype)
-          FontBuilder.buildFontList(aLanguageGroup, prefs[i].fonttype, element);
-
-        preference.setElementValue(element);
-      }
-    }
-  },
-
-  /**
-   * Returns the type of the current default font for the language denoted by
-   * aLanguageGroup.
-   */
-  _readDefaultFontTypeForLanguage(aLanguageGroup) {
-    const kDefaultFontType = "font.default.%LANG%";
-    var defaultFontTypePref = kDefaultFontType.replace(/%LANG%/, aLanguageGroup);
-    var preference = document.getElementById(defaultFontTypePref);
-    if (!preference) {
-      preference = document.createElement("preference");
-      preference.id = defaultFontTypePref;
-      preference.setAttribute("name", defaultFontTypePref);
-      preference.setAttribute("type", "string");
-      preference.setAttribute("onchange", "gContentPane._rebuildFonts();");
-      document.getElementById("contentPreferences").appendChild(preference);
-    }
-    return preference.value;
-  },
-
-  /**
-   * Displays the fonts dialog, where web page font names and sizes can be
-   * configured.
-   */
-  configureFonts() {
-    gSubDialog.open("chrome://browser/content/preferences/fonts.xul", "resizable=no");
-  },
-
-  /**
-   * Displays the colors dialog, where default web page/link/etc. colors can be
-   * configured.
-   */
-  configureColors() {
-    gSubDialog.open("chrome://browser/content/preferences/colors.xul", "resizable=no");
-  },
-
-  // LANGUAGES
-
-  /**
-   * Shows a dialog in which the preferred language for web content may be set.
-   */
-  showLanguages() {
-    gSubDialog.open("chrome://browser/content/preferences/languages.xul");
-  },
-
-  /**
-   * Displays the translation exceptions dialog where specific site and language
-   * translation preferences can be set.
-   */
-  showTranslationExceptions() {
-    gSubDialog.open("chrome://browser/content/preferences/translation.xul");
-  },
-
-  openTranslationProviderAttribution() {
-    Components.utils.import("resource:///modules/translation/Translation.jsm");
-    Translation.openProviderAttribution();
-  },
-
-  toggleDoNotDisturbNotifications(event) {
-    AlertsServiceDND.manualDoNotDisturb = event.target.checked;
-  },
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content/content.xul
+++ /dev/null
@@ -1,207 +0,0 @@
-# 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/.
-
-<!-- Content panel -->
-
-<preferences id="contentPreferences" hidden="true" data-category="paneContent">
-
-  <!-- DRM content -->
-  <preference id="media.eme.enabled"
-              name="media.eme.enabled"
-              type="bool"/>
-
-  <!-- Popups -->
-  <preference id="dom.disable_open_during_load"
-              name="dom.disable_open_during_load"
-              type="bool"/>
-
-  <!-- Fonts -->
-  <preference id="font.language.group"
-              name="font.language.group"
-              type="wstring"/>
-
-  <!-- Languages -->
-  <preference id="browser.translation.detectLanguage"
-              name="browser.translation.detectLanguage"
-              type="bool"/>
-</preferences>
-
-<script type="application/javascript"
-        src="chrome://mozapps/content/preferences/fontbuilder.js"/>
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content/content.js"/>
-
-<hbox id="header-content"
-      class="header"
-      hidden="true"
-      data-category="paneContent">
-  <label class="header-name" flex="1">&paneContent.title;</label>
-  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
-</hbox>
-
-<groupbox id="drmGroup" data-category="paneContent" hidden="true">
-  <caption><label>&drmContent.label;</label></caption>
-  <grid id="contentGrid2">
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows id="contentRows-2">
-      <row id="playDRMContentRow">
-        <hbox align="center">
-          <checkbox id="playDRMContent" preference="media.eme.enabled"
-                    label="&playDRMContent.label;" accesskey="&playDRMContent.accesskey;"/>
-          <label id="playDRMContentLink" class="learnMore text-link" value="&playDRMContent.learnMore.label;"/>
-        </hbox>
-      </row>
-    </rows>
-  </grid>
-</groupbox>
-
-<groupbox id="notificationsGroup" data-category="paneContent" hidden="true">
-  <caption><label>&notificationsPolicy.label;</label></caption>
-  <grid>
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows>
-      <row id="notificationsPolicyRow" align="center">
-        <hbox align="start">
-          <label id="notificationsPolicy">&notificationsPolicyDesc4.label;</label>
-          <label id="notificationsPolicyLearnMore"
-                 class="learnMore text-link"
-                 value="&notificationsPolicyLearnMore.label;"/>
-        </hbox>
-        <hbox pack="end">
-          <button id="notificationsPolicyButton" label="&notificationsPolicyButton.label;"
-                  accesskey="&notificationsPolicyButton.accesskey;"/>
-        </hbox>
-      </row>
-      <row id="notificationsDoNotDisturbRow" hidden="true">
-        <vbox align="start">
-          <checkbox id="notificationsDoNotDisturb" label="&notificationsDoNotDisturb.label;"
-                    accesskey="&notificationsDoNotDisturb.accesskey;"/>
-          <label id="notificationsDoNotDisturbDetails"
-                 class="indent"
-                 value="&notificationsDoNotDisturbDetails.value;"/>
-        </vbox>
-      </row>
-    </rows>
-  </grid>
-</groupbox>
-
-<groupbox id="miscGroup" data-category="paneContent" hidden="true">
-  <caption><label>&popups.label;</label></caption>
-  <grid id="contentGrid">
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows id="contentRows-1">
-      <row id="popupPolicyRow">
-        <vbox align="start">
-          <checkbox id="popupPolicy" preference="dom.disable_open_during_load"
-                    label="&blockPopups.label;" accesskey="&blockPopups.accesskey;"
-                    onsyncfrompreference="return gContentPane.updateButtons('popupPolicyButton',
-                                                                        'dom.disable_open_during_load');"/>
-        </vbox>
-        <hbox pack="end">
-          <button id="popupPolicyButton" label="&popupExceptions.label;"
-                  accesskey="&popupExceptions.accesskey;"/>
-        </hbox>
-      </row>
-    </rows>
-  </grid>
-</groupbox>
-
-<!-- Fonts and Colors -->
-<groupbox id="fontsGroup" data-category="paneContent" hidden="true">
-  <caption><label>&fontsAndColors.label;</label></caption>
-
-  <grid id="fontsGrid">
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows id="fontsRows">
-      <row id="fontRow">
-        <hbox align="center">
-          <label control="defaultFont" accesskey="&defaultFont.accesskey;">&defaultFont.label;</label>
-          <menulist id="defaultFont" delayprefsave="true" onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
-          <label id="defaultFontSizeLabel" control="defaultFontSize" accesskey="&defaultSize.accesskey;">&defaultSize.label;</label>
-          <menulist id="defaultFontSize" delayprefsave="true">
-            <menupopup>
-              <menuitem value="9" label="9"/>
-              <menuitem value="10" label="10"/>
-              <menuitem value="11" label="11"/>
-              <menuitem value="12" label="12"/>
-              <menuitem value="13" label="13"/>
-              <menuitem value="14" label="14"/>
-              <menuitem value="15" label="15"/>
-              <menuitem value="16" label="16"/>
-              <menuitem value="17" label="17"/>
-              <menuitem value="18" label="18"/>
-              <menuitem value="20" label="20"/>
-              <menuitem value="22" label="22"/>
-              <menuitem value="24" label="24"/>
-              <menuitem value="26" label="26"/>
-              <menuitem value="28" label="28"/>
-              <menuitem value="30" label="30"/>
-              <menuitem value="32" label="32"/>
-              <menuitem value="34" label="34"/>
-              <menuitem value="36" label="36"/>
-              <menuitem value="40" label="40"/>
-              <menuitem value="44" label="44"/>
-              <menuitem value="48" label="48"/>
-              <menuitem value="56" label="56"/>
-              <menuitem value="64" label="64"/>
-              <menuitem value="72" label="72"/>
-            </menupopup>
-          </menulist>
-        </hbox>
-        <button id="advancedFonts" icon="select-font"
-                label="&advancedFonts.label;"
-                accesskey="&advancedFonts.accesskey;"/>
-      </row>
-      <row id="colorsRow">
-        <hbox/>
-        <button id="colors" icon="select-color"
-                label="&colors.label;"
-                accesskey="&colors.accesskey;"/>
-      </row>
-    </rows>
-  </grid>
-</groupbox>
-
-<!-- Languages -->
-<groupbox id="languagesGroup" data-category="paneContent" hidden="true">
-  <caption><label>&languages.label;</label></caption>
-
-  <hbox id="languagesBox" align="center">
-    <description flex="1" control="chooseLanguage">&chooseLanguage.label;</description>
-    <button id="chooseLanguage"
-            label="&chooseButton.label;"
-            accesskey="&chooseButton.accesskey;"/>
-  </hbox>
-
-  <hbox id="translationBox" hidden="true">
-    <hbox align="center" flex="1">
-      <checkbox id="translate" preference="browser.translation.detectLanguage"
-                label="&translateWebPages.label;." accesskey="&translateWebPages.accesskey;"
-                onsyncfrompreference="return gContentPane.updateButtons('translateButton',
-                                              'browser.translation.detectLanguage');"/>
-      <hbox id="bingAttribution" hidden="true">
-        <label>&translation.options.attribution.beforeLogo;</label>
-        <separator orient="vertical" class="thin"/>
-        <image id="translationAttributionImage" aria-label="Microsoft Translator"
-               src="chrome://browser/content/microsoft-translator-attribution.png"/>
-        <separator orient="vertical" class="thin"/>
-        <label>&translation.options.attribution.afterLogo;</label>
-      </hbox>
-    </hbox>
-    <button id="translateButton" label="&translateExceptions.label;"
-            accesskey="&translateExceptions.accesskey;"/>
-  </hbox>
-</groupbox>
rename from browser/components/preferences/in-content-new/findInPage.js
rename to browser/components/preferences/in-content/findInPage.js
--- a/browser/components/preferences/in-content/jar.mn
+++ b/browser/components/preferences/in-content/jar.mn
@@ -3,16 +3,13 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 browser.jar:
    content/browser/preferences/in-content/preferences.js
 *  content/browser/preferences/in-content/preferences.xul
    content/browser/preferences/in-content/subdialogs.js
 
    content/browser/preferences/in-content/main.js
+   content/browser/preferences/in-content/search.js
    content/browser/preferences/in-content/privacy.js
    content/browser/preferences/in-content/containers.js
-   content/browser/preferences/in-content/advanced.js
-   content/browser/preferences/in-content/applications.js
-   content/browser/preferences/in-content/content.js
    content/browser/preferences/in-content/sync.js
-   content/browser/preferences/in-content/security.js
-   content/browser/preferences/in-content/search.js
+   content/browser/preferences/in-content/findInPage.js
--- a/browser/components/preferences/in-content/main.js
+++ b/browser/components/preferences/in-content/main.js
@@ -1,70 +1,208 @@
 /* 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/. */
 
 /* import-globals-from preferences.js */
-
+/* import-globals-from ../../../../toolkit/mozapps/preferences/fontbuilder.js */
+/* import-globals-from ../../../base/content/aboutDialog-appUpdater.js */
+
+Components.utils.import("resource://gre/modules/Services.jsm");
 Components.utils.import("resource://gre/modules/Downloads.jsm");
 Components.utils.import("resource://gre/modules/FileUtils.jsm");
 Components.utils.import("resource:///modules/ShellService.jsm");
 Components.utils.import("resource:///modules/TransientPrefs.jsm");
+Components.utils.import("resource://gre/modules/Services.jsm");
+Components.utils.import("resource://gre/modules/AppConstants.jsm");
+Components.utils.import("resource://gre/modules/DownloadUtils.jsm");
+Components.utils.import("resource://gre/modules/LoadContextInfo.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "CloudStorage",
+                                  "resource://gre/modules/CloudStorage.jsm");
+
+// Constants & Enumeration Values
+const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed";
+const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed";
+const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed";
+const TYPE_PDF = "application/pdf";
+
+const PREF_PDFJS_DISABLED = "pdfjs.disabled";
+const TOPIC_PDFJS_HANDLER_CHANGED = "pdfjs:handlerChanged";
+
+const PREF_DISABLED_PLUGIN_TYPES = "plugin.disable_full_page_plugin_for_types";
+
+// Preferences that affect which entries to show in the list.
+const PREF_SHOW_PLUGINS_IN_LIST = "browser.download.show_plugins_in_list";
+const PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS =
+  "browser.download.hide_plugins_without_extensions";
+
+/*
+ * Preferences where we store handling information about the feed type.
+ *
+ * browser.feeds.handler
+ * - "bookmarks", "reader" (clarified further using the .default preference),
+ *   or "ask" -- indicates the default handler being used to process feeds;
+ *   "bookmarks" is obsolete; to specify that the handler is bookmarks,
+ *   set browser.feeds.handler.default to "bookmarks";
+ *
+ * browser.feeds.handler.default
+ * - "bookmarks", "client" or "web" -- indicates the chosen feed reader used
+ *   to display feeds, either transiently (i.e., when the "use as default"
+ *   checkbox is unchecked, corresponds to when browser.feeds.handler=="ask")
+ *   or more permanently (i.e., the item displayed in the dropdown in Feeds
+ *   preferences)
+ *
+ * browser.feeds.handler.webservice
+ * - the URL of the currently selected web service used to read feeds
+ *
+ * browser.feeds.handlers.application
+ * - nsIFile, stores the current client-side feed reading app if one has
+ *   been chosen
+ */
+const PREF_FEED_SELECTED_APP    = "browser.feeds.handlers.application";
+const PREF_FEED_SELECTED_WEB    = "browser.feeds.handlers.webservice";
+const PREF_FEED_SELECTED_ACTION = "browser.feeds.handler";
+const PREF_FEED_SELECTED_READER = "browser.feeds.handler.default";
+
+const PREF_VIDEO_FEED_SELECTED_APP    = "browser.videoFeeds.handlers.application";
+const PREF_VIDEO_FEED_SELECTED_WEB    = "browser.videoFeeds.handlers.webservice";
+const PREF_VIDEO_FEED_SELECTED_ACTION = "browser.videoFeeds.handler";
+const PREF_VIDEO_FEED_SELECTED_READER = "browser.videoFeeds.handler.default";
+
+const PREF_AUDIO_FEED_SELECTED_APP    = "browser.audioFeeds.handlers.application";
+const PREF_AUDIO_FEED_SELECTED_WEB    = "browser.audioFeeds.handlers.webservice";
+const PREF_AUDIO_FEED_SELECTED_ACTION = "browser.audioFeeds.handler";
+const PREF_AUDIO_FEED_SELECTED_READER = "browser.audioFeeds.handler.default";
+
+// The nsHandlerInfoAction enumeration values in nsIHandlerInfo identify
+// the actions the application can take with content of various types.
+// But since nsIHandlerInfo doesn't support plugins, there's no value
+// identifying the "use plugin" action, so we use this constant instead.
+const kActionUsePlugin = 5;
+
+const ICON_URL_APP = AppConstants.platform == "linux" ?
+                     "moz-icon://dummy.exe?size=16" :
+                     "chrome://browser/skin/preferences/application.png";
+
+// For CSS. Can be one of "ask", "save", "plugin" or "feed". If absent, the icon URL
+// was set by us to a custom handler icon and CSS should not try to override it.
+const APP_ICON_ATTR_NAME = "appHandlerIcon";
 
 XPCOMUtils.defineLazyModuleGetter(this, "OS",
                                   "resource://gre/modules/osfile.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "CloudStorage",
-                                  "resource://gre/modules/CloudStorage.jsm");
 
 if (AppConstants.E10S_TESTING_ONLY) {
   XPCOMUtils.defineLazyModuleGetter(this, "UpdateUtils",
                                     "resource://gre/modules/UpdateUtils.jsm");
 }
 
 if (AppConstants.MOZ_DEV_EDITION) {
   XPCOMUtils.defineLazyModuleGetter(this, "fxAccounts",
                                     "resource://gre/modules/FxAccounts.jsm");
 }
 
 var gMainPane = {
+  // The set of types the app knows how to handle.  A hash of HandlerInfoWrapper
+  // objects, indexed by type.
+  _handledTypes: {},
+
+  // The list of types we can show, sorted by the sort column/direction.
+  // An array of HandlerInfoWrapper objects.  We build this list when we first
+  // load the data and then rebuild it when users change a pref that affects
+  // what types we can show or change the sort column/direction.
+  // Note: this isn't necessarily the list of types we *will* show; if the user
+  // provides a filter string, we'll only show the subset of types in this list
+  // that match that string.
+  _visibleTypes: [],
+
+  // A count of the number of times each visible type description appears.
+  // We use these counts to determine whether or not to annotate descriptions
+  // with their types to distinguish duplicate descriptions from each other.
+  // A hash of integer counts, indexed by string description.
+  _visibleTypeDescriptionCount: {},
+
+
+  // Convenience & Performance Shortcuts
+
+  // These get defined by init().
+  _brandShortName: null,
+  _prefsBundle: null,
+  _list: null,
+  _filter: null,
+
+  _prefSvc: Cc["@mozilla.org/preferences-service;1"].
+            getService(Ci.nsIPrefBranch),
+
+  _mimeSvc: Cc["@mozilla.org/mime;1"].
+            getService(Ci.nsIMIMEService),
+
+  _helperAppSvc: Cc["@mozilla.org/uriloader/external-helper-app-service;1"].
+                 getService(Ci.nsIExternalHelperAppService),
+
+  _handlerSvc: Cc["@mozilla.org/uriloader/handler-service;1"].
+               getService(Ci.nsIHandlerService),
+
+  _ioSvc: Cc["@mozilla.org/network/io-service;1"].
+          getService(Ci.nsIIOService),
+
+  _backoffIndex: 0,
+
   /**
    * Initialization of this.
    */
   init() {
     function setEventListener(aId, aEventType, aCallback) {
       document.getElementById(aId)
               .addEventListener(aEventType, aCallback.bind(gMainPane));
     }
 
     if (AppConstants.HAVE_SHELL_SERVICE) {
       this.updateSetDefaultBrowser();
-      if (AppConstants.platform == "win") {
-        // In Windows 8 we launch the control panel since it's the only
-        // way to get all file type association prefs. So we don't know
-        // when the user will select the default.  We refresh here periodically
-        // in case the default changes. On other Windows OS's defaults can also
-        // be set while the prefs are open.
-        window.setInterval(this.updateSetDefaultBrowser.bind(this), 1000);
-      }
+      let win = Services.wm.getMostRecentWindow("navigator:browser");
+
+      // Exponential backoff mechanism will delay the polling times if user doesn't
+      // trigger SetDefaultBrowser for a long time.
+      let backoffTimes = [1000, 1000, 1000, 1000, 2000, 2000, 2000, 5000, 5000, 10000];
+
+      let pollForDefaultBrowser = () => {
+        let uri = win.gBrowser.currentURI.spec;
+
+        if ((uri == "about:preferences" || uri == "about:preferences#general") &&
+            document.visibilityState == "visible") {
+          this.updateSetDefaultBrowser();
+        }
+
+        // approximately a "requestIdleInterval"
+        window.setTimeout(() => {
+          window.requestIdleCallback(pollForDefaultBrowser);
+        }, backoffTimes[this._backoffIndex + 1 < backoffTimes.length ?
+                        this._backoffIndex++ : backoffTimes.length - 1]);
+      };
+
+      window.setTimeout(() => {
+        window.requestIdleCallback(pollForDefaultBrowser);
+      }, backoffTimes[this._backoffIndex]);
     }
 
+    this.initBrowserContainers();
     this.buildContentProcessCountMenuList();
+
+    let performanceSettingsLink = document.getElementById("performanceSettingsLearnMore");
+    let performanceSettingsUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "performance";
+    performanceSettingsLink.setAttribute("href", performanceSettingsUrl);
+
     this.updateDefaultPerformanceSettingsPref();
 
     let defaultPerformancePref =
       document.getElementById("browser.preferences.defaultPerformanceSettings.enabled");
     defaultPerformancePref.addEventListener("change", () => {
       this.updatePerformanceSettingsBox({duringChangeEvent: true});
     });
     this.updatePerformanceSettingsBox({duringChangeEvent: false});
 
-    let performanceSettingsLink = document.getElementById("performanceSettingsLearnMore");
-    let performanceSettingsUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "performance";
-    performanceSettingsLink.setAttribute("href", performanceSettingsUrl);
-
     // set up the "use current page" label-changing listener
     this._updateUseCurrentButton();
     window.addEventListener("focus", this._updateUseCurrentButton.bind(this));
 
     this.updateBrowserStartupLastSession();
 
     if (AppConstants.platform == "win") {
       // Functionality for "Show tabs in taskbar" on Windows 7 and up.
@@ -83,32 +221,63 @@ var gMainPane = {
     // re-enable the warnings.
     if (!TransientPrefs.prefShouldBeVisible("browser.tabs.warnOnClose"))
       document.getElementById("warnCloseMultiple").hidden = true;
     if (!TransientPrefs.prefShouldBeVisible("browser.tabs.warnOnOpen"))
       document.getElementById("warnOpenMany").hidden = true;
 
     setEventListener("browser.privatebrowsing.autostart", "change",
                      gMainPane.updateBrowserStartupLastSession);
-    setEventListener("browser.download.dir", "change",
-                     gMainPane.displayDownloadDirPref);
-    setEventListener("saveWhere", "command",
-                     gMainPane.handleSaveToCommand);
     if (AppConstants.HAVE_SHELL_SERVICE) {
       setEventListener("setDefaultButton", "command",
                        gMainPane.setDefaultBrowser);
     }
     setEventListener("useCurrent", "command",
                      gMainPane.setHomePageToCurrent);
     setEventListener("useBookmark", "command",
                      gMainPane.setHomePageToBookmark);
     setEventListener("restoreDefaultHomePage", "command",
                      gMainPane.restoreDefaultHomePage);
-    setEventListener("chooseFolder", "command",
-                     gMainPane.chooseFolder);
+    setEventListener("chooseLanguage", "command",
+      gMainPane.showLanguages);
+    setEventListener("translationAttributionImage", "click",
+      gMainPane.openTranslationProviderAttribution);
+    setEventListener("translateButton", "command",
+      gMainPane.showTranslationExceptions);
+    setEventListener("font.language.group", "change",
+      gMainPane._rebuildFonts);
+    setEventListener("advancedFonts", "command",
+      gMainPane.configureFonts);
+    setEventListener("colors", "command",
+      gMainPane.configureColors);
+    setEventListener("layers.acceleration.disabled", "change",
+      gMainPane.updateHardwareAcceleration);
+    setEventListener("connectionSettings", "command",
+      gMainPane.showConnections);
+    setEventListener("browserContainersCheckbox", "command",
+      gMainPane.checkBrowserContainers);
+    setEventListener("browserContainersSettings", "command",
+      gMainPane.showContainerSettings);
+
+    // Initializes the fonts dropdowns displayed in this pane.
+    this._rebuildFonts();
+
+    this.updateOnScreenKeyboardVisibility();
+
+    // Show translation preferences if we may:
+    const prefName = "browser.translation.ui.show";
+    if (Services.prefs.getBoolPref(prefName)) {
+      let row = document.getElementById("translationBox");
+      row.removeAttribute("hidden");
+      // Showing attribution only for Bing Translator.
+      Components.utils.import("resource:///modules/translation/Translation.jsm");
+      if (Translation.translationEngine == "bing") {
+        document.getElementById("bingAttribution").removeAttribute("hidden");
+      }
+    }
 
     if (AppConstants.E10S_TESTING_ONLY) {
       setEventListener("e10sAutoStart", "command",
                        gMainPane.enableE10SChange);
       let e10sCheckbox = document.getElementById("e10sAutoStart");
 
       let e10sPref = document.getElementById("browser.tabs.remote.autostart");
       let e10sTempPref = document.getElementById("e10sTempPref");
@@ -133,25 +302,187 @@ var gMainPane = {
       let separateProfileModeCheckbox = document.getElementById("separateProfileMode");
       setEventListener("getStarted", "click", gMainPane.onGetStarted);
 
       OS.File.stat(ignoreSeparateProfile).then(() => separateProfileModeCheckbox.checked = false,
                                                () => separateProfileModeCheckbox.checked = true);
 
       fxAccounts.getSignedInUser().then(data => {
         document.getElementById("getStarted").selectedIndex = data ? 1 : 0;
-      });
+      })
+      .catch(Cu.reportError);
+    }
+
+    // Initialize the Firefox Updates section.
+    let version = AppConstants.MOZ_APP_VERSION_DISPLAY;
+
+    // Include the build ID if this is an "a#" (nightly) build
+    if (/a\d+$/.test(version)) {
+      let buildID = Services.appinfo.appBuildID;
+      let year = buildID.slice(0, 4);
+      let month = buildID.slice(4, 6);
+      let day = buildID.slice(6, 8);
+      version += ` (${year}-${month}-${day})`;
+    }
+
+    // Append "(32-bit)" or "(64-bit)" build architecture to the version number:
+    let bundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
+    let archResource = Services.appinfo.is64Bit
+                       ? "aboutDialog.architecture.sixtyFourBit"
+                       : "aboutDialog.architecture.thirtyTwoBit";
+    let arch = bundle.GetStringFromName(archResource);
+    version += ` (${arch})`;
+
+    document.getElementById("version").textContent = version;
+
+    // Show a release notes link if we have a URL.
+    let relNotesLink = document.getElementById("releasenotes");
+    let relNotesPrefType = Services.prefs.getPrefType("app.releaseNotesURL");
+    if (relNotesPrefType != Services.prefs.PREF_INVALID) {
+      let relNotesURL = Services.urlFormatter.formatURLPref("app.releaseNotesURL");
+      if (relNotesURL != "about:blank") {
+        relNotesLink.href = relNotesURL;
+        relNotesLink.hidden = false;
+      }
+    }
+
+    let distroId = Services.prefs.getCharPref("distribution.id", "");
+    if (distroId) {
+      let distroVersion = Services.prefs.getCharPref("distribution.version");
+
+      let distroIdField = document.getElementById("distributionId");
+      distroIdField.value = distroId + " - " + distroVersion;
+      distroIdField.hidden = false;
+
+      let distroAbout = Services.prefs.getStringPref("distribution.about", "");
+      if (distroAbout) {
+        let distroField = document.getElementById("distribution");
+        distroField.value = distroAbout;
+        distroField.hidden = false;
+      }
+    }
+
+    if (AppConstants.MOZ_UPDATER) {
+      gAppUpdater = new appUpdater();
+      let onUnload = () => {
+        window.removeEventListener("unload", onUnload);
+        Services.prefs.removeObserver("app.update.", this);
+      };
+      window.addEventListener("unload", onUnload);
+      Services.prefs.addObserver("app.update.", this);
+      this.updateReadPrefs();
+      setEventListener("updateRadioGroup", "command",
+                       gMainPane.updateWritePrefs);
+      setEventListener("showUpdateHistory", "command",
+                       gMainPane.showUpdates);
     }
 
+    // Initilize Application section.
+    // Initialize shortcuts to some commonly accessed elements & values.
+    this._brandShortName =
+      document.getElementById("bundleBrand").getString("brandShortName");
+    this._prefsBundle = document.getElementById("bundlePreferences");
+    this._list = document.getElementById("handlersView");
+    this._filter = document.getElementById("filter");
+
+    // Observe preferences that influence what we display so we can rebuild
+    // the view when they change.
+    this._prefSvc.addObserver(PREF_SHOW_PLUGINS_IN_LIST, this);
+    this._prefSvc.addObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this);
+    this._prefSvc.addObserver(PREF_FEED_SELECTED_APP, this);
+    this._prefSvc.addObserver(PREF_FEED_SELECTED_WEB, this);
+    this._prefSvc.addObserver(PREF_FEED_SELECTED_ACTION, this);
+    this._prefSvc.addObserver(PREF_FEED_SELECTED_READER, this);
+
+    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_APP, this);
+    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_WEB, this);
+    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_ACTION, this);
+    this._prefSvc.addObserver(PREF_VIDEO_FEED_SELECTED_READER, this);
+
+    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_APP, this);
+    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_WEB, this);
+    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_ACTION, this);
+    this._prefSvc.addObserver(PREF_AUDIO_FEED_SELECTED_READER, this);
+
+    setEventListener("filter", "command", gMainPane.filter);
+    setEventListener("handlersView", "select",
+      gMainPane.onSelectionChanged);
+    setEventListener("typeColumn", "click", gMainPane.sort);
+    setEventListener("actionColumn", "click", gMainPane.sort);
+    setEventListener("chooseFolder", "command", gMainPane.chooseFolder);
+    setEventListener("browser.download.dir", "change", gMainPane.displayDownloadDirPref);
+    setEventListener("saveWhere", "command", gMainPane.handleSaveToCommand);
+
+    // Listen for window unload so we can remove our preference observers.
+    window.addEventListener("unload", this);
+
+    // Figure out how we should be sorting the list.  We persist sort settings
+    // across sessions, so we can't assume the default sort column/direction.
+    // XXX should we be using the XUL sort service instead?
+    if (document.getElementById("actionColumn").hasAttribute("sortDirection")) {
+      this._sortColumn = document.getElementById("actionColumn");
+      // The typeColumn element always has a sortDirection attribute,
+      // either because it was persisted or because the default value
+      // from the xul file was used.  If we are sorting on the other
+      // column, we should remove it.
+      document.getElementById("typeColumn").removeAttribute("sortDirection");
+    } else {
+      this._sortColumn = document.getElementById("typeColumn");
+    }
+
+    // Load the data and build the list of handlers.
+    // By doing this in a timeout, we let the preferences dialog resize itself
+    // to an appropriate size before we add a bunch of items to the list.
+    // Otherwise, if there are many items, and the Applications prefpane
+    // is the one that gets displayed when the user first opens the dialog,
+    // the dialog might stretch too much in an attempt to fit them all in.
+    // XXX Shouldn't we perhaps just set a max-height on the richlistbox?
+    var _delayedPaneLoad = function(self) {
+      self._loadData();
+      self._rebuildVisibleTypes();
+      self._sortVisibleTypes();
+      self._rebuildView();
+    }
+    setTimeout(_delayedPaneLoad, 0, this);
+
+    let browserBundle = document.getElementById("browserBundle");
+    appendSearchKeywords("browserContainersSettings", [
+      browserBundle.getString("userContextPersonal.label"),
+      browserBundle.getString("userContextWork.label"),
+      browserBundle.getString("userContextBanking.label"),
+      browserBundle.getString("userContextShopping.label"),
+    ]);
+
     // Notify observers that the UI is now ready
     Components.classes["@mozilla.org/observer-service;1"]
               .getService(Components.interfaces.nsIObserverService)
               .notifyObservers(window, "main-pane-loaded");
   },
 
+  /**
+   * Show the Containers UI depending on the privacy.userContext.ui.enabled pref.
+   */
+  initBrowserContainers() {
+    if (!Services.prefs.getBoolPref("privacy.userContext.ui.enabled")) {
+      // The browserContainersGroup element has its own internal padding that
+      // is visible even if the browserContainersbox is visible, so hide the whole
+      // groupbox if the feature is disabled to prevent a gap in the preferences.
+      document.getElementById("browserContainersbox").setAttribute("data-hidden-from-search", "true");
+      return;
+    }
+
+    let link = document.getElementById("browserContainersLearnMore");
+    link.href = Services.urlFormatter.formatURLPref("app.support.baseURL") + "containers";
+
+    document.getElementById("browserContainersbox").hidden = false;
+
+    document.getElementById("browserContainersCheckbox").checked =
+      Services.prefs.getBoolPref("privacy.userContext.enabled");
+  },
+
   isE10SEnabled() {
     let e10sEnabled;
     try {
       let e10sStatus = Components.classes["@mozilla.org/supports-PRUint64;1"]
                          .createInstance(Ci.nsISupportsPRUint64);
       let appinfo = Services.appinfo.QueryInterface(Ci.nsIObserver);
       appinfo.observe(e10sStatus, "getE10SBlocked", "");
       e10sEnabled = e10sStatus.data < 2;
@@ -413,16 +744,373 @@ var gMainPane = {
   /**
    * Restores the default home page as the user's home page.
    */
   restoreDefaultHomePage() {
     var homePage = document.getElementById("browser.startup.homepage");
     homePage.value = homePage.defaultValue;
   },
 
+  /**
+   * Utility function to enable/disable the button specified by aButtonID based
+   * on the value of the Boolean preference specified by aPreferenceID.
+   */
+  updateButtons(aButtonID, aPreferenceID) {
+    var button = document.getElementById(aButtonID);
+    var preference = document.getElementById(aPreferenceID);
+    button.disabled = preference.value != true;
+    return undefined;
+  },
+
+  /**
+   * Hide/show the "Show my windows and tabs from last time" option based
+   * on the value of the browser.privatebrowsing.autostart pref.
+   */
+  updateBrowserStartupLastSession() {
+    let pbAutoStartPref = document.getElementById("browser.privatebrowsing.autostart");
+    let startupPref = document.getElementById("browser.startup.page");
+    let menu = document.getElementById("browserStartupPage");
+    let option = document.getElementById("browserStartupLastSession");
+    if (pbAutoStartPref.value) {
+      option.setAttribute("disabled", "true");
+      if (option.selected) {
+        menu.selectedItem = document.getElementById("browserStartupHomePage");
+      }
+    } else {
+      option.removeAttribute("disabled");
+      startupPref.updateElements(); // select the correct index in the startup menulist
+    }
+  },
+
+  // TABS
+
+  /*
+   * Preferences:
+   *
+   * browser.link.open_newwindow - int
+   *   Determines where links targeting new windows should open.
+   *   Values:
+   *     1 - Open in the current window or tab.
+   *     2 - Open in a new window.
+   *     3 - Open in a new tab in the most recent window.
+   * browser.tabs.loadInBackground - bool
+   *   True - Whether browser should switch to a new tab opened from a link.
+   * browser.tabs.warnOnClose - bool
+   *   True - If when closing a window with multiple tabs the user is warned and
+   *          allowed to cancel the action, false to just close the window.
+   * browser.tabs.warnOnOpen - bool
+   *   True - Whether the user should be warned when trying to open a lot of
+   *          tabs at once (e.g. a large folder of bookmarks), allowing to
+   *          cancel the action.
+   * browser.taskbar.previews.enable - bool
+   *   True - Tabs are to be shown in Windows 7 taskbar.
+   *   False - Only the window is to be shown in Windows 7 taskbar.
+   */
+
+  /**
+   * Determines where a link which opens a new window will open.
+   *
+   * @returns |true| if such links should be opened in new tabs
+   */
+  readLinkTarget() {
+    var openNewWindow = document.getElementById("browser.link.open_newwindow");
+    return openNewWindow.value != 2;
+  },
+
+  /**
+   * Determines where a link which opens a new window will open.
+   *
+   * @returns 2 if such links should be opened in new windows,
+   *          3 if such links should be opened in new tabs
+   */
+  writeLinkTarget() {
+    var linkTargeting = document.getElementById("linkTargeting");
+    return linkTargeting.checked ? 3 : 2;
+  },
+  /*
+   * Preferences:
+   *
+   * browser.shell.checkDefault
+   * - true if a default-browser check (and prompt to make it so if necessary)
+   *   occurs at startup, false otherwise
+   */
+
+  /**
+   * Show button for setting browser as default browser or information that
+   * browser is already the default browser.
+   */
+  updateSetDefaultBrowser() {
+    if (AppConstants.HAVE_SHELL_SERVICE) {
+      let shellSvc = getShellService();
+      let defaultBrowserBox = document.getElementById("defaultBrowserBox");
+      if (!shellSvc) {
+        defaultBrowserBox.hidden = true;
+        return;
+      }
+      let setDefaultPane = document.getElementById("setDefaultPane");
+      let isDefault = shellSvc.isDefaultBrowser(false, true);
+      setDefaultPane.selectedIndex = isDefault ? 1 : 0;
+      let alwaysCheck = document.getElementById("alwaysCheckDefault");
+      alwaysCheck.disabled = alwaysCheck.disabled ||
+                             isDefault && alwaysCheck.checked;
+    }
+  },
+
+  /**
+   * Set browser as the operating system default browser.
+   */
+  setDefaultBrowser() {
+    if (AppConstants.HAVE_SHELL_SERVICE) {
+      let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
+      alwaysCheckPref.value = true;
+
+      // Reset exponential backoff delay time in order to do visual update in pollForDefaultBrowser.
+      this._backoffIndex = 0;
+
+      let shellSvc = getShellService();
+      if (!shellSvc)
+        return;
+      try {
+        shellSvc.setDefaultBrowser(true, false);
+      } catch (ex) {
+        Cu.reportError(ex);
+        return;
+      }
+
+      let selectedIndex = shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
+      document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
+    }
+  },
+
+  /**
+   * Shows a dialog in which the preferred language for web content may be set.
+   */
+  showLanguages() {
+    gSubDialog.open("chrome://browser/content/preferences/languages.xul");
+  },
+
+  /**
+   * Displays the translation exceptions dialog where specific site and language
+   * translation preferences can be set.
+   */
+  showTranslationExceptions() {
+    gSubDialog.open("chrome://browser/content/preferences/translation.xul");
+  },
+
+  openTranslationProviderAttribution() {
+    Components.utils.import("resource:///modules/translation/Translation.jsm");
+    Translation.openProviderAttribution();
+  },
+
+  /**
+   * Displays the fonts dialog, where web page font names and sizes can be
+   * configured.
+   */
+  configureFonts() {
+    gSubDialog.open("chrome://browser/content/preferences/fonts.xul", "resizable=no");
+  },
+
+  /**
+   * Displays the colors dialog, where default web page/link/etc. colors can be
+   * configured.
+   */
+  configureColors() {
+    gSubDialog.open("chrome://browser/content/preferences/colors.xul", "resizable=no");
+  },
+
+  // NETWORK
+  /**
+   * Displays a dialog in which proxy settings may be changed.
+   */
+  showConnections() {
+    gSubDialog.open("chrome://browser/content/preferences/connection.xul");
+  },
+
+  checkBrowserContainers(event) {
+    let checkbox = document.getElementById("browserContainersCheckbox");
+    if (checkbox.checked) {
+      Services.prefs.setBoolPref("privacy.userContext.enabled", true);
+      return;
+    }
+
+    let count = ContextualIdentityService.countContainerTabs();
+    if (count == 0) {
+      Services.prefs.setBoolPref("privacy.userContext.enabled", false);
+      return;
+    }
+
+    let bundlePreferences = document.getElementById("bundlePreferences");
+
+    let title = bundlePreferences.getString("disableContainersAlertTitle");
+    let message = PluralForm.get(count, bundlePreferences.getString("disableContainersMsg"))
+                            .replace("#S", count)
+    let okButton = PluralForm.get(count, bundlePreferences.getString("disableContainersOkButton"))
+                             .replace("#S", count)
+    let cancelButton = bundlePreferences.getString("disableContainersButton2");
+
+    let buttonFlags = (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
+                      (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1);
+
+    let rv = Services.prompt.confirmEx(window, title, message, buttonFlags,
+                                       okButton, cancelButton, null, null, {});
+    if (rv == 0) {
+      Services.prefs.setBoolPref("privacy.userContext.enabled", false);
+      return;
+    }
+
+    checkbox.checked = true;
+  },
+
+  /**
+   * Displays container panel for customising and adding containers.
+   */
+  showContainerSettings() {
+    gotoPref("containers");
+  },
+
+  /**
+   * ui.osk.enabled
+   * - when set to true, subject to other conditions, we may sometimes invoke
+   *   an on-screen keyboard when a text input is focused.
+   *   (Currently Windows-only, and depending on prefs, may be Windows-8-only)
+   */
+  updateOnScreenKeyboardVisibility() {
+    if (AppConstants.platform == "win") {
+      let minVersion = Services.prefs.getBoolPref("ui.osk.require_win10") ? 10 : 6.2;
+      if (Services.vc.compare(Services.sysinfo.getProperty("version"), minVersion) >= 0) {
+        document.getElementById("useOnScreenKeyboard").hidden = false;
+      }
+    }
+  },
+
+  updateHardwareAcceleration() {
+    // Placeholder for restart on change
+  },
+
+  // FONTS
+
+  /**
+   * Populates the default font list in UI.
+   */
+  _rebuildFonts() {
+    var preferences = document.getElementById("mainPreferences");
+    // Ensure preferences are "visible" to ensure bindings work.
+    preferences.hidden = false;
+    // Force flush:
+    preferences.clientHeight;
+    var langGroupPref = document.getElementById("font.language.group");
+    this._selectDefaultLanguageGroup(langGroupPref.value,
+                                     this._readDefaultFontTypeForLanguage(langGroupPref.value) == "serif");
+  },
+
+  /**
+   * Returns the type of the current default font for the language denoted by
+   * aLanguageGroup.
+   */
+  _readDefaultFontTypeForLanguage(aLanguageGroup) {
+    const kDefaultFontType = "font.default.%LANG%";
+    var defaultFontTypePref = kDefaultFontType.replace(/%LANG%/, aLanguageGroup);
+    var preference = document.getElementById(defaultFontTypePref);
+    if (!preference) {
+      preference = document.createElement("preference");
+      preference.id = defaultFontTypePref;
+      preference.setAttribute("name", defaultFontTypePref);
+      preference.setAttribute("type", "string");
+      preference.setAttribute("onchange", "gMainPane._rebuildFonts();");
+      document.getElementById("mainPreferences").appendChild(preference);
+    }
+    return preference.value;
+  },
+
+  _selectDefaultLanguageGroup(aLanguageGroup, aIsSerif) {
+    const kFontNameFmtSerif         = "font.name.serif.%LANG%";
+    const kFontNameFmtSansSerif     = "font.name.sans-serif.%LANG%";
+    const kFontNameListFmtSerif     = "font.name-list.serif.%LANG%";
+    const kFontNameListFmtSansSerif = "font.name-list.sans-serif.%LANG%";
+    const kFontSizeFmtVariable      = "font.size.variable.%LANG%";
+
+    var preferences = document.getElementById("mainPreferences");
+    var prefs = [{ format: aIsSerif ? kFontNameFmtSerif : kFontNameFmtSansSerif,
+                   type: "fontname",
+                   element: "defaultFont",
+                   fonttype: aIsSerif ? "serif" : "sans-serif" },
+                 { format: aIsSerif ? kFontNameListFmtSerif : kFontNameListFmtSansSerif,
+                   type: "unichar",
+                   element: null,
+                   fonttype: aIsSerif ? "serif" : "sans-serif" },
+                 { format: kFontSizeFmtVariable,
+                   type: "int",
+                   element: "defaultFontSize",
+                   fonttype: null }];
+    for (var i = 0; i < prefs.length; ++i) {
+      var preference = document.getElementById(prefs[i].format.replace(/%LANG%/, aLanguageGroup));
+      if (!preference) {
+        preference = document.createElement("preference");
+        var name = prefs[i].format.replace(/%LANG%/, aLanguageGroup);
+        preference.id = name;
+        preference.setAttribute("name", name);
+        preference.setAttribute("type", prefs[i].type);
+        preferences.appendChild(preference);
+      }
+
+      if (!prefs[i].element)
+        continue;
+
+      var element = document.getElementById(prefs[i].element);
+      if (element) {
+        element.setAttribute("preference", preference.id);
+
+        if (prefs[i].fonttype)
+          FontBuilder.buildFontList(aLanguageGroup, prefs[i].fonttype, element);
+
+        preference.setElementValue(element);
+      }
+    }
+  },
+
+  /**
+   * Stores the original value of the spellchecking preference to enable proper
+   * restoration if unchanged (since we're mapping a tristate onto a checkbox).
+   */
+  _storedSpellCheck: 0,
+
+  /**
+   * Returns true if any spellchecking is enabled and false otherwise, caching
+   * the current value to enable proper pref restoration if the checkbox is
+   * never changed.
+   *
+   * layout.spellcheckDefault
+   * - an integer:
+   *     0  disables spellchecking
+   *     1  enables spellchecking, but only for multiline text fields
+   *     2  enables spellchecking for all text fields
+   */
+  readCheckSpelling() {
+    var pref = document.getElementById("layout.spellcheckDefault");
+    this._storedSpellCheck = pref.value;
+
+    return (pref.value != 0);
+  },
+
+  /**
+   * Returns the value of the spellchecking preference represented by UI,
+   * preserving the preference's "hidden" value if the preference is
+   * unchanged and represents a value not strictly allowed in UI.
+   */
+  writeCheckSpelling() {
+    var checkbox = document.getElementById("checkSpelling");
+    if (checkbox.checked) {
+      if (this._storedSpellCheck == 2) {
+        return 2;
+      }
+      return 1;
+    }
+    return 0;
+  },
+
   updateDefaultPerformanceSettingsPref() {
     let defaultPerformancePref =
       document.getElementById("browser.preferences.defaultPerformanceSettings.enabled");
     let processCountPref = document.getElementById("dom.ipc.processCount");
     let accelerationPref = document.getElementById("layers.acceleration.disabled");
     if (processCountPref.value != processCountPref.defaultValue ||
         accelerationPref.value != accelerationPref.defaultValue) {
       defaultPerformancePref.value = false;
@@ -476,16 +1164,1073 @@ var gMainPane = {
     } else {
       document.getElementById("limitContentProcess").disabled = true;
       document.getElementById("contentProcessCount").disabled = true;
       document.getElementById("contentProcessCountEnabledDescription").hidden = true;
       document.getElementById("contentProcessCountDisabledDescription").hidden = false;
     }
   },
 
+  /*
+   * Preferences:
+   *
+   * app.update.enabled
+   * - true if updates to the application are enabled, false otherwise
+   * app.update.auto
+   * - true if updates should be automatically downloaded and installed and
+   * false if the user should be asked what he wants to do when an update is
+   * available
+   * extensions.update.enabled
+   * - true if updates to extensions and themes are enabled, false otherwise
+   * browser.search.update
+   * - true if updates to search engines are enabled, false otherwise
+   */
+
+  /**
+   * Selects the item of the radiogroup based on the pref values and locked
+   * states.
+   *
+   * UI state matrix for update preference conditions
+   *
+   * UI Components:                              Preferences
+   * Radiogroup                                  i   = app.update.enabled
+   *                                             ii  = app.update.auto
+   *
+   * Disabled states:
+   * Element           pref  value  locked  disabled
+   * radiogroup        i     t/f    f       false
+   *                   i     t/f    *t*     *true*
+   *                   ii    t/f    f       false
+   *                   ii    t/f    *t*     *true*
+   */
+  updateReadPrefs() {
+    if (AppConstants.MOZ_UPDATER) {
+      var enabledPref = document.getElementById("app.update.enabled");
+      var autoPref = document.getElementById("app.update.auto");
+      var radiogroup = document.getElementById("updateRadioGroup");
+
+      if (!enabledPref.value)   // Don't care for autoPref.value in this case.
+        radiogroup.value = "manual";    // 3. Never check for updates.
+      else if (autoPref.value)  // enabledPref.value && autoPref.value
+        radiogroup.value = "auto";      // 1. Automatically install updates
+      else                      // enabledPref.value && !autoPref.value
+        radiogroup.value = "checkOnly"; // 2. Check, but let me choose
+
+      var canCheck = Components.classes["@mozilla.org/updates/update-service;1"].
+                       getService(Components.interfaces.nsIApplicationUpdateService).
+                       canCheckForUpdates;
+      // canCheck is false if the enabledPref is false and locked,
+      // or the binary platform or OS version is not known.
+      // A locked pref is sufficient to disable the radiogroup.
+      radiogroup.disabled = !canCheck || enabledPref.locked || autoPref.locked;
+
+      if (AppConstants.MOZ_MAINTENANCE_SERVICE) {
+        // Check to see if the maintenance service is installed.
+        // If it is don't show the preference at all.
+        var installed;
+        try {
+          var wrk = Components.classes["@mozilla.org/windows-registry-key;1"]
+                    .createInstance(Components.interfaces.nsIWindowsRegKey);
+          wrk.open(wrk.ROOT_KEY_LOCAL_MACHINE,
+                   "SOFTWARE\\Mozilla\\MaintenanceService",
+                   wrk.ACCESS_READ | wrk.WOW64_64);
+          installed = wrk.readIntValue("Installed");
+          wrk.close();
+        } catch (e) {
+        }
+        if (installed != 1) {
+          document.getElementById("useService").hidden = true;
+        }
+      }
+    }
+  },
+
+  /**
+   * Sets the pref values based on the selected item of the radiogroup.
+   */
+  updateWritePrefs() {
+    if (AppConstants.MOZ_UPDATER) {
+      var enabledPref = document.getElementById("app.update.enabled");
+      var autoPref = document.getElementById("app.update.auto");
+      var radiogroup = document.getElementById("updateRadioGroup");
+      switch (radiogroup.value) {
+        case "auto":      // 1. Automatically install updates for Desktop only
+          enabledPref.value = true;
+          autoPref.value = true;
+          break;
+        case "checkOnly": // 2. Check, but let me choose
+          enabledPref.value = true;
+          autoPref.value = false;
+          break;
+        case "manual":    // 3. Never check for updates.
+          enabledPref.value = false;
+          autoPref.value = false;
+      }
+    }
+  },
+
+  /**
+   * Displays the history of installed updates.
+   */
+  showUpdates() {
+    gSubDialog.open("chrome://mozapps/content/update/history.xul");
+  },
+
+  destroy() {
+    window.removeEventListener("unload", this);
+    this._prefSvc.removeObserver(PREF_SHOW_PLUGINS_IN_LIST, this);
+    this._prefSvc.removeObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this);
+    this._prefSvc.removeObserver(PREF_FEED_SELECTED_APP, this);
+    this._prefSvc.removeObserver(PREF_FEED_SELECTED_WEB, this);
+    this._prefSvc.removeObserver(PREF_FEED_SELECTED_ACTION, this);
+    this._prefSvc.removeObserver(PREF_FEED_SELECTED_READER, this);
+
+    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_APP, this);
+    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_WEB, this);
+    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_ACTION, this);
+    this._prefSvc.removeObserver(PREF_VIDEO_FEED_SELECTED_READER, this);
+
+    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_APP, this);
+    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_WEB, this);
+    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_ACTION, this);
+    this._prefSvc.removeObserver(PREF_AUDIO_FEED_SELECTED_READER, this);
+  },
+
+
+  // nsISupports
+
+  QueryInterface(aIID) {
+    if (aIID.equals(Ci.nsIObserver) ||
+        aIID.equals(Ci.nsIDOMEventListener ||
+        aIID.equals(Ci.nsISupports)))
+      return this;
+
+    throw Cr.NS_ERROR_NO_INTERFACE;
+  },
+
+
+  // nsIObserver
+
+  observe(aSubject, aTopic, aData) {
+    if (aTopic == "nsPref:changed") {
+      // Rebuild the list when there are changes to preferences that influence
+      // whether or not to show certain entries in the list.
+      if (!this._storingAction) {
+        // These two prefs alter the list of visible types, so we have to rebuild
+        // that list when they change.
+        if (aData == PREF_SHOW_PLUGINS_IN_LIST ||
+            aData == PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS) {
+          this._rebuildVisibleTypes();
+          this._sortVisibleTypes();
+        }
+
+        // All the prefs we observe can affect what we display, so we rebuild
+        // the view when any of them changes.
+        this._rebuildView();
+      }
+      if (AppConstants.MOZ_UPDATER) {
+        this.updateReadPrefs();
+      }
+    }
+  },
+
+
+  // nsIDOMEventListener
+
+  handleEvent(aEvent) {
+    if (aEvent.type == "unload") {
+      this.destroy();
+    }
+  },
+
+
+  // Composed Model Construction
+
+  _loadData() {
+    this._loadFeedHandler();
+    this._loadInternalHandlers();
+    this._loadPluginHandlers();
+    this._loadApplicationHandlers();
+  },
+
+  _loadFeedHandler() {
+    this._handledTypes[TYPE_MAYBE_FEED] = feedHandlerInfo;
+    feedHandlerInfo.handledOnlyByPlugin = false;
+
+    this._handledTypes[TYPE_MAYBE_VIDEO_FEED] = videoFeedHandlerInfo;
+    videoFeedHandlerInfo.handledOnlyByPlugin = false;
+
+    this._handledTypes[TYPE_MAYBE_AUDIO_FEED] = audioFeedHandlerInfo;
+    audioFeedHandlerInfo.handledOnlyByPlugin = false;
+  },
+
+  /**
+   * Load higher level internal handlers so they can be turned on/off in the
+   * applications menu.
+   */
+  _loadInternalHandlers() {
+    var internalHandlers = [pdfHandlerInfo];
+    for (let internalHandler of internalHandlers) {
+      if (internalHandler.enabled) {
+        this._handledTypes[internalHandler.type] = internalHandler;
+      }
+    }
+  },
+
+  /**
+   * Load the set of handlers defined by plugins.
+   *
+   * Note: if there's more than one plugin for a given MIME type, we assume
+   * the last one is the one that the application will use.  That may not be
+   * correct, but it's how we've been doing it for years.
+   *
+   * Perhaps we should instead query navigator.mimeTypes for the set of types
+   * supported by the application and then get the plugin from each MIME type's
+   * enabledPlugin property.  But if there's a plugin for a type, we need
+   * to know about it even if it isn't enabled, since we're going to give
+   * the user an option to enable it.
+   *
+   * Also note that enabledPlugin does not get updated when
+   * plugin.disable_full_page_plugin_for_types changes, so even if we could use
+   * enabledPlugin to get the plugin that would be used, we'd still need to
+   * check the pref ourselves to find out if it's enabled.
+   */
+  _loadPluginHandlers() {
+    "use strict";
+
+    let mimeTypes = navigator.mimeTypes;
+
+    for (let mimeType of mimeTypes) {
+      let handlerInfoWrapper;
+      if (mimeType.type in this._handledTypes) {
+        handlerInfoWrapper = this._handledTypes[mimeType.type];
+      } else {
+        let wrappedHandlerInfo =
+              this._mimeSvc.getFromTypeAndExtension(mimeType.type, null);
+        handlerInfoWrapper = new HandlerInfoWrapper(mimeType.type, wrappedHandlerInfo);
+        handlerInfoWrapper.handledOnlyByPlugin = true;
+        this._handledTypes[mimeType.type] = handlerInfoWrapper;
+      }
+      handlerInfoWrapper.pluginName = mimeType.enabledPlugin.name;
+    }
+  },
+
+  /**
+   * Load the set of handlers defined by the application datastore.
+   */
+  _loadApplicationHandlers() {
+    var wrappedHandlerInfos = this._handlerSvc.enumerate();
+    while (wrappedHandlerInfos.hasMoreElements()) {
+      let wrappedHandlerInfo =
+        wrappedHandlerInfos.getNext().QueryInterface(Ci.nsIHandlerInfo);
+      let type = wrappedHandlerInfo.type;
+
+      let handlerInfoWrapper;
+      if (type in this._handledTypes)
+        handlerInfoWrapper = this._handledTypes[type];
+      else {
+        handlerInfoWrapper = new HandlerInfoWrapper(type, wrappedHandlerInfo);
+        this._handledTypes[type] = handlerInfoWrapper;
+      }
+
+      handlerInfoWrapper.handledOnlyByPlugin = false;
+    }
+  },
+
+
+  // View Construction
+
+  _rebuildVisibleTypes() {
+    // Reset the list of visible types and the visible type description counts.
+    this._visibleTypes = [];
+    this._visibleTypeDescriptionCount = {};
+
+    // Get the preferences that help determine what types to show.
+    var showPlugins = this._prefSvc.getBoolPref(PREF_SHOW_PLUGINS_IN_LIST);
+    var hidePluginsWithoutExtensions =
+      this._prefSvc.getBoolPref(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS);
+
+    for (let type in this._handledTypes) {
+      let handlerInfo = this._handledTypes[type];
+
+      // Hide plugins without associated extensions if so prefed so we don't
+      // show a whole bunch of obscure types handled by plugins on Mac.
+      // Note: though protocol types don't have extensions, we still show them;
+      // the pref is only meant to be applied to MIME types, since plugins are
+      // only associated with MIME types.
+      // FIXME: should we also check the "suffixes" property of the plugin?
+      // Filed as bug 395135.
+      if (hidePluginsWithoutExtensions && handlerInfo.handledOnlyByPlugin &&
+          handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
+          !handlerInfo.primaryExtension)
+        continue;
+
+      // Hide types handled only by plugins if so prefed.
+      if (handlerInfo.handledOnlyByPlugin && !showPlugins)
+        continue;
+
+      // We couldn't find any reason to exclude the type, so include it.
+      this._visibleTypes.push(handlerInfo);
+
+      if (handlerInfo.description in this._visibleTypeDescriptionCount)
+        this._visibleTypeDescriptionCount[handlerInfo.description]++;
+      else
+        this._visibleTypeDescriptionCount[handlerInfo.description] = 1;
+    }
+  },
+
+  _rebuildView() {
+    // Clear the list of entries.
+    while (this._list.childNodes.length > 1)
+      this._list.removeChild(this._list.lastChild);
+
+    var visibleTypes = this._visibleTypes;
+
+    // If the user is filtering the list, then only show matching types.
+    if (this._filter.value)
+      visibleTypes = visibleTypes.filter(this._matchesFilter, this);
+
+    for (let visibleType of visibleTypes) {
+      let item = document.createElement("richlistitem");
+      item.setAttribute("type", visibleType.type);
+      item.setAttribute("typeDescription", this._describeType(visibleType));
+      if (visibleType.smallIcon)
+        item.setAttribute("typeIcon", visibleType.smallIcon);
+      item.setAttribute("actionDescription",
+                        this._describePreferredAction(visibleType));
+
+      if (!this._setIconClassForPreferredAction(visibleType, item)) {
+        item.setAttribute("actionIcon",
+                          this._getIconURLForPreferredAction(visibleType));
+      }
+
+      this._list.appendChild(item);
+    }
+
+    this._selectLastSelectedType();
+  },
+
+  _matchesFilter(aType) {
+    var filterValue = this._filter.value.toLowerCase();
+    return this._describeType(aType).toLowerCase().indexOf(filterValue) != -1 ||
+           this._describePreferredAction(aType).toLowerCase().indexOf(filterValue) != -1;
+  },
+
+  /**
+   * Describe, in a human-readable fashion, the type represented by the given
+   * handler info object.  Normally this is just the description provided by
+   * the info object, but if more than one object presents the same description,
+   * then we annotate the duplicate descriptions with the type itself to help
+   * users distinguish between those types.
+   *
+   * @param aHandlerInfo {nsIHandlerInfo} the type being described
+   * @returns {string} a description of the type
+   */
+  _describeType(aHandlerInfo) {
+    if (this._visibleTypeDescriptionCount[aHandlerInfo.description] > 1)
+      return this._prefsBundle.getFormattedString("typeDescriptionWithType",
+                                                  [aHandlerInfo.description,
+                                                   aHandlerInfo.type]);
+
+    return aHandlerInfo.description;
+  },
+
+  /**
+   * Describe, in a human-readable fashion, the preferred action to take on
+   * the type represented by the given handler info object.
+   *
+   * XXX Should this be part of the HandlerInfoWrapper interface?  It would
+   * violate the separation of model and view, but it might make more sense
+   * nonetheless (f.e. it would make sortTypes easier).
+   *
+   * @param aHandlerInfo {nsIHandlerInfo} the type whose preferred action
+   *                                      is being described
+   * @returns {string} a description of the action
+   */
+  _describePreferredAction(aHandlerInfo) {
+    // alwaysAskBeforeHandling overrides the preferred action, so if that flag
+    // is set, then describe that behavior instead.  For most types, this is
+    // the "alwaysAsk" string, but for the feed type we show something special.
+    if (aHandlerInfo.alwaysAskBeforeHandling) {
+      if (isFeedType(aHandlerInfo.type))
+        return this._prefsBundle.getFormattedString("previewInApp",
+                                                    [this._brandShortName]);
+      return this._prefsBundle.getString("alwaysAsk");
+    }
+
+    switch (aHandlerInfo.preferredAction) {
+      case Ci.nsIHandlerInfo.saveToDisk:
+        return this._prefsBundle.getString("saveFile");
+
+      case Ci.nsIHandlerInfo.useHelperApp:
+        var preferredApp = aHandlerInfo.preferredApplicationHandler;
+        var name;
+        if (preferredApp instanceof Ci.nsILocalHandlerApp)
+          name = getFileDisplayName(preferredApp.executable);
+        else
+          name = preferredApp.name;
+        return this._prefsBundle.getFormattedString("useApp", [name]);
+
+      case Ci.nsIHandlerInfo.handleInternally:
+        // For the feed type, handleInternally means live bookmarks.
+        if (isFeedType(aHandlerInfo.type)) {
+          return this._prefsBundle.getFormattedString("addLiveBookmarksInApp",
+                                                      [this._brandShortName]);
+        }
+
+        if (aHandlerInfo instanceof InternalHandlerInfoWrapper) {
+          return this._prefsBundle.getFormattedString("previewInApp",
+                                                      [this._brandShortName]);
+        }
+
+        // For other types, handleInternally looks like either useHelperApp
+        // or useSystemDefault depending on whether or not there's a preferred
+        // handler app.
+        if (this.isValidHandlerApp(aHandlerInfo.preferredApplicationHandler))
+          return aHandlerInfo.preferredApplicationHandler.name;
+
+        return aHandlerInfo.defaultDescription;
+
+        // XXX Why don't we say the app will handle the type internally?
+        // Is it because the app can't actually do that?  But if that's true,
+        // then why would a preferredAction ever get set to this value
+        // in the first place?
+
+      case Ci.nsIHandlerInfo.useSystemDefault:
+        return this._prefsBundle.getFormattedString("useDefault",
+                                                    [aHandlerInfo.defaultDescription]);
+
+      case kActionUsePlugin:
+        return this._prefsBundle.getFormattedString("usePluginIn",
+                                                    [aHandlerInfo.pluginName,
+                                                     this._brandShortName]);
+      default:
+        throw new Error(`Unexpected preferredAction: ${aHandlerInfo.preferredAction}`);
+    }
+  },
+
+  _selectLastSelectedType() {
+    // If the list is disabled by the pref.downloads.disable_button.edit_actions
+    // preference being locked, then don't select the type, as that would cause
+    // it to appear selected, with a different background and an actions menu
+    // that makes it seem like you can choose an action for the type.
+    if (this._list.disabled)
+      return;
+
+    var lastSelectedType = this._list.getAttribute("lastSelectedType");
+    if (!lastSelectedType)
+      return;
+
+    var item = this._list.getElementsByAttribute("type", lastSelectedType)[0];
+    if (!item)
+      return;
+
+    this._list.selectedItem = item;
+  },
+
+  /**
+   * Whether or not the given handler app is valid.
+   *
+   * @param aHandlerApp {nsIHandlerApp} the handler app in question
+   *
+   * @returns {boolean} whether or not it's valid
+   */
+  isValidHandlerApp(aHandlerApp) {
+    if (!aHandlerApp)
+      return false;
+
+    if (aHandlerApp instanceof Ci.nsILocalHandlerApp)
+      return this._isValidHandlerExecutable(aHandlerApp.executable);
+
+    if (aHandlerApp instanceof Ci.nsIWebHandlerApp)
+      return aHandlerApp.uriTemplate;
+
+    if (aHandlerApp instanceof Ci.nsIWebContentHandlerInfo)
+      return aHandlerApp.uri;
+
+    return false;
+  },
+
+  _isValidHandlerExecutable(aExecutable) {
+    let leafName;
+    if (AppConstants.platform == "win") {
+      leafName = `${AppConstants.MOZ_APP_NAME}.exe`;
+    } else if (AppConstants.platform == "macosx") {
+      leafName = AppConstants.MOZ_MACBUNDLE_NAME;
+    } else {
+      leafName = `${AppConstants.MOZ_APP_NAME}-bin`;
+    }
+    return aExecutable &&
+           aExecutable.exists() &&
+           aExecutable.isExecutable() &&
+// XXXben - we need to compare this with the running instance executable
+//          just don't know how to do that via script...
+// XXXmano TBD: can probably add this to nsIShellService
+           aExecutable.leafName != leafName;
+  },
+
+  /**
+   * Rebuild the actions menu for the selected entry.  Gets called by
+   * the richlistitem constructor when an entry in the list gets selected.
+   */
+  rebuildActionsMenu() {
+    var typeItem = this._list.selectedItem;
+    var handlerInfo = this._handledTypes[typeItem.type];
+    var menu =
+      document.getAnonymousElementByAttribute(typeItem, "class", "actionsMenu");
+    var menuPopup = menu.menupopup;
+
+    // Clear out existing items.
+    while (menuPopup.hasChildNodes())
+      menuPopup.removeChild(menuPopup.lastChild);
+
+    let internalMenuItem;
+    // Add the "Preview in Firefox" option for optional internal handlers.
+    if (handlerInfo instanceof InternalHandlerInfoWrapper) {
+      internalMenuItem = document.createElement("menuitem");
+      internalMenuItem.setAttribute("action", Ci.nsIHandlerInfo.handleInternally);
+      let label = this._prefsBundle.getFormattedString("previewInApp",
+                                                       [this._brandShortName]);
+      internalMenuItem.setAttribute("label", label);
+      internalMenuItem.setAttribute("tooltiptext", label);
+      internalMenuItem.setAttribute(APP_ICON_ATTR_NAME, "ask");
+      menuPopup.appendChild(internalMenuItem);
+    }
+
+    {
+      var askMenuItem = document.createElement("menuitem");
+      askMenuItem.setAttribute("action", Ci.nsIHandlerInfo.alwaysAsk);
+      let label;
+      if (isFeedType(handlerInfo.type))
+        label = this._prefsBundle.getFormattedString("previewInApp",
+                                                     [this._brandShortName]);
+      else
+        label = this._prefsBundle.getString("alwaysAsk");
+      askMenuItem.setAttribute("label", label);
+      askMenuItem.setAttribute("tooltiptext", label);
+      askMenuItem.setAttribute(APP_ICON_ATTR_NAME, "ask");
+      menuPopup.appendChild(askMenuItem);
+    }
+
+    // Create a menu item for saving to disk.
+    // Note: this option isn't available to protocol types, since we don't know
+    // what it means to save a URL having a certain scheme to disk, nor is it
+    // available to feeds, since the feed code doesn't implement the capability.
+    if ((handlerInfo.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) &&
+        !isFeedType(handlerInfo.type)) {
+      var saveMenuItem = document.createElement("menuitem");
+      saveMenuItem.setAttribute("action", Ci.nsIHandlerInfo.saveToDisk);
+      let label = this._prefsBundle.getString("saveFile");
+      saveMenuItem.setAttribute("label", label);
+      saveMenuItem.setAttribute("tooltiptext", label);
+      saveMenuItem.setAttribute(APP_ICON_ATTR_NAME, "save");
+      menuPopup.appendChild(saveMenuItem);
+    }
+
+    // If this is the feed type, add a Live Bookmarks item.
+    if (isFeedType(handlerInfo.type)) {
+      internalMenuItem = document.createElement("menuitem");
+      internalMenuItem.setAttribute("action", Ci.nsIHandlerInfo.handleInternally);
+      let label = this._prefsBundle.getFormattedString("addLiveBookmarksInApp",
+                                                       [this._brandShortName]);
+      internalMenuItem.setAttribute("label", label);
+      internalMenuItem.setAttribute("tooltiptext", label);
+      internalMenuItem.setAttribute(APP_ICON_ATTR_NAME, "feed");
+      menuPopup.appendChild(internalMenuItem);
+    }
+
+    // Add a separator to distinguish these items from the helper app items
+    // that follow them.
+    let menuseparator = document.createElement("menuseparator");
+    menuPopup.appendChild(menuseparator);
+
+    // Create a menu item for the OS default application, if any.
+    if (handlerInfo.hasDefaultHandler) {
+      var defaultMenuItem = document.createElement("menuitem");
+      defaultMenuItem.setAttribute("action", Ci.nsIHandlerInfo.useSystemDefault);
+      let label = this._prefsBundle.getFormattedString("useDefault",
+                                                       [handlerInfo.defaultDescription]);
+      defaultMenuItem.setAttribute("label", label);
+      defaultMenuItem.setAttribute("tooltiptext", handlerInfo.defaultDescription);
+      defaultMenuItem.setAttribute("image", this._getIconURLForSystemDefault(handlerInfo));
+
+      menuPopup.appendChild(defaultMenuItem);
+    }
+
+    // Create menu items for possible handlers.
+    let preferredApp = handlerInfo.preferredApplicationHandler;
+    let possibleApps = handlerInfo.possibleApplicationHandlers.enumerate();
+    var possibleAppMenuItems = [];
+    while (possibleApps.hasMoreElements()) {
+      let possibleApp = possibleApps.getNext();
+      if (!this.isValidHandlerApp(possibleApp))
+        continue;
+
+      let menuItem = document.createElement("menuitem");
+      menuItem.setAttribute("action", Ci.nsIHandlerInfo.useHelperApp);
+      let label;
+      if (possibleApp instanceof Ci.nsILocalHandlerApp)
+        label = getFileDisplayName(possibleApp.executable);
+      else
+        label = possibleApp.name;
+      label = this._prefsBundle.getFormattedString("useApp", [label]);
+      menuItem.setAttribute("label", label);
+      menuItem.setAttribute("tooltiptext", label);
+      menuItem.setAttribute("image", this._getIconURLForHandlerApp(possibleApp));
+
+      // Attach the handler app object to the menu item so we can use it
+      // to make changes to the datastore when the user selects the item.
+      menuItem.handlerApp = possibleApp;
+
+      menuPopup.appendChild(menuItem);
+      possibleAppMenuItems.push(menuItem);
+    }
+
+    // Create a menu item for the plugin.
+    if (handlerInfo.pluginName) {
+      var pluginMenuItem = document.createElement("menuitem");
+      pluginMenuItem.setAttribute("action", kActionUsePlugin);
+      let label = this._prefsBundle.getFormattedString("usePluginIn",
+                                                       [handlerInfo.pluginName,
+                                                        this._brandShortName]);
+      pluginMenuItem.setAttribute("label", label);
+      pluginMenuItem.setAttribute("tooltiptext", label);
+      pluginMenuItem.setAttribute(APP_ICON_ATTR_NAME, "plugin");
+      menuPopup.appendChild(pluginMenuItem);
+    }
+
+    // Create a menu item for selecting a local application.
+    let canOpenWithOtherApp = true;
+    if (AppConstants.platform == "win") {
+      // On Windows, selecting an application to open another application
+      // would be meaningless so we special case executables.
+      let executableType = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService)
+                                                    .getTypeFromExtension("exe");
+      canOpenWithOtherApp = handlerInfo.type != executableType;
+    }
+    if (canOpenWithOtherApp) {
+      let menuItem = document.createElement("menuitem");
+      menuItem.className = "choose-app-item";
+      menuItem.addEventListener("command", function(e) {
+        gMainPane.chooseApp(e);
+      });
+      let label = this._prefsBundle.getString("useOtherApp");
+      menuItem.setAttribute("label", label);
+      menuItem.setAttribute("tooltiptext", label);
+      menuPopup.appendChild(menuItem);
+    }
+
+    // Create a menu item for managing applications.
+    if (possibleAppMenuItems.length) {
+      let menuItem = document.createElement("menuseparator");
+      menuPopup.appendChild(menuItem);
+      menuItem = document.createElement("menuitem");
+      menuItem.className = "manage-app-item";
+      menuItem.addEventListener("command", function(e) {
+        gMainPane.manageApp(e);
+      });
+      menuItem.setAttribute("label", this._prefsBundle.getString("manageApp"));
+      menuPopup.appendChild(menuItem);
+    }
+
+    // Select the item corresponding to the preferred action.  If the always
+    // ask flag is set, it overrides the preferred action.  Otherwise we pick
+    // the item identified by the preferred action (when the preferred action
+    // is to use a helper app, we have to pick the specific helper app item).
+    if (handlerInfo.alwaysAskBeforeHandling)
+      menu.selectedItem = askMenuItem;
+    else switch (handlerInfo.preferredAction) {
+      case Ci.nsIHandlerInfo.handleInternally:
+        if (internalMenuItem) {
+          menu.selectedItem = internalMenuItem;
+        } else {
+          Cu.reportError("No menu item defined to set!")
+        }
+        break;
+      case Ci.nsIHandlerInfo.useSystemDefault:
+        menu.selectedItem = defaultMenuItem;
+        break;
+      case Ci.nsIHandlerInfo.useHelperApp:
+        if (preferredApp)
+          menu.selectedItem =
+            possibleAppMenuItems.filter(v => v.handlerApp.equals(preferredApp))[0];
+        break;
+      case kActionUsePlugin:
+        menu.selectedItem = pluginMenuItem;
+        break;
+      case Ci.nsIHandlerInfo.saveToDisk:
+        menu.selectedItem = saveMenuItem;
+        break;
+    }
+  },
+
+
+  // Sorting & Filtering
+
+  _sortColumn: null,
+
+  /**
+   * Sort the list when the user clicks on a column header.
+   */
+  sort(event) {
+    var column = event.target;
+
+    // If the user clicked on a new sort column, remove the direction indicator
+    // from the old column.
+    if (this._sortColumn && this._sortColumn != column)
+      this._sortColumn.removeAttribute("sortDirection");
+
+    this._sortColumn = column;
+
+    // Set (or switch) the sort direction indicator.
+    if (column.getAttribute("sortDirection") == "ascending")
+      column.setAttribute("sortDirection", "descending");
+    else
+      column.setAttribute("sortDirection", "ascending");
+
+    this._sortVisibleTypes();
+    this._rebuildView();
+  },
+
+  /**
+   * Sort the list of visible types by the current sort column/direction.
+   */
+  _sortVisibleTypes() {
+    if (!this._sortColumn)
+      return;
+
+    var t = this;
+
+    function sortByType(a, b) {
+      return t._describeType(a).toLowerCase().
+             localeCompare(t._describeType(b).toLowerCase());
+    }
+
+    function sortByAction(a, b) {
+      return t._describePreferredAction(a).toLowerCase().
+             localeCompare(t._describePreferredAction(b).toLowerCase());
+    }
+
+    switch (this._sortColumn.getAttribute("value")) {
+      case "type":
+        this._visibleTypes.sort(sortByType);
+        break;
+      case "action":
+        this._visibleTypes.sort(sortByAction);
+        break;
+    }
+
+    if (this._sortColumn.getAttribute("sortDirection") == "descending")
+      this._visibleTypes.reverse();
+  },
+
+  /**
+   * Filter the list when the user enters a filter term into the filter field.
+   */
+  filter() {
+    this._rebuildView();
+  },
+
+  focusFilterBox() {
+    this._filter.focus();
+    this._filter.select();
+  },
+
+
+  // Changes
+
+  onSelectAction(aActionItem) {
+    this._storingAction = true;
+
+    try {
+      this._storeAction(aActionItem);
+    } finally {
+      this._storingAction = false;
+    }
+  },
+
+  _storeAction(aActionItem) {
+    var typeItem = this._list.selectedItem;
+    var handlerInfo = this._handledTypes[typeItem.type];
+
+    let action = parseInt(aActionItem.getAttribute("action"));
+
+    // Set the plugin state if we're enabling or disabling a plugin.
+    if (action == kActionUsePlugin)
+      handlerInfo.enablePluginType();
+    else if (handlerInfo.pluginName && !handlerInfo.isDisabledPluginType)
+      handlerInfo.disablePluginType();
+
+    // Set the preferred application handler.
+    // We leave the existing preferred app in the list when we set
+    // the preferred action to something other than useHelperApp so that
+    // legacy datastores that don't have the preferred app in the list
+    // of possible apps still include the preferred app in the list of apps
+    // the user can choose to handle the type.
+    if (action == Ci.nsIHandlerInfo.useHelperApp)
+      handlerInfo.preferredApplicationHandler = aActionItem.handlerApp;
+
+    // Set the "always ask" flag.
+    if (action == Ci.nsIHandlerInfo.alwaysAsk)
+      handlerInfo.alwaysAskBeforeHandling = true;
+    else
+      handlerInfo.alwaysAskBeforeHandling = false;
+
+    // Set the preferred action.
+    handlerInfo.preferredAction = action;
+
+    handlerInfo.store();
+
+    // Make sure the handler info object is flagged to indicate that there is
+    // now some user configuration for the type.
+    handlerInfo.handledOnlyByPlugin = false;
+
+    // Update the action label and image to reflect the new preferred action.
+    typeItem.setAttribute("actionDescription",
+                          this._describePreferredAction(handlerInfo));
+    if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) {
+      typeItem.setAttribute("actionIcon",
+                            this._getIconURLForPreferredAction(handlerInfo));
+    }
+  },
+
+  manageApp(aEvent) {
+    // Don't let the normal "on select action" handler get this event,
+    // as we handle it specially ourselves.
+    aEvent.stopPropagation();
+
+    var typeItem = this._list.selectedItem;
+    var handlerInfo = this._handledTypes[typeItem.type];
+
+    let onComplete = () => {
+      // Rebuild the actions menu so that we revert to the previous selection,
+      // or "Always ask" if the previous default application has been removed
+      this.rebuildActionsMenu();
+
+      // update the richlistitem too. Will be visible when selecting another row
+      typeItem.setAttribute("actionDescription",
+                            this._describePreferredAction(handlerInfo));
+      if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) {
+        typeItem.setAttribute("actionIcon",
+                              this._getIconURLForPreferredAction(handlerInfo));
+      }
+    };
+
+    gSubDialog.open("chrome://browser/content/preferences/applicationManager.xul",
+                    "resizable=no", handlerInfo, onComplete);
+
+  },
+
+  chooseApp(aEvent) {
+    // Don't let the normal "on select action" handler get this event,
+    // as we handle it specially ourselves.
+    aEvent.stopPropagation();
+
+    var handlerApp;
+    let chooseAppCallback = aHandlerApp => {
+      // Rebuild the actions menu whether the user picked an app or canceled.
+      // If they picked an app, we want to add the app to the menu and select it.
+      // If they canceled, we want to go back to their previous selection.
+      this.rebuildActionsMenu();
+
+      // If the user picked a new app from the menu, select it.
+      if (aHandlerApp) {
+        let typeItem = this._list.selectedItem;
+        let actionsMenu =
+          document.getAnonymousElementByAttribute(typeItem, "class", "actionsMenu");
+        let menuItems = actionsMenu.menupopup.childNodes;
+        for (let i = 0; i < menuItems.length; i++) {
+          let menuItem = menuItems[i];
+          if (menuItem.handlerApp && menuItem.handlerApp.equals(aHandlerApp)) {
+            actionsMenu.selectedIndex = i;
+            this.onSelectAction(menuItem);
+            break;
+          }
+        }
+      }
+    };
+
+    if (AppConstants.platform == "win") {
+      var params = {};
+      var handlerInfo = this._handledTypes[this._list.selectedItem.type];
+
+      if (isFeedType(handlerInfo.type)) {
+        // MIME info will be null, create a temp object.
+        params.mimeInfo = this._mimeSvc.getFromTypeAndExtension(handlerInfo.type,
+                                                   handlerInfo.primaryExtension);
+      } else {
+        params.mimeInfo = handlerInfo.wrappedHandlerInfo;
+      }
+
+      params.title         = this._prefsBundle.getString("fpTitleChooseApp");
+      params.description   = handlerInfo.description;
+      params.filename      = null;
+      params.handlerApp    = null;
+
+      let onAppSelected = () => {
+        if (this.isValidHandlerApp(params.handlerApp)) {
+          handlerApp = params.handlerApp;
+
+          // Add the app to the type's list of possible handlers.
+          handlerInfo.addPossibleApplicationHandler(handlerApp);
+        }
+
+        chooseAppCallback(handlerApp);
+      };
+
+      gSubDialog.open("chrome://global/content/appPicker.xul",
+                      null, params, onAppSelected);
+    } else {
+      let winTitle = this._prefsBundle.getString("fpTitleChooseApp");
+      let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
+      let fpCallback = aResult => {
+        if (aResult == Ci.nsIFilePicker.returnOK && fp.file &&
+            this._isValidHandlerExecutable(fp.file)) {
+          handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
+                       createInstance(Ci.nsILocalHandlerApp);
+          handlerApp.name = getFileDisplayName(fp.file);
+          handlerApp.executable = fp.file;
+
+          // Add the app to the type's list of possible handlers.
+          let handler = this._handledTypes[this._list.selectedItem.type];
+          handler.addPossibleApplicationHandler(handlerApp);
+
+          chooseAppCallback(handlerApp);
+        }
+      };
+
+      // Prompt the user to pick an app.  If they pick one, and it's a valid
+      // selection, then add it to the list of possible handlers.
+      fp.init(window, winTitle, Ci.nsIFilePicker.modeOpen);
+      fp.appendFilters(Ci.nsIFilePicker.filterApps);
+      fp.open(fpCallback);
+    }
+  },
+
+  // Mark which item in the list was last selected so we can reselect it
+  // when we rebuild the list or when the user returns to the prefpane.
+  onSelectionChanged() {
+    if (this._list.selectedItem)
+      this._list.setAttribute("lastSelectedType",
+                              this._list.selectedItem.getAttribute("type"));
+  },
+
+  _setIconClassForPreferredAction(aHandlerInfo, aElement) {
+    // If this returns true, the attribute that CSS sniffs for was set to something
+    // so you shouldn't manually set an icon URI.
+    // This removes the existing actionIcon attribute if any, even if returning false.
+    aElement.removeAttribute("actionIcon");
+
+    if (aHandlerInfo.alwaysAskBeforeHandling) {
+      aElement.setAttribute(APP_ICON_ATTR_NAME, "ask");
+      return true;
+    }
+
+    switch (aHandlerInfo.preferredAction) {
+      case Ci.nsIHandlerInfo.saveToDisk:
+        aElement.setAttribute(APP_ICON_ATTR_NAME, "save");
+        return true;
+
+      case Ci.nsIHandlerInfo.handleInternally:
+        if (isFeedType(aHandlerInfo.type)) {
+          aElement.setAttribute(APP_ICON_ATTR_NAME, "feed");
+          return true;
+        } else if (aHandlerInfo instanceof InternalHandlerInfoWrapper) {
+          aElement.setAttribute(APP_ICON_ATTR_NAME, "ask");
+          return true;
+        }
+        break;
+
+      case kActionUsePlugin:
+        aElement.setAttribute(APP_ICON_ATTR_NAME, "plugin");
+        return true;
+    }
+    aElement.removeAttribute(APP_ICON_ATTR_NAME);
+    return false;
+  },
+
+  _getIconURLForPreferredAction(aHandlerInfo) {
+    switch (aHandlerInfo.preferredAction) {
+      case Ci.nsIHandlerInfo.useSystemDefault:
+        return this._getIconURLForSystemDefault(aHandlerInfo);
+
+      case Ci.nsIHandlerInfo.useHelperApp:
+        let preferredApp = aHandlerInfo.preferredApplicationHandler;
+        if (this.isValidHandlerApp(preferredApp))
+          return this._getIconURLForHandlerApp(preferredApp);
+        // Explicit fall-through
+
+      // This should never happen, but if preferredAction is set to some weird
+      // value, then fall back to the generic application icon.
+      default:
+        return ICON_URL_APP;
+    }
+  },
+
+  _getIconURLForHandlerApp(aHandlerApp) {
+    if (aHandlerApp instanceof Ci.nsILocalHandlerApp)
+      return this._getIconURLForFile(aHandlerApp.executable);
+
+    if (aHandlerApp instanceof Ci.nsIWebHandlerApp)
+      return this._getIconURLForWebApp(aHandlerApp.uriTemplate);
+
+    if (aHandlerApp instanceof Ci.nsIWebContentHandlerInfo)
+      return this._getIconURLForWebApp(aHandlerApp.uri)
+
+    // We know nothing about other kinds of handler apps.
+    return "";
+  },
+
+  _getIconURLForFile(aFile) {
+    var fph = this._ioSvc.getProtocolHandler("file").
+              QueryInterface(Ci.nsIFileProtocolHandler);
+    var urlSpec = fph.getURLSpecFromFile(aFile);
+
+    return "moz-icon://" + urlSpec + "?size=16";
+  },
+
+  _getIconURLForWebApp(aWebAppURITemplate) {
+    var uri = this._ioSvc.newURI(aWebAppURITemplate);
+
+    // Unfortunately we can't use the favicon service to get the favicon,
+    // because the service looks in the annotations table for a record with
+    // the exact URL we give it, and users won't have such records for URLs
+    // they don't visit, and users won't visit the web app's URL template,
+    // they'll only visit URLs derived from that template (i.e. with %s
+    // in the template replaced by the URL of the content being handled).
+
+    if (/^https?$/.test(uri.scheme) && this._prefSvc.getBoolPref("browser.chrome.favicons"))
+      return uri.prePath + "/favicon.ico";
+
+    return "";
+  },
+
+  _getIconURLForSystemDefault(aHandlerInfo) {
+    // Handler info objects for MIME types on some OSes implement a property bag
+    // interface from which we can get an icon for the default app, so if we're
+    // dealing with a MIME type on one of those OSes, then try to get the icon.
+    if ("wrappedHandlerInfo" in aHandlerInfo) {
+      let wrappedHandlerInfo = aHandlerInfo.wrappedHandlerInfo;
+
+      if (wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
+          wrappedHandlerInfo instanceof Ci.nsIPropertyBag) {
+        try {
+          let url = wrappedHandlerInfo.getProperty("defaultApplicationIconURL");
+          if (url)
+            return url + "?size=16";
+        } catch (ex) {}
+      }
+    }
+
+    // If this isn't a MIME type object on an OS that supports retrieving
+    // the icon, or if we couldn't retrieve the icon for some other reason,
+    // then use a generic icon.
+    return ICON_URL_APP;
+  },
+
   // DOWNLOADS
 
   /*
    * Preferences:
    *
    * browser.download.useDownloadDir - bool
    *   True - Save files directly to the folder configured via the
    *   browser.download.folderList preference.
@@ -766,127 +2511,753 @@ var gMainPane = {
     switch (aIndex) {
       case 0:
         return this._getDownloadsFolder("Desktop");
       case 1:
         return this._getDownloadsFolder("Downloads");
     }
     var currentDirPref = document.getElementById("browser.download.dir");
     return currentDirPref.value;
+  }
+};
+
+// Utilities
+
+function getFileDisplayName(file) {
+  if (AppConstants.platform == "win") {
+    if (file instanceof Ci.nsILocalFileWin) {
+      try {
+        return file.getVersionInfoField("FileDescription");
+      } catch (e) {}
+    }
+  }
+  if (AppConstants.platform == "macosx") {
+    if (file instanceof Ci.nsILocalFileMac) {
+      try {
+        return file.bundleDisplayName;
+      } catch (e) {}
+    }
+  }
+  return file.leafName;
+}
+
+function getLocalHandlerApp(aFile) {
+  var localHandlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
+                        createInstance(Ci.nsILocalHandlerApp);
+  localHandlerApp.name = getFileDisplayName(aFile);
+  localHandlerApp.executable = aFile;
+
+  return localHandlerApp;
+}
+
+/**
+ * An enumeration of items in a JS array.
+ *
+ * FIXME: use ArrayConverter once it lands (bug 380839).
+ *
+ * @constructor
+ */
+function ArrayEnumerator(aItems) {
+  this._index = 0;
+  this._contents = aItems;
+}
+
+ArrayEnumerator.prototype = {
+  _index: 0,
+
+  hasMoreElements() {
+    return this._index < this._contents.length;
   },
 
-  /**
-   * Hide/show the "Show my windows and tabs from last time" option based
-   * on the value of the browser.privatebrowsing.autostart pref.
-   */
-  updateBrowserStartupLastSession() {
-    let pbAutoStartPref = document.getElementById("browser.privatebrowsing.autostart");
-    let startupPref = document.getElementById("browser.startup.page");
-    let menu = document.getElementById("browserStartupPage");
-    let option = document.getElementById("browserStartupLastSession");
-    if (pbAutoStartPref.value) {
-      option.setAttribute("disabled", "true");
-      if (option.selected) {
-        menu.selectedItem = document.getElementById("browserStartupHomePage");
+  getNext() {
+    return this._contents[this._index++];
+  }
+};
+
+function isFeedType(t) {
+  return t == TYPE_MAYBE_FEED || t == TYPE_MAYBE_VIDEO_FEED || t == TYPE_MAYBE_AUDIO_FEED;
+}
+
+// HandlerInfoWrapper
+
+/**
+ * This object wraps nsIHandlerInfo with some additional functionality
+ * the Applications prefpane needs to display and allow modification of
+ * the list of handled types.
+ *
+ * We create an instance of this wrapper for each entry we might display
+ * in the prefpane, and we compose the instances from various sources,
+ * including plugins and the handler service.
+ *
+ * We don't implement all the original nsIHandlerInfo functionality,
+ * just the stuff that the prefpane needs.
+ *
+ * In theory, all of the custom functionality in this wrapper should get
+ * pushed down into nsIHandlerInfo eventually.
+ */
+function HandlerInfoWrapper(aType, aHandlerInfo) {
+  this._type = aType;
+  this.wrappedHandlerInfo = aHandlerInfo;
+}
+
+HandlerInfoWrapper.prototype = {
+  // The wrapped nsIHandlerInfo object.  In general, this object is private,
+  // but there are a couple cases where callers access it directly for things
+  // we haven't (yet?) implemented, so we make it a public property.
+  wrappedHandlerInfo: null,
+
+
+  // Convenience Utils
+
+  _handlerSvc: Cc["@mozilla.org/uriloader/handler-service;1"].
+               getService(Ci.nsIHandlerService),
+
+  _prefSvc: Cc["@mozilla.org/preferences-service;1"].
+            getService(Ci.nsIPrefBranch),
+
+  _categoryMgr: Cc["@mozilla.org/categorymanager;1"].
+                getService(Ci.nsICategoryManager),
+
+  element(aID) {
+    return document.getElementById(aID);
+  },
+
+
+  // nsIHandlerInfo
+
+  // The MIME type or protocol scheme.
+  _type: null,
+  get type() {
+    return this._type;
+  },
+
+  get description() {
+    if (this.wrappedHandlerInfo.description)
+      return this.wrappedHandlerInfo.description;
+
+    if (this.primaryExtension) {
+      var extension = this.primaryExtension.toUpperCase();
+      return this.element("bundlePreferences").getFormattedString("fileEnding",
+                                                                  [extension]);
+    }
+
+    return this.type;
+  },
+
+  get preferredApplicationHandler() {
+    return this.wrappedHandlerInfo.preferredApplicationHandler;
+  },
+
+  set preferredApplicationHandler(aNewValue) {
+    this.wrappedHandlerInfo.preferredApplicationHandler = aNewValue;
+
+    // Make sure the preferred handler is in the set of possible handlers.
+    if (aNewValue)
+      this.addPossibleApplicationHandler(aNewValue)
+  },
+
+  get possibleApplicationHandlers() {
+    return this.wrappedHandlerInfo.possibleApplicationHandlers;
+  },
+
+  addPossibleApplicationHandler(aNewHandler) {
+    var possibleApps = this.possibleApplicationHandlers.enumerate();
+    while (possibleApps.hasMoreElements()) {
+      if (possibleApps.getNext().equals(aNewHandler))
+        return;
+    }
+    this.possibleApplicationHandlers.appendElement(aNewHandler);
+  },
+
+  removePossibleApplicationHandler(aHandler) {
+    var defaultApp = this.preferredApplicationHandler;
+    if (defaultApp && aHandler.equals(defaultApp)) {
+      // If the app we remove was the default app, we must make sure
+      // it won't be used anymore
+      this.alwaysAskBeforeHandling = true;
+      this.preferredApplicationHandler = null;
+    }
+
+    var handlers = this.possibleApplicationHandlers;
+    for (var i = 0; i < handlers.length; ++i) {
+      var handler = handlers.queryElementAt(i, Ci.nsIHandlerApp);
+      if (handler.equals(aHandler)) {
+        handlers.removeElementAt(i);
+        break;
       }
-    } else {
-      option.removeAttribute("disabled");
-      startupPref.updateElements(); // select the correct index in the startup menulist
     }
   },
 
-  // TABS
-
-  /*
-   * Preferences:
-   *
-   * browser.link.open_newwindow - int
-   *   Determines where links targeting new windows should open.
-   *   Values:
-   *     1 - Open in the current window or tab.
-   *     2 - Open in a new window.
-   *     3 - Open in a new tab in the most recent window.
-   * browser.tabs.loadInBackground - bool
-   *   True - Whether browser should switch to a new tab opened from a link.
-   * browser.tabs.warnOnClose - bool
-   *   True - If when closing a window with multiple tabs the user is warned and
-   *          allowed to cancel the action, false to just close the window.
-   * browser.tabs.warnOnOpen - bool
-   *   True - Whether the user should be warned when trying to open a lot of
-   *          tabs at once (e.g. a large folder of bookmarks), allowing to
-   *          cancel the action.
-   * browser.taskbar.previews.enable - bool
-   *   True - Tabs are to be shown in Windows 7 taskbar.
-   *   False - Only the window is to be shown in Windows 7 taskbar.
-   */
-
-  /**
-   * Determines where a link which opens a new window will open.
-   *
-   * @returns |true| if such links should be opened in new tabs
-   */
-  readLinkTarget() {
-    var openNewWindow = document.getElementById("browser.link.open_newwindow");
-    return openNewWindow.value != 2;
+  get hasDefaultHandler() {
+    return this.wrappedHandlerInfo.hasDefaultHandler;
+  },
+
+  get defaultDescription() {
+    return this.wrappedHandlerInfo.defaultDescription;
+  },
+
+  // What to do with content of this type.
+  get preferredAction() {
+    // If we have an enabled plugin, then the action is to use that plugin.
+    if (this.pluginName && !this.isDisabledPluginType)
+      return kActionUsePlugin;
+
+    // If the action is to use a helper app, but we don't have a preferred
+    // handler app, then switch to using the system default, if any; otherwise
+    // fall back to saving to disk, which is the default action in nsMIMEInfo.
+    // Note: "save to disk" is an invalid value for protocol info objects,
+    // but the alwaysAskBeforeHandling getter will detect that situation
+    // and always return true in that case to override this invalid value.
+    if (this.wrappedHandlerInfo.preferredAction == Ci.nsIHandlerInfo.useHelperApp &&
+        !gMainPane.isValidHandlerApp(this.preferredApplicationHandler)) {
+      if (this.wrappedHandlerInfo.hasDefaultHandler)
+        return Ci.nsIHandlerInfo.useSystemDefault;
+      return Ci.nsIHandlerInfo.saveToDisk;
+    }
+
+    return this.wrappedHandlerInfo.preferredAction;
+  },
+
+  set preferredAction(aNewValue) {
+    // If the action is to use the plugin,
+    // we must set the preferred action to "save to disk".
+    // But only if it's not currently the preferred action.
+    if ((aNewValue == kActionUsePlugin) &&
+        (this.preferredAction != Ci.nsIHandlerInfo.saveToDisk)) {
+      aNewValue = Ci.nsIHandlerInfo.saveToDisk;
+    }
+
+    // We don't modify the preferred action if the new action is to use a plugin
+    // because handler info objects don't understand our custom "use plugin"
+    // value.  Also, leaving it untouched means that we can automatically revert
+    // to the old setting if the user ever removes the plugin.
+
+    if (aNewValue != kActionUsePlugin)
+      this.wrappedHandlerInfo.preferredAction = aNewValue;
+  },
+
+  get alwaysAskBeforeHandling() {
+    // If this type is handled only by a plugin, we can't trust the value
+    // in the handler info object, since it'll be a default based on the absence
+    // of any user configuration, and the default in that case is to always ask,
+    // even though we never ask for content handled by a plugin, so special case
+    // plugin-handled types by returning false here.
+    if (this.pluginName && this.handledOnlyByPlugin)
+      return false;
+
+    // If this is a protocol type and the preferred action is "save to disk",
+    // which is invalid for such types, then return true here to override that
+    // action.  This could happen when the preferred action is to use a helper
+    // app, but the preferredApplicationHandler is invalid, and there isn't
+    // a default handler, so the preferredAction getter returns save to disk
+    // instead.
+    if (!(this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo) &&
+        this.preferredAction == Ci.nsIHandlerInfo.saveToDisk)
+      return true;
+
+    return this.wrappedHandlerInfo.alwaysAskBeforeHandling;
+  },
+
+  set alwaysAskBeforeHandling(aNewValue) {
+    this.wrappedHandlerInfo.alwaysAskBeforeHandling = aNewValue;
+  },
+
+
+  // nsIMIMEInfo
+
+  // The primary file extension associated with this type, if any.
+  //
+  // XXX Plugin objects contain an array of MimeType objects with "suffixes"
+  // properties; if this object has an associated plugin, shouldn't we check
+  // those properties for an extension?
+  get primaryExtension() {
+    try {
+      if (this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo &&
+          this.wrappedHandlerInfo.primaryExtension)
+        return this.wrappedHandlerInfo.primaryExtension
+    } catch (ex) {}
+
+    return null;
+  },
+
+
+  // Plugin Handling
+
+  // A plugin that can handle this type, if any.
+  //
+  // Note: just because we have one doesn't mean it *will* handle the type.
+  // That depends on whether or not the type is in the list of types for which
+  // plugin handling is disabled.
+  plugin: null,
+
+  // Whether or not this type is only handled by a plugin or is also handled
+  // by some user-configured action as specified in the handler info object.
+  //
+  // Note: we can't just check if there's a handler info object for this type,
+  // because OS and user configuration is mixed up in the handler info object,
+  // so we always need to retrieve it for the OS info and can't tell whether
+  // it represents only OS-default information or user-configured information.
+  //
+  // FIXME: once handler info records are broken up into OS-provided records
+  // and user-configured records, stop using this boolean flag and simply
+  // check for the presence of a user-configured record to determine whether
+  // or not this type is only handled by a plugin.  Filed as bug 395142.
+  handledOnlyByPlugin: undefined,
+
+  get isDisabledPluginType() {
+    return this._getDisabledPluginTypes().indexOf(this.type) != -1;
+  },
+
+  _getDisabledPluginTypes() {
+    var types = "";
+
+    if (this._prefSvc.prefHasUserValue(PREF_DISABLED_PLUGIN_TYPES))
+      types = this._prefSvc.getCharPref(PREF_DISABLED_PLUGIN_TYPES);
+
+    // Only split if the string isn't empty so we don't end up with an array
+    // containing a single empty string.
+    if (types != "")
+      return types.split(",");
+
+    return [];
   },
 
-  /**
-   * Determines where a link which opens a new window will open.
-   *
-   * @returns 2 if such links should be opened in new windows,
-   *          3 if such links should be opened in new tabs
-   */
-  writeLinkTarget() {
-    var linkTargeting = document.getElementById("linkTargeting");
-    return linkTargeting.checked ? 3 : 2;
+  disablePluginType() {
+    var disabledPluginTypes = this._getDisabledPluginTypes();
+
+    if (disabledPluginTypes.indexOf(this.type) == -1)
+      disabledPluginTypes.push(this.type);
+
+    this._prefSvc.setCharPref(PREF_DISABLED_PLUGIN_TYPES,
+                              disabledPluginTypes.join(","));
+
+    // Update the category manager so existing browser windows update.
+    this._categoryMgr.deleteCategoryEntry("Gecko-Content-Viewers",
+                                          this.type,
+                                          false);
+  },
+
+  enablePluginType() {
+    var disabledPluginTypes = this._getDisabledPluginTypes();
+
+    var type = this.type;
+    disabledPluginTypes = disabledPluginTypes.filter(v => v != type);
+
+    this._prefSvc.setCharPref(PREF_DISABLED_PLUGIN_TYPES,
+                              disabledPluginTypes.join(","));
+
+    // Update the category manager so existing browser windows update.
+    this._categoryMgr.
+      addCategoryEntry("Gecko-Content-Viewers",
+                       this.type,
+                       "@mozilla.org/content/plugin/document-loader-factory;1",
+                       false,
+                       true);
+  },
+
+
+  // Storage
+
+  store() {
+    this._handlerSvc.store(this.wrappedHandlerInfo);
+  },
+
+
+  // Icons
+
+  get smallIcon() {
+    return this._getIcon(16);
   },
-  /*
-   * Preferences:
-   *
-   * browser.shell.checkDefault
-   * - true if a default-browser check (and prompt to make it so if necessary)
-   *   occurs at startup, false otherwise
-   */
-
-  /**
-   * Show button for setting browser as default browser or information that
-   * browser is already the default browser.
-   */
-  updateSetDefaultBrowser() {
-    if (AppConstants.HAVE_SHELL_SERVICE) {
-      let shellSvc = getShellService();
-      let defaultBrowserBox = document.getElementById("defaultBrowserBox");
-      if (!shellSvc) {
-        defaultBrowserBox.hidden = true;
-        return;
-      }
-      let setDefaultPane = document.getElementById("setDefaultPane");
-      let isDefault = shellSvc.isDefaultBrowser(false, true);
-      setDefaultPane.selectedIndex = isDefault ? 1 : 0;
-      let alwaysCheck = document.getElementById("alwaysCheckDefault");
-      alwaysCheck.disabled = alwaysCheck.disabled ||
-                             isDefault && alwaysCheck.checked;
+
+  _getIcon(aSize) {
+    if (this.primaryExtension)
+      return "moz-icon://goat." + this.primaryExtension + "?size=" + aSize;
+
+    if (this.wrappedHandlerInfo instanceof Ci.nsIMIMEInfo)
+      return "moz-icon://goat?size=" + aSize + "&contentType=" + this.type;
+
+    // FIXME: consider returning some generic icon when we can't get a URL for
+    // one (for example in the case of protocol schemes).  Filed as bug 395141.
+    return null;
+  }
+
+};
+
+
+// Feed Handler Info
+
+/**
+ * This object implements nsIHandlerInfo for the feed types.  It's a separate
+ * object because we currently store handling information for the feed type
+ * in a set of preferences rather than the nsIHandlerService-managed datastore.
+ *
+ * This object inherits from HandlerInfoWrapper in order to get functionality
+ * that isn't special to the feed type.
+ *
+ * XXX Should we inherit from HandlerInfoWrapper?  After all, we override
+ * most of that wrapper's properties and methods, and we have to dance around
+ * the fact that the wrapper expects to have a wrappedHandlerInfo, which we
+ * don't provide.
+ */
+
+function FeedHandlerInfo(aMIMEType) {
+  HandlerInfoWrapper.call(this, aMIMEType, null);
+}
+
+FeedHandlerInfo.prototype = {
+  __proto__: HandlerInfoWrapper.prototype,
+
+  // Convenience Utils
+
+  _converterSvc:
+    Cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"].
+    getService(Ci.nsIWebContentConverterService),
+
+  _shellSvc: AppConstants.HAVE_SHELL_SERVICE ? getShellService() : null,
+
+  // nsIHandlerInfo
+
+  get description() {
+    return this.element("bundlePreferences").getString(this._appPrefLabel);
+  },
+
+  get preferredApplicationHandler() {
+    switch (this.element(this._prefSelectedReader).value) {
+      case "client":
+        var file = this.element(this._prefSelectedApp).value;
+        if (file)
+          return getLocalHandlerApp(file);
+
+        return null;
+
+      case "web":
+        var uri = this.element(this._prefSelectedWeb).value;
+        if (!uri)
+          return null;
+        return this._converterSvc.getWebContentHandlerByURI(this.type, uri);
+
+      case "bookmarks":
+      default:
+        // When the pref is set to bookmarks, we handle feeds internally,
+        // we don't forward them to a local or web handler app, so there is
+        // no preferred handler.
+        return null;
+    }
+  },
+
+  set preferredApplicationHandler(aNewValue) {
+    if (aNewValue instanceof Ci.nsILocalHandlerApp) {
+      this.element(this._prefSelectedApp).value = aNewValue.executable;
+      this.element(this._prefSelectedReader).value = "client";
+    } else if (aNewValue instanceof Ci.nsIWebContentHandlerInfo) {
+      this.element(this._prefSelectedWeb).value = aNewValue.uri;
+      this.element(this._prefSelectedReader).value = "web";
+      // Make the web handler be the new "auto handler" for feeds.
+      // Note: we don't have to unregister the auto handler when the user picks
+      // a non-web handler (local app, Live Bookmarks, etc.) because the service
+      // only uses the "auto handler" when the selected reader is a web handler.
+      // We also don't have to unregister it when the user turns on "always ask"
+      // (i.e. preview in browser), since that also overrides the auto handler.
+      this._converterSvc.setAutoHandler(this.type, aNewValue);
     }
   },
 
-  /**
-   * Set browser as the operating system default browser.
-   */
-  setDefaultBrowser() {
+  _possibleApplicationHandlers: null,
+
+  get possibleApplicationHandlers() {
+    if (this._possibleApplicationHandlers)
+      return this._possibleApplicationHandlers;
+
+    // A minimal implementation of nsIMutableArray.  It only supports the two
+    // methods its callers invoke, namely appendElement and nsIArray::enumerate.
+    this._possibleApplicationHandlers = {
+      _inner: [],
+      _removed: [],
+
+      QueryInterface(aIID) {
+        if (aIID.equals(Ci.nsIMutableArray) ||
+            aIID.equals(Ci.nsIArray) ||
+            aIID.equals(Ci.nsISupports))
+          return this;
+
+        throw Cr.NS_ERROR_NO_INTERFACE;
+      },
+
+      get length() {
+        return this._inner.length;
+      },
+
+      enumerate() {
+        return new ArrayEnumerator(this._inner);
+      },
+
+      appendElement(aHandlerApp, aWeak) {
+        this._inner.push(aHandlerApp);
+      },
+
+      removeElementAt(aIndex) {
+        this._removed.push(this._inner[aIndex]);
+        this._inner.splice(aIndex, 1);
+      },
+
+      queryElementAt(aIndex, aInterface) {
+        return this._inner[aIndex].QueryInterface(aInterface);
+      }
+    };
+
+    // Add the selected local app if it's different from the OS default handler.
+    // Unlike for other types, we can store only one local app at a time for the
+    // feed type, since we store it in a preference that historically stores
+    // only a single path.  But we display all the local apps the user chooses
+    // while the prefpane is open, only dropping the list when the user closes
+    // the prefpane, for maximum usability and consistency with other types.
+    var preferredAppFile = this.element(this._prefSelectedApp).value;
+    if (preferredAppFile) {
+      let preferredApp = getLocalHandlerApp(preferredAppFile);
+      let defaultApp = this._defaultApplicationHandler;
+      if (!defaultApp || !defaultApp.equals(preferredApp))
+        this._possibleApplicationHandlers.appendElement(preferredApp);
+    }
+
+    // Add the registered web handlers.  There can be any number of these.
+    var webHandlers = this._converterSvc.getContentHandlers(this.type);
+    for (let webHandler of webHandlers)
+      this._possibleApplicationHandlers.appendElement(webHandler);
+
+    return this._possibleApplicationHandlers;
+  },
+
+  __defaultApplicationHandler: undefined,
+  get _defaultApplicationHandler() {
+    if (typeof this.__defaultApplicationHandler != "undefined")
+      return this.__defaultApplicationHandler;
+
+    var defaultFeedReader = null;
     if (AppConstants.HAVE_SHELL_SERVICE) {
-      let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
-      alwaysCheckPref.value = true;
-
-      let shellSvc = getShellService();
-      if (!shellSvc)
-        return;
+      try {
+        defaultFeedReader = this._shellSvc.defaultFeedReader;
+      } catch (ex) {
+        // no default reader or _shellSvc is null
+      }
+    }
+
+    if (defaultFeedReader) {
+      let handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
+                       createInstance(Ci.nsIHandlerApp);
+      handlerApp.name = getFileDisplayName(defaultFeedReader);
+      handlerApp.QueryInterface(Ci.nsILocalHandlerApp);
+      handlerApp.executable = defaultFeedReader;
+
+      this.__defaultApplicationHandler = handlerApp;
+    } else {
+      this.__defaultApplicationHandler = null;
+    }
+
+    return this.__defaultApplicationHandler;
+  },
+
+  get hasDefaultHandler() {
+    if (AppConstants.HAVE_SHELL_SERVICE) {
       try {
-        shellSvc.setDefaultBrowser(true, false);
+        if (this._shellSvc.defaultFeedReader)
+          return true;
       } catch (ex) {
-        Cu.reportError(ex);
-        return;
+        // no default reader or _shellSvc is null
       }
-
-      let selectedIndex = shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
-      document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
+    }
+
+    return false;
+  },
+
+  get defaultDescription() {
+    if (this.hasDefaultHandler)
+      return this._defaultApplicationHandler.name;
+
+    // Should we instead return null?
+    return "";
+  },
+
+  // What to do with content of this type.
+  get preferredAction() {
+    switch (this.element(this._prefSelectedAction).value) {
+
+      case "bookmarks":
+        return Ci.nsIHandlerInfo.handleInternally;
+
+      case "reader": {
+        let preferredApp = this.preferredApplicationHandler;
+        let defaultApp = this._defaultApplicationHandler;
+
+        // If we have a valid preferred app, return useSystemDefault if it's
+        // the default app; otherwise return useHelperApp.
+        if (gMainPane.isValidHandlerApp(preferredApp)) {
+          if (defaultApp && defaultApp.equals(preferredApp))
+            return Ci.nsIHandlerInfo.useSystemDefault;
+
+          return Ci.nsIHandlerInfo.useHelperApp;
+        }
+
+        // The pref is set to "reader", but we don't have a valid preferred app.
+        // What do we do now?  Not sure this is the best option (perhaps we
+        // should direct the user to the default app, if any), but for now let's
+        // direct the user to live bookmarks.
+        return Ci.nsIHandlerInfo.handleInternally;
+      }
+
+      // If the action is "ask", then alwaysAskBeforeHandling will override
+      // the action, so it doesn't matter what we say it is, it just has to be
+      // something that doesn't cause the controller to hide the type.
+      case "ask":
+      default:
+        return Ci.nsIHandlerInfo.handleInternally;
     }
   },
+
+  set preferredAction(aNewValue) {
+    switch (aNewValue) {
+
+      case Ci.nsIHandlerInfo.handleInternally:
+        this.element(this._prefSelectedReader).value = "bookmarks";
+        break;
+
+      case Ci.nsIHandlerInfo.useHelperApp:
+        this.element(this._prefSelectedAction).value = "reader";
+        // The controller has already set preferredApplicationHandler
+        // to the new helper app.
+        break;
+
+      case Ci.nsIHandlerInfo.useSystemDefault:
+        this.element(this._prefSelectedAction).value = "reader";
+        this.preferredApplicationHandler = this._defaultApplicationHandler;
+        break;
+    }
+  },
+
+  get alwaysAskBeforeHandling() {
+    return this.element(this._prefSelectedAction).value == "ask";
+  },
+
+  set alwaysAskBeforeHandling(aNewValue) {
+    if (aNewValue == true)
+      this.element(this._prefSelectedAction).value = "ask";
+    else
+      this.element(this._prefSelectedAction).value = "reader";
+  },
+
+  // Whether or not we are currently storing the action selected by the user.
+  // We use this to suppress notification-triggered updates to the list when
+  // we make changes that may spawn such updates, specifically when we change
+  // the action for the feed type, which results in feed preference updates,
+  // which spawn "pref changed" notifications that would otherwise cause us
+  // to rebuild the view unnecessarily.
+  _storingAction: false,
+
+
+  // nsIMIMEInfo
+
+  get primaryExtension() {
+    return "xml";
+  },
+
+
+  // Storage
+
+  // Changes to the preferred action and handler take effect immediately
+  // (we write them out to the preferences right as they happen),
+  // so we when the controller calls store() after modifying the handlers,
+  // the only thing we need to store is the removal of possible handlers
+  // XXX Should we hold off on making the changes until this method gets called?
+  store() {
+    for (let app of this._possibleApplicationHandlers._removed) {
+      if (app instanceof Ci.nsILocalHandlerApp) {
+        let pref = this.element(PREF_FEED_SELECTED_APP);
+        var preferredAppFile = pref.value;
+        if (preferredAppFile) {
+          let preferredApp = getLocalHandlerApp(preferredAppFile);
+          if (app.equals(preferredApp))
+            pref.reset();
+        }
+      } else {
+        app.QueryInterface(Ci.nsIWebContentHandlerInfo);
+        this._converterSvc.removeContentHandler(app.contentType, app.uri);
+      }
+    }
+    this._possibleApplicationHandlers._removed = [];
+  },
+
+
+  // Icons
+
+  get smallIcon() {
+    return this._smallIcon;
+  }
+
 };
+
+var feedHandlerInfo = {
+  __proto__: new FeedHandlerInfo(TYPE_MAYBE_FEED),
+  _prefSelectedApp: PREF_FEED_SELECTED_APP,
+  _prefSelectedWeb: PREF_FEED_SELECTED_WEB,
+  _prefSelectedAction: PREF_FEED_SELECTED_ACTION,
+  _prefSelectedReader: PREF_FEED_SELECTED_READER,
+  _smallIcon: "chrome://browser/skin/feeds/feedIcon16.png",
+  _appPrefLabel: "webFeed"
+}
+
+var videoFeedHandlerInfo = {
+  __proto__: new FeedHandlerInfo(TYPE_MAYBE_VIDEO_FEED),
+  _prefSelectedApp: PREF_VIDEO_FEED_SELECTED_APP,
+  _prefSelectedWeb: PREF_VIDEO_FEED_SELECTED_WEB,
+  _prefSelectedAction: PREF_VIDEO_FEED_SELECTED_ACTION,
+  _prefSelectedReader: PREF_VIDEO_FEED_SELECTED_READER,
+  _smallIcon: "chrome://browser/skin/feeds/videoFeedIcon16.png",
+  _appPrefLabel: "videoPodcastFeed"
+}
+
+var audioFeedHandlerInfo = {
+  __proto__: new FeedHandlerInfo(TYPE_MAYBE_AUDIO_FEED),
+  _prefSelectedApp: PREF_AUDIO_FEED_SELECTED_APP,
+  _prefSelectedWeb: PREF_AUDIO_FEED_SELECTED_WEB,
+  _prefSelectedAction: PREF_AUDIO_FEED_SELECTED_ACTION,
+  _prefSelectedReader: PREF_AUDIO_FEED_SELECTED_READER,
+  _smallIcon: "chrome://browser/skin/feeds/audioFeedIcon16.png",
+  _appPrefLabel: "audioPodcastFeed"
+}
+
+/**
+ * InternalHandlerInfoWrapper provides a basic mechanism to create an internal
+ * mime type handler that can be enabled/disabled in the applications preference
+ * menu.
+ */
+function InternalHandlerInfoWrapper(aMIMEType) {
+  var mimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
+  var handlerInfo = mimeSvc.getFromTypeAndExtension(aMIMEType, null);
+
+  HandlerInfoWrapper.call(this, aMIMEType, handlerInfo);
+}
+
+InternalHandlerInfoWrapper.prototype = {
+  __proto__: HandlerInfoWrapper.prototype,
+
+  // Override store so we so we can notify any code listening for registration
+  // or unregistration of this handler.
+  store() {
+    HandlerInfoWrapper.prototype.store.call(this);
+    Services.obs.notifyObservers(null, this._handlerChanged);
+  },
+
+  get enabled() {
+    throw Cr.NS_ERROR_NOT_IMPLEMENTED;
+  },
+
+  get description() {
+    return this.element("bundlePreferences").getString(this._appPrefLabel);
+  }
+};
+
+var pdfHandlerInfo = {
+  __proto__: new InternalHandlerInfoWrapper(TYPE_PDF),
+  _handlerChanged: TOPIC_PDFJS_HANDLER_CHANGED,
+  _appPrefLabel: "portableDocumentFormat",
+  get enabled() {
+    return !Services.prefs.getBoolPref(PREF_PDFJS_DISABLED);
+  },
+};
--- a/browser/components/preferences/in-content/main.xul
+++ b/browser/components/preferences/in-content/main.xul
@@ -2,16 +2,23 @@
 # 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/.
 
 <!-- General panel -->
 
 <script type="application/javascript"
         src="chrome://browser/content/preferences/in-content/main.js"/>
 
+#ifdef MOZ_UPDATER
+  <script type="application/javascript" src="chrome://browser/content/aboutDialog-appUpdater.js"/>
+#endif
+
+<script type="application/javascript"
+        src="chrome://mozapps/content/preferences/fontbuilder.js"/>
+
 <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences.properties"/>
 
 <preferences id="mainPreferences" hidden="true" data-category="paneGeneral">
 
 #ifdef E10S_TESTING_ONLY
     <preference id="browser.tabs.remote.autostart"
                 name="browser.tabs.remote.autostart"
                 type="bool"/>
@@ -106,40 +113,174 @@
     <preference id="browser.taskbar.previews.enable"
                 name="browser.taskbar.previews.enable"
                 type="bool"/>
 #endif
     <preference id="browser.ctrlTab.previews"
                 name="browser.ctrlTab.previews"
                 type="bool"/>
 
+  <!-- Fonts -->
+  <preference id="font.language.group"
+              name="font.language.group"
+              type="wstring"/>
+
+  <!-- Languages -->
+  <preference id="browser.translation.detectLanguage"
+              name="browser.translation.detectLanguage"
+              type="bool"/>
+
+  <!-- General tab -->
+
+  <!-- Accessibility
+   * accessibility.browsewithcaret
+     - true enables keyboard navigation and selection within web pages using a
+       visible caret, false uses normal keyboard navigation with no caret
+   * accessibility.typeaheadfind
+     - when set to true, typing outside text areas and input boxes will
+       automatically start searching for what's typed within the current
+       document; when set to false, no search action happens -->
+  <preference id="accessibility.browsewithcaret"
+              name="accessibility.browsewithcaret"
+              type="bool"/>
+  <preference id="accessibility.typeaheadfind"
+              name="accessibility.typeaheadfind"
+              type="bool"/>
+  <preference id="accessibility.blockautorefresh"
+              name="accessibility.blockautorefresh"
+              type="bool"/>
+#ifdef XP_WIN
+  <preference id="ui.osk.enabled"
+              name="ui.osk.enabled"
+              type="bool"/>
+#endif
+  <!-- Browsing
+   * general.autoScroll
+     - when set to true, clicking the scroll wheel on the mouse activates a
+       mouse mode where moving the mouse down scrolls the document downward with
+       speed correlated with the distance of the cursor from the original
+       position at which the click occurred (and likewise with movement upward);
+       if false, this behavior is disabled
+   * general.smoothScroll
+     - set to true to enable finer page scrolling than line-by-line on page-up,
+       page-down, and other such page movements -->
+  <preference id="general.autoScroll"
+              name="general.autoScroll"
+              type="bool"/>
+  <preference id="general.smoothScroll"
+              name="general.smoothScroll"
+              type="bool"/>
+  <preference id="layout.spellcheckDefault"
+              name="layout.spellcheckDefault"
+              type="int"/>
+
+  <preference id="toolkit.telemetry.enabled"
+              name="toolkit.telemetry.enabled"
+              type="bool"/>
+
   <preference id="browser.preferences.defaultPerformanceSettings.enabled"
               name="browser.preferences.defaultPerformanceSettings.enabled"
               type="bool"/>
 
   <preference id="dom.ipc.processCount"
               name="dom.ipc.processCount"
               type="int"/>
 
   <preference id="dom.ipc.processCount.web"
               name="dom.ipc.processCount.web"
               type="int"/>
 
   <preference id="layers.acceleration.disabled"
               name="layers.acceleration.disabled"
               type="bool"
               inverted="true"/>
+
+  <!-- Files and Applications -->
+  <preference id="browser.feeds.handler"
+              name="browser.feeds.handler"
+              type="string"/>
+  <preference id="browser.feeds.handler.default"
+              name="browser.feeds.handler.default"
+              type="string"/>
+  <preference id="browser.feeds.handlers.application"
+              name="browser.feeds.handlers.application"
+              type="file"/>
+  <preference id="browser.feeds.handlers.webservice"
+              name="browser.feeds.handlers.webservice"
+              type="string"/>
+
+  <preference id="browser.videoFeeds.handler"
+              name="browser.videoFeeds.handler"
+              type="string"/>
+  <preference id="browser.videoFeeds.handler.default"
+              name="browser.videoFeeds.handler.default"
+              type="string"/>
+  <preference id="browser.videoFeeds.handlers.application"
+              name="browser.videoFeeds.handlers.application"
+              type="file"/>
+  <preference id="browser.videoFeeds.handlers.webservice"
+              name="browser.videoFeeds.handlers.webservice"
+              type="string"/>
+
+  <preference id="browser.audioFeeds.handler"
+              name="browser.audioFeeds.handler"
+              type="string"/>
+  <preference id="browser.audioFeeds.handler.default"
+              name="browser.audioFeeds.handler.default"
+              type="string"/>
+  <preference id="browser.audioFeeds.handlers.application"
+              name="browser.audioFeeds.handlers.application"
+              type="file"/>
+  <preference id="browser.audioFeeds.handlers.webservice"
+              name="browser.audioFeeds.handlers.webservice"
+              type="string"/>
+
+  <preference id="pref.downloads.disable_button.edit_actions"
+              name="pref.downloads.disable_button.edit_actions"
+              type="bool"/>
+
+  <!-- DRM content -->
+  <preference id="media.eme.enabled"
+              name="media.eme.enabled"
+              type="bool"/>
+
+  <!-- Update -->
+  <preference id="browser.preferences.advanced.selectedTabIndex"
+              name="browser.preferences.advanced.selectedTabIndex"
+              type="int"/>
+
+#ifdef MOZ_UPDATER
+  <preference id="app.update.enabled"
+              name="app.update.enabled"
+              type="bool"/>
+  <preference id="app.update.auto"
+              name="app.update.auto"
+              type="bool"/>
+
+  <preference id="app.update.disable_button.showUpdateHistory"
+              name="app.update.disable_button.showUpdateHistory"
+              type="bool"/>
+
+#ifdef MOZ_MAINTENANCE_SERVICE
+  <preference id="app.update.service.enabled"
+              name="app.update.service.enabled"
+              type="bool"/>
+#endif
+#endif
+
+  <preference id="browser.search.update"
+              name="browser.search.update"
+              type="bool"/>
 </preferences>
 
-<hbox id="header-general"
-      class="header"
+<hbox id="generalCategory"
+      class="subcategory"
       hidden="true"
       data-category="paneGeneral">
   <label class="header-name" flex="1">&paneGeneral.title;</label>
-  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
 </hbox>
 
 <!-- Startup -->
 <groupbox id="startupGroup"
           data-category="paneGeneral"
           hidden="true">
   <caption><label>&startup.label;</label></caption>
 
@@ -159,40 +300,41 @@
 
 #ifdef E10S_TESTING_ONLY
   <checkbox id="e10sAutoStart"
             label="&e10sEnabled.label;"/>
 #endif
 
 #ifdef HAVE_SHELL_SERVICE
   <vbox id="defaultBrowserBox">
-    <hbox align="center">
-      <checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
-                label="&alwaysCheckDefault2.label;" accesskey="&alwaysCheckDefault2.accesskey;"/>
-    </hbox>
+    <checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
+              label="&alwaysCheckDefault2.label;" accesskey="&alwaysCheckDefault2.accesskey;"/>
     <deck id="setDefaultPane">
       <hbox align="center" class="indent">
+        <image class="face-sad"/>
         <label id="isNotDefaultLabel" flex="1">&isNotDefault.label;</label>
         <button id="setDefaultButton"
-                label="&setAsMyDefaultBrowser2.label;" accesskey="&setAsMyDefaultBrowser2.accesskey;"
+                class="accessory-button"
+                label="&setAsMyDefaultBrowser3.label;" accesskey="&setAsMyDefaultBrowser3.accesskey;"
                 preference="pref.general.disable_button.default_browser"/>
       </hbox>
       <hbox align="center" class="indent">
+        <image class="face-smile"/>
         <label id="isDefaultLabel" flex="1">&isDefault.label;</label>
       </hbox>
     </deck>
     <separator class="thin"/>
   </vbox>
 #endif
 
   <html:table id="startupTable">
     <html:tr>
       <html:td class="label-cell">
-        <label accesskey="&startupPage.accesskey;"
-               control="browserStartupPage">&startupPage.label;</label>
+        <label accesskey="&startupPage2.accesskey;"
+               control="browserStartupPage">&startupPage2.label;</label>
       </html:td>
       <html:td class="content-cell">
         <menulist id="browserStartupPage"
                   class="content-cell-item"
                   preference="browser.startup.page">
           <menupopup>
           <menuitem label="&startupUserHomePage.label;"
                     value="1"
@@ -202,106 +344,61 @@
                     id="browserStartupBlank"/>
           <menuitem label="&startupPrevSession.label;"
                     value="3"
                     id="browserStartupLastSession"/>
           </menupopup>
         </menulist>
       </html:td>
     </html:tr>
-    <html:tr>
+    <html:tr class="tableGroup">
       <html:td class="label-cell">
-        <label accesskey="&homepage.accesskey;"
-               control="browserHomePage">&homepage.label;</label>
+        <label accesskey="&homepage2.accesskey;"
+               control="browserHomePage">&homepage2.label;</label>
       </html:td>
       <html:td class="content-cell">
         <textbox id="browserHomePage"
                  class="padded uri-element content-cell-item"
                  type="autocomplete"
                  autocompletesearch="unifiedcomplete"
                  onsyncfrompreference="return gMainPane.syncFromHomePref();"
                  onsynctopreference="return gMainPane.syncToHomePref(this.value);"
                  placeholder="&abouthome.pageTitle;"
                  preference="browser.startup.homepage"/>
       </html:td>
     </html:tr>
-    <html:tr>
+    <html:tr class="tableSubGroup">
       <html:td class="label-cell" />
       <html:td class="content-cell homepage-buttons">
         <button id="useCurrent"
                 class="content-cell-item"
                 label=""
                 accesskey="&useCurrentPage.accesskey;"
                 label1="&useCurrentPage.label;"
                 label2="&useMultiple.label;"
                 preference="pref.browser.homepage.disable_button.current_page"/>
         <button id="useBookmark"
                 class="content-cell-item"
                 label="&chooseBookmark.label;"
                 accesskey="&chooseBookmark.accesskey;"
-                preference="pref.browser.homepage.disable_button.bookmark_page"/>
+                preference="pref.browser.homepage.disable_button.bookmark_page"
+                searchkeywords="&selectBookmark.title; &selectBookmark.label;"/>
         <button id="restoreDefaultHomePage"
                 class="content-cell-item"
                 label="&restoreDefault.label;"
                 accesskey="&restoreDefault.accesskey;"
                 preference="pref.browser.homepage.disable_button.restore_default"/>
       </html:td>
     </html:tr>
   </html:table>
 </groupbox>
 
-<!-- Downloads -->
-<groupbox id="downloadsGroup"
-          data-category="paneGeneral"
-          hidden="true">
-  <caption><label>&downloads.label;</label></caption>
-
-  <radiogroup id="saveWhere"
-              preference="browser.download.useDownloadDir"
-              onsyncfrompreference="return gMainPane.readUseDownloadDir();">
-    <hbox id="saveToRow">
-      <radio id="saveTo"
-             value="true"
-             label="&saveTo.label;"
-             accesskey="&saveTo.accesskey;"
-             aria-labelledby="saveTo downloadFolder"/>
-      <filefield id="downloadFolder"
-                 flex="1"
-                 preference="browser.download.folderList"
-                 preference-editable="true"
-                 aria-labelledby="saveTo"
-                 onsyncfrompreference="return gMainPane.displayDownloadDirPref();"/>
-      <button id="chooseFolder"
-#ifdef XP_MACOSX
-              accesskey="&chooseFolderMac.accesskey;"
-              label="&chooseFolderMac.label;"
-#else
-              accesskey="&chooseFolderWin.accesskey;"
-              label="&chooseFolderWin.label;"
-#endif
-      />
-    </hbox>
-    <hbox>
-      <!-- Additional radio button added to support CloudStorage - Bug 1357171 -->
-      <radio id="saveToCloud"
-            value="true"
-            hidden="true"/>
-    </hbox>
-    <hbox>
-      <radio id="alwaysAsk"
-            value="false"
-            label="&alwaysAskWhere.label;"
-            accesskey="&alwaysAskWhere.accesskey;"/>
-    </hbox>
-  </radiogroup>
-</groupbox>
-
 <!-- Tab preferences -->
 <groupbox data-category="paneGeneral"
-          hidden="true" align="start">
+          hidden="true">
     <caption><label>&tabsGroup.label;</label></caption>
 
     <checkbox id="ctrlTabRecentlyUsedOrder" label="&ctrlTabRecentlyUsedOrder.label;"
               accesskey="&ctrlTabRecentlyUsedOrder.accesskey;"
               preference="browser.ctrlTab.previews"/>
 
     <checkbox id="linkTargeting" label="&newWindowsAsTabs.label;"
               accesskey="&newWindowsAsTabs.accesskey;"
@@ -321,30 +418,511 @@
               accesskey="&switchLinksToNewTabs.accesskey;"
               preference="browser.tabs.loadInBackground"/>
 
 #ifdef XP_WIN
     <checkbox id="showTabsInTaskbar" label="&showTabsInTaskbar.label;"
               accesskey="&showTabsInTaskbar.accesskey;"
               preference="browser.taskbar.previews.enable"/>
 #endif
+
+    <hbox id="browserContainersbox" hidden="true" align="center">
+      <checkbox id="browserContainersCheckbox"
+                label="&browserContainersEnabled.label;"
+                accesskey="&browserContainersEnabled.accesskey;"
+                preference="privacy.userContext.enabled"
+                onsyncfrompreference="return gPrivacyPane.readBrowserContainersCheckbox();"/>
+      <label id="browserContainersLearnMore" class="learnMore text-link">
+        &browserContainersLearnMore.label;
+      </label>
+      <spacer flex="1"/>
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox>
+        <button id="browserContainersSettings"
+                class="accessory-button"
+                label="&browserContainersSettings.label;"
+                accesskey="&browserContainersSettings.accesskey;"
+                searchkeywords="&addButton.label;
+                                &preferencesButton.label;
+                                &removeButton.label;"/>
+      </hbox>
+    </hbox>
 </groupbox>
 
+<hbox id="languageAndAppearanceCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="paneGeneral">
+  <label class="header-name" flex="1">&languageAndAppearance.label;</label>
+</hbox>
+
+<!-- Fonts and Colors -->
+<groupbox id="fontsGroup" data-category="paneGeneral" hidden="true">
+  <caption><label>&fontsAndColors.label;</label></caption>
+
+  <vbox>
+    <hbox id="fontSettings">
+      <hbox align="center" flex="1">
+        <label control="defaultFont" accesskey="&defaultFont2.accesskey;">&defaultFont2.label;</label>
+        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+        <hbox flex="1">
+          <menulist id="defaultFont" flex="1" delayprefsave="true" onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
+        </hbox>
+        <label id="defaultFontSizeLabel" control="defaultFontSize" accesskey="&defaultSize2.accesskey;">&defaultSize2.label;</label>
+        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+        <hbox>
+          <menulist id="defaultFontSize" delayprefsave="true">
+            <menupopup>
+              <menuitem value="9" label="9"/>
+              <menuitem value="10" label="10"/>
+              <menuitem value="11" label="11"/>
+              <menuitem value="12" label="12"/>
+              <menuitem value="13" label="13"/>
+              <menuitem value="14" label="14"/>
+              <menuitem value="15" label="15"/>
+              <menuitem value="16" label="16"/>
+              <menuitem value="17" label="17"/>
+              <menuitem value="18" label="18"/>
+              <menuitem value="20" label="20"/>
+              <menuitem value="22" label="22"/>
+              <menuitem value="24" label="24"/>
+              <menuitem value="26" label="26"/>
+              <menuitem value="28" label="28"/>
+              <menuitem value="30" label="30"/>
+              <menuitem value="32" label="32"/>
+              <menuitem value="34" label="34"/>
+              <menuitem value="36" label="36"/>
+              <menuitem value="40" label="40"/>
+              <menuitem value="44" label="44"/>
+              <menuitem value="48" label="48"/>
+              <menuitem value="56" label="56"/>
+              <menuitem value="64" label="64"/>
+              <menuitem value="72" label="72"/>
+            </menupopup>
+          </menulist>
+        </hbox>
+      </hbox>
+      <spacer flex="1" />
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox>
+        <button id="advancedFonts"
+                class="accessory-button"
+                icon="select-font"
+                label="&advancedFonts.label;"
+                accesskey="&advancedFonts.accesskey;"
+                searchkeywords="&fontsDialog.title;
+                                &fonts.label;
+                                &size2.label;
+                                &proportional2.label;
+                                &serif2.label;
+                                &sans-serif2.label;
+                                &monospace2.label;
+                                &font.langGroup.latin;
+                                &font.langGroup.japanese;
+                                &font.langGroup.trad-chinese;
+                                &font.langGroup.simpl-chinese;
+                                &font.langGroup.trad-chinese-hk;
+                                &font.langGroup.korean;
+                                &font.langGroup.cyrillic;
+                                &font.langGroup.el;
+                                &font.langGroup.other;
+                                &font.langGroup.thai;
+                                &font.langGroup.hebrew;
+                                &font.langGroup.arabic;
+                                &font.langGroup.devanagari;
+                                &font.langGroup.tamil;
+                                &font.langGroup.armenian;
+                                &font.langGroup.bengali;
+                                &font.langGroup.canadian;
+                                &font.langGroup.ethiopic;
+                                &font.langGroup.georgian;
+                                &font.langGroup.gujarati;
+                                &font.langGroup.gurmukhi;
+                                &font.langGroup.khmer;
+                                &font.langGroup.malayalam;
+                                &font.langGroup.math;
+                                &font.langGroup.odia;
+                                &font.langGroup.telugu;
+                                &font.langGroup.kannada;
+                                &font.langGroup.sinhala;
+                                &font.langGroup.tibetan;
+                                &minSize2.label;
+                                &minSize.none;
+                                &useDefaultFontSerif.label;
+                                &useDefaultFontSansSerif.label;
+                                &allowPagesToUseOwn.label;
+                                &languages.customize.Fallback2.grouplabel;
+                                &languages.customize.Fallback3.label;
+                                &languages.customize.Fallback2.desc;
+                                &languages.customize.Fallback.auto;
+                                &languages.customize.Fallback.arabic;
+                                &languages.customize.Fallback.baltic;
+                                &languages.customize.Fallback.ceiso;
+                                &languages.customize.Fallback.cewindows;
+                                &languages.customize.Fallback.simplified;
+                                &languages.customize.Fallback.traditional;
+                                &languages.customize.Fallback.cyrillic;
+                                &languages.customize.Fallback.greek;
+                                &languages.customize.Fallback.hebrew;
+                                &languages.customize.Fallback.japanese;
+                                &languages.customize.Fallback.korean;
+                                &languages.customize.Fallback.thai;
+                                &languages.customize.Fallback.turkish;
+                                &languages.customize.Fallback.vietnamese;
+                                &languages.customize.Fallback.other;"/>
+      </hbox>
+    </hbox>
+    <hbox id="colorsSettings">
+      <spacer flex="1" />
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox>
+        <button id="colors"
+                class="accessory-button"
+                icon="select-color"
+                label="&colors.label;"
+                accesskey="&colors.accesskey;"
+                searchkeywords="&overrideDefaultPageColors.label;
+                                &overrideDefaultPageColors.always.label;
+                                &overrideDefaultPageColors.auto.label;
+                                &overrideDefaultPageColors.never.label;
+                                &color;
+                                &textColor2.label;
+                                &backgroundColor2.label;
+                                &useSystemColors.label;
+                                &underlineLinks.label;
+                                &linkColor2.label;
+                                &visitedLinkColor2.label;"/>
+      </hbox>
+    </hbox>
+  </vbox>
+</groupbox>
+
+<!-- Languages -->
+<groupbox id="languagesGroup" data-category="paneGeneral" hidden="true">
+  <caption><label>&language2.label;</label></caption>
+
+  <hbox id="languagesBox" align="center">
+    <description flex="1" control="chooseLanguage">&chooseLanguage.label;</description>
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="chooseLanguage"
+              class="accessory-button"
+              label="&chooseButton.label;"
+              accesskey="&chooseButton.accesskey;"
+              searchkeywords="&languages.customize.Header;
+                              &languages.customize2.description;
+                              &languages.customize.moveUp.label;
+                              &languages.customize.moveDown.label;
+                              &languages.customize.deleteButton.label;
+                              &languages.customize.selectLanguage.label;
+                              &languages.customize.addButton.label;"/>
+    </hbox>
+  </hbox>
+
+  <hbox id="translationBox" hidden="true">
+    <hbox align="center" flex="1">
+      <checkbox id="translate" preference="browser.translation.detectLanguage"
+                label="&translateWebPages.label;." accesskey="&translateWebPages.accesskey;"
+                onsyncfrompreference="return gMainPane.updateButtons('translateButton',
+                                              'browser.translation.detectLanguage');"/>
+      <hbox id="bingAttribution" hidden="true">
+        <label>&translation.options.attribution.beforeLogo;</label>
+        <separator orient="vertical" class="thin"/>
+        <image id="translationAttributionImage" aria-label="Microsoft Translator"
+               src="chrome://browser/content/microsoft-translator-attribution.png"/>
+        <separator orient="vertical" class="thin"/>
+        <label>&translation.options.attribution.afterLogo;</label>
+      </hbox>
+    </hbox>
+    <button id="translateButton"
+            class="accessory-button"
+            label="&translateExceptions.label;"
+            accesskey="&translateExceptions.accesskey;"/>
+  </hbox>
+  <checkbox id="checkSpelling"
+          label="&checkUserSpelling.label;"
+          accesskey="&checkUserSpelling.accesskey;"
+          onsyncfrompreference="return gMainPane.readCheckSpelling();"
+          onsynctopreference="return gMainPane.writeCheckSpelling();"
+          preference="layout.spellcheckDefault"/>
+</groupbox>
+
+<!-- Files and Applications -->
+<hbox id="filesAndApplicationsCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="paneGeneral">
+  <label class="header-name" flex="1">&filesAndApplications.label;</label>
+</hbox>
+
+<!--Downloads-->
+<groupbox id="downloadsGroup" data-category="paneGeneral" hidden="true">
+  <caption><label>&downloads.label;</label></caption>
+
+  <radiogroup id="saveWhere"
+              preference="browser.download.useDownloadDir"
+              onsyncfrompreference="return gMainPane.readUseDownloadDir();">
+    <hbox id="saveToRow">
+      <radio id="saveTo"
+            value="true"
+            label="&saveTo.label;"
+            accesskey="&saveTo.accesskey;"
+            aria-labelledby="saveTo downloadFolder"/>
+      <filefield id="downloadFolder"
+                flex="1"
+                preference="browser.download.folderList"
+                preference-editable="true"
+                aria-labelledby="saveTo"
+                onsyncfrompreference="return gMainPane.displayDownloadDirPref();"/>
+      <button id="chooseFolder"
+#ifdef XP_MACOSX
+              accesskey="&chooseFolderMac.accesskey;"
+              label="&chooseFolderMac.label;"
+#else
+              accesskey="&chooseFolderWin.accesskey;"
+              label="&chooseFolderWin.label;"
+#endif
+      />
+    </hbox>
+    <!-- Additional radio button added to support CloudStorage - Bug 1357171 -->
+    <radio id="saveToCloud"
+          value="true"
+          hidden="true"/>
+    <radio id="alwaysAsk"
+          value="false"
+          label="&alwaysAskWhere.label;"
+          accesskey="&alwaysAskWhere.accesskey;"/>
+  </radiogroup>
+</groupbox>
+
+<groupbox id="applicationsGroup" data-category="paneGeneral" hidden="true">
+  <caption><label>&applications.label;</label></caption>
+  <description>&applications.description;</description>
+  <textbox id="filter" flex="1"
+           type="search"
+           placeholder="&filter2.emptytext;"
+           aria-controls="handlersView"/>
+
+  <richlistbox id="handlersView" orient="vertical" persist="lastSelectedType"
+               preference="pref.downloads.disable_button.edit_actions"
+               flex="1">
+    <listheader equalsize="always">
+        <treecol id="typeColumn" label="&typeColumn.label;" value="type"
+                 accesskey="&typeColumn.accesskey;" persist="sortDirection"
+                 flex="1" sortDirection="ascending"/>
+        <treecol id="actionColumn" label="&actionColumn2.label;" value="action"
+                 accesskey="&actionColumn2.accesskey;" persist="sortDirection"
+                 flex="1"/>
+    </listheader>
+  </richlistbox>
+</groupbox>
+
+
+<!-- DRM Content -->
+<groupbox id="drmGroup" data-category="paneGeneral" data-subcategory="drm" hidden="true">
+  <caption><label>&drmContent2.label;</label></caption>
+  <grid id="contentGrid2">
+    <columns>
+      <column flex="1"/>
+      <column/>
+    </columns>
+    <rows id="contentRows-2">
+      <row id="playDRMContentRow">
+        <hbox align="center">
+          <checkbox id="playDRMContent" preference="media.eme.enabled"
+                    label="&playDRMContent2.label;" accesskey="&playDRMContent2.accesskey;"/>
+          <label id="playDRMContentLink" class="learnMore text-link">
+            &playDRMContent.learnMore.label;
+          </label>
+        </hbox>
+      </row>
+    </rows>
+  </grid>
+</groupbox>
+
+#ifdef HAVE_SHELL_SERVICE
+  <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
+  <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
+#endif
+
+<hbox id="updatesCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="paneGeneral">
+  <label class="header-name" flex="1">&updateApplication.label;</label>
+</hbox>
+
+<!-- Update -->
+<groupbox id="updateApp" data-category="paneGeneral" hidden="true">
+  <caption class="search-header" hidden="true"><label>&updateApplication.label;</label></caption>
+
+  <label>&updateApplicationDescription.label;</label>
+  <hbox align="start">
+    <vbox flex="1">
+      <description>
+        &updateApplication.version.pre;<label id="version"/>&updateApplication.version.post;
+        <label id="releasenotes" class="learnMore text-link" hidden="true">&releaseNotes.link;</label>
+      </description>
+      <description id="distribution" class="text-blurb" hidden="true"/>
+      <description id="distributionId" class="text-blurb" hidden="true"/>
+    </vbox>
+#ifdef MOZ_UPDATER
+    <spacer flex="1"/>
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <vbox>
+      <button id="showUpdateHistory"
+              class="accessory-button"
+              label="&updateHistory2.label;"
+              accesskey="&updateHistory2.accesskey;"
+              preference="app.update.disable_button.showUpdateHistory"
+              searchkeywords="&history.title; &history2.intro;"/>
+    </vbox>
+#endif
+  </hbox>
+#ifdef MOZ_UPDATER
+  <vbox id="updateBox">
+    <deck id="updateDeck" orient="vertical">
+      <hbox id="checkForUpdates" align="start">
+        <spacer flex="1"/>
+        <button id="checkForUpdatesButton"
+                label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                oncommand="gAppUpdater.checkForUpdates();"/>
+      </hbox>
+      <hbox id="downloadAndInstall" align="start">
+        <spacer flex="1"/>
+        <button id="downloadAndInstallButton"
+                oncommand="gAppUpdater.startDownload();"/>
+                <!-- label and accesskey will be filled by JS -->
+      </hbox>
+      <hbox id="apply" align="start">
+        <spacer flex="1"/>
+        <button id="updateButton"
+                label="&update.updateButton.label3;"
+                accesskey="&update.updateButton.accesskey;"
+                oncommand="gAppUpdater.buttonRestartAfterDownload();"/>
+      </hbox>
+      <hbox id="checkingForUpdates" align="start">
+        <image class="update-throbber"/><label>&update.checkingForUpdates;</label>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                disabled="true"/>
+      </hbox>
+      <hbox id="downloading" align="start">
+        <image class="update-throbber"/><label>&update.downloading.start;</label><label id="downloadStatus"/><label>&update.downloading.end;</label>
+      </hbox>
+      <hbox id="applying" align="start">
+        <image class="update-throbber"/><label>&update.applying;</label>
+      </hbox>
+      <hbox id="downloadFailed" align="start">
+        <label>&update.failed.start;</label><label id="failedLink" class="text-link">&update.failed.linkText;</label><label>&update.failed.end;</label>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                oncommand="gAppUpdater.checkForUpdates();"/>
+      </hbox>
+      <hbox id="adminDisabled" align="start">
+        <label>&update.adminDisabled;</label>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                disabled="true"/>
+      </hbox>
+      <hbox id="noUpdatesFound" align="start">
+        <image class="face-smile"/>
+        <label>&update.noUpdatesFound;</label>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                oncommand="gAppUpdater.checkForUpdates();"/>
+      </hbox>
+      <hbox id="otherInstanceHandlingUpdates" align="start">
+        <label>&update.otherInstanceHandlingUpdates;</label>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                disabled="true"/>
+      </hbox>
+      <hbox id="manualUpdate" align="start">
+        <image class="face-sad"/>
+        <description flex="1">
+          <label>&update.manual.start;</label><label id="manualLink" class="text-link"/><label>&update.manual.end;</label>
+        </description>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                disabled="true"/>
+      </hbox>
+      <hbox id="unsupportedSystem" align="start">
+        <description flex="1">
+          <label>&update.unsupported.start;</label><label id="unsupportedLink" class="learnMore text-link">&update.unsupported.linkText;</label><label>&update.unsupported.end;</label>
+        </description>
+        <spacer flex="1"/>
+        <button label="&update.checkForUpdatesButton.label;"
+                accesskey="&update.checkForUpdatesButton.accesskey;"
+                disabled="true"/>
+      </hbox>
+      <hbox id="restarting" align="start">
+        <image class="update-throbber"/><label>&update.restarting;</label>
+        <spacer flex="1"/>
+        <button label="&update.updateButton.label3;"
+                accesskey="&update.updateButton.accesskey;"
+                disabled="true"/>
+      </hbox>
+    </deck>
+  </vbox>
+#endif
+
+#ifdef MOZ_UPDATER
+  <description>&updateApplication.description;</description>
+  <radiogroup id="updateRadioGroup">
+    <radio id="autoDesktop"
+           value="auto"
+           label="&updateAuto3.label;"
+           accesskey="&updateAuto3.accesskey;"/>
+    <radio value="checkOnly"
+          label="&updateCheckChoose2.label;"
+          accesskey="&updateCheckChoose2.accesskey;"/>
+    <radio value="manual"
+          label="&updateManual2.label;"
+          accesskey="&updateManual2.accesskey;"/>
+  </radiogroup>
+#ifdef MOZ_MAINTENANCE_SERVICE
+  <checkbox id="useService"
+            label="&useService.label;"
+            accesskey="&useService.accesskey;"
+            preference="app.update.service.enabled"/>
+#endif
+#endif
+  <checkbox id="enableSearchUpdate"
+            label="&enableSearchUpdate2.label;"
+            accesskey="&enableSearchUpdate2.accesskey;"
+            preference="browser.search.update"/>
+</groupbox>
+
+<hbox id="performanceCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="paneGeneral">
+  <label class="header-name" flex="1">&performance.label;</label>
+</hbox>
+
 <!-- Performance -->
 <groupbox id="performanceGroup" data-category="paneGeneral" hidden="true">
-  <caption><label>&performance.label;</label></caption>
+  <caption class="search-header" hidden="true"><label>&performance.label;</label></caption>
 
   <hbox align="center">
     <checkbox id="useRecommendedPerformanceSettings"
-              label="&useRecommendedPerformanceSettings.label;"
-              accesskey="&useRecommendedPerformanceSettings.accesskey;"
+              label="&useRecommendedPerformanceSettings2.label;"
+              accesskey="&useRecommendedPerformanceSettings2.accesskey;"
               preference="browser.preferences.defaultPerformanceSettings.enabled"/>
     <label id="performanceSettingsLearnMore" class="learnMore text-link">&performanceSettingsLearnMore.label;</label>
   </hbox>
-  <description class="indent">&useRecommendedPerformanceSettings.description;</description>
+  <description class="indent">&useRecommendedPerformanceSettings2.description;</description>
 
   <vbox id="performanceSettings" class="indent" hidden="true">
     <checkbox id="allowHWAccel"
               label="&allowHWAccel.label;"
               accesskey="&allowHWAccel.accesskey;"
               preference="layers.acceleration.disabled"/>
     <hbox align="center">
       <label id="limitContentProcess" accesskey="&limitContentProcessOption.accesskey;" control="contentProcessCount">&limitContentProcessOption.label;</label>
@@ -359,8 +937,88 @@
           <menuitem label="7" value="7"/>
         </menupopup>
       </menulist>
     </hbox>
     <description id="contentProcessCountEnabledDescription">&limitContentProcessOption.description;</description>
     <description id="contentProcessCountDisabledDescription">&limitContentProcessOption.disabledDescription;<label class="text-link" href="https://wiki.mozilla.org/Electrolysis">&limitContentProcessOption.disabledDescriptionLink;</label></description>
   </vbox>
 </groupbox>
+
+<hbox id="browsingCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="paneGeneral">
+  <label class="header-name" flex="1">&browsing.label;</label>
+</hbox>
+
+<!-- Browsing -->
+<groupbox id="browsingGroup" data-category="paneGeneral" hidden="true">
+  <caption class="search-header" hidden="true"><label>&browsing.label;</label></caption>
+
+  <checkbox id="useAutoScroll"
+            label="&useAutoScroll.label;"
+            accesskey="&useAutoScroll.accesskey;"
+            preference="general.autoScroll"/>
+  <checkbox id="useSmoothScrolling"
+            label="&useSmoothScrolling.label;"
+            accesskey="&useSmoothScrolling.accesskey;"
+            preference="general.smoothScroll"/>
+
+#ifdef XP_WIN
+  <checkbox id="useOnScreenKeyboard"
+            hidden="true"
+            label="&useOnScreenKeyboard.label;"
+            accesskey="&useOnScreenKeyboard.accesskey;"
+            preference="ui.osk.enabled"/>
+#endif
+  <checkbox id="useCursorNavigation"
+            label="&useCursorNavigation.label;"
+            accesskey="&useCursorNavigation.accesskey;"
+            preference="accessibility.browsewithcaret"/>
+  <checkbox id="searchStartTyping"
+            label="&searchOnStartTyping.label;"
+            accesskey="&searchOnStartTyping.accesskey;"
+            preference="accessibility.typeaheadfind"/>
+</groupbox>
+
+<hbox id="networkProxyCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="paneGeneral">
+  <label class="header-name" flex="1">&networkProxy.label;</label>
+</hbox>
+
+<!-- Network Proxy-->
+<groupbox id="connectionGroup" data-category="paneGeneral" hidden="true">
+  <caption class="search-header" hidden="true"><label>&networkProxy.label;</label></caption>
+
+  <hbox align="center">
+    <description flex="1" control="connectionSettings">&connectionDesc.label;</description>
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="connectionSettings"
+              class="accessory-button"
+              icon="network"
+              label="&connectionSettings.label;"
+              accesskey="&connectionSettings.accesskey;"
+              searchkeywords="&connectionsDialog.title;
+                              &noProxyTypeRadio.label;
+                              &WPADTypeRadio.label;
+                              &systemTypeRadio.label;
+                              &manualTypeRadio2.label;
+                              &http2.label;
+                              &ssl2.label;
+                              &ftp2.label;
+                              &port2.label;
+                              &socks2.label;
+                              &socks4.label;
+                              &socks5.label;
+                              &noproxy2.label;
+                              &noproxyExplain.label;
+                              &shareproxy.label;
+                              &autoTypeRadio2.label;
+                              &reload.label;
+                              &autologinproxy.label;
+                              &socksRemoteDNS.label2;"/>
+    </hbox>
+  </hbox>
+</groupbox>
\ No newline at end of file
--- a/browser/components/preferences/in-content/preferences.js
+++ b/browser/components/preferences/in-content/preferences.js
@@ -1,23 +1,20 @@
 /* - 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/. */
 
 // Import globals from the files imported by the .xul files.
 /* import-globals-from subdialogs.js */
-/* import-globals-from advanced.js */
 /* import-globals-from main.js */
 /* import-globals-from search.js */
 /* import-globals-from containers.js */
-/* import-globals-from content.js */
 /* import-globals-from privacy.js */
-/* import-globals-from applications.js */
-/* import-globals-from security.js */
 /* import-globals-from sync.js */
+/* import-globals-from findInPage.js */
 /* import-globals-from ../../../base/content/utilityOverlay.js */
 
 "use strict";
 
 var Cc = Components.classes;
 var Ci = Components.interfaces;
 var Cu = Components.utils;
 var Cr = Components.results;
@@ -55,21 +52,19 @@ document.addEventListener("DOMContentLoa
 function init_all() {
   document.documentElement.instantApply = true;
 
   gSubDialog.init();
   register_module("paneGeneral", gMainPane);
   register_module("paneSearch", gSearchPane);
   register_module("panePrivacy", gPrivacyPane);
   register_module("paneContainers", gContainersPane);
-  register_module("paneAdvanced", gAdvancedPane);
-  register_module("paneApplications", gApplicationsPane);
-  register_module("paneContent", gContentPane);
   register_module("paneSync", gSyncPane);
-  register_module("paneSecurity", gSecurityPane);
+  register_module("paneSearchResults", gSearchResultsPane);
+  gSearchResultsPane.init();
 
   let categories = document.getElementById("categories");
   categories.addEventListener("select", event => gotoPref(event.target.value));
 
   document.documentElement.addEventListener("keydown", function(event) {
     if (event.keyCode == KeyEvent.DOM_VK_TAB) {
       categories.setAttribute("keyboard-navigation", "true");
     }
@@ -78,136 +73,174 @@ function init_all() {
     this.removeAttribute("keyboard-navigation");
   });
 
   window.addEventListener("hashchange", onHashChange);
   gotoPref();
 
   init_dynamic_padding();
 
-  var initFinished = new CustomEvent("Initialized", {
+  let helpButton = document.querySelector(".help-button");
+  let helpUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "preferences";
+  helpButton.setAttribute("href", helpUrl);
+
+  document.dispatchEvent(new CustomEvent("Initialized", {
     "bubbles": true,
     "cancelable": true
-  });
-  document.dispatchEvent(initFinished);
-
-  categories = categories.querySelectorAll("richlistitem.category");
-  for (let category of categories) {
-    let name = internalPrefCategoryNameToFriendlyName(category.value);
-    let helpSelector = `#header-${name} > .help-button`;
-    let helpButton = document.querySelector(helpSelector);
-    helpButton.setAttribute("href", getHelpLinkURL(category.getAttribute("helpTopic")));
-  }
-
-  // Wait until initialization of all preferences are complete before
-  // notifying observers that the UI is now ready.
-  Services.obs.notifyObservers(window, "advanced-pane-loaded");
+  }));
 }
 
 // Make the space above the categories list shrink on low window heights
 function init_dynamic_padding() {
   let categories = document.getElementById("categories");
   let catPadding = Number.parseInt(getComputedStyle(categories)
                                      .getPropertyValue("padding-top"));
-  let fullHeight = categories.lastElementChild.getBoundingClientRect().bottom;
+  let helpButton = document.querySelector(".help-button");
+  let helpButtonCS = getComputedStyle(helpButton);
+  let helpHeight = Number.parseInt(helpButtonCS.height);
+  let helpBottom = Number.parseInt(helpButtonCS.bottom);
+  // Reduce the padding to account for less space, but due
+  // to bug 1357841, the status panel will overlap the link.
+  const reducedHelpButtonBottomFactor = .75;
+  let reducedHelpButtonBottom = helpBottom * reducedHelpButtonBottomFactor;
+  let fullHelpHeight = helpHeight + reducedHelpButtonBottom;
+  let fullHeight = categories.lastElementChild.getBoundingClientRect().bottom +
+                   fullHelpHeight;
   let mediaRule = `
   @media (max-height: ${fullHeight}px) {
     #categories {
       padding-top: calc(100vh - ${fullHeight - catPadding}px);
+      padding-bottom: ${fullHelpHeight}px;
+    }
+    .help-button {
+      bottom: ${reducedHelpButtonBottom / 2}px;
     }
   }
   `;
   let mediaStyle = document.createElementNS("http://www.w3.org/1999/xhtml", "html:style");
   mediaStyle.setAttribute("type", "text/css");
   mediaStyle.appendChild(document.createCDATASection(mediaRule));
   document.documentElement.appendChild(mediaStyle);
 }
 
 function telemetryBucketForCategory(category) {
+  category = category.toLowerCase();
   switch (category) {
+    case "containers":
     case "general":
+    case "privacy":
     case "search":
-    case "content":
-    case "applications":
-    case "privacy":
-    case "security":
     case "sync":
+    case "searchresults":
       return category;
-    case "advanced":
-      let advancedPaneTabs = document.getElementById("advancedPrefs");
-      switch (advancedPaneTabs.selectedTab.id) {
-        case "generalTab":
-          return "advancedGeneral";
-        case "dataChoicesTab":
-          return "advancedDataChoices";
-        case "networkTab":
-          return "advancedNetwork";
-        case "updateTab":
-          return "advancedUpdates";
-        case "encryptionTab":
-          return "advancedCerts";
-      }
-      // fall-through for unknown.
     default:
       return "unknown";
   }
 }
 
 function onHashChange() {
   gotoPref();
 }
 
 function gotoPref(aCategory) {
   let categories = document.getElementById("categories");
-  const kDefaultCategoryInternalName = categories.firstElementChild.value;
+  const kDefaultCategoryInternalName = "paneGeneral";
+  const kDefaultCategory = "general";
   let hash = document.location.hash;
+
   let category = aCategory || hash.substr(1) || kDefaultCategoryInternalName;
+  let breakIndex = category.indexOf("-");
+  // Subcategories allow for selecting smaller sections of the preferences
+  // until proper search support is enabled (bug 1353954).
+  let subcategory = breakIndex != -1 && category.substring(breakIndex + 1);
+  if (subcategory) {
+    category = category.substring(0, breakIndex);
+  }
   category = friendlyPrefCategoryNameToInternalName(category);
+  if (category != "paneSearchResults") {
+    gSearchResultsPane.searchInput.value = "";
+    gSearchResultsPane.getFindSelection(window).removeAllRanges();
+    gSearchResultsPane.removeAllSearchTooltips();
+    gSearchResultsPane.removeAllSearchMenuitemIndicators();
+  } else if (!gSearchResultsPane.searchInput.value) {
+    // Something tried to send us to the search results pane without
+    // a query string. Default to the General pane instead.
+    category = kDefaultCategoryInternalName;
+    document.location.hash = kDefaultCategory;
+    gSearchResultsPane.query = null;
+  }
 
   // Updating the hash (below) or changing the selected category
   // will re-enter gotoPref.
-  if (gLastHash == category)
+  if (gLastHash == category && !subcategory)
     return;
-  let item = categories.querySelector(".category[value=" + category + "]");
-  if (!item) {
-    category = kDefaultCategoryInternalName;
+
+  let item;
+  if (category != "paneSearchResults") {
     item = categories.querySelector(".category[value=" + category + "]");
+    if (!item) {
+      category = kDefaultCategoryInternalName;
+      item = categories.querySelector(".category[value=" + category + "]");
+    }
   }
 
   try {
     init_category_if_required(category);
   } catch (ex) {
     Cu.reportError("Error initializing preference category " + category + ": " + ex);
     throw ex;
   }
 
   let friendlyName = internalPrefCategoryNameToFriendlyName(category);
-  if (gLastHash || category != kDefaultCategoryInternalName) {
+  if (gLastHash || category != kDefaultCategoryInternalName || subcategory) {
     document.location.hash = friendlyName;
   }
   // Need to set the gLastHash before setting categories.selectedItem since
   // the categories 'select' event will re-enter the gotoPref codepath.
   gLastHash = category;
-  categories.selectedItem = item;
+  if (item) {
+    categories.selectedItem = item;
+  } else {
+    categories.clearSelection();
+  }
   window.history.replaceState(category, document.title);
-  search(category, "data-category");
+  search(category, "data-category", subcategory, "data-subcategory");
+
   let mainContent = document.querySelector(".main-content");
   mainContent.scrollTop = 0;
 
   Services.telemetry
-          .getHistogramById("FX_PREFERENCES_CATEGORY_OPENED")
+          .getHistogramById("FX_PREFERENCES_CATEGORY_OPENED_V2")
           .add(telemetryBucketForCategory(friendlyName));
 }
 
-function search(aQuery, aAttribute) {
+function search(aQuery, aAttribute, aSubquery, aSubAttribute) {
   let mainPrefPane = document.getElementById("mainPrefPane");
   let elements = mainPrefPane.children;
   for (let element of elements) {
-    let attributeValue = element.getAttribute(aAttribute);
-    element.hidden = (attributeValue != aQuery);
+    // If the "data-hidden-from-search" is "true", the
+    // element will not get considered during search. This
+    // should only be used when an element is still under
+    // development and should not be shown for any reason.
+    if (element.getAttribute("data-hidden-from-search") != "true" ||
+        element.getAttribute("data-subpanel") == "true") {
+      let attributeValue = element.getAttribute(aAttribute);
+      if (attributeValue == aQuery) {
+        if (!element.classList.contains("header") &&
+             aSubquery && aSubAttribute) {
+          let subAttributeValue = element.getAttribute(aSubAttribute);
+          element.hidden = subAttributeValue != aSubquery;
+        } else {
+          element.hidden = false;
+        }
+      } else {
+        element.hidden = true;
+      }
+    }
+    element.classList.remove("visually-hidden");
   }
 
   let keysets = mainPrefPane.getElementsByTagName("keyset");
   for (let element of keysets) {
     let attributeValue = element.getAttribute(aAttribute);
     if (attributeValue == aQuery)
       element.removeAttribute("disabled");
     else
@@ -306,8 +339,19 @@ function confirmRestartPrompt(aRestartTo
     Services.obs.notifyObservers(cancelQuit, "quit-application-requested",
                                   "restart");
     if (cancelQuit.data) {
       buttonIndex = CONFIRM_RESTART_PROMPT_CANCEL;
     }
   }
   return buttonIndex;
 }
+
+// This function is used to append search keywords found
+// in the related subdialog to the button that will activate the subdialog.
+function appendSearchKeywords(aId, keywords) {
+  let element = document.getElementById(aId);
+  let searchKeywords = element.getAttribute("searchkeywords");
+  if (searchKeywords) {
+    keywords.push(searchKeywords);
+  }
+  element.setAttribute("searchkeywords", keywords.join(" "));
+}
--- a/browser/components/preferences/in-content/preferences.xul
+++ b/browser/components/preferences/in-content/preferences.xul
@@ -9,42 +9,69 @@
 <?xml-stylesheet href="chrome://global/skin/in-content/common.css"?>
 <?xml-stylesheet
   href="chrome://browser/skin/preferences/in-content/preferences.css"?>
 <?xml-stylesheet
   href="chrome://browser/content/preferences/handlers.css"?>
 <?xml-stylesheet href="chrome://browser/skin/preferences/applications.css"?>
 <?xml-stylesheet href="chrome://browser/skin/preferences/in-content/search.css"?>
 <?xml-stylesheet href="chrome://browser/skin/preferences/in-content/containers.css"?>
+<?xml-stylesheet href="chrome://browser/skin/preferences/in-content/privacy.css"?>
 
 <!DOCTYPE page [
 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
 <!ENTITY % globalPreferencesDTD SYSTEM "chrome://global/locale/preferences.dtd">
 <!ENTITY % preferencesDTD SYSTEM
-  "chrome://browser/locale/preferences-old/preferences.dtd">
-<!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences-old/privacy.dtd">
-<!ENTITY % tabsDTD SYSTEM "chrome://browser/locale/preferences-old/tabs.dtd">
-<!ENTITY % searchDTD SYSTEM "chrome://browser/locale/preferences-old/search.dtd">
+  "chrome://browser/locale/preferences/preferences.dtd">
+<!ENTITY % selectBookmarkDTD SYSTEM
+  "chrome://browser/locale/preferences/selectBookmark.dtd">
+<!ENTITY % languagesDTD SYSTEM "chrome://browser/locale/preferences/languages.dtd">
+<!ENTITY % fontDTD SYSTEM "chrome://browser/locale/preferences/fonts.dtd">
+<!ENTITY % colorsDTD SYSTEM "chrome://browser/locale/preferences/colors.dtd">
+<!ENTITY % permissionsDTD SYSTEM "chrome://browser/locale/preferences/permissions.dtd">
+<!ENTITY % passwordManagerDTD SYSTEM "chrome://passwordmgr/locale/passwordManager.dtd">
+<!ENTITY % historyDTD SYSTEM "chrome://mozapps/locale/update/history.dtd">
+<!ENTITY % certManagerDTD SYSTEM "chrome://pippki/locale/certManager.dtd">
+<!ENTITY % deviceManangerDTD SYSTEM "chrome://pippki/locale/deviceManager.dtd">
+<!ENTITY % connectionDTD SYSTEM "chrome://browser/locale/preferences/connection.dtd">
+<!ENTITY % siteDataSettingsDTD SYSTEM
+  "chrome://browser/locale/preferences/siteDataSettings.dtd" >
+<!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences/privacy.dtd">
+<!ENTITY % tabsDTD SYSTEM "chrome://browser/locale/preferences/tabs.dtd">
+<!ENTITY % searchDTD SYSTEM "chrome://browser/locale/preferences/search.dtd">
 <!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
-<!ENTITY % syncDTD SYSTEM "chrome://browser/locale/preferences-old/sync.dtd">
+<!ENTITY % syncDTD SYSTEM "chrome://browser/locale/preferences/sync.dtd">
 <!ENTITY % securityDTD SYSTEM
-  "chrome://browser/locale/preferences-old/security.dtd">
+  "chrome://browser/locale/preferences/security.dtd">
 <!ENTITY % containersDTD SYSTEM
-  "chrome://browser/locale/preferences-old/containers.dtd">
+  "chrome://browser/locale/preferences/containers.dtd">
 <!ENTITY % sanitizeDTD SYSTEM "chrome://browser/locale/sanitize.dtd">
-<!ENTITY % mainDTD SYSTEM "chrome://browser/locale/preferences-old/main.dtd">
+<!ENTITY % mainDTD SYSTEM "chrome://browser/locale/preferences/main.dtd">
 <!ENTITY % aboutHomeDTD SYSTEM "chrome://browser/locale/aboutHome.dtd">
-<!ENTITY % contentDTD SYSTEM "chrome://browser/locale/preferences-old/content.dtd">
+<!ENTITY % contentDTD SYSTEM "chrome://browser/locale/preferences/content.dtd">
 <!ENTITY % applicationsDTD SYSTEM
-  "chrome://browser/locale/preferences-old/applications.dtd">
+  "chrome://browser/locale/preferences/applications.dtd">
 <!ENTITY % advancedDTD SYSTEM
-  "chrome://browser/locale/preferences-old/advanced.dtd">
+  "chrome://browser/locale/preferences/advanced.dtd">
+<!ENTITY % aboutDialogDTD SYSTEM "chrome://browser/locale/aboutDialog.dtd" >
+%aboutDialogDTD;
 %brandDTD;
 %globalPreferencesDTD;
 %preferencesDTD;
+%selectBookmarkDTD;
+%languagesDTD;
+%fontDTD;
+%colorsDTD;
+%permissionsDTD;
+%passwordManagerDTD;
+%historyDTD;
+%certManagerDTD;
+%deviceManangerDTD;
+%connectionDTD;
+%siteDataSettingsDTD;
 %privacyDTD;
 %tabsDTD;
 %searchDTD;
 %syncBrandDTD;
 %syncDTD;
 %securityDTD;
 %containersDTD;
 %sanitizeDTD;
@@ -70,22 +97,27 @@
 
   <html:link rel="shortcut icon"
               href="chrome://browser/skin/settings.svg"/>
 
   <script type="application/javascript"
           src="chrome://browser/content/utilityOverlay.js"/>
   <script type="application/javascript"
           src="chrome://browser/content/preferences/in-content/preferences.js"/>
+  <script src="chrome://browser/content/preferences/in-content/findInPage.js"/>
   <script src="chrome://browser/content/preferences/in-content/subdialogs.js"/>
 
   <stringbundle id="bundleBrand"
                 src="chrome://branding/locale/brand.properties"/>
   <stringbundle id="bundlePreferences"
-                src="chrome://browser/locale/preferences-old/preferences.properties"/>
+                src="chrome://browser/locale/preferences/preferences.properties"/>
+  <stringbundle id="pkiBundle"
+                src="chrome://pippki/locale/pippki.properties"/>
+  <stringbundle id="browserBundle"
+                src="chrome://browser/locale/browser.properties"/>
 
   <stringbundleset id="appManagerBundleset">
     <stringbundle id="appManagerBundle"
                   src="chrome://browser/locale/preferences/applicationManager.properties"/>
   </stringbundleset>
 
   <stack flex="1">
   <hbox flex="1">
@@ -107,104 +139,64 @@
                     value="paneSearch"
                     helpTopic="prefs-search"
                     tooltiptext="&paneSearch.title;"
                     align="center">
         <image class="category-icon"/>
         <label class="category-name" flex="1">&paneSearch.title;</label>
       </richlistitem>
 
-      <richlistitem id="category-content"
-                    class="category"
-                    value="paneContent"
-                    helpTopic="prefs-content"
-                    tooltiptext="&paneContent.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneContent.title;</label>
-      </richlistitem>
-
-      <richlistitem id="category-application"
-                    class="category"
-                    value="paneApplications"
-                    helpTopic="prefs-applications"
-                    tooltiptext="&paneApplications.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneApplications.title;</label>
-      </richlistitem>
-
-      <richlistitem id="category-privacy"
-                    class="category"
-                    value="panePrivacy"
-                    helpTopic="prefs-privacy"
-                    tooltiptext="&panePrivacy.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&panePrivacy.title;</label>
-      </richlistitem>
-
       <richlistitem id="category-containers"
                     class="category"
                     value="paneContainers"
                     helpTopic="prefs-containers"
                     hidden="true"/>
 
-      <richlistitem id="category-security"
+      <richlistitem id="category-privacy"
                     class="category"
-                    value="paneSecurity"
-                    helpTopic="prefs-security"
-                    tooltiptext="&paneSecurity.title;"
+                    value="panePrivacy"
+                    helpTopic="prefs-privacy"
+                    tooltiptext="&panePrivacySecurity.title;"
                     align="center">
         <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneSecurity.title;</label>
+        <label class="category-name" flex="1">&panePrivacySecurity.title;</label>
       </richlistitem>
 
       <richlistitem id="category-sync"
                     class="category"
                     value="paneSync"
                     helpTopic="prefs-weave"
-                    tooltiptext="&paneSync.title;"
+                    tooltiptext="&paneSync1.title;"
                     align="center">
         <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneSync.title;</label>
-      </richlistitem>
-
-      <richlistitem id="category-advanced"
-                    class="category"
-                    value="paneAdvanced"
-                    helpTopic="prefs-advanced-general"
-                    tooltiptext="&paneAdvanced.title;"
-                    align="center">
-        <image class="category-icon"/>
-        <label class="category-name" flex="1">&paneAdvanced.title;</label>
+        <label class="category-name" flex="1">&paneSync1.title;</label>
       </richlistitem>
     </richlistbox>
 
     <keyset>
-      <!-- Disable the findbar because it doesn't work properly.
-           Remove this keyset once bug 1094240 ("disablefastfind" attribute
-           broken in e10s mode) is fixed. -->
-      <key key="&focusSearch1.key;" modifiers="accel" id="focusSearch1" oncommand=";"/>
+      <key key="&focusSearch1.key;" modifiers="accel" id="focusSearch1" oncommand="gSearchResultsPane.searchInput.focus();"/>
     </keyset>
 
-    <vbox class="main-content" flex="1">
-      <prefpane id="mainPrefPane">
+    <html:a class="help-button" target="_blank" aria-label="&helpButton2.label;">&helpButton2.label;</html:a>
+
+    <vbox class="main-content" flex="1" align="start">
+      <vbox class="pane-container">
+        <hbox class="search-container" pack="end">
+          <textbox type="search" id="searchInput" hidden="true" clickSelectsAll="true"/>
+        </hbox>
+        <prefpane id="mainPrefPane">
+#include searchResults.xul
 #include main.xul
 #include search.xul
 #include privacy.xul
 #include containers.xul
-#include advanced.xul
-#include applications.xul
-#include content.xul
-#include security.xul
 #include sync.xul
-      </prefpane>
+        </prefpane>
+      </vbox>
     </vbox>
-
   </hbox>
 
   <stack id="dialogStack" hidden="true"/>
   <vbox id="dialogTemplate" class="dialogOverlay" align="center" pack="center" topmost="true" hidden="true">
     <groupbox class="dialogBox"
               orient="vertical"
               pack="end"
               role="dialog"
--- a/browser/components/preferences/in-content/privacy.js
+++ b/browser/components/preferences/in-content/privacy.js
@@ -2,22 +2,42 @@
  * 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/. */
 
 /* import-globals-from preferences.js */
 
 Components.utils.import("resource://gre/modules/AppConstants.jsm");
 Components.utils.import("resource://gre/modules/PluralForm.jsm");
 
-XPCOMUtils.defineLazyModuleGetter(this, "ContextualIdentityService",
-                                  "resource://gre/modules/ContextualIdentityService.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
                                   "resource://gre/modules/PluralForm.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "LoginHelper",
+                                  "resource://gre/modules/LoginHelper.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "SiteDataManager",
+                                  "resource:///modules/SiteDataManager.jsm");
+
+Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
+
+const PREF_UPLOAD_ENABLED = "datareporting.healthreport.uploadEnabled";
+
+XPCOMUtils.defineLazyGetter(this, "AlertsServiceDND", function() {
+  try {
+    let alertsService = Cc["@mozilla.org/alerts-service;1"]
+                          .getService(Ci.nsIAlertsService)
+                          .QueryInterface(Ci.nsIAlertsDoNotDisturb);
+    // This will throw if manualDoNotDisturb isn't implemented.
+    alertsService.manualDoNotDisturb;
+    return alertsService;
+  } catch (ex) {
+    return undefined;
+  }
+});
 
 var gPrivacyPane = {
+  _pane: null,
 
   /**
    * Whether the use has selected the auto-start private browsing mode in the UI.
    */
   _autoStartPrivateBrowsing: false,
 
   /**
    * Whether the prompt to restart Firefox should appear when changing the autostart pref.
@@ -34,18 +54,19 @@ var gPrivacyPane = {
     }
 
     let link = document.getElementById("trackingProtectionLearnMore");
     let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "tracking-protection";
     link.setAttribute("href", url);
 
     this.trackingProtectionReadPrefs();
 
-    document.getElementById("trackingprotectionbox").hidden = false;
-    document.getElementById("trackingprotectionpbmbox").hidden = true;
+    document.getElementById("trackingProtectionExceptions").hidden = false;
+    document.getElementById("trackingProtectionBox").hidden = false;
+    document.getElementById("trackingProtectionPBMBox").hidden = true;
   },
 
   /**
    * Linkify the Learn More link of the Private Browsing Mode Tracking
    * Protection UI.
    */
   _initTrackingProtectionPBM() {
     let link = document.getElementById("trackingProtectionPBMLearnMore");
@@ -57,68 +78,16 @@ var gPrivacyPane = {
    * Initialize autocomplete to ensure prefs are in sync.
    */
   _initAutocomplete() {
     Components.classes["@mozilla.org/autocomplete/search;1?name=unifiedcomplete"]
               .getService(Components.interfaces.mozIPlacesAutoComplete);
   },
 
   /**
-   * Show the Containers UI depending on the privacy.userContext.ui.enabled pref.
-   */
-  _initBrowserContainers() {
-    if (!Services.prefs.getBoolPref("privacy.userContext.ui.enabled")) {
-      return;
-    }
-
-    let link = document.getElementById("browserContainersLearnMore");
-    link.href = Services.urlFormatter.formatURLPref("app.support.baseURL") + "containers";
-
-    document.getElementById("browserContainersbox").hidden = false;
-
-    document.getElementById("browserContainersCheckbox").checked =
-      Services.prefs.getBoolPref("privacy.userContext.enabled");
-  },
-
-  _checkBrowserContainers(event) {
-    let checkbox = document.getElementById("browserContainersCheckbox");
-    if (checkbox.checked) {
-      Services.prefs.setBoolPref("privacy.userContext.enabled", true);
-      return;
-    }
-
-    let count = ContextualIdentityService.countContainerTabs();
-    if (count == 0) {
-      Services.prefs.setBoolPref("privacy.userContext.enabled", false);
-      return;
-    }
-
-    let bundlePreferences = document.getElementById("bundlePreferences");
-
-    let title = bundlePreferences.getString("disableContainersAlertTitle");
-    let message = PluralForm.get(count, bundlePreferences.getString("disableContainersMsg"))
-                            .replace("#S", count)
-    let okButton = PluralForm.get(count, bundlePreferences.getString("disableContainersOkButton"))
-                             .replace("#S", count)
-    let cancelButton = bundlePreferences.getString("disableContainersButton2");
-
-    let buttonFlags = (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
-                      (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1);
-
-    let rv = Services.prompt.confirmEx(window, title, message, buttonFlags,
-                                       okButton, cancelButton, null, null, {});
-    if (rv == 0) {
-      Services.prefs.setBoolPref("privacy.userContext.enabled", false);
-      return;
-    }
-
-    checkbox.checked = true;
-  },
-
-  /**
    * Sets up the UI for the number of days of history to keep, and updates the
    * label of the "Clear Now..." button.
    */
   init() {
     function setEventListener(aId, aEventType, aCallback) {
       document.getElementById(aId)
               .addEventListener(aEventType, aCallback.bind(gPrivacyPane));
     }
@@ -126,17 +95,16 @@ var gPrivacyPane = {
     this._updateSanitizeSettingsButton();
     this.initializeHistoryMode();
     this.updateHistoryModePane();
     this.updatePrivacyMicroControls();
     this.initAutoStartPrivateBrowsingReverter();
     this._initTrackingProtection();
     this._initTrackingProtectionPBM();
     this._initAutocomplete();
-    this._initBrowserContainers();
 
     setEventListener("privacy.sanitize.sanitizeOnShutdown", "change",
                      gPrivacyPane._updateSanitizeSettingsButton);
     setEventListener("browser.privatebrowsing.autostart", "change",
                      gPrivacyPane.updatePrivacyMicroControls);
     setEventListener("historyMode", "command", function() {
       gPrivacyPane.updateHistoryModePane();
       gPrivacyPane.updateHistoryModePrefs();
@@ -150,40 +118,199 @@ var gPrivacyPane = {
     setEventListener("historyRememberCookies", "click", function() {
       gPrivacyPane.showCookies();
       return false;
     });
     setEventListener("historyDontRememberClear", "click", function() {
       gPrivacyPane.clearPrivateDataNow(true);
       return false;
     });
-    setEventListener("doNotTrackSettings", "click", function() {
-      gPrivacyPane.showDoNotTrackSettings();
-      return false;
-    });
     setEventListener("privateBrowsingAutoStart", "command",
                      gPrivacyPane.updateAutostart);
     setEventListener("cookieExceptions", "command",
                      gPrivacyPane.showCookieExceptions);
     setEventListener("showCookiesButton", "command",
                      gPrivacyPane.showCookies);
     setEventListener("clearDataSettings", "command",
                      gPrivacyPane.showClearPrivateDataSettings);
     setEventListener("trackingProtectionRadioGroup", "command",
                      gPrivacyPane.trackingProtectionWritePrefs);
     setEventListener("trackingProtectionExceptions", "command",
                      gPrivacyPane.showTrackingProtectionExceptions);
     setEventListener("changeBlockList", "command",
                      gPrivacyPane.showBlockLists);
-    setEventListener("changeBlockListPBM", "command",
-                     gPrivacyPane.showBlockLists);
-    setEventListener("browserContainersCheckbox", "command",
-                     gPrivacyPane._checkBrowserContainers);
-    setEventListener("browserContainersSettings", "command",
-                     gPrivacyPane.showContainerSettings);
+    setEventListener("passwordExceptions", "command",
+      gPrivacyPane.showPasswordExceptions);
+    setEventListener("useMasterPassword", "command",
+      gPrivacyPane.updateMasterPasswordButton);
+    setEventListener("changeMasterPassword", "command",
+      gPrivacyPane.changeMasterPassword);
+    setEventListener("showPasswords", "command",
+      gPrivacyPane.showPasswords);
+    setEventListener("addonExceptions", "command",
+      gPrivacyPane.showAddonExceptions);
+    setEventListener("viewCertificatesButton", "command",
+                     gPrivacyPane.showCertificates);
+    setEventListener("viewSecurityDevicesButton", "command",
+                     gPrivacyPane.showSecurityDevices);
+    setEventListener("clearCacheButton", "command",
+                     gPrivacyPane.clearCache);
+
+    this._pane = document.getElementById("panePrivacy");
+    this._initMasterPasswordUI();
+    this._initSafeBrowsing();
+    this.updateCacheSizeInputField();
+    this.updateActualCacheSize();
+
+    setEventListener("notificationSettingsButton", "command",
+      gPrivacyPane.showNotificationExceptions);
+    setEventListener("locationSettingsButton", "command",
+      gPrivacyPane.showLocationExceptions);
+    setEventListener("cameraSettingsButton", "command",
+      gPrivacyPane.showCameraExceptions);
+    setEventListener("microphoneSettingsButton", "command",
+      gPrivacyPane.showMicrophoneExceptions);
+    setEventListener("popupPolicyButton", "command",
+      gPrivacyPane.showPopupExceptions);
+    setEventListener("notificationsDoNotDisturb", "command",
+      gPrivacyPane.toggleDoNotDisturbNotifications);
+
+    if (AlertsServiceDND) {
+      let notificationsDoNotDisturbBox =
+        document.getElementById("notificationsDoNotDisturbBox");
+      notificationsDoNotDisturbBox.removeAttribute("hidden");
+      if (AlertsServiceDND.manualDoNotDisturb) {
+        let notificationsDoNotDisturb =
+          document.getElementById("notificationsDoNotDisturb");
+        notificationsDoNotDisturb.setAttribute("checked", true);
+      }
+    }
+
+    setEventListener("cacheSize", "change",
+                     gPrivacyPane.updateCacheSizePref);
+
+    if (Services.prefs.getBoolPref("browser.preferences.offlineGroup.enabled")) {
+      this.updateOfflineApps();
+      this.updateActualAppCacheSize();
+      setEventListener("offlineNotifyExceptions", "command",
+                       gPrivacyPane.showOfflineExceptions);
+      setEventListener("offlineAppsList", "select",
+                       gPrivacyPane.offlineAppSelected);
+      setEventListener("offlineAppsListRemove", "command",
+                       gPrivacyPane.removeOfflineApp);
+      setEventListener("clearOfflineAppCacheButton", "command",
+                       gPrivacyPane.clearOfflineAppCache);
+      let bundlePrefs = document.getElementById("bundlePreferences");
+      document.getElementById("offlineAppsList")
+              .style.height = bundlePrefs.getString("offlineAppsList.height");
+      let offlineGroup = document.getElementById("offlineGroup");
+      offlineGroup.removeAttribute("data-hidden-from-search");
+    }
+
+    if (Services.prefs.getBoolPref("browser.storageManager.enabled")) {
+      Services.obs.addObserver(this, "sitedatamanager:sites-updated");
+      Services.obs.addObserver(this, "sitedatamanager:updating-sites");
+      let unload = () => {
+        window.removeEventListener("unload", unload);
+        Services.obs.removeObserver(this, "sitedatamanager:sites-updated");
+        Services.obs.removeObserver(this, "sitedatamanager:updating-sites");
+      };
+      window.addEventListener("unload", unload);
+      SiteDataManager.updateSites();
+      setEventListener("clearSiteDataButton", "command",
+                       gPrivacyPane.clearSiteData);
+      setEventListener("siteDataSettings", "command",
+                       gPrivacyPane.showSiteDataSettings);
+      let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "storage-permissions";
+      document.getElementById("siteDataLearnMoreLink").setAttribute("href", url);
+      let siteDataGroup = document.getElementById("siteDataGroup");
+      siteDataGroup.removeAttribute("data-hidden-from-search");
+    }
+
+    let notificationInfoURL =
+      Services.urlFormatter.formatURLPref("app.support.baseURL") + "push";
+    document.getElementById("notificationPermissionsLearnMore").setAttribute("href",
+                                                                         notificationInfoURL);
+    let drmInfoURL =
+      Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content";
+    document.getElementById("playDRMContentLink").setAttribute("href", drmInfoURL);
+    let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
+    // Force-disable/hide on WinXP:
+    if (navigator.platform.toLowerCase().startsWith("win")) {
+      emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
+    }
+    if (!emeUIEnabled) {
+      // Don't want to rely on .hidden for the toplevel groupbox because
+      // of the pane hiding/showing code potentially interfering:
+      document.getElementById("drmGroup").setAttribute("style", "display: none !important");
+    }
+
+    this.initDataCollection();
+    if (AppConstants.MOZ_CRASHREPORTER) {
+      this.initSubmitCrashes();
+    }
+    this.initSubmitHealthReport();
+    setEventListener("submitHealthReportBox", "command",
+                     gPrivacyPane.updateSubmitHealthReport);
+    this._initA11yState();
+    let bundlePrefs = document.getElementById("bundlePreferences");
+    let signonBundle = document.getElementById("signonBundle");
+    let pkiBundle = document.getElementById("pkiBundle");
+    appendSearchKeywords("passwordExceptions", [
+      bundlePrefs.getString("savedLoginsExceptions_title"),
+      bundlePrefs.getString("savedLoginsExceptions_desc2"),
+    ]);
+    appendSearchKeywords("showPasswords", [
+      signonBundle.getString("loginsDescriptionAll2"),
+    ]);
+    appendSearchKeywords("trackingProtectionExceptions", [
+      bundlePrefs.getString("trackingprotectionpermissionstitle"),
+      bundlePrefs.getString("trackingprotectionpermissionstext2"),
+    ]);
+    appendSearchKeywords("changeBlockList", [
+      bundlePrefs.getString("blockliststitle"),
+      bundlePrefs.getString("blockliststext"),
+    ]);
+    appendSearchKeywords("popupPolicyButton", [
+      bundlePrefs.getString("popuppermissionstitle2"),
+      bundlePrefs.getString("popuppermissionstext"),
+    ]);
+    appendSearchKeywords("notificationSettingsButton", [
+      bundlePrefs.getString("notificationspermissionstitle2"),
+      bundlePrefs.getString("notificationspermissionstext5"),
+    ]);
+    appendSearchKeywords("locationSettingsButton", [
+      bundlePrefs.getString("locationpermissionstitle"),
+      bundlePrefs.getString("locationpermissionstext"),
+    ]);
+    appendSearchKeywords("cameraSettingsButton", [
+      bundlePrefs.getString("camerapermissionstitle"),
+      bundlePrefs.getString("camerapermissionstext"),
+    ]);
+    appendSearchKeywords("microphoneSettingsButton", [
+      bundlePrefs.getString("microphonepermissionstitle"),
+      bundlePrefs.getString("microphonepermissionstext"),
+    ]);
+    appendSearchKeywords("addonExceptions", [
+      bundlePrefs.getString("addons_permissions_title2"),
+      bundlePrefs.getString("addonspermissionstext"),
+    ]);
+    appendSearchKeywords("viewSecurityDevicesButton", [
+      pkiBundle.getString("enable_fips"),
+    ]);
+    appendSearchKeywords("siteDataSettings", [
+      bundlePrefs.getString("siteDataSettings2.description"),
+      bundlePrefs.getString("removeAllCookies.label"),
+      bundlePrefs.getString("removeSelectedCookies.label"),
+    ]);
+
+    // Notify observers that the UI is now ready
+    Components.classes["@mozilla.org/observer-service;1"]
+              .getService(Components.interfaces.nsIObserverService)
+              .notifyObservers(window, "privacy-pane-loaded");
   },
 
   // TRACKING PROTECTION MODE
 
   /**
    * Selects the right item of the Tracking Protection radiogroup.
    */
   trackingProtectionReadPrefs() {
@@ -467,23 +594,16 @@ var gPrivacyPane = {
       windowTitle: bundlePreferences.getString("trackingprotectionpermissionstitle"),
       introText: bundlePreferences.getString("trackingprotectionpermissionstext2"),
     };
     gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
                     null, params);
   },
 
   /**
-   * Displays container panel for customising and adding containers.
-   */
-  showContainerSettings() {
-    gotoPref("containers");
-  },
-
-  /**
    * Displays the available block lists for tracking protection.
    */
   showBlockLists() {
     var bundlePreferences = document.getElementById("bundlePreferences");
     let brandName = document.getElementById("bundleBrand")
                             .getString("brandShortName");
     var params = { brandShortName: brandName,
                    windowTitle: bundlePreferences.getString("blockliststitle"),
@@ -685,11 +805,824 @@ var gPrivacyPane = {
    /**
     * Enables/disables the Settings button used to configure containers
     */
    readBrowserContainersCheckbox() {
      var pref = document.getElementById("privacy.userContext.enabled");
      var settings = document.getElementById("browserContainersSettings");
 
      settings.disabled = !pref.value;
-   }
+   },
+
+   toggleDoNotDisturbNotifications(event) {
+     AlertsServiceDND.manualDoNotDisturb = event.target.checked;
+   },
+
+  // GEOLOCATION
+
+  /**
+   * Displays the location exceptions dialog where specific site location
+   * preferences can be set.
+   */
+  showLocationExceptions() {
+    let bundlePreferences = document.getElementById("bundlePreferences");
+    let params = { permissionType: "geo"};
+    params.windowTitle = bundlePreferences.getString("locationpermissionstitle");
+    params.introText = bundlePreferences.getString("locationpermissionstext");
+
+    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
+                    "resizable=yes", params);
+  },
+
+  // CAMERA
+
+  /**
+   * Displays the camera exceptions dialog where specific site camera
+   * preferences can be set.
+   */
+  showCameraExceptions() {
+    let bundlePreferences = document.getElementById("bundlePreferences");
+    let params = { permissionType: "camera"};
+    params.windowTitle = bundlePreferences.getString("camerapermissionstitle");
+    params.introText = bundlePreferences.getString("camerapermissionstext");
+
+    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
+                    "resizable=yes", params);
+  },
+
+  // MICROPHONE
+
+  /**
+   * Displays the microphone exceptions dialog where specific site microphone
+   * preferences can be set.
+   */
+  showMicrophoneExceptions() {
+    let bundlePreferences = document.getElementById("bundlePreferences");
+    let params = { permissionType: "microphone"};
+    params.windowTitle = bundlePreferences.getString("microphonepermissionstitle");
+    params.introText = bundlePreferences.getString("microphonepermissionstext");
+
+    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
+                    "resizable=yes", params);
+  },
+
+  // NOTIFICATIONS
+
+  /**
+   * Displays the notifications exceptions dialog where specific site notification
+   * preferences can be set.
+   */
+  showNotificationExceptions() {
+    let bundlePreferences = document.getElementById("bundlePreferences");
+    let params = { permissionType: "desktop-notification"};
+    params.windowTitle = bundlePreferences.getString("notificationspermissionstitle2");
+    params.introText = bundlePreferences.getString("notificationspermissionstext5");
+
+    gSubDialog.open("chrome://browser/content/preferences/sitePermissions.xul",
+                    "resizable=yes", params);
+
+    try {
+      Services.telemetry
+              .getHistogramById("WEB_NOTIFICATION_EXCEPTIONS_OPENED").add();
+    } catch (e) {}
+  },
+
+
+  // POP-UPS
+
+  /**
+   * Displays the popup exceptions dialog where specific site popup preferences
+   * can be set.
+   */
+  showPopupExceptions() {
+    var bundlePreferences = document.getElementById("bundlePreferences");
+    var params = { blockVisible: false, sessionVisible: false, allowVisible: true,
+                   prefilledHost: "", permissionType: "popup" }
+    params.windowTitle = bundlePreferences.getString("popuppermissionstitle2");
+    params.introText = bundlePreferences.getString("popuppermissionstext");
+
+    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
+                    "resizable=yes", params);
+  },
+
+   // UTILITY FUNCTIONS
+
+  /**
+   * Utility function to enable/disable the button specified by aButtonID based
+   * on the value of the Boolean preference specified by aPreferenceID.
+   */
+  updateButtons(aButtonID, aPreferenceID) {
+    var button = document.getElementById(aButtonID);
+    var preference = document.getElementById(aPreferenceID);
+    button.disabled = preference.value != true;
+    return undefined;
+  },
+
+  // BEGIN UI CODE
+
+  /*
+   * Preferences:
+   *
+   * dom.disable_open_during_load
+   * - true if popups are blocked by default, false otherwise
+   */
+
+  // POP-UPS
+
+  /**
+   * Displays a dialog in which the user can view and modify the list of sites
+   * where passwords are never saved.
+   */
+  showPasswordExceptions() {
+    var bundlePrefs = document.getElementById("bundlePreferences");
+    var params = {
+      blockVisible: true,
+      sessionVisible: false,
+      allowVisible: false,
+      hideStatusColumn: true,
+      prefilledHost: "",
+      permissionType: "login-saving",
+      windowTitle: bundlePrefs.getString("savedLoginsExceptions_title"),
+      introText: bundlePrefs.getString("savedLoginsExceptions_desc2")
+    };
+
+    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
+                    null, params);
+  },
+
+  /**
+   * Initializes master password UI: the "use master password" checkbox, selects
+   * the master password button to show, and enables/disables it as necessary.
+   * The master password is controlled by various bits of NSS functionality, so
+   * the UI for it can't be controlled by the normal preference bindings.
+   */
+  _initMasterPasswordUI() {
+    var noMP = !LoginHelper.isMasterPasswordSet();
+
+    var button = document.getElementById("changeMasterPassword");
+    button.disabled = noMP;
+
+    var checkbox = document.getElementById("useMasterPassword");
+    checkbox.checked = !noMP;
+  },
+
+  /**
+   * Enables/disables the master password button depending on the state of the
+   * "use master password" checkbox, and prompts for master password removal if
+   * one is set.
+   */
+  updateMasterPasswordButton() {
+    var checkbox = document.getElementById("useMasterPassword");
+    var button = document.getElementById("changeMasterPassword");
+    button.disabled = !checkbox.checked;
+
+    // unchecking the checkbox should try to immediately remove the master
+    // password, because it's impossible to non-destructively remove the master
+    // password used to encrypt all the passwords without providing it (by
+    // design), and it would be extremely odd to pop up that dialog when the
+    // user closes the prefwindow and saves his settings
+    if (!checkbox.checked)
+      this._removeMasterPassword();
+    else
+      this.changeMasterPassword();
+
+    this._initMasterPasswordUI();
+  },
+
+  /**
+   * Displays the "remove master password" dialog to allow the user to remove
+   * the current master password.  When the dialog is dismissed, master password
+   * UI is automatically updated.
+   */
+  _removeMasterPassword() {
+    var secmodDB = Cc["@mozilla.org/security/pkcs11moduledb;1"].
+                   getService(Ci.nsIPKCS11ModuleDB);
+    if (secmodDB.isFIPSEnabled) {
+      var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
+                          getService(Ci.nsIPromptService);
+      var bundle = document.getElementById("bundlePreferences");
+      promptService.alert(window,
+                          bundle.getString("pw_change_failed_title"),
+                          bundle.getString("pw_change2empty_in_fips_mode"));
+      this._initMasterPasswordUI();
+    } else {
+      gSubDialog.open("chrome://mozapps/content/preferences/removemp.xul",
+                      null, null, this._initMasterPasswordUI.bind(this));
+    }
+  },
+
+  /**
+   * Displays a dialog in which the master password may be changed.
+   */
+  changeMasterPassword() {
+    gSubDialog.open("chrome://mozapps/content/preferences/changemp.xul",
+                    "resizable=no", null, this._initMasterPasswordUI.bind(this));
+  },
+
+    /**
+   * Shows the sites where the user has saved passwords and the associated login
+   * information.
+   */
+  showPasswords() {
+    gSubDialog.open("chrome://passwordmgr/content/passwordManager.xul");
+  },
+
+  /**
+   * Enables/disables the Exceptions button used to configure sites where
+   * passwords are never saved. When browser is set to start in Private
+   * Browsing mode, the "Remember passwords" UI is useless, so we disable it.
+   */
+  readSavePasswords() {
+    var pref = document.getElementById("signon.rememberSignons");
+    var excepts = document.getElementById("passwordExceptions");
+
+    if (PrivateBrowsingUtils.permanentPrivateBrowsing) {
+      document.getElementById("savePasswords").disabled = true;
+      excepts.disabled = true;
+      return false;
+    }
+    excepts.disabled = !pref.value;
+    // don't override pref value in UI
+    return undefined;
+  },
+
+  /**
+   * Enables/disables the add-ons Exceptions button depending on whether
+   * or not add-on installation warnings are displayed.
+   */
+  readWarnAddonInstall() {
+    var warn = document.getElementById("xpinstall.whitelist.required");
+    var exceptions = document.getElementById("addonExceptions");
+
+    exceptions.disabled = !warn.value;
+
+    // don't override the preference value
+    return undefined;
+  },
+
+  _initSafeBrowsing() {
+    let enableSafeBrowsing = document.getElementById("enableSafeBrowsing");
+    let blockDownloads = document.getElementById("blockDownloads");
+    let blockUncommonUnwanted = document.getElementById("blockUncommonUnwanted");
+
+    let safeBrowsingPhishingPref = document.getElementById("browser.safebrowsing.phishing.enabled");
+    let safeBrowsingMalwarePref = document.getElementById("browser.safebrowsing.malware.enabled");
+
+    let blockDownloadsPref = document.getElementById("browser.safebrowsing.downloads.enabled");
+    let malwareTable = document.getElementById("urlclassifier.malwareTable");
+
+    let blockUnwantedPref = document.getElementById("browser.safebrowsing.downloads.remote.block_potentially_unwanted");
+    let blockUncommonPref = document.getElementById("browser.safebrowsing.downloads.remote.block_uncommon");
+
+    enableSafeBrowsing.addEventListener("command", function() {
+      safeBrowsingPhishingPref.value = enableSafeBrowsing.checked;
+      safeBrowsingMalwarePref.value = enableSafeBrowsing.checked;
+
+      if (enableSafeBrowsing.checked) {
+        blockDownloads.removeAttribute("disabled");
+        if (blockDownloads.checked) {
+          blockUncommonUnwanted.removeAttribute("disabled");
+        }
+      } else {
+        blockDownloads.setAttribute("disabled", "true");
+        blockUncommonUnwanted.setAttribute("disabled", "true");
+      }
+    });
+
+    blockDownloads.addEventListener("command", function() {
+      blockDownloadsPref.value = blockDownloads.checked;
+      if (blockDownloads.checked) {
+        blockUncommonUnwanted.removeAttribute("disabled");
+      } else {
+        blockUncommonUnwanted.setAttribute("disabled", "true");
+      }
+    });
+
+    blockUncommonUnwanted.addEventListener("command", function() {
+      blockUnwantedPref.value = blockUncommonUnwanted.checked;
+      blockUncommonPref.value = blockUncommonUnwanted.checked;
+
+      let malware = malwareTable.value
+        .split(",")
+        .filter(x => x !== "goog-unwanted-shavar" && x !== "test-unwanted-simple");
+
+      if (blockUncommonUnwanted.checked) {
+        malware.push("goog-unwanted-shavar");
+        malware.push("test-unwanted-simple");
+      }
+
+      // sort alphabetically to keep the pref consistent
+      malware.sort();
+
+      malwareTable.value = malware.join(",");
+    });
+
+    // set initial values
+
+    enableSafeBrowsing.checked = safeBrowsingPhishingPref.value && safeBrowsingMalwarePref.value;
+    if (!enableSafeBrowsing.checked) {
+      blockDownloads.setAttribute("disabled", "true");
+      blockUncommonUnwanted.setAttribute("disabled", "true");
+    }
+
+    blockDownloads.checked = blockDownloadsPref.value;
+    if (!blockDownloadsPref.value) {
+      blockUncommonUnwanted.setAttribute("disabled", "true");
+    }
+
+    blockUncommonUnwanted.checked = blockUnwantedPref.value && blockUncommonPref.value;
+  },
+
+  /**
+   * Displays the exceptions lists for add-on installation warnings.
+   */
+  showAddonExceptions() {
+    var bundlePrefs = document.getElementById("bundlePreferences");
+
+    var params = this._addonParams;
+    if (!params.windowTitle || !params.introText) {
+      params.windowTitle = bundlePrefs.getString("addons_permissions_title2");
+      params.introText = bundlePrefs.getString("addonspermissionstext");
+    }
+
+    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
+                    null, params);
+  },
+
+  /**
+   * Parameters for the add-on install permissions dialog.
+   */
+  _addonParams:
+    {
+      blockVisible: false,
+      sessionVisible: false,
+      allowVisible: true,
+      prefilledHost: "",
+      permissionType: "install"
+    },
+
+  /**
+   * readEnableOCSP is used by the preferences UI to determine whether or not
+   * the checkbox for OCSP fetching should be checked (it returns true if it
+   * should be checked and false otherwise). The about:config preference
+   * "security.OCSP.enabled" is an integer rather than a boolean, so it can't be
+   * directly mapped from {true,false} to {checked,unchecked}. The possible
+   * values for "security.OCSP.enabled" are:
+   * 0: fetching is disabled
+   * 1: fetch for all certificates
+   * 2: fetch only for EV certificates
+   * Hence, if "security.OCSP.enabled" is non-zero, the checkbox should be
+   * checked. Otherwise, it should be unchecked.
+   */
+  readEnableOCSP() {
+    var preference = document.getElementById("security.OCSP.enabled");
+    // This is the case if the preference is the default value.
+    if (preference.value === undefined) {
+      return true;
+    }
+    return preference.value != 0;
+  },
+
+  /**
+   * writeEnableOCSP is used by the preferences UI to map the checked/unchecked
+   * state of the OCSP fetching checkbox to the value that the preference
+   * "security.OCSP.enabled" should be set to (it returns that value). See the
+   * readEnableOCSP documentation for more background. We unfortunately don't
+   * have enough information to map from {true,false} to all possible values for
+   * "security.OCSP.enabled", but a reasonable alternative is to map from
+   * {true,false} to {<the default value>,0}. That is, if the box is checked,
+   * "security.OCSP.enabled" will be set to whatever default it should be, given
+   * the platform and channel. If the box is unchecked, the preference will be
+   * set to 0. Obviously this won't work if the default is 0, so we will have to
+   * revisit this if we ever set it to 0.
+   */
+  writeEnableOCSP() {
+    var checkbox = document.getElementById("enableOCSP");
+    var defaults = Services.prefs.getDefaultBranch(null);
+    var defaultValue = defaults.getIntPref("security.OCSP.enabled");
+    return checkbox.checked ? defaultValue : 0;
+  },
+
+  /**
+   * Displays the user's certificates and associated options.
+   */
+  showCertificates() {
+    gSubDialog.open("chrome://pippki/content/certManager.xul");
+  },
+
+  /**
+   * Displays a dialog from which the user can manage his security devices.
+   */
+  showSecurityDevices() {
+    gSubDialog.open("chrome://pippki/content/device_manager.xul");
+  },
 
+  /**
+   * Clears the cache.
+   */
+  clearCache() {
+    try {
+      var cache = Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
+                            .getService(Components.interfaces.nsICacheStorageService);
+      cache.clear();
+    } catch (ex) {}
+    this.updateActualCacheSize();
+  },
+
+  showOfflineExceptions() {
+    var bundlePreferences = document.getElementById("bundlePreferences");
+    var params = { blockVisible: false,
+                   sessionVisible: false,
+                   allowVisible: false,
+                   prefilledHost: "",
+                   permissionType: "offline-app",
+                   manageCapability: Components.interfaces.nsIPermissionManager.DENY_ACTION,
+                   windowTitle: bundlePreferences.getString("offlinepermissionstitle"),
+                   introText: bundlePreferences.getString("offlinepermissionstext") };
+    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
+                    null, params);
+  },
+
+
+  offlineAppSelected() {
+    var removeButton = document.getElementById("offlineAppsListRemove");
+    var list = document.getElementById("offlineAppsList");
+    if (list.selectedItem) {
+      removeButton.setAttribute("disabled", "false");
+    } else {
+      removeButton.setAttribute("disabled", "true");
+    }
+  },
+
+  showSiteDataSettings() {
+    gSubDialog.open("chrome://browser/content/preferences/siteDataSettings.xul");
+  },
+
+  toggleSiteData(shouldShow) {
+    let clearButton = document.getElementById("clearSiteDataButton");
+    let settingsButton = document.getElementById("siteDataSettings");
+    clearButton.disabled = !shouldShow;
+    settingsButton.disabled = !shouldShow;
+  },
+
+  updateTotalDataSizeLabel(usage) {
+    let prefStrBundle = document.getElementById("bundlePreferences");
+    let totalSiteDataSizeLabel = document.getElementById("totalSiteDataSize");
+    if (usage < 0) {
+      totalSiteDataSizeLabel.textContent = prefStrBundle.getString("loadingSiteDataSize");
+    } else {
+      let size = DownloadUtils.convertByteUnits(usage);
+      totalSiteDataSizeLabel.textContent = prefStrBundle.getFormattedString("totalSiteDataSize", size);
+    }
+  },
+
+  // Retrieves the amount of space currently used by disk cache
+  updateActualCacheSize() {
+    var actualSizeLabel = document.getElementById("actualDiskCacheSize");
+    var prefStrBundle = document.getElementById("bundlePreferences");
+
+    // Needs to root the observer since cache service keeps only a weak reference.
+    this.observer = {
+      onNetworkCacheDiskConsumption(consumption) {
+        var size = DownloadUtils.convertByteUnits(consumption);
+        // The XBL binding for the string bundle may have been destroyed if
+        // the page was closed before this callback was executed.
+        if (!prefStrBundle.getFormattedString) {
+          return;
+        }
+        actualSizeLabel.textContent = prefStrBundle.getFormattedString("actualDiskCacheSize", size);
+      },
+
+      QueryInterface: XPCOMUtils.generateQI([
+        Components.interfaces.nsICacheStorageConsumptionObserver,
+        Components.interfaces.nsISupportsWeakReference
+      ])
+    };
+
+    actualSizeLabel.textContent = prefStrBundle.getString("actualDiskCacheSizeCalculated");
+
+    try {
+      var cacheService =
+        Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
+                  .getService(Components.interfaces.nsICacheStorageService);
+      cacheService.asyncGetDiskConsumption(this.observer);
+    } catch (e) {}
+  },
+
+  updateCacheSizeUI(smartSizeEnabled) {
+    document.getElementById("useCacheBefore").disabled = smartSizeEnabled;
+    document.getElementById("cacheSize").disabled = smartSizeEnabled;
+    document.getElementById("useCacheAfter").disabled = smartSizeEnabled;
+  },
+
+  readSmartSizeEnabled() {
+    // The smart_size.enabled preference element is inverted="true", so its
+    // value is the opposite of the actual pref value
+    var disabled = document.getElementById("browser.cache.disk.smart_size.enabled").value;
+    this.updateCacheSizeUI(!disabled);
+  },
+
+  /**
+   * Converts the cache size from units of KB to units of MB and stores it in
+   * the textbox element.
+   *
+   * Preferences:
+   *
+   * browser.cache.disk.capacity
+   * - the size of the browser cache in KB
+   * - Only used if browser.cache.disk.smart_size.enabled is disabled
+   */
+  updateCacheSizeInputField() {
+    let cacheSizeElem = document.getElementById("cacheSize");
+    let cachePref = document.getElementById("browser.cache.disk.capacity");
+    cacheSizeElem.value = cachePref.value / 1024;
+    if (cachePref.locked)
+      cacheSizeElem.disabled = true;
+  },
+
+  /**
+   * Updates the cache size preference once user enters a new value.
+   * We intentionally do not set preference="browser.cache.disk.capacity"
+   * onto the textbox directly, as that would update the pref at each keypress
+   * not only after the final value is entered.
+   */
+  updateCacheSizePref() {
+    let cacheSizeElem = document.getElementById("cacheSize");
+    let cachePref = document.getElementById("browser.cache.disk.capacity");
+    // Converts the cache size as specified in UI (in MB) to KB.
+    let intValue = parseInt(cacheSizeElem.value, 10);
+    cachePref.value = isNaN(intValue) ? 0 : intValue * 1024;
+  },
+
+  clearSiteData() {
+    let flags =
+      Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_0 +
+      Services.prompt.BUTTON_TITLE_CANCEL * Services.prompt.BUTTON_POS_1 +
+      Services.prompt.BUTTON_POS_0_DEFAULT;
+    let prefStrBundle = document.getElementById("bundlePreferences");
+    let title = prefStrBundle.getString("clearSiteDataPromptTitle");
+    let text = prefStrBundle.getString("clearSiteDataPromptText");
+    let btn0Label = prefStrBundle.getString("clearSiteDataNow");
+
+    let result = Services.prompt.confirmEx(
+      window, title, text, flags, btn0Label, null, null, null, {});
+    if (result == 0) {
+      SiteDataManager.removeAll();
+    }
+  },
+
+  initDataCollection() {
+    this._setupLearnMoreLink("toolkit.datacollection.infoURL",
+                             "dataCollectionPrivacyNotice");
+  },
+
+  initSubmitCrashes() {
+    this._setupLearnMoreLink("toolkit.crashreporter.infoURL",
+                             "crashReporterLearnMore");
+  },
+
+  /**
+   * Set up or hide the Learn More links for various data collection options
+   */
+  _setupLearnMoreLink(pref, element) {
+    // set up the Learn More link with the correct URL
+    let url = Services.prefs.getCharPref(pref);
+    let el = document.getElementById(element);
+
+    if (url) {
+      el.setAttribute("href", url);
+    } else {
+      el.setAttribute("hidden", "true");
+    }
+  },
+
+  /**
+   * Initialize the health report service reference and checkbox.
+   */
+  initSubmitHealthReport() {
+    this._setupLearnMoreLink("datareporting.healthreport.infoURL", "FHRLearnMore");
+
+    let checkbox = document.getElementById("submitHealthReportBox");
+
+    // Telemetry is only sending data if MOZ_TELEMETRY_REPORTING is defined.
+    // We still want to display the preferences panel if that's not the case, but
+    // we want it to be disabled and unchecked.
+    if (Services.prefs.prefIsLocked(PREF_UPLOAD_ENABLED) ||
+        !AppConstants.MOZ_TELEMETRY_REPORTING) {
+      checkbox.setAttribute("disabled", "true");
+      return;
+    }
+
+    checkbox.checked = Services.prefs.getBoolPref(PREF_UPLOAD_ENABLED) &&
+                       AppConstants.MOZ_TELEMETRY_REPORTING;
+  },
+
+  /**
+   * Update the health report preference with state from checkbox.
+   */
+  updateSubmitHealthReport() {
+    let checkbox = document.getElementById("submitHealthReportBox");
+    Services.prefs.setBoolPref(PREF_UPLOAD_ENABLED, checkbox.checked);
+  },
+
+  // Methods for Offline Apps (AppCache)
+
+  /**
+   * Clears the application cache.
+   */
+  clearOfflineAppCache() {
+    Components.utils.import("resource:///modules/offlineAppCache.jsm");
+    OfflineAppCacheHelper.clear();
+
+    this.updateActualAppCacheSize();
+    this.updateOfflineApps();
+  },
+
+  // Retrieves the amount of space currently used by offline cache
+  updateActualAppCacheSize() {
+    var visitor = {
+      onCacheStorageInfo(aEntryCount, aConsumption, aCapacity, aDiskDirectory) {
+        var actualSizeLabel = document.getElementById("actualAppCacheSize");
+        var sizeStrings = DownloadUtils.convertByteUnits(aConsumption);
+        var prefStrBundle = document.getElementById("bundlePreferences");
+        // The XBL binding for the string bundle may have been destroyed if
+        // the page was closed before this callback was executed.
+        if (!prefStrBundle.getFormattedString) {
+          return;
+        }
+        var sizeStr = prefStrBundle.getFormattedString("actualAppCacheSize", sizeStrings);
+        actualSizeLabel.value = sizeStr;
+      }
+    };
+
+    try {
+      var cacheService =
+        Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
+                  .getService(Components.interfaces.nsICacheStorageService);
+      var storage = cacheService.appCacheStorage(LoadContextInfo.default, null);
+      storage.asyncVisitStorage(visitor, false);
+    } catch (e) {}
+  },
+
+  readOfflineNotify() {
+    var pref = document.getElementById("browser.offline-apps.notify");
+    var button = document.getElementById("offlineNotifyExceptions");
+    button.disabled = !pref.value;
+    return pref.value;
+  },
+
+  // XXX: duplicated in browser.js
+  _getOfflineAppUsage(perm, groups) {
+    let cacheService = Cc["@mozilla.org/network/application-cache-service;1"].
+                       getService(Ci.nsIApplicationCacheService);
+    if (!groups) {
+      try {
+        groups = cacheService.getGroups();
+      } catch (ex) {
+        return 0;
+      }
+    }
+
+    let usage = 0;
+    for (let group of groups) {
+      let uri = Services.io.newURI(group);
+      if (perm.matchesURI(uri, true)) {
+        let cache = cacheService.getActiveCache(group);
+        usage += cache.usage;
+      }
+    }
+
+    return usage;
+  },
+
+  /**
+   * Updates the list of offline applications
+   */
+  updateOfflineApps() {
+    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
+                       .getService(Components.interfaces.nsIPermissionManager);
+
+    var list = document.getElementById("offlineAppsList");
+    while (list.firstChild) {
+      list.firstChild.remove();
+    }
+
+    var groups;
+    try {
+      var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
+                         getService(Components.interfaces.nsIApplicationCacheService);
+      groups = cacheService.getGroups();
+    } catch (e) {
+      return;
+    }
+
+    var bundle = document.getElementById("bundlePreferences");
+
+    var enumerator = pm.enumerator;
+    while (enumerator.hasMoreElements()) {
+      var perm = enumerator.getNext().QueryInterface(Components.interfaces.nsIPermission);
+      if (perm.type == "offline-app" &&
+          perm.capability != Components.interfaces.nsIPermissionManager.DEFAULT_ACTION &&
+          perm.capability != Components.interfaces.nsIPermissionManager.DENY_ACTION) {
+        var row = document.createElement("listitem");
+        row.id = "";
+        row.className = "offlineapp";
+        row.setAttribute("origin", perm.principal.origin);
+        var converted = DownloadUtils.
+                        convertByteUnits(this._getOfflineAppUsage(perm, groups));
+        row.setAttribute("usage",
+                         bundle.getFormattedString("offlineAppUsage",
+                                                   converted));
+        list.appendChild(row);
+      }
+    }
+  },
+
+  removeOfflineApp() {
+    var list = document.getElementById("offlineAppsList");
+    var item = list.selectedItem;
+    var origin = item.getAttribute("origin");
+    var principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin(origin);
+
+    var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
+                            .getService(Components.interfaces.nsIPromptService);
+    var flags = prompts.BUTTON_TITLE_IS_STRING * prompts.BUTTON_POS_0 +
+                prompts.BUTTON_TITLE_CANCEL * prompts.BUTTON_POS_1;
+
+    var bundle = document.getElementById("bundlePreferences");
+    var title = bundle.getString("offlineAppRemoveTitle");
+    var prompt = bundle.getFormattedString("offlineAppRemovePrompt", [principal.URI.prePath]);
+    var confirm = bundle.getString("offlineAppRemoveConfirm");
+    var result = prompts.confirmEx(window, title, prompt, flags, confirm,
+                                   null, null, null, {});
+    if (result != 0)
+      return;
+
+    // get the permission
+    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
+                       .getService(Components.interfaces.nsIPermissionManager);
+    var perm = pm.getPermissionObject(principal, "offline-app", true);
+    if (perm) {
+      // clear offline cache entries
+      try {
+        var cacheService = Components.classes["@mozilla.org/network/application-cache-service;1"].
+                           getService(Components.interfaces.nsIApplicationCacheService);
+        var groups = cacheService.getGroups();
+        for (var i = 0; i < groups.length; i++) {
+          var uri = Services.io.newURI(groups[i]);
+          if (perm.matchesURI(uri, true)) {
+            var cache = cacheService.getActiveCache(groups[i]);
+            cache.discard();
+          }
+        }
+      } catch (e) {}
+
+      pm.removePermission(perm);
+    }
+    list.removeChild(item);
+    gPrivacyPane.offlineAppSelected();
+    this.updateActualAppCacheSize();
+  },
+  // Methods for Offline Apps (AppCache) end
+
+  observe(aSubject, aTopic, aData) {
+    switch (aTopic) {
+      case "sitedatamanager:updating-sites":
+        // While updating, we want to disable this section and display loading message until updated
+        this.toggleSiteData(false);
+        this.updateTotalDataSizeLabel(-1);
+        break;
+
+      case "sitedatamanager:sites-updated":
+        this.toggleSiteData(true);
+        SiteDataManager.getTotalUsage()
+          .then(this.updateTotalDataSizeLabel.bind(this));
+        break;
+    }
+  },
+
+  // Accessibility checkbox helpers
+  _initA11yState() {
+    this._initA11yString();
+    let checkbox = document.getElementById("a11yPrivacyCheckbox");
+    switch (Services.prefs.getIntPref("accessibility.force_disabled")) {
+      case 1: // access blocked
+        checkbox.checked = true;
+        break;
+      case -1: // a11y is forced on for testing
+      case 0: // access allowed
+        checkbox.checked = false;
+        break;
+    }
+  },
+
+  _initA11yString() {
+    let a11yLearnMoreLink =
+      Services.urlFormatter.formatURLPref("app.support.baseURL") +
+        "accessibility";
+    document.getElementById("a11yLearnMoreLink")
+            .setAttribute("href", a11yLearnMoreLink);
+  },
+
+  updateA11yPrefs(checked) {
+    Services.prefs.setIntPref("accessibility.force_disabled", checked ? 1 : 0);
+  }
 };
--- a/browser/components/preferences/in-content/privacy.xul
+++ b/browser/components/preferences/in-content/privacy.xul
@@ -71,98 +71,205 @@
               type="bool"/>
   <preference id="privacy.sanitize.timeSpan"
               name="privacy.sanitize.timeSpan"
               type="int"/>
   <!-- Private Browsing -->
   <preference id="browser.privatebrowsing.autostart"
               name="browser.privatebrowsing.autostart"
               type="bool"/>
+  <!-- Do not track -->
+  <preference id="privacy.donottrackheader.enabled"
+              name="privacy.donottrackheader.enabled"
+              type="bool"/>
+  <!-- Popups -->
+  <preference id="dom.disable_open_during_load"
+              name="dom.disable_open_during_load"
+              type="bool"/>
+  <!-- Passwords -->
+  <preference id="signon.rememberSignons" name="signon.rememberSignons" type="bool"/>
+
+  <!-- XXX buttons -->
+  <preference id="pref.privacy.disable_button.view_passwords"
+              name="pref.privacy.disable_button.view_passwords"
+              type="bool"/>
+  <preference id="pref.privacy.disable_button.view_passwords_exceptions"
+              name="pref.privacy.disable_button.view_passwords_exceptions"
+              type="bool"/>
+
+  <!-- Certificates tab
+   * security.default_personal_cert
+     - a string:
+         "Select Automatically"   select a certificate automatically when a site
+                                  requests one
+         "Ask Every Time"         present a dialog to the user so he can select
+                                  the certificate to use on a site which
+                                  requests one -->
+  <preference id="security.default_personal_cert"
+              name="security.default_personal_cert"
+              type="string"/>
+
+  <preference id="security.disable_button.openCertManager"
+              name="security.disable_button.openCertManager"
+              type="bool"/>
+
+  <preference id="security.disable_button.openDeviceManager"
+              name="security.disable_button.openDeviceManager"
+              type="bool"/>
+
+  <preference id="security.OCSP.enabled"
+              name="security.OCSP.enabled"
+              type="int"/>
+
+  <!-- Add-ons, malware, phishing -->
+  <preference id="xpinstall.whitelist.required"
+              name="xpinstall.whitelist.required"
+              type="bool"/>
+
+  <preference id="browser.safebrowsing.malware.enabled"
+              name="browser.safebrowsing.malware.enabled"
+              type="bool"/>
+  <preference id="browser.safebrowsing.phishing.enabled"
+              name="browser.safebrowsing.phishing.enabled"
+              type="bool"/>
+
+  <preference id="browser.safebrowsing.downloads.enabled"
+              name="browser.safebrowsing.downloads.enabled"
+              type="bool"/>
+
+  <preference id="urlclassifier.malwareTable"
+              name="urlclassifier.malwareTable"
+              type="string"/>
+
+  <preference id="browser.safebrowsing.downloads.remote.block_potentially_unwanted"
+              name="browser.safebrowsing.downloads.remote.block_potentially_unwanted"
+              type="bool"/>
+  <preference id="browser.safebrowsing.downloads.remote.block_uncommon"
+              name="browser.safebrowsing.downloads.remote.block_uncommon"
+              type="bool"/>
+
+  <!-- Network tab -->
+  <preference id="browser.cache.disk.capacity"
+              name="browser.cache.disk.capacity"
+              type="int"/>
+  <preference id="browser.offline-apps.notify"
+              name="browser.offline-apps.notify"
+              type="bool"/>
+
+  <preference id="browser.cache.disk.smart_size.enabled"
+              name="browser.cache.disk.smart_size.enabled"
+              inverted="true"
+              type="bool"/>
+
+  <!-- Data Choices tab -->
+#ifdef MOZ_CRASHREPORTER
+  <preference id="browser.crashReports.unsubmittedCheck.autoSubmit"
+              name="browser.crashReports.unsubmittedCheck.autoSubmit"
+              type="bool"/>
+#endif
+
 </preferences>
 
-<hbox id="header-privacy"
-      class="header"
+<stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
+<stringbundle id="signonBundle" src="chrome://passwordmgr/locale/passwordmgr.properties"/>
+
+<hbox id="browserPrivacyCategory"
+      class="subcategory"
       hidden="true"
       data-category="panePrivacy">
-  <label class="header-name" flex="1">&panePrivacy.title;</label>
-  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
+  <label class="header-name" flex="1">&browserPrivacy.label;</label>
 </hbox>
 
-<!-- Tracking -->
-<groupbox id="trackingGroup" data-category="panePrivacy" hidden="true">
-  <vbox id="trackingprotectionbox" hidden="true">
-    <hbox align="start">
-      <vbox>
-        <caption><label>&trackingProtectionHeader.label;
-          <label id="trackingProtectionLearnMore" class="learnMore text-link"
-                 value="&trackingProtectionLearnMore.label;"/>
-        </label></caption>
-        <radiogroup id="trackingProtectionRadioGroup">
-          <radio value="always"
-                 label="&trackingProtectionAlways.label;"
-                 accesskey="&trackingProtectionAlways.accesskey;"/>
-          <radio value="private"
-                 label="&trackingProtectionPrivate.label;"
-                 accesskey="&trackingProtectionPrivate.accesskey;"/>
-          <radio value="never"
-                 label="&trackingProtectionNever.label;"
-                 accesskey="&trackingProtectionNever.accesskey;"/>
-        </radiogroup>
-      </vbox>
-      <spacer flex="1" />
-      <vbox>
-        <button id="trackingProtectionExceptions"
-                label="&trackingProtectionExceptions.label;"
-                accesskey="&trackingProtectionExceptions.accesskey;"
-                preference="pref.privacy.disable_button.tracking_protection_exceptions"/>
-        <button id="changeBlockList"
-                label="&changeBlockList.label;"
-                accesskey="&changeBlockList.accesskey;"
-                preference="pref.privacy.disable_button.change_blocklist"/>
-      </vbox>
+<!-- Passwords -->
+<groupbox id="passwordsGroup" orient="vertical" data-category="panePrivacy" hidden="true">
+  <caption><label>&formsAndPasswords.label;</label></caption>
+
+  <vbox id="passwordSettings">
+    <hbox id="savePasswordsBox">
+      <checkbox id="savePasswords"
+                label="&rememberLogins2.label;" accesskey="&rememberLogins2.accesskey;"
+                preference="signon.rememberSignons"
+                onsyncfrompreference="return gPrivacyPane.readSavePasswords();"
+                flex="1" />
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox>
+        <button id="passwordExceptions"
+                class="accessory-button"
+                label="&passwordExceptions.label;"
+                accesskey="&passwordExceptions.accesskey;"
+                preference="pref.privacy.disable_button.view_passwords_exceptions"
+                searchkeywords="&address2.label;"/>
+      </hbox>
+    </hbox>
+    <hbox id="showPasswordBox" pack="end">
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox>
+        <button id="showPasswords"
+                class="accessory-button"
+                label="&savedLogins.label;" accesskey="&savedLogins.accesskey;"
+                preference="pref.privacy.disable_button.view_passwords"
+                searchkeywords="&savedLogins.title;"/>
+      </hbox>
     </hbox>
   </vbox>
-  <vbox id="trackingprotectionpbmbox">
-    <caption><label>&tracking.label;</label></caption>
-    <hbox align="center">
-      <checkbox id="trackingProtectionPBM"
-                preference="privacy.trackingprotection.pbmode.enabled"
-                accesskey="&trackingProtectionPBM5.accesskey;"
-                label="&trackingProtectionPBM5.label;"/>
-      <label id="trackingProtectionPBMLearnMore"
-             class="learnMore text-link"
-             value="&trackingProtectionPBMLearnMore.label;"/>
-      <spacer flex="1" />
-      <button id="changeBlockListPBM"
-              label="&changeBlockList.label;" accesskey="&changeBlockList.accesskey;"
-              preference="pref.privacy.disable_button.change_blocklist"/>
+  <hbox id="masterPasswordRow">
+    <checkbox id="useMasterPassword"
+              label="&useMasterPassword.label;"
+              accesskey="&useMasterPassword.accesskey;"
+              flex="1"/>
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="changeMasterPassword"
+              class="accessory-button"
+              label="&changeMasterPassword.label;"
+              accesskey="&changeMasterPassword.accesskey;"/>
     </hbox>
-  </vbox>
-  <vbox>
-    <description>&doNotTrack.pre.label;<label
-    class="text-link" id="doNotTrackSettings"
-    >&doNotTrack.settings.label;</label>&doNotTrack.post.label;</description>
-  </vbox>
+  </hbox>
 </groupbox>
 
 <!-- History -->
 <groupbox id="historyGroup" data-category="panePrivacy" hidden="true">
   <caption><label>&history.label;</label></caption>
   <hbox align="center">
     <label id="historyModeLabel"
            control="historyMode"
-           accesskey="&historyHeader.pre.accesskey;">&historyHeader.pre.label;
+           accesskey="&historyHeader2.pre.accesskey;">&historyHeader2.pre.label;
     </label>
-    <menulist id="historyMode">
-      <menupopup>
-        <menuitem label="&historyHeader.remember.label;" value="remember"/>
-        <menuitem label="&historyHeader.dontremember.label;" value="dontremember"/>
-        <menuitem label="&historyHeader.custom.label;" value="custom"/>
-      </menupopup>
-    </menulist>
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <menulist id="historyMode">
+        <menupopup>
+          <menuitem label="&historyHeader.remember.label;" value="remember" searchkeywords="&rememberDescription.label;
+                                                                                            &rememberActions.pre.label;
+                                                                                            &rememberActions.clearHistory.label;
+                                                                                            &rememberActions.middle.label;
+                                                                                            &rememberActions.removeCookies.label;
+                                                                                            &rememberActions.post.label;"/>
+          <menuitem label="&historyHeader.dontremember.label;" value="dontremember" searchkeywords="&dontrememberDescription.label;
+                                                                                                    &dontrememberActions.pre.label;
+                                                                                                    &dontrememberActions.clearHistory.label;
+                                                                                                    &dontrememberActions.post.label;"/>
+          <menuitem label="&historyHeader.custom.label;" value="custom" searchkeywords="&privateBrowsingPermanent2.label;
+                                                                                        &rememberHistory2.label;
+                                                                                        &rememberSearchForm.label;
+                                                                                        &acceptCookies2.label;
+                                                                                        &cookieExceptions.label;
+                                                                                        &acceptThirdParty2.pre.label;
+                                                                                        &acceptThirdParty.always.label;
+                                                                                        &acceptThirdParty.visited.label;
+                                                                                        &acceptThirdParty.never.label;
+                                                                                        &keepUntil2.label;
+                                                                                        &expire.label;
+                                                                                        &close.label;
+                                                                                        &showCookies.label;
+                                                                                        &clearOnClose.label;
+                                                                                        &clearOnCloseSettings.label;"/>
+        </menupopup>
+      </menulist>
+    </hbox>
     <label>&historyHeader.post.label;</label>
   </hbox>
   <deck id="historyPane">
     <vbox id="historyRememberPane">
       <hbox align="center" flex="1">
         <vbox flex="1">
           <description>&rememberDescription.label;</description>
           <separator class="thin"/>
@@ -183,124 +290,573 @@
           class="text-link" id="historyDontRememberClear"
           >&dontrememberActions.clearHistory.label;</label>&dontrememberActions.post.label;</description>
         </vbox>
       </hbox>
     </vbox>
     <vbox id="historyCustomPane">
       <separator class="thin"/>
       <vbox>
-        <vbox align="start">
-          <checkbox id="privateBrowsingAutoStart"
-                    label="&privateBrowsingPermanent2.label;"
-                    accesskey="&privateBrowsingPermanent2.accesskey;"
-                    preference="browser.privatebrowsing.autostart"/>
-        </vbox>
+        <checkbox id="privateBrowsingAutoStart"
+                  label="&privateBrowsingPermanent2.label;"
+                  accesskey="&privateBrowsingPermanent2.accesskey;"
+                  preference="browser.privatebrowsing.autostart"/>
         <vbox class="indent">
-          <vbox align="start">
-            <checkbox id="rememberHistory"
-                      label="&rememberHistory2.label;"
-                      accesskey="&rememberHistory2.accesskey;"
-                      preference="places.history.enabled"/>
-            <checkbox id="rememberForms"
-                      label="&rememberSearchForm.label;"
-                      accesskey="&rememberSearchForm.accesskey;"
-                      preference="browser.formfill.enable"/>
-          </vbox>
+          <checkbox id="rememberHistory"
+                    label="&rememberHistory2.label;"
+                    accesskey="&rememberHistory2.accesskey;"
+                    preference="places.history.enabled"/>
+          <checkbox id="rememberForms"
+                    label="&rememberSearchForm.label;"
+                    accesskey="&rememberSearchForm.accesskey;"
+                    preference="browser.formfill.enable"/>
           <hbox id="cookiesBox">
             <checkbox id="acceptCookies" label="&acceptCookies2.label;"
                       preference="network.cookie.cookieBehavior"
                       accesskey="&acceptCookies2.accesskey;"
                       onsyncfrompreference="return gPrivacyPane.readAcceptCookies();"
-                      onsynctopreference="return gPrivacyPane.writeAcceptCookies();"/>
-            <spacer flex="1" />
+                      onsynctopreference="return gPrivacyPane.writeAcceptCookies();"
+                      flex="1" />
             <button id="cookieExceptions"
+                    class="accessory-button"
                     label="&cookieExceptions.label;" accesskey="&cookieExceptions.accesskey;"
                     preference="pref.privacy.disable_button.cookie_exceptions"/>
           </hbox>
           <hbox id="acceptThirdPartyRow"
                 class="indent"
                 align="center">
             <label id="acceptThirdPartyLabel" control="acceptThirdPartyMenu"
-                   accesskey="&acceptThirdParty.pre.accesskey;">&acceptThirdParty.pre.label;</label>
+                   accesskey="&acceptThirdParty2.pre.accesskey;">&acceptThirdParty2.pre.label;</label>
             <menulist id="acceptThirdPartyMenu" preference="network.cookie.cookieBehavior"
             onsyncfrompreference="return gPrivacyPane.readAcceptThirdPartyCookies();"
             onsynctopreference="return gPrivacyPane.writeAcceptThirdPartyCookies();">
               <menupopup>
                 <menuitem label="&acceptThirdParty.always.label;" value="always"/>
                 <menuitem label="&acceptThirdParty.visited.label;" value="visited"/>
                 <menuitem label="&acceptThirdParty.never.label;" value="never"/>
               </menupopup>
             </menulist>
           </hbox>
           <hbox id="keepRow"
                 class="indent"
                 align="center">
             <label id="keepUntil"
                    control="keepCookiesUntil"
-                   accesskey="&keepUntil.accesskey;">&keepUntil.label;</label>
+                   accesskey="&keepUntil2.accesskey;">&keepUntil2.label;</label>
             <menulist id="keepCookiesUntil"
                       preference="network.cookie.lifetimePolicy">
               <menupopup>
                 <menuitem label="&expire.label;" value="0"/>
                 <menuitem label="&close.label;" value="2"/>
               </menupopup>
             </menulist>
             <spacer flex="1"/>
             <button id="showCookiesButton"
+                    class="accessory-button"
                     label="&showCookies.label;" accesskey="&showCookies.accesskey;"
                     preference="pref.privacy.disable_button.view_cookies"/>
           </hbox>
           <hbox id="clearDataBox"
                 align="center">
             <checkbox id="alwaysClear"
                       preference="privacy.sanitize.sanitizeOnShutdown"
                       label="&clearOnClose.label;"
-                      accesskey="&clearOnClose.accesskey;"/>
-            <spacer flex="1"/>
-            <button id="clearDataSettings" label="&clearOnCloseSettings.label;"
+                      accesskey="&clearOnClose.accesskey;"
+                      flex="1" />
+            <button id="clearDataSettings"
+                    class="accessory-button"
+                    label="&clearOnCloseSettings.label;"
                     accesskey="&clearOnCloseSettings.accesskey;"/>
           </hbox>
         </vbox>
       </vbox>
     </vbox>
   </deck>
 </groupbox>
 
-<!-- Location Bar -->
+<!-- Address Bar -->
 <groupbox id="locationBarGroup"
           data-category="panePrivacy"
           hidden="true">
-  <caption><label>&locationBar.label;</label></caption>
-  <label id="locationBarSuggestionLabel">&locbar.suggest.label;</label>
-  <checkbox id="historySuggestion" label="&locbar.history.label;"
-            accesskey="&locbar.history.accesskey;"
+  <caption><label>&addressBar.label;</label></caption>
+  <label id="locationBarSuggestionLabel">&addressBar.suggest.label;</label>
+  <checkbox id="historySuggestion" label="&locbar.history2.label;"
+            accesskey="&locbar.history2.accesskey;"
             preference="browser.urlbar.suggest.history"/>
   <checkbox id="bookmarkSuggestion" label="&locbar.bookmarks.label;"
             accesskey="&locbar.bookmarks.accesskey;"
             preference="browser.urlbar.suggest.bookmark"/>
   <checkbox id="openpageSuggestion" label="&locbar.openpage.label;"
             accesskey="&locbar.openpage.accesskey;"
             preference="browser.urlbar.suggest.openpage"/>
   <label class="text-link" onclick="gotoPref('search')">
-    &suggestionSettings.label;
+    &suggestionSettings2.label;
   </label>
 </groupbox>
 
-<!-- Containers -->
-<groupbox id="browserContainersGroup" data-category="panePrivacy" hidden="true">
-  <vbox id="browserContainersbox" hidden="true">
-    <caption><label>&browserContainersHeader.label;</label></caption>
-    <hbox align="center">
-      <checkbox id="browserContainersCheckbox"
-                label="&browserContainersEnabled.label;"
-                accesskey="&browserContainersEnabled.accesskey;"
-                preference="privacy.userContext.enabled"
-                onsyncfrompreference="return gPrivacyPane.readBrowserContainersCheckbox();"/>
-      <label id="browserContainersLearnMore" class="learnMore text-link"
-             value="&browserContainersLearnMore.label;"/>
+<!-- Cache -->
+<groupbox id="cacheGroup" data-category="panePrivacy" hidden="true">
+  <caption><label>&httpCache.label;</label></caption>
+
+  <hbox align="center">
+    <label id="actualDiskCacheSize" flex="1"/>
+    <button id="clearCacheButton"
+            class="accessory-button"
+            icon="clear"
+            label="&clearCacheNow.label;" accesskey="&clearCacheNow.accesskey;"/>
+  </hbox>
+  <checkbox preference="browser.cache.disk.smart_size.enabled"
+            id="allowSmartSize"
+            onsyncfrompreference="return gPrivacyPane.readSmartSizeEnabled();"
+            label="&overrideSmartCacheSize.label;"
+            accesskey="&overrideSmartCacheSize.accesskey;"/>
+  <hbox align="center" class="indent">
+    <label id="useCacheBefore" control="cacheSize"
+            accesskey="&limitCacheSizeBefore.accesskey;">
+      &limitCacheSizeBefore.label;
+    </label>
+    <textbox id="cacheSize" type="number" size="4" max="1024"
+              aria-labelledby="useCacheBefore cacheSize useCacheAfter"/>
+    <label id="useCacheAfter" flex="1">&limitCacheSizeAfter.label;</label>
+  </hbox>
+</groupbox>
+
+<!-- Site Data -->
+<groupbox id="siteDataGroup" hidden="true" data-category="panePrivacy" data-hidden-from-search="true">
+  <caption><label>&siteData.label;</label></caption>
+
+  <hbox align="baseline">
+    <vbox flex="1">
+      <description flex="1">
+        <label id="totalSiteDataSize"></label>
+        <label id="siteDataLearnMoreLink" class="learnMore text-link">&siteDataLearnMoreLink.label;</label>
+      </description>
+    </vbox>
+    <vbox align="end">
+      <button id="siteDataSettings"
+              class="accessory-button"
+              label="&siteDataSettings.label;"
+              accesskey="&siteDataSettings.accesskey;"
+              searchkeywords="&window.title;
+                              &hostCol.label;
+                              &statusCol.label;
+                              &usageCol.label;"/>
+      <button id="clearSiteDataButton"
+          class="accessory-button"
+          icon="clear"
+          label="&clearSiteData.label;" accesskey="&clearSiteData.accesskey;"/>
+    </vbox>
+  </hbox>
+</groupbox>
+
+<!-- Tracking -->
+<groupbox id="trackingGroup" data-category="panePrivacy" hidden="true">
+  <caption><label>&trackingProtectionHeader2.label;</label></caption>
+  <vbox>
+    <hbox align="start">
+      <vbox flex="1">
+        <description>
+          &trackingProtection2.description;
+        </description>
+      </vbox>
       <spacer flex="1"/>
-      <button id="browserContainersSettings"
-              label="&browserContainersSettings.label;"
-              accesskey="&browserContainersSettings.accesskey;"/>
     </hbox>
+    <hbox>
+      <vbox id="trackingProtectionBox" flex="1" hidden="true">
+        <description id="trackingProtectionDesc"
+                     control="trackingProtectionRadioGroup">
+          &trackingProtection2.radioGroupLabel;
+           <label id="trackingProtectionLearnMore" class="learnMore text-link">&trackingProtectionLearnMore.label;</label>
+        </description>
+        <radiogroup id="trackingProtectionRadioGroup" aria-labelledby="trackingProtectionDesc">
+          <radio value="always"
+                 label="&trackingProtectionAlways.label;"
+                 accesskey="&trackingProtectionAlways.accesskey;"/>
+          <radio value="private"
+                 label="&trackingProtectionPrivate.label;"
+                 accesskey="&trackingProtectionPrivate.accesskey;"/>
+          <radio value="never"
+                 label="&trackingProtectionNever.label;"
+                 accesskey="&trackingProtectionNever.accesskey;"/>
+        </radiogroup>
+      </vbox>
+      <vbox id="trackingProtectionPBMBox" flex="1">
+        <hbox align="center">
+          <checkbox id="trackingProtectionPBM"
+                    preference="privacy.trackingprotection.pbmode.enabled"
+                    accesskey="&trackingProtectionPBM6.accesskey;"/>
+          <label flex="1">&trackingProtectionPBM6.label;<label id="trackingProtectionPBMLearnMore"
+                 class="learnMore text-link">&trackingProtectionPBMLearnMore.label;</label>
+          </label>
+        </hbox>
+      </vbox>
+      <vbox id="trackingProtectionAdvancedSettings">
+        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+        <hbox>
+          <button id="trackingProtectionExceptions"
+                  class="accessory-button"
+                  flex="1"
+                  hidden="true"
+                  label="&trackingProtectionExceptions.label;"
+                  accesskey="&trackingProtectionExceptions.accesskey;"
+                  preference="pref.privacy.disable_button.tracking_protection_exceptions"
+                  searchkeywords="&removepermission2.label;
+                                  &removeallpermissions2.label;
+                                  &button.cancel.label;
+                                  &button.ok.label;"/>
+        </hbox>
+        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+        <hbox>
+          <button id="changeBlockList"
+                  class="accessory-button"
+                  flex="1"
+                  label="&changeBlockList2.label;"
+                  accesskey="&changeBlockList2.accesskey;"
+                  preference="pref.privacy.disable_button.change_blocklist"
+                  searchkeywords="&button.cancel.label; &button.ok.label;"/>
+        </hbox>
+      </vbox>
+    </hbox>
+    <vbox id="doNotTrackLearnMoreBox">
+      <label>&doNotTrack.description;<label
+      class="learnMore text-link" href="https://www.mozilla.org/dnt"
+      >&doNotTrack.learnMore.label;</label></label>
+      <radiogroup id="doNotTrackRadioGroup" aria-labelledby="doNotTrackDesc" preference="privacy.donottrackheader.enabled">
+        <radio value="false" label="&doNotTrack.default.label;"/>
+        <radio value="true" label="&doNotTrack.always.label;"/>
+      </radiogroup>
+    </vbox>
   </vbox>
 </groupbox>
+
+<hbox id="permissionsCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="panePrivacy">
+  <label class="header-name" flex="1">&permissions.label;</label>
+</hbox>
+
+<!-- Permissions -->
+<groupbox id="permissionsGroup" data-category="panePrivacy" hidden="true">
+  <caption class="search-header" hidden="true"><label>&permissions.label;</label></caption>
+
+  <grid>
+    <columns>
+      <column flex="1"/>
+      <column/>
+    </columns>
+    <rows>
+      <row id="locationSettingsRow" align="center">
+        <description flex="1">
+          <image class="geo-icon permission-icon" />
+          <separator orient="vertical" class="thin"/>
+          <label id="locationPermissionsLabel">&locationPermissions.label;</label>
+        </description>
+        <hbox pack="end">
+          <button id="locationSettingsButton"
+                  class="accessory-button"
+                  label="&locationSettingsButton.label;"
+                  accesskey="&locationSettingsButton.accesskey;"
+                  searchkeywords="&removepermission2.label;
+                                  &removeallpermissions2.label;
+                                  &button.cancel.label;
+                                  &button.ok.label;"/>
+        </hbox>
+      </row>
+
+      <row id="cameraSettingsRow" align="center">
+        <description flex="1">
+          <image class="camera-icon permission-icon" />
+          <separator orient="vertical" class="thin"/>
+          <label id="cameraPermissionsLabel">&cameraPermissions.label;</label>
+        </description>
+        <hbox pack="end">
+          <button id="cameraSettingsButton"
+                  class="accessory-button"
+                  label="&cameraSettingsButton.label;"
+                  accesskey="&cameraSettingsButton.accesskey;"
+                  searchkeywords="&removepermission2.label;
+                                  &removeallpermissions2.label;
+                                  &button.cancel.label;
+                                  &button.ok.label;"/>
+        </hbox>
+      </row>
+
+      <row id="microphoneSettingsRow" align="center">
+        <description flex="1">
+          <image class="microphone-icon permission-icon" />
+          <separator orient="vertical" class="thin"/>
+          <label id="microphonePermissionsLabel">&microphonePermissions.label;</label>
+        </description>
+        <hbox pack="end">
+          <button id="microphoneSettingsButton"
+                  class="accessory-button"
+                  label="&microphoneSettingsButton.label;"
+                  accesskey="&microphoneSettingsButton.accesskey;"
+                  searchkeywords="&removepermission2.label;
+                                  &removeallpermissions2.label;
+                                  &button.cancel.label;
+                                  &button.ok.label;"/>
+        </hbox>
+      </row>
+
+      <row id="notificationSettingsRow" align="center">
+        <description flex="1">
+          <image class="desktop-notification-icon permission-icon" />
+          <separator orient="vertical" class="thin"/>
+          <label id="notificationPermissionsLabel">&notificationPermissions.label;</label>
+          <label id="notificationPermissionsLearnMore"
+                 class="learnMore text-link">&notificationPermissionsLearnMore.label;</label>
+        </description>
+        <hbox pack="end">
+          <button id="notificationSettingsButton"
+                  class="accessory-button"
+                  label="&notificationSettingsButton.label;"
+                  accesskey="&notificationSettingsButton.accesskey;"
+                  searchkeywords="&removepermission2.label;
+                                  &removeallpermissions2.label;
+                                  &button.cancel.label;
+                                  &button.ok.label;"/>
+        </hbox>
+      </row>
+    </rows>
+  </grid>
+
+  <separator flex="1"/>
+
+  <vbox id="notificationsDoNotDisturbBox" hidden="true">
+    <checkbox id="notificationsDoNotDisturb" label="&notificationsDoNotDisturb.label;"
+              accesskey="&notificationsDoNotDisturb.accesskey;"/>
+    <label id="notificationsDoNotDisturbDetails"
+           class="indent">&notificationsDoNotDisturbDetails.value;</label>
+  </vbox>
+
+  <hbox align="start">
+    <checkbox id="popupPolicy" preference="dom.disable_open_during_load"
+              label="&blockPopups.label;" accesskey="&blockPopups.accesskey;"
+              onsyncfrompreference="return gPrivacyPane.updateButtons('popupPolicyButton',
+                                         'dom.disable_open_during_load');"
+              flex="1" />
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="popupPolicyButton"
+              class="accessory-button"
+              label="&popupExceptions.label;"
+              accesskey="&popupExceptions.accesskey;"
+              searchkeywords="&address2.label; &button.cancel.label; &button.ok.label;"/>
+    </hbox>
+  </hbox>
+
+  <hbox id="addonInstallBox">
+    <checkbox id="warnAddonInstall"
+              label="&warnOnAddonInstall2.label;"
+              accesskey="&warnOnAddonInstall2.accesskey;"
+              preference="xpinstall.whitelist.required"
+              onsyncfrompreference="return gPrivacyPane.readWarnAddonInstall();"
+              flex="1" />
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="addonExceptions"
+              class="accessory-button"
+              label="&addonExceptions.label;"
+              accesskey="&addonExceptions.accesskey;"
+              searchkeywords="&address2.label;
+                              &allow.label;
+                              &removepermission2.label;
+                              &removeallpermissions2.label;
+                              &button.cancel.label;
+                              &button.ok.label;"/>
+    </hbox>
+  </hbox>
+
+  <vbox id="a11yPermissionsBox">
+    <description flex="1">
+      <checkbox id="a11yPrivacyCheckbox" label="&a11yPrivacy.checkbox.label;"
+                accesskey="&a11yPrivacy.checkbox.accesskey;"
+                oncommand="return gPrivacyPane.updateA11yPrefs(this.checked)"/>
+      <label id="a11yLearnMoreLink" class="learnMore text-link"
+              value="&a11yPrivacy.learnmore.label;"></label>
+    </description>
+  </vbox>
+</groupbox>
+
+<hbox id="dataCollectionCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="panePrivacy"
+      data-subcategory="reports">
+  <label class="header-name" flex="1">&dataCollection.label;</label>
+</hbox>
+
+<!-- Firefox Data Collection and Use -->
+#ifdef MOZ_DATA_REPORTING
+<groupbox id="dataCollectionGroup" data-category="panePrivacy" data-subcategory="reports" hidden="true">
+  <caption class="search-header" hidden="true"><label>&dataCollection.label;</label></caption>
+
+  <vbox>
+    <description>
+      &dataCollectionDesc.label;<label id="dataCollectionPrivacyNotice" class="learnMore text-link">&dataCollectionPrivacyNotice.label;</label>
+    </description>
+    <description flex="1">
+      <checkbox id="submitHealthReportBox" label="&enableHealthReport1.label;"
+                accesskey="&enableHealthReport1.accesskey;"/>
+      <label id="FHRLearnMore"
+             class="learnMore text-link">&healthReportLearnMore.label;</label>
+    </description>
+#ifndef MOZ_TELEMETRY_REPORTING
+    <description id="TelemetryDisabledDesc" class="indent" control="telemetryGroup">&healthReportingDisabled.label;</description>
+#endif
+  </vbox>
+#ifdef MOZ_CRASHREPORTER
+  <hbox align="center">
+    <checkbox id="automaticallySubmitCrashesBox"
+              preference="browser.crashReports.unsubmittedCheck.autoSubmit"
+              label="&alwaysSubmitCrashReports1.label;"
+              accesskey="&alwaysSubmitCrashReports1.accesskey;"/>
+    <label id="crashReporterLearnMore"
+           class="learnMore text-link">&crashReporterLearnMore.label;</label>
+  </hbox>
+#endif
+</groupbox>
+#endif
+
+<hbox id="securityCategory"
+      class="subcategory"
+      hidden="true"
+      data-category="panePrivacy">
+  <label class="header-name" flex="1">&security.label;</label>
+</hbox>
+
+<!-- addons, forgery (phishing) UI Security -->
+<groupbox id="addonsPhishingGroup" data-category="panePrivacy" hidden="true">
+  <caption><label>&phishingProtection.label;</label></caption>
+  <checkbox id="enableSafeBrowsing"
+            label="&enableSafeBrowsing.label;"
+            accesskey="&enableSafeBrowsing.accesskey;" />
+  <vbox class="indent">
+    <checkbox id="blockDownloads"
+              label="&blockDownloads.label;"
+              accesskey="&blockDownloads.accesskey;" />
+    <checkbox id="blockUncommonUnwanted"
+              label="&blockUncommonAndUnwanted.label;"
+              accesskey="&blockUncommonAndUnwanted.accesskey;" />
+  </vbox>
+</groupbox>
+
+<!-- Certificates -->
+<groupbox id="certSelection" data-category="panePrivacy" hidden="true">
+  <caption><label>&certificateTab.label;</label></caption>
+  <description id="CertSelectionDesc" control="certSelection">&certPersonal2.description;</description>
+
+  <!--
+    The values on these radio buttons may look like l10n issues, but
+    they're not - this preference uses *those strings* as its values.
+    I KID YOU NOT.
+  -->
+  <radiogroup id="certSelection"
+              preftype="string"
+              preference="security.default_personal_cert"
+              aria-labelledby="CertSelectionDesc">
+    <radio label="&selectCerts.auto;"
+           accesskey="&selectCerts.auto.accesskey;"
+           value="Select Automatically"/>
+    <radio label="&selectCerts.ask;"
+           accesskey="&selectCerts.ask.accesskey;"
+           value="Ask Every Time"/>
+  </radiogroup>
+  <hbox align="start">
+    <checkbox id="enableOCSP"
+              label="&enableOCSP.label;"
+              accesskey="&enableOCSP.accesskey;"
+              onsyncfrompreference="return gPrivacyPane.readEnableOCSP();"
+              onsynctopreference="return gPrivacyPane.writeEnableOCSP();"
+              preference="security.OCSP.enabled"
+              flex="1" />
+    <vbox>
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox pack="end">
+        <button id="viewCertificatesButton"
+                class="accessory-button"
+                label="&viewCerts2.label;"
+                accesskey="&viewCerts2.accesskey;"
+                preference="security.disable_button.openCertManager"
+                searchkeywords="&certmgr.tab.mine;
+                                &certmgr.tab.others2;
+                                &certmgr.tab.websites3;
+                                &certmgr.tab.ca;
+                                &certmgr.tab.orphan2;
+                                &certmgr.mine2;
+                                &certmgr.others2;
+                                &certmgr.websites3;
+                                &certmgr.cas2;
+                                &certmgr.orphans2;
+                                &certmgr.certname;
+                                &certmgr.tokenname;
+                                &certmgr.view2.label;
+                                &certmgr.export.label;
+                                &certmgr.delete2.label;"/>
+      </hbox>
+      <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+      <hbox pack="end">
+        <button id="viewSecurityDevicesButton"
+                class="accessory-button"
+                label="&viewSecurityDevices2.label;"
+                accesskey="&viewSecurityDevices2.accesskey;"
+                preference="security.disable_button.openDeviceManager"
+                searchkeywords="&devmgr.title;
+                                &devmgr.devlist.label;
+                                &devmgr.details.title;
+                                &devmgr.details.title2;
+                                &devmgr.button.login.label;
+                                &devmgr.button.logout.label;
+                                &devmgr.button.changepw.label;
+                                &devmgr.button.load.label;
+                                &devmgr.button.unload.label;"/>
+      </hbox>
+    </vbox>
+  </hbox>
+</groupbox>
+
+<!-- Offline apps -->
+<groupbox id="offlineGroup" data-category="panePrivacy" hidden="true" data-hidden-from-search="true">
+  <caption><label>&offlineStorage2.label;</label></caption>
+
+  <hbox align="center">
+    <label id="actualAppCacheSize" flex="1"/>
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="clearOfflineAppCacheButton"
+              class="accessory-button"
+              icon="clear"
+              label="&clearOfflineAppCacheNow.label;" accesskey="&clearOfflineAppCacheNow.accesskey;"/>
+    </hbox>
+  </hbox>
+  <hbox align="center">
+    <checkbox id="offlineNotify"
+              label="&offlineStorageNotify.label;" accesskey="&offlineStorageNotify.accesskey;"
+              preference="browser.offline-apps.notify"
+              onsyncfrompreference="return gPrivacyPane.readOfflineNotify();"
+              flex="1" />
+    <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+    <hbox>
+      <button id="offlineNotifyExceptions"
+              class="accessory-button"
+              label="&offlineStorageNotifyExceptions.label;"
+              accesskey="&offlineStorageNotifyExceptions.accesskey;"/>
+    </hbox>
+  </hbox>
+  <hbox>
+    <vbox flex="1">
+      <label id="offlineAppsListLabel">&offlineAppsList3.label;</label>
+      <listbox id="offlineAppsList"
+              flex="1"
+              aria-labelledby="offlineAppsListLabel">
+      </listbox>
+    </vbox>
+    <vbox pack="end">
+      <button id="offlineAppsListRemove"
+              class="accessory-button"
+              disabled="true"
+              label="&offlineAppsListRemove.label;"
+              accesskey="&offlineAppsListRemove.accesskey;"/>
+    </vbox>
+  </hbox>
+</groupbox>
--- a/browser/components/preferences/in-content/search.xul
+++ b/browser/components/preferences/in-content/search.xul
@@ -14,49 +14,53 @@
 
     </preferences>
 
     <script type="application/javascript"
             src="chrome://browser/content/preferences/in-content/search.js"/>
 
     <stringbundle id="engineManagerBundle" src="chrome://browser/locale/engineManager.properties"/>
 
-    <hbox id="header-search"
-          class="header"
+    <hbox id="searchCategory"
+          class="subcategory"
           hidden="true"
           data-category="paneSearch">
       <label class="header-name" flex="1">&paneSearch.title;</label>
-      <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
     </hbox>
 
     <!-- Default Search Engine -->
-    <groupbox id="defaultEngineGroup" align="start" data-category="paneSearch">
-      <caption label="&defaultSearchEngine.label;"/>
-      <label>&chooseYourDefaultSearchEngine.label;</label>
-      <menulist id="defaultEngine">
-        <menupopup/>
-      </menulist>
+    <groupbox id="defaultEngineGroup" data-category="paneSearch">
+      <caption><label>&defaultSearchEngine.label;</label></caption>
+      <description>&chooseYourDefaultSearchEngine2.label;</description>
+      <hbox>
+        <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+        <hbox>
+          <menulist id="defaultEngine">
+            <menupopup/>
+          </menulist>
+        </hbox>
+      </hbox>
       <checkbox id="suggestionsInSearchFieldsCheckbox"
                 label="&provideSearchSuggestions.label;"
                 accesskey="&provideSearchSuggestions.accesskey;"
                 preference="browser.search.suggest.enabled"/>
       <vbox class="indent">
-        <checkbox id="urlBarSuggestion" label="&showURLBarSuggestions.label;"
-                  accesskey="&showURLBarSuggestions.accesskey;"
+        <checkbox id="urlBarSuggestion" label="&showURLBarSuggestions2.label;"
+                  accesskey="&showURLBarSuggestions2.accesskey;"
                   preference="browser.urlbar.suggest.searches"/>
         <hbox id="urlBarSuggestionPermanentPBLabel"
               align="center" class="indent">
           <label flex="1">&urlBarSuggestionsPermanentPB.label;</label>
         </hbox>
       </vbox>
     </groupbox>
 
     <groupbox id="oneClickSearchProvidersGroup" data-category="paneSearch">
-      <caption label="&oneClickSearchEngines.label;"/>
-      <label>&chooseWhichOneToDisplay.label;</label>
+      <caption><label>&oneClickSearchEngines.label;</label></caption>
+      <description>&chooseWhichOneToDisplay2.label;</description>
 
       <tree id="engineList" flex="1" rows="8" hidecolumnpicker="true" editable="true"
             seltype="single">
         <treechildren id="engineChildren" flex="1"/>
         <treecols>
           <treecol id="engineShown" type="checkbox" editable="true" sortable="false"/>
           <treecol id="engineName" flex="4" label="&engineNameColumn.label;" sortable="false"/>
           <treecol id="engineKeyword" flex="1" label="&engineKeywordColumn.label;" editable="true"
@@ -72,15 +76,12 @@
         <spacer flex="1"/>
         <button id="removeEngineButton"
                 class="searchEngineAction"
                 label="&removeEngine.label;"
                 accesskey="&removeEngine.accesskey;"
                 disabled="true"
                 />
       </hbox>
-
-      <separator class="thin"/>
-
       <hbox id="addEnginesBox" pack="start">
-        <label id="addEngines" class="text-link" value="&addMoreSearchEngines.label;"/>
+        <label id="addEngines" class="text-link">&findMoreSearchEngines.label;</label>
       </hbox>
     </groupbox>
rename from browser/components/preferences/in-content-new/searchResults.xul
rename to browser/components/preferences/in-content/searchResults.xul
deleted file mode 100644
--- a/browser/components/preferences/in-content/security.js
+++ /dev/null
@@ -1,292 +0,0 @@
-/* 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/. */
-
-/* import-globals-from preferences.js */
-
-XPCOMUtils.defineLazyModuleGetter(this, "LoginHelper",
- "resource://gre/modules/LoginHelper.jsm");
-
-Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
-
-var gSecurityPane = {
-  _pane: null,
-
-  /**
-   * Initializes master password UI.
-   */
-  init() {
-    function setEventListener(aId, aEventType, aCallback) {
-      document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gSecurityPane));
-    }
-
-    this._pane = document.getElementById("paneSecurity");
-    this._initMasterPasswordUI();
-    this._initSafeBrowsing();
-
-    setEventListener("addonExceptions", "command",
-      gSecurityPane.showAddonExceptions);
-    setEventListener("passwordExceptions", "command",
-      gSecurityPane.showPasswordExceptions);
-    setEventListener("useMasterPassword", "command",
-      gSecurityPane.updateMasterPasswordButton);
-    setEventListener("changeMasterPassword", "command",
-      gSecurityPane.changeMasterPassword);
-    setEventListener("showPasswords", "command",
-      gSecurityPane.showPasswords);
-  },
-
-  // ADD-ONS
-
-  /*
-   * Preferences:
-   *
-   * xpinstall.whitelist.required
-   * - true if a site must be added to a site whitelist before extensions
-   *   provided by the site may be installed from it, false if the extension
-   *   may be directly installed after a confirmation dialog
-   */
-
-  /**
-   * Enables/disables the add-ons Exceptions button depending on whether
-   * or not add-on installation warnings are displayed.
-   */
-  readWarnAddonInstall() {
-    var warn = document.getElementById("xpinstall.whitelist.required");
-    var exceptions = document.getElementById("addonExceptions");
-
-    exceptions.disabled = !warn.value;
-
-    // don't override the preference value
-    return undefined;
-  },
-
-  /**
-   * Displays the exceptions lists for add-on installation warnings.
-   */
-  showAddonExceptions() {
-    var bundlePrefs = document.getElementById("bundlePreferences");
-
-    var params = this._addonParams;
-    if (!params.windowTitle || !params.introText) {
-      params.windowTitle = bundlePrefs.getString("addons_permissions_title2");
-      params.introText = bundlePrefs.getString("addonspermissionstext");
-    }
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  /**
-   * Parameters for the add-on install permissions dialog.
-   */
-  _addonParams:
-    {
-      blockVisible: false,
-      sessionVisible: false,
-      allowVisible: true,
-      prefilledHost: "",
-      permissionType: "install"
-    },
-
-  // PASSWORDS
-
-  /*
-   * Preferences:
-   *
-   * signon.rememberSignons
-   * - true if passwords are remembered, false otherwise
-   */
-
-  /**
-   * Enables/disables the Exceptions button used to configure sites where
-   * passwords are never saved. When browser is set to start in Private
-   * Browsing mode, the "Remember passwords" UI is useless, so we disable it.
-   */
-  readSavePasswords() {
-    var pref = document.getElementById("signon.rememberSignons");
-    var excepts = document.getElementById("passwordExceptions");
-
-    if (PrivateBrowsingUtils.permanentPrivateBrowsing) {
-      document.getElementById("savePasswords").disabled = true;
-      excepts.disabled = true;
-      return false;
-    }
-    excepts.disabled = !pref.value;
-    // don't override pref value in UI
-    return undefined;
-  },
-
-  /**
-   * Displays a dialog in which the user can view and modify the list of sites
-   * where passwords are never saved.
-   */
-  showPasswordExceptions() {
-    var bundlePrefs = document.getElementById("bundlePreferences");
-    var params = {
-      blockVisible: true,
-      sessionVisible: false,
-      allowVisible: false,
-      hideStatusColumn: true,
-      prefilledHost: "",
-      permissionType: "login-saving",
-      windowTitle: bundlePrefs.getString("savedLoginsExceptions_title"),
-      introText: bundlePrefs.getString("savedLoginsExceptions_desc2")
-    };
-
-    gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
-                    null, params);
-  },
-
-  /**
-   * Initializes master password UI: the "use master password" checkbox, selects
-   * the master password button to show, and enables/disables it as necessary.
-   * The master password is controlled by various bits of NSS functionality, so
-   * the UI for it can't be controlled by the normal preference bindings.
-   */
-  _initMasterPasswordUI() {
-    var noMP = !LoginHelper.isMasterPasswordSet();
-
-    var button = document.getElementById("changeMasterPassword");
-    button.disabled = noMP;
-
-    var checkbox = document.getElementById("useMasterPassword");
-    checkbox.checked = !noMP;
-  },
-
-  _initSafeBrowsing() {
-    let enableSafeBrowsing = document.getElementById("enableSafeBrowsing");
-    let blockDownloads = document.getElementById("blockDownloads");
-    let blockUncommonUnwanted = document.getElementById("blockUncommonUnwanted");
-
-    let safeBrowsingPhishingPref = document.getElementById("browser.safebrowsing.phishing.enabled");
-    let safeBrowsingMalwarePref = document.getElementById("browser.safebrowsing.malware.enabled");
-
-    let blockDownloadsPref = document.getElementById("browser.safebrowsing.downloads.enabled");
-    let malwareTable = document.getElementById("urlclassifier.malwareTable");
-
-    let blockUnwantedPref = document.getElementById("browser.safebrowsing.downloads.remote.block_potentially_unwanted");
-    let blockUncommonPref = document.getElementById("browser.safebrowsing.downloads.remote.block_uncommon");
-
-    enableSafeBrowsing.addEventListener("command", function() {
-      safeBrowsingPhishingPref.value = enableSafeBrowsing.checked;
-      safeBrowsingMalwarePref.value = enableSafeBrowsing.checked;
-
-      if (enableSafeBrowsing.checked) {
-        blockDownloads.removeAttribute("disabled");
-        if (blockDownloads.checked) {
-          blockUncommonUnwanted.removeAttribute("disabled");
-        }
-      } else {
-        blockDownloads.setAttribute("disabled", "true");
-        blockUncommonUnwanted.setAttribute("disabled", "true");
-      }
-    });
-
-    blockDownloads.addEventListener("command", function() {
-      blockDownloadsPref.value = blockDownloads.checked;
-      if (blockDownloads.checked) {
-        blockUncommonUnwanted.removeAttribute("disabled");
-      } else {
-        blockUncommonUnwanted.setAttribute("disabled", "true");
-      }
-    });
-
-    blockUncommonUnwanted.addEventListener("command", function() {
-      blockUnwantedPref.value = blockUncommonUnwanted.checked;
-      blockUncommonPref.value = blockUncommonUnwanted.checked;
-
-      let malware = malwareTable.value
-        .split(",")
-        .filter(x => x !== "goog-unwanted-shavar" && x !== "test-unwanted-simple");
-
-      if (blockUncommonUnwanted.checked) {
-        malware.push("goog-unwanted-shavar");
-        malware.push("test-unwanted-simple");
-      }
-
-      // sort alphabetically to keep the pref consistent
-      malware.sort();
-
-      malwareTable.value = malware.join(",");
-    });
-
-    // set initial values
-
-    enableSafeBrowsing.checked = safeBrowsingPhishingPref.value && safeBrowsingMalwarePref.value;
-    if (!enableSafeBrowsing.checked) {
-      blockDownloads.setAttribute("disabled", "true");
-      blockUncommonUnwanted.setAttribute("disabled", "true");
-    }
-
-    blockDownloads.checked = blockDownloadsPref.value;
-    if (!blockDownloadsPref.value) {
-      blockUncommonUnwanted.setAttribute("disabled", "true");
-    }
-
-    blockUncommonUnwanted.checked = blockUnwantedPref.value && blockUncommonPref.value;
-  },
-
-  /**
-   * Enables/disables the master password button depending on the state of the
-   * "use master password" checkbox, and prompts for master password removal if
-   * one is set.
-   */
-  updateMasterPasswordButton() {
-    var checkbox = document.getElementById("useMasterPassword");
-    var button = document.getElementById("changeMasterPassword");
-    button.disabled = !checkbox.checked;
-
-    // unchecking the checkbox should try to immediately remove the master
-    // password, because it's impossible to non-destructively remove the master
-    // password used to encrypt all the passwords without providing it (by
-    // design), and it would be extremely odd to pop up that dialog when the
-    // user closes the prefwindow and saves his settings
-    if (!checkbox.checked)
-      this._removeMasterPassword();
-    else
-      this.changeMasterPassword();
-
-    this._initMasterPasswordUI();
-  },
-
-  /**
-   * Displays the "remove master password" dialog to allow the user to remove
-   * the current master password.  When the dialog is dismissed, master password
-   * UI is automatically updated.
-   */
-  _removeMasterPassword() {
-    var secmodDB = Cc["@mozilla.org/security/pkcs11moduledb;1"].
-                   getService(Ci.nsIPKCS11ModuleDB);
-    if (secmodDB.isFIPSEnabled) {
-      var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
-                          getService(Ci.nsIPromptService);
-      var bundle = document.getElementById("bundlePreferences");
-      promptService.alert(window,
-                          bundle.getString("pw_change_failed_title"),
-                          bundle.getString("pw_change2empty_in_fips_mode"));
-      this._initMasterPasswordUI();
-    } else {
-      gSubDialog.open("chrome://mozapps/content/preferences/removemp.xul",
-                      null, null, this._initMasterPasswordUI.bind(this));
-    }
-  },
-
-  /**
-   * Displays a dialog in which the master password may be changed.
-   */
-  changeMasterPassword() {
-    gSubDialog.open("chrome://mozapps/content/preferences/changemp.xul",
-                    "resizable=no", null, this._initMasterPasswordUI.bind(this));
-  },
-
-  /**
-   * Shows the sites where the user has saved passwords and the associated login
-   * information.
-   */
-  showPasswords() {
-    gSubDialog.open("chrome://passwordmgr/content/passwordManager.xul");
-  }
-
-};
deleted file mode 100644
--- a/browser/components/preferences/in-content/security.xul
+++ /dev/null
@@ -1,128 +0,0 @@
-# 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/.
-
-<!-- Security panel -->
-
-<script type="application/javascript"
-        src="chrome://browser/content/preferences/in-content/security.js"/>
-
-<preferences id="securityPreferences" hidden="true" data-category="paneSecurity">
-  <!-- XXX buttons -->
-  <preference id="pref.privacy.disable_button.view_passwords"
-              name="pref.privacy.disable_button.view_passwords"
-              type="bool"/>
-  <preference id="pref.privacy.disable_button.view_passwords_exceptions"
-              name="pref.privacy.disable_button.view_passwords_exceptions"
-              type="bool"/>
-
-  <!-- Add-ons, malware, phishing -->
-  <preference id="xpinstall.whitelist.required"
-              name="xpinstall.whitelist.required"
-              type="bool"/>
-
-  <preference id="browser.safebrowsing.malware.enabled"
-              name="browser.safebrowsing.malware.enabled"
-              type="bool"/>
-  <preference id="browser.safebrowsing.phishing.enabled"
-              name="browser.safebrowsing.phishing.enabled"
-              type="bool"/>
-
-  <preference id="browser.safebrowsing.downloads.enabled"
-              name="browser.safebrowsing.downloads.enabled"
-              type="bool"/>
-
-  <preference id="urlclassifier.malwareTable"
-              name="urlclassifier.malwareTable"
-              type="string"/>
-
-  <preference id="browser.safebrowsing.downloads.remote.block_potentially_unwanted"
-              name="browser.safebrowsing.downloads.remote.block_potentially_unwanted"
-              type="bool"/>
-  <preference id="browser.safebrowsing.downloads.remote.block_uncommon"
-              name="browser.safebrowsing.downloads.remote.block_uncommon"
-              type="bool"/>
-
-  <!-- Passwords -->
-  <preference id="signon.rememberSignons" name="signon.rememberSignons" type="bool"/>
-
-</preferences>
-
-<hbox id="header-security"
-      class="header"
-      hidden="true"
-      data-category="paneSecurity">
-  <label class="header-name" flex="1">&paneSecurity.title;</label>
-  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
-</hbox>
-
-<!-- addons, forgery (phishing) UI -->
-<groupbox id="addonsPhishingGroup" data-category="paneSecurity" hidden="true">
-  <caption><label>&general.label;</label></caption>
-
-  <hbox id="addonInstallBox">
-    <checkbox id="warnAddonInstall"
-              label="&warnOnAddonInstall2.label;"
-              accesskey="&warnOnAddonInstall2.accesskey;"
-              preference="xpinstall.whitelist.required"
-              onsyncfrompreference="return gSecurityPane.readWarnAddonInstall();"/>
-    <spacer flex="1"/>
-    <button id="addonExceptions"
-            label="&addonExceptions.label;"
-            accesskey="&addonExceptions.accesskey;"/>
-  </hbox>
-
-  <separator class="thin"/>
-  <vbox align="start">
-    <checkbox id="enableSafeBrowsing"
-              label="&enableSafeBrowsing.label;"
-              accesskey="&enableSafeBrowsing.accesskey;" />
-    <vbox class="indent">
-      <checkbox id="blockDownloads"
-                label="&blockDownloads.label;"
-                accesskey="&blockDownloads.accesskey;" />
-      <checkbox id="blockUncommonUnwanted"
-                label="&blockUncommonAndUnwanted.label;"
-                accesskey="&blockUncommonAndUnwanted.accesskey;" />
-    </vbox>
-  </vbox>
-</groupbox>
-
-<!-- Passwords -->
-<groupbox id="passwordsGroup" orient="vertical" data-category="paneSecurity" hidden="true">
-  <caption><label>&logins.label;</label></caption>
-
-  <grid id="passwordGrid">
-    <columns>
-      <column flex="1"/>
-      <column/>
-    </columns>
-    <rows id="passwordRows">
-      <row id="savePasswordsBox">
-        <checkbox id="savePasswords"
-                  label="&rememberLogins2.label;" accesskey="&rememberLogins2.accesskey;"
-                  preference="signon.rememberSignons"
-                  onsyncfrompreference="return gSecurityPane.readSavePasswords();"/>
-        <button id="passwordExceptions"
-                label="&passwordExceptions.label;"
-                accesskey="&passwordExceptions.accesskey;"
-                preference="pref.privacy.disable_button.view_passwords_exceptions"/>
-      </row>
-      <row id="showPasswordRow">
-        <hbox id="showPasswordsBox"/>
-        <button id="showPasswords"
-                label="&savedLogins.label;" accesskey="&savedLogins.accesskey;"
-                preference="pref.privacy.disable_button.view_passwords"/>
-      </row>
-    </rows>
-  </grid>
-  <hbox id="masterPasswordRow">
-    <checkbox id="useMasterPassword"
-              label="&useMasterPassword.label;"
-              accesskey="&useMasterPassword.accesskey;"/>
-    <spacer flex="1"/>
-    <button id="changeMasterPassword"
-            label="&changeMasterPassword.label;"
-            accesskey="&changeMasterPassword.accesskey;"/>
-  </hbox>
-</groupbox>
--- a/browser/components/preferences/in-content/subdialogs.js
+++ b/browser/components/preferences/in-content/subdialogs.js
@@ -329,16 +329,30 @@ SubDialog.prototype = {
 
     if (this._box.getAttribute("resizable") == "true") {
       this._onResize = this._onResize.bind(this);
       this._resizeObserver = new MutationObserver(this._onResize);
       this._resizeObserver.observe(this._box, {attributes: true});
     }
 
     this._trapFocus();
+
+    // Search within main document and highlight matched keyword.
+    gSearchResultsPane.searchWithinNode(this._titleElement, gSearchResultsPane.query);
+
+    // Search within sub-dialog document and highlight matched keyword.
+    gSearchResultsPane.searchWithinNode(this._frame.contentDocument.firstElementChild,
+      gSearchResultsPane.query);
+
+    // Creating tooltips for all the instances found
+    for (let node of gSearchResultsPane.listSearchTooltips) {
+      if (!node.tooltipNode) {
+        gSearchResultsPane.createSearchTooltip(node, gSearchResultsPane.query);
+      }
+    }
   },
 
   _onResize(mutations) {
     let frame = this._frame;
     // The width and height styles are needed for the initial
     // layout of the frame, but afterward they need to be removed
     // or their presence will restrict the contents of the <browser>
     // from resizing to a smaller size.
--- a/browser/components/preferences/in-content/sync.js
+++ b/browser/components/preferences/in-content/sync.js
@@ -35,33 +35,33 @@ var gSyncPane = {
   },
 
   init() {
     this._setupEventListeners();
     this._adjustForPrefs();
 
     // If the Service hasn't finished initializing, wait for it.
     let xps = Components.classes["@mozilla.org/weave/service;1"]
-                                .getService(Components.interfaces.nsISupports)
-                                .wrappedJSObject;
+      .getService(Components.interfaces.nsISupports)
+      .wrappedJSObject;
 
     if (xps.ready) {
       this._init();
       return;
     }
 
     // it may take some time before we can determine what provider to use
     // and the state of that provider, so show the "please wait" page.
     this._showLoadPage(xps);
 
     let onUnload = function() {
       window.removeEventListener("unload", onUnload);
       try {
         Services.obs.removeObserver(onReady, "weave:service:ready");
-      } catch (e) {}
+      } catch (e) { }
     };
 
     let onReady = () => {
       Services.obs.removeObserver(onReady, "weave:service:ready");
       window.removeEventListener("unload", onUnload);
       this._init();
     };
 
@@ -101,32 +101,32 @@ var gSyncPane = {
     let username = Services.prefs.getCharPref("services.sync.username", "");
     if (!username) {
       this.page = FXA_PAGE_LOGGED_OUT;
       return;
     }
 
     // Use cached values while we wait for the up-to-date values
     let cachedComputerName = Services.prefs.getCharPref("services.sync.client.name", "");
-    document.getElementById("fxaEmailAddress1").textContent = username;
+    document.querySelector(".fxaEmailAddress").value = username;
     this._populateComputerName(cachedComputerName);
     this.page = FXA_PAGE_LOGGED_IN;
   },
 
   _init() {
     let topics = ["weave:service:login:error",
-                  "weave:service:login:finish",
-                  "weave:service:start-over:finish",
-                  "weave:service:setup-complete",
-                  "weave:service:logout:finish",
-                  FxAccountsCommon.ONVERIFIED_NOTIFICATION,
-                  FxAccountsCommon.ONLOGIN_NOTIFICATION,
-                  FxAccountsCommon.ON_ACCOUNT_STATE_CHANGE_NOTIFICATION,
-                  FxAccountsCommon.ON_PROFILE_CHANGE_NOTIFICATION,
-                  ];
+      "weave:service:login:finish",
+      "weave:service:start-over:finish",
+      "weave:service:setup-complete",
+      "weave:service:logout:finish",
+      FxAccountsCommon.ONVERIFIED_NOTIFICATION,
+      FxAccountsCommon.ONLOGIN_NOTIFICATION,
+      FxAccountsCommon.ON_ACCOUNT_STATE_CHANGE_NOTIFICATION,
+      FxAccountsCommon.ON_PROFILE_CHANGE_NOTIFICATION,
+    ];
     // Add the observers now and remove them on unload
     // XXXzpao This should use Services.obs.* but Weave's Obs does nice handling
     //        of `this`. Fix in a followup. (bug 583347)
     topics.forEach(function(topic) {
       Weave.Svc.Obs.add(topic, this.updateWeavePrefs, this);
     }, this);
 
     window.addEventListener("unload", function() {
@@ -149,16 +149,21 @@ var gSyncPane = {
     document.getElementById("tosPP-small-ToS").setAttribute("href", Weave.Svc.Prefs.get("fxa.termsURL"));
     document.getElementById("tosPP-small-PP").setAttribute("href", Weave.Svc.Prefs.get("fxa.privacyURL"));
 
     fxAccounts.promiseAccountsManageURI(this._getEntryPoint()).then(accountsManageURI => {
       document.getElementById("verifiedManage").setAttribute("href", accountsManageURI);
     });
 
     this.updateWeavePrefs();
+
+    // Notify observers that the UI is now ready
+    Components.classes["@mozilla.org/observer-service;1"]
+      .getService(Components.interfaces.nsIObserverService)
+      .notifyObservers(window, "sync-pane-loaded");
   },
 
   _toggleComputerNameControls(editMode) {
     let textbox = document.getElementById("fxaSyncComputerName");
     textbox.disabled = !editMode;
     document.getElementById("fxaChangeDeviceName").hidden = editMode;
     document.getElementById("fxaCancelChangeDeviceName").hidden = !editMode;
     document.getElementById("fxaSaveChangeDeviceName").hidden = !editMode;
@@ -173,32 +178,32 @@ var gSyncPane = {
 
   _blurComputerNameTextbox() {
     document.getElementById("fxaSyncComputerName").blur();
   },
 
   _focusAfterComputerNameTextbox() {
     // Focus the most appropriate element that's *not* the "computer name" box.
     Services.focus.moveFocus(window,
-                             document.getElementById("fxaSyncComputerName"),
-                             Services.focus.MOVEFOCUS_FORWARD, 0);
+      document.getElementById("fxaSyncComputerName"),
+      Services.focus.MOVEFOCUS_FORWARD, 0);
   },
 
   _updateComputerNameValue(save) {
     if (save) {
       let textbox = document.getElementById("fxaSyncComputerName");
       Weave.Service.clientsEngine.localName = textbox.value;
     }
     this._populateComputerName(Weave.Service.clientsEngine.localName);
   },
 
   _setupEventListeners() {
     function setEventListener(aId, aEventType, aCallback) {
       document.getElementById(aId)
-              .addEventListener(aEventType, aCallback.bind(gSyncPane));
+        .addEventListener(aEventType, aCallback.bind(gSyncPane));
     }
 
     setEventListener("fxaChangeDeviceName", "command", function() {
       this._toggleComputerNameControls(true);
       this._focusComputerNameTextbox();
     });
     setEventListener("fxaCancelChangeDeviceName", "command", function() {
       // We explicitly blur the textbox because of bug 75324, then after
@@ -212,20 +217,16 @@ var gSyncPane = {
     });
     setEventListener("fxaSaveChangeDeviceName", "command", function() {
       // Work around bug 75324 - see above.
       this._blurComputerNameTextbox();
       this._toggleComputerNameControls(false);
       this._updateComputerNameValue(true);
       this._focusAfterComputerNameTextbox();
     });
-    setEventListener("noFxaSignUp", "command", function() {
-      gSyncPane.signUp();
-      return false;
-    });
     setEventListener("noFxaSignIn", "command", function() {
       gSyncPane.signIn();
       return false;
     });
     setEventListener("fxaUnlinkButton", "command", function() {
       gSyncPane.unlinkFirefoxAccount(true);
     });
     setEventListener("verifyFxaAccount", "command",
@@ -245,22 +246,21 @@ var gSyncPane = {
       } else if (e.keyCode == KeyEvent.DOM_VK_ESCAPE) {
         document.getElementById("fxaCancelChangeDeviceName").click();
       }
     });
   },
 
   updateWeavePrefs() {
     let service = Components.classes["@mozilla.org/weave/service;1"]
-                  .getService(Components.interfaces.nsISupports)
-                  .wrappedJSObject;
+      .getService(Components.interfaces.nsISupports)
+      .wrappedJSObject;
 
     let displayNameLabel = document.getElementById("fxaDisplayName");
-    let fxaEmailAddress1Label = document.getElementById("fxaEmailAddress1");
-    fxaEmailAddress1Label.hidden = false;
+    let fxaEmailAddressLabels = document.querySelectorAll(".fxaEmailAddress");
     displayNameLabel.hidden = true;
 
     // determine the fxa status...
     this._showLoadPage(service);
 
     fxAccounts.getSignedInUser().then(data => {
       if (!data) {
         this.page = FXA_PAGE_LOGGED_OUT;
@@ -270,72 +270,72 @@ var gSyncPane = {
       // We are logged in locally, but maybe we are in a state where the
       // server rejected our credentials (eg, password changed on the server)
       let fxaLoginStatus = document.getElementById("fxaLoginStatus");
       let syncReady;
       // Not Verfied implies login error state, so check that first.
       if (!data.verified) {
         fxaLoginStatus.selectedIndex = FXA_LOGIN_UNVERIFIED;
         syncReady = false;
-      // So we think we are logged in, so login problems are next.
-      // (Although if the Sync identity manager is still initializing, we
-      // ignore login errors and assume all will eventually be good.)
-      // LOGIN_FAILED_LOGIN_REJECTED explicitly means "you must log back in".
-      // All other login failures are assumed to be transient and should go
-      // away by themselves, so aren't reflected here.
+        // So we think we are logged in, so login problems are next.
+        // (Although if the Sync identity manager is still initializing, we
+        // ignore login errors and assume all will eventually be good.)
+        // LOGIN_FAILED_LOGIN_REJECTED explicitly means "you must log back in".
+        // All other login failures are assumed to be transient and should go
+        // away by themselves, so aren't reflected here.
       } else if (Weave.Status.login == Weave.LOGIN_FAILED_LOGIN_REJECTED) {
         fxaLoginStatus.selectedIndex = FXA_LOGIN_FAILED;
         syncReady = false;
-      // Else we must be golden (or in an error state we expect to magically
-      // resolve itself)
+        // Else we must be golden (or in an error state we expect to magically
+        // resolve itself)
       } else {
         fxaLoginStatus.selectedIndex = FXA_LOGIN_VERIFIED;
         syncReady = true;
       }
-      fxaEmailAddress1Label.textContent = data.email;
-      document.getElementById("fxaEmailAddress2").textContent = data.email;
-      document.getElementById("fxaEmailAddress3").textContent = data.email;
+      fxaEmailAddressLabels.forEach((label) => {
+        label.value = data.email;
+      });
       this._populateComputerName(Weave.Service.clientsEngine.localName);
       let engines = document.getElementById("fxaSyncEngines")
       for (let checkbox of engines.querySelectorAll("checkbox")) {
         checkbox.disabled = !syncReady;
       }
       document.getElementById("fxaChangeDeviceName").disabled = !syncReady;
 
       // Clear the profile image (if any) of the previously logged in account.
-      document.getElementById("fxaProfileImage").style.removeProperty("list-style-image");
+      document.querySelector("#fxaLoginVerified > .fxaProfileImage").style.removeProperty("list-style-image");
 
       // If the account is verified the next promise in the chain will
       // fetch profile data.
       return data.verified;
     }).then(isVerified => {
       if (isVerified) {
         return fxAccounts.getSignedInUserProfile();
       }
       return null;
     }).then(data => {
       let fxaLoginStatus = document.getElementById("fxaLoginStatus");
       if (data) {
         if (data.email) {
           // A hack to handle that the user's email address may have changed.
           // This can probably be removed as part of bug 1383663.
-          fxaEmailAddress1Label.textContent = data.email;
-          document.getElementById("fxaEmailAddress2").textContent = data.email;
-          document.getElementById("fxaEmailAddress3").textContent = data.email;
+          fxaEmailAddressLabels.forEach((label) => {
+            label.value = data.email;
+          });
         }
         if (data.displayName) {
           fxaLoginStatus.setAttribute("hasName", true);
           displayNameLabel.hidden = false;
           displayNameLabel.textContent = data.displayName;
         } else {
           fxaLoginStatus.removeAttribute("hasName");
         }
         if (data.avatar) {
           let bgImage = "url(\"" + data.avatar + "\")";
-          let profileImageElement = document.getElementById("fxaProfileImage");
+          let profileImageElement = document.querySelector("#fxaLoginVerified > .fxaProfileImage");
           profileImageElement.style.listStyleImage = bgImage;
 
           let img = new Image();
           img.onerror = () => {
             // Clear the image if it has trouble loading. Since this callback is asynchronous
             // we check to make sure the image is still the same before we clear it.
             if (profileImageElement.style.listStyleImage === bgImage) {
               profileImageElement.style.removeProperty("list-style-image");
@@ -378,19 +378,19 @@ var gSyncPane = {
     }
     win.switchToTabHavingURI(url, true, options);
   },
 
   // Replace the current tab with the specified URL.
   replaceTabWithUrl(url) {
     // Get the <browser> element hosting us.
     let browser = window.QueryInterface(Ci.nsIInterfaceRequestor)
-                        .getInterface(Ci.nsIWebNavigation)
-                        .QueryInterface(Ci.nsIDocShell)
-                        .chromeEventHandler;
+      .getInterface(Ci.nsIWebNavigation)
+      .QueryInterface(Ci.nsIDocShell)
+      .chromeEventHandler;
     // And tell it to load our URL.
     browser.loadURI(url);
   },
 
   signUp() {
     this._openAboutAccounts("signup");
   },
 
@@ -402,29 +402,29 @@ var gSyncPane = {
     this._openAboutAccounts("reauth");
   },
 
 
   clickOrSpaceOrEnterPressed(event) {
     // Note: charCode is deprecated, but 'char' not yet implemented.
     // Replace charCode with char when implemented, see Bug 680830
     return ((event.type == "click" && event.button == 0) ||
-            (event.type == "keypress" &&
-             (event.charCode == KeyEvent.DOM_VK_SPACE || event.keyCode == KeyEvent.DOM_VK_RETURN)));
+      (event.type == "keypress" &&
+        (event.charCode == KeyEvent.DOM_VK_SPACE || event.keyCode == KeyEvent.DOM_VK_RETURN)));
   },
 
   openChangeProfileImage(event) {
     if (this.clickOrSpaceOrEnterPressed(event)) {
       fxAccounts.promiseAccountsChangeProfileURI(this._getEntryPoint(), "avatar")
-          .then(url => {
-        this.openContentInBrowser(url, {
-          replaceQueryString: true,
-          triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
+        .then(url => {
+          this.openContentInBrowser(url, {
+            replaceQueryString: true,
+            triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
+          });
         });
-      });
       // Prevent page from scrolling on the space key.
       event.preventDefault();
     }
   },
 
   openManageFirefoxAccount(event) {
     if (this.clickOrSpaceOrEnterPressed(event)) {
       this.manageFirefoxAccount();
@@ -473,42 +473,42 @@ var gSyncPane = {
 
   unlinkFirefoxAccount(confirm) {
     if (confirm) {
       // We use a string bundle shared with aboutAccounts.
       let sb = Services.strings.createBundle("chrome://browser/locale/syncSetup.properties");
       let disconnectLabel = sb.GetStringFromName("disconnect.label");
       let title = sb.GetStringFromName("disconnect.verify.title");
       let body = sb.GetStringFromName("disconnect.verify.bodyHeading") +
-                 "\n\n" +
-                 sb.GetStringFromName("disconnect.verify.bodyText");
+        "\n\n" +
+        sb.GetStringFromName("disconnect.verify.bodyText");
       let ps = Services.prompt;
       let buttonFlags = (ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING) +
-                        (ps.BUTTON_POS_1 * ps.BUTTON_TITLE_CANCEL) +
-                        ps.BUTTON_POS_1_DEFAULT;
+        (ps.BUTTON_POS_1 * ps.BUTTON_TITLE_CANCEL) +
+        ps.BUTTON_POS_1_DEFAULT;
 
       let factory = Cc["@mozilla.org/prompter;1"]
-                      .getService(Ci.nsIPromptFactory);
+        .getService(Ci.nsIPromptFactory);
       let prompt = factory.getPrompt(window, Ci.nsIPrompt);
       let bag = prompt.QueryInterface(Ci.nsIWritablePropertyBag2);
       bag.setPropertyAsBool("allowTabModal", true);
 
       let pressed = prompt.confirmEx(title, body, buttonFlags,
-                                     disconnectLabel, null, null, null, {});
+        disconnectLabel, null, null, null, {});
 
       if (pressed != 0) { // 0 is the "continue" button
         return;
       }
     }
     fxAccounts.signOut().then(() => {
       this.updateWeavePrefs();
     });
   },
 
   _populateComputerName(value) {
     let textbox = document.getElementById("fxaSyncComputerName");
     if (!textbox.hasAttribute("placeholder")) {
       textbox.setAttribute("placeholder",
-                           Weave.Utils.getDefaultDeviceName());
+        Weave.Utils.getDefaultDeviceName());
     }
     textbox.value = value;
   },
 };
--- a/browser/components/preferences/in-content/sync.xul
+++ b/browser/components/preferences/in-content/sync.xul
@@ -29,154 +29,164 @@
   <preference id="engine.creditcards"
               name="services.sync.engine.creditcards"
               type="bool"/>
 </preferences>
 
 <script type="application/javascript"
         src="chrome://browser/content/preferences/in-content/sync.js"/>
 
-<hbox id="header-sync"
-      class="header"
+<hbox id="firefoxAccountCategory"
+      class="subcategory"
       hidden="true"
       data-category="paneSync">
-  <label class="header-name" flex="1">&paneSync.title;</label>
-  <html:a class="help-button text-link" target="_blank" aria-label="&helpButton.label;"></html:a>
+  <label class="header-name" flex="1">&paneSync1.title;</label>
 </hbox>
 
 <deck id="weavePrefsDeck" data-category="paneSync" hidden="true">
-  <vbox id="noFxaAccount">
+  <groupbox id="noFxaAccount">
     <hbox>
-      <vbox id="fxaContentWrapper">
-        <groupbox id="noFxaGroup">
-          <vbox>
-            <label id="noFxaCaption">&signedOut.caption;</label>
-            <description id="noFxaDescription" flex="1">&signedOut.description;</description>
-            <hbox class="fxaAccountBox">
-              <vbox>
-                <image class="fxaFirefoxLogo"/>
-              </vbox>
-              <vbox flex="1">
-                <label id="signedOutAccountBoxTitle">&signedOut.accountBox.title;</label>
-                <hbox class="fxaAccountBoxButtons">
-                  <button id="noFxaSignUp" label="&signedOut.accountBox.create;" accesskey="&signedOut.accountBox.create.accesskey;"></button>
-                  <button id="noFxaSignIn" label="&signedOut.accountBox.signin;" accesskey="&signedOut.accountBox.signin.accesskey;"></button>
-                </hbox>
-              </vbox>
-            </hbox>
-          </vbox>
-        </groupbox>
+      <vbox flex="1">
+        <label id="noFxaCaption">&signedOut.caption;</label>
+        <description id="noFxaDescription" flex="1">&signedOut.description;</description>
       </vbox>
       <vbox>
-        <html:img class="fxaSyncIllustration" src="chrome://browser/skin/fxa/sync-illustration.svg"/>
+        <image class="fxaSyncIllustration"/>
+      </vbox>
+    </hbox>
+    <hbox id="fxaNoLoginStatus" align="center" flex="1">
+      <vbox>
+        <image class="fxaProfileImage"/>
+      </vbox>
+      <vbox flex="1">
+        <hbox align="center" flex="1">
+          <hbox align="center" flex="1">
+            <label id="signedOutAccountBoxTitle">&signedOut.accountBox.title;</label>
+          </hbox>
+          <button id="noFxaSignIn"
+                  class="accessory-button"
+                  label="&signedOut.accountBox.signin2;"
+                  accesskey="&signedOut.accountBox.signin2.accesskey;"/>
+        </hbox>
+        <hbox align="center" flex="1">
+          <html:a id="noFxaSignUp"
+                  class="openLink"
+                  accesskey="&signedOut.accountBox.create2.accesskey;"
+                  onclick="gSyncPane.signUp();"
+                  onkeypress="gSyncPane.signUp();">&signedOut.accountBox.create2;</html:a>
+        </hbox>
       </vbox>
     </hbox>
     <label class="fxaMobilePromo">
         &mobilePromo3.start;<!-- We put these comments to avoid inserting white spaces
-        --><label id="fxaMobilePromo-android"
-                  class="androidLink text-link"><!--
+        --><image class="androidLink"></image><label id="fxaMobilePromo-android"
+                  class="text-link"><!--
         -->&mobilePromo3.androidLink;</label><!--
         -->&mobilePromo3.iOSBefore;<!--
-        --><label id="fxaMobilePromo-ios"
-                  class="iOSLink text-link"><!--
+        --><image class="iOSLink"></image><label id="fxaMobilePromo-ios"
+                  class="text-link"><!--
         -->&mobilePromo3.iOSLink;</label><!--
         -->&mobilePromo3.end;
     </label>
-  </vbox>
+  </groupbox>
 
   <vbox id="hasFxaAccount">
     <hbox>
-      <vbox id="fxaContentWrapper">
+      <vbox id="fxaContentWrapper" flex="1">
         <groupbox id="fxaGroup">
-          <caption><label>&syncBrand.fxAccount.label;</label></caption>
-          <deck id="fxaLoginStatus">
+          <caption class="search-header" hidden="true"><label>&paneSync1.title;</label></caption>
+
+          <deck id="fxaLoginStatus" flex="1">
 
             <!-- logged in and verified and all is good -->
-            <hbox id="fxaLoginVerified" class="fxaAccountBox">
-              <vbox align="center" pack="center">
-                <image id="fxaProfileImage" class="actionable"
-                    role="button"
-                    onclick="gSyncPane.openChangeProfileImage(event);"
-                    onkeypress="gSyncPane.openChangeProfileImage(event);"
-                    tooltiptext="&profilePicture.tooltip;"/>
-              </vbox>
+            <hbox id="fxaLoginVerified" align="center" flex="1">
+              <image class="fxaProfileImage actionable"
+                     role="button"
+                     onclick="gSyncPane.openChangeProfileImage(event);"
+                     onkeypress="gSyncPane.openChangeProfileImage(event);"
+                     tooltiptext="&profilePicture.tooltip;"/>
               <vbox flex="1" pack="center">
-                <label id="fxaDisplayName" hidden="true"/>
-                <label id="fxaEmailAddress1"/>
-                <hbox class="fxaAccountBoxButtons">
-                  <button id="fxaUnlinkButton" label="&disconnect.label;" accesskey="&disconnect.accesskey;"/>
-                  <html:a id="verifiedManage" target="_blank"
-                         accesskey="&verifiedManage.accesskey;"
-                         onkeypress="gSyncPane.openManageFirefoxAccount(event);"><!--
-                  -->&verifiedManage.label;</html:a>
+                <hbox flex="1" align="center">
+                  <label id="fxaDisplayName" hidden="true"/>
+                  <label class="fxaEmailAddress" flex="1" crop="end"/>
+                  <button id="fxaUnlinkButton"
+                          class="accessory-button"
+                          label="&disconnect3.label;"
+                          accesskey="&disconnect3.accesskey;"/>
+                </hbox>
+                <hbox>
+                  <html:a id="verifiedManage" class="openLink"
+                          accesskey="&verifiedManage.accesskey;"
+                          onkeypress="gSyncPane.openManageFirefoxAccount(event);">&verifiedManage.label;</html:a>
                 </hbox>
               </vbox>
             </hbox>
 
             <!-- logged in to an unverified account -->
-            <hbox id="fxaLoginUnverified" class="fxaAccountBox">
+            <hbox id="fxaLoginUnverified">
               <vbox>
-                <image id="fxaProfileImage"/>
+                <image class="fxaProfileImage"/>
               </vbox>
-              <vbox flex="1">
+              <vbox flex="1" pack="center">
                 <hbox>
-                  <vbox><image id="fxaLoginRejectedWarning"/></vbox>
+                  <image class="fxaLoginRejectedWarning"/>
                   <description flex="1">
                     &signedInUnverified.beforename.label;
-                    <label id="fxaEmailAddress2"/>
+                    <label class="fxaEmailAddress"/>
                     &signedInUnverified.aftername.label;
                   </description>
                 </hbox>
                 <hbox class="fxaAccountBoxButtons">
                   <button id="verifyFxaAccount" label="&verify.label;" accesskey="&verify.accesskey;"></button>
                   <button id="unverifiedUnlinkFxaAccount" label="&forget.label;" accesskey="&forget.accesskey;"></button>
                 </hbox>
               </vbox>
             </hbox>
 
             <!-- logged in locally but server rejected credentials -->
-            <hbox id="fxaLoginRejected" class="fxaAccountBox">
+            <hbox id="fxaLoginRejected">
               <vbox>
-                <image id="fxaProfileImage"/>
+                <image class="fxaProfileImage"/>
               </vbox>
-              <vbox flex="1">
+              <vbox flex="1" pack="center">
                 <hbox>
-                  <vbox><image id="fxaLoginRejectedWarning"/></vbox>
+                  <image class="fxaLoginRejectedWarning"/>
                   <description flex="1">
                     &signedInLoginFailure.beforename.label;
-                    <label id="fxaEmailAddress3"/>
+                    <label class="fxaEmailAddress"/>
                     &signedInLoginFailure.aftername.label;
                   </description>
                 </hbox>
                 <hbox class="fxaAccountBoxButtons">
                   <button id="rejectReSignIn" label="&signIn.label;" accesskey="&signIn.accesskey;"></button>
                   <button id="rejectUnlinkFxaAccount" label="&forget.label;" accesskey="&forget.accesskey;"></button>
                 </hbox>
               </vbox>
             </hbox>
           </deck>
         </groupbox>
         <groupbox id="syncOptions">
-          <caption><label>&signedIn.engines.label;</label></caption>
+          <caption><label>&signedIn.settings.label;</label></caption>
+          <description>&signedIn.settings.description;</description>
           <hbox id="fxaSyncEngines">
-            <vbox align="start" flex="1">
+            <vbox flex="1">
               <checkbox label="&engine.tabs.label2;"
                         accesskey="&engine.tabs.accesskey;"
                         preference="engine.tabs"/>
               <checkbox label="&engine.bookmarks.label;"
                         accesskey="&engine.bookmarks.accesskey;"
                         preference="engine.bookmarks"/>
               <checkbox label="&engine.logins.label;"
                         accesskey="&engine.logins.accesskey;"
                         preference="engine.passwords"/>
               <checkbox label="&engine.history.label;"
                         accesskey="&engine.history.accesskey;"
                         preference="engine.history"/>
             </vbox>
-            <vbox align="start" flex="1">
+            <vbox flex="1">
               <checkbox label="&engine.addons.label;"
                         accesskey="&engine.addons.accesskey;"
                         preference="engine.addons"/>
               <checkbox label="&engine.prefs.label;"
                         accesskey="&engine.prefs.accesskey;"
                         preference="engine.prefs"/>
               <checkbox label="&engine.addresses.label;"
                         accesskey="&engine.addresses.accesskey;"
@@ -184,49 +194,44 @@
               <checkbox label="&engine.creditcards.label;"
                         accesskey="&engine.creditcards.accesskey;"
                         preference="engine.creditcards"/>
             </vbox>
             <spacer/>
           </hbox>
         </groupbox>
       </vbox>
-      <vbox>
-        <html:img  class="fxaSyncIllustration" src="chrome://browser/skin/fxa/sync-illustration.svg"/>
-      </vbox>
     </hbox>
     <groupbox>
       <caption>
         <label control="fxaSyncComputerName">
           &fxaSyncDeviceName.label;
         </label>
       </caption>
       <hbox id="fxaDeviceName">
-        <textbox id="fxaSyncComputerName" disabled="true"/>
-        <hbox>
-          <button id="fxaChangeDeviceName"
-                  label="&changeSyncDeviceName.label;"
-                  accesskey="&changeSyncDeviceName.accesskey;"/>
-          <button id="fxaCancelChangeDeviceName"
-                  label="&cancelChangeSyncDeviceName.label;"
-                  accesskey="&cancelChangeSyncDeviceName.accesskey;"
-                  hidden="true"/>
-          <button id="fxaSaveChangeDeviceName"
-                  label="&saveChangeSyncDeviceName.label;"
-                  accesskey="&saveChangeSyncDeviceName.accesskey;"
-                  hidden="true"/>
-        </hbox>
+        <textbox id="fxaSyncComputerName" flex="1" disabled="true"/>
+        <button id="fxaChangeDeviceName"
+                label="&changeSyncDeviceName2.label;"
+                accesskey="&changeSyncDeviceName2.accesskey;"/>
+        <button id="fxaCancelChangeDeviceName"
+                label="&cancelChangeSyncDeviceName.label;"
+                accesskey="&cancelChangeSyncDeviceName.accesskey;"
+                hidden="true"/>
+        <button id="fxaSaveChangeDeviceName"
+                label="&saveChangeSyncDeviceName.label;"
+                accesskey="&saveChangeSyncDeviceName.accesskey;"
+                hidden="true"/>
       </hbox>
     </groupbox>
     <label class="fxaMobilePromo">
         &mobilePromo3.start;<!-- We put these comments to avoid inserting white spaces
-        --><label class="androidLink text-link" id="fxaMobilePromo-android-hasFxaAccount"><!--
+        --><image class="androidLink"></image><label class="text-link" id="fxaMobilePromo-android-hasFxaAccount"><!--
         -->&mobilePromo3.androidLink;</label><!--
         -->&mobilePromo3.iOSBefore;<!--
-        --><label class="iOSLink text-link" id="fxaMobilePromo-ios-hasFxaAccount"><!--
+        --><image class="iOSLink"></image><label class="text-link" id="fxaMobilePromo-ios-hasFxaAccount"><!--
         -->&mobilePromo3.iOSLink;</label><!--
         -->&mobilePromo3.end;
     </label>
     <vbox id="tosPP-small" align="start">
       <label id="tosPP-small-ToS" class="text-link">
         &prefs.tosLink.label;
       </label>
       <label id="tosPP-small-PP" class="text-link">
--- a/browser/components/preferences/in-content/tests/browser.ini
+++ b/browser/components/preferences/in-content/tests/browser.ini
@@ -2,37 +2,55 @@
 support-files =
   head.js
   privacypane_tests_perwindow.js
   site_data_test.html
   offline/offline.html
   offline/manifest.appcache
 
 [browser_applications_selection.js]
+skip-if = os == 'linux' # bug 1382057
 [browser_advanced_update.js]
 skip-if = !updater
 [browser_basic_rebuild_fonts_test.js]
 [browser_bug410900.js]
 [browser_bug705422.js]
 [browser_bug731866.js]
+[browser_search_within_preferences_1.js]
+[browser_search_within_preferences_2.js]
+[browser_search_within_preferences_command.js]
+[browser_search_subdialogs_within_preferences_1.js]
+[browser_search_subdialogs_within_preferences_2.js]
+[browser_search_subdialogs_within_preferences_3.js]
+[browser_search_subdialogs_within_preferences_4.js]
+[browser_search_subdialogs_within_preferences_5.js]
+[browser_search_subdialogs_within_preferences_6.js]
+[browser_search_subdialogs_within_preferences_7.js]
+[browser_search_subdialogs_within_preferences_8.js]
 [browser_bug795764_cachedisabled.js]
 [browser_bug1018066_resetScrollPosition.js]
 [browser_bug1020245_openPreferences_to_paneContent.js]
 [browser_bug1184989_prevent_scrolling_when_preferences_flipped.js]
+[browser_engines.js]
 support-files =
   browser_bug1184989_prevent_scrolling_when_preferences_flipped.xul
 [browser_change_app_handler.js]
-skip-if = os != "win" # This test tests the windows-specific app selection dialog, so can't run on non-Windows
+skip-if = os != "win" || (os == "win" && os_version == "6.1")
+# This test tests the windows-specific app selection dialog, so can't run on non-Windows.
+# Skip the test on Window 7, see the detail at Bug 1381706.
+[browser_checkspelling.js]
 [browser_connection.js]
 [browser_connection_bug388287.js]
 [browser_cookies_exceptions.js]
 [browser_defaultbrowser_alwayscheck.js]
 [browser_healthreport.js]
 skip-if = true || !healthreport # Bug 1185403 for the "true"
 [browser_homepages_filter_aboutpreferences.js]
+[browser_layersacceleration.js]
+[browser_masterpassword.js]
 [browser_notifications_do_not_disturb.js]
 [browser_password_management.js]
 [browser_performance.js]
 skip-if = !e10s
 [browser_performance_e10srollout.js]
 skip-if = !e10s
 [browser_performance_non_e10s.js]
 skip-if = e10s
@@ -40,21 +58,23 @@ skip-if = e10s
 [browser_proxy_backup.js]
 [browser_privacypane_1.js]
 [browser_privacypane_3.js]
 [browser_privacypane_4.js]
 [browser_privacypane_5.js]
 [browser_privacypane_8.js]
 [browser_sanitizeOnShutdown_prefLocked.js]
 [browser_searchsuggestions.js]
-[browser_security.js]
+[browser_security-1.js]
+[browser_security-2.js]
 [browser_siteData.js]
 [browser_siteData2.js]
 [browser_siteData3.js]
 [browser_site_login_exceptions.js]
+[browser_permissions_dialog.js]
 [browser_cookies_dialog.js]
 [browser_subdialogs.js]
 support-files =
   subdialog.xul
   subdialog2.xul
 [browser_telemetry.js]
 # Skip this test on Android as FHR and Telemetry are separate systems there.
 skip-if = !healthreport || !telemetry || (os == 'linux' && debug) || (os == 'android')
--- a/browser/components/preferences/in-content/tests/browser_advanced_update.js
+++ b/browser/components/preferences/in-content/tests/browser_advanced_update.js
@@ -88,41 +88,46 @@ function formatInstallDate(sec) {
   const dtOptions = { year: "numeric", month: "long", day: "numeric",
                       hour: "numeric", minute: "numeric", second: "numeric" };
   return date.toLocaleString(undefined, dtOptions);
 }
 
 registerCleanupFunction(resetPreferences);
 
 add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("advanced", "updateTab", { leaveOpen: true });
+  await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
   resetPreferences();
   Services.prefs.setBoolPref("browser.search.update", false);
 
   let doc = gBrowser.selectedBrowser.contentDocument;
   let enableSearchUpdate = doc.getElementById("enableSearchUpdate");
   is_element_visible(enableSearchUpdate, "Check search update preference is visible");
 
   // Ensure that the update pref dialog reflects the actual pref value.
   ok(!enableSearchUpdate.checked, "Ensure search updates are disabled");
   Services.prefs.setBoolPref("browser.search.update", true);
   ok(enableSearchUpdate.checked, "Ensure search updates are enabled");
 
   gBrowser.removeCurrentTab();
 });
 
 add_task(async function() {
-  mockUpdateManager.register();
-
-  await openPreferencesViaOpenPreferencesAPI("advanced", "updateTab", { leaveOpen: true });
+  await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
   let doc = gBrowser.selectedBrowser.contentDocument;
 
   let showBtn = doc.getElementById("showUpdateHistory");
   let dialogOverlay = content.gSubDialog._preloadDialog._overlay;
 
+  // XXX: For unknown reasons, this mock cannot be loaded by
+  // XPCOMUtils.defineLazyServiceGetter() called in aboutDialog-appUpdater.js.
+  // It is registered here so that we could assert update history subdialog
+  // without stopping the preferences advanced pane from loading.
+  // See bug 1361929.
+  mockUpdateManager.register();
+
   // Test the dialog window opens
   is(dialogOverlay.style.visibility, "", "The dialog should be invisible");
   let promiseSubDialogLoaded = promiseLoadSubDialog("chrome://mozapps/content/update/history.xul");
   showBtn.doCommand();
   await promiseSubDialogLoaded;
   is(dialogOverlay.style.visibility, "visible", "The dialog should be visible");
 
   let dialogFrame = dialogOverlay.querySelector(".dialogFrame");
--- a/browser/components/preferences/in-content/tests/browser_applications_selection.js
+++ b/browser/components/preferences/in-content/tests/browser_applications_selection.js
@@ -1,30 +1,30 @@
 var win;
 var feedItem;
 var container;
 
 SimpleTest.requestCompleteLog();
 
 add_task(async function setup() {
-  await openPreferencesViaOpenPreferencesAPI("applications", null, {leaveOpen: true});
-  info("Preferences page opened on the applications pane.");
+  await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
+  info("Preferences page opened on the general pane.");
 
   registerCleanupFunction(() => {
     gBrowser.removeCurrentTab();
   });
 });
 
 add_task(async function getFeedItem() {
   win = gBrowser.selectedBrowser.contentWindow;
 
   container = win.document.getElementById("handlersView");
   feedItem = container.querySelector("richlistitem[type='application/vnd.mozilla.maybe.feed']");
   Assert.ok(feedItem, "feedItem is present in handlersView.");
-})
+});
 
 add_task(async function selectInternalOptionForFeed() {
   // Select the item.
   feedItem.scrollIntoView();
   container.selectItem(feedItem);
   Assert.ok(feedItem.selected, "Should be able to select our item.");
 
   // Wait for the menu.
--- a/browser/components/preferences/in-content/tests/browser_basic_rebuild_fonts_test.js
+++ b/browser/components/preferences/in-content/tests/browser_basic_rebuild_fonts_test.js
@@ -1,16 +1,16 @@
 Services.prefs.setBoolPref("browser.preferences.instantApply", true);
 
 registerCleanupFunction(function() {
   Services.prefs.clearUserPref("browser.preferences.instantApply");
 });
 
 add_task(async function() {
-  await openPreferencesViaOpenPreferencesAPI("paneContent", null, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
   let doc = gBrowser.contentDocument;
   var langGroup = Services.prefs.getComplexValue("font.language.group", Ci.nsIPrefLocalizedString).data
   is(doc.getElementById("font.language.group").value, langGroup,
      "Language group should be set correctly.");
 
   let defaultFontType = Services.prefs.getCharPref("font.default." + langGroup);
   let fontFamily = Services.prefs.getCharPref("font.name." + defaultFontType + "." + langGroup);
   let fontFamilyField = doc.getElementById("defaultFont");
--- a/browser/components/preferences/in-content/tests/browser_bug1018066_resetScrollPosition.js
+++ b/browser/components/preferences/in-content/tests/browser_bug1018066_resetScrollPosition.js
@@ -6,19 +6,18 @@ registerCleanupFunction(function() {
   window.resizeTo(window.outerWidth, originalWindowHeight);
   while (gBrowser.tabs[1])
     gBrowser.removeTab(gBrowser.tabs[1]);
 });
 
 add_task(async function() {
   originalWindowHeight = window.outerHeight;
   window.resizeTo(window.outerWidth, 300);
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneApplications", undefined, {leaveOpen: true});
-  is(prefs.selectedPane, "paneApplications", "Applications pane was selected");
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneSearch", {leaveOpen: true});
+  is(prefs.selectedPane, "paneSearch", "Search pane was selected");
   let mainContent = gBrowser.contentDocument.querySelector(".main-content");
   mainContent.scrollTop = 50;
   is(mainContent.scrollTop, 50, "main-content should be scrolled 50 pixels");
 
   gBrowser.contentWindow.gotoPref("paneGeneral");
   is(mainContent.scrollTop, 0,
      "Switching to a different category should reset the scroll position");
 });
-
--- a/browser/components/preferences/in-content/tests/browser_bug1020245_openPreferences_to_paneContent.js
+++ b/browser/components/preferences/in-content/tests/browser_bug1020245_openPreferences_to_paneContent.js
@@ -2,40 +2,65 @@
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 Services.prefs.setBoolPref("browser.preferences.instantApply", true);
 
 registerCleanupFunction(function() {
   Services.prefs.clearUserPref("browser.preferences.instantApply");
 });
 
+// Test opening to the differerent panes and subcategories in Preferences
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneContent");
-  is(prefs.selectedPane, "paneContent", "Content pane was selected");
-  prefs = await openPreferencesViaOpenPreferencesAPI("advanced", "updateTab");
-  is(prefs.selectedPane, "paneAdvanced", "Advanced pane was selected");
-  is(prefs.selectedAdvancedTab, "updateTab", "The update tab within the advanced prefs should be selected");
+  let prefs = await openPreferencesViaOpenPreferencesAPI("panePrivacy");
+  is(prefs.selectedPane, "panePrivacy", "Privacy pane was selected");
   prefs = await openPreferencesViaHash("privacy");
   is(prefs.selectedPane, "panePrivacy", "Privacy pane is selected when hash is 'privacy'");
   prefs = await openPreferencesViaOpenPreferencesAPI("nonexistant-category");
   is(prefs.selectedPane, "paneGeneral", "General pane is selected by default when a nonexistant-category is requested");
   prefs = await openPreferencesViaHash("nonexistant-category");
   is(prefs.selectedPane, "paneGeneral", "General pane is selected when hash is a nonexistant-category");
   prefs = await openPreferencesViaHash();
   is(prefs.selectedPane, "paneGeneral", "General pane is selected by default");
+  prefs = await openPreferencesViaOpenPreferencesAPI("privacy-reports", {leaveOpen: true});
+  is(prefs.selectedPane, "panePrivacy", "Privacy pane is selected by default");
+  let doc = gBrowser.contentDocument;
+  is(doc.location.hash, "#privacy", "The subcategory should be removed from the URI");
+  ok(doc.querySelector("#locationBarGroup").hidden, "Location Bar prefs should be hidden when only Reports are requested");
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
+// Test opening Preferences with subcategory on an existing Preferences tab. See bug 1358475.
+add_task(async function() {
+  let prefs = await openPreferencesViaOpenPreferencesAPI("general", {leaveOpen: true});
+  is(prefs.selectedPane, "paneGeneral", "General pane is selected by default");
+  let doc = gBrowser.contentDocument;
+  is(doc.location.hash, "#general", "The subcategory should be removed from the URI");
+  // The reasons that here just call the `openPreferences` API without the helping function are
+  //   - already opened one about:preferences tab up there and
+  //   - the goal is to test on the existing tab and
+  //   - using `openPreferencesViaOpenPreferencesAPI` would introduce more handling of additional about:blank and unneccessary event
+  openPreferences("privacy-reports");
+  let selectedPane = gBrowser.contentWindow.history.state;
+  is(selectedPane, "panePrivacy", "Privacy pane should be selected");
+  is(doc.location.hash, "#privacy", "The subcategory should be removed from the URI");
+  ok(doc.querySelector("#locationBarGroup").hidden, "Location Bar prefs should be hidden when only Reports are requested");
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+
 function openPreferencesViaHash(aPane) {
   return new Promise(resolve => {
+    let finalPrefPaneLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
     gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:preferences" + (aPane ? "#" + aPane : ""));
     let newTabBrowser = gBrowser.selectedBrowser;
 
     newTabBrowser.addEventListener("Initialized", function() {
-      newTabBrowser.contentWindow.addEventListener("load", function() {
+      newTabBrowser.contentWindow.addEventListener("load", async function() {
         let win = gBrowser.contentWindow;
         let selectedPane = win.history.state;
+        await finalPrefPaneLoaded;
         gBrowser.removeCurrentTab();
         resolve({selectedPane});
       }, {once: true});
     }, {capture: true, once: true});
 
   });
 }
--- a/browser/components/preferences/in-content/tests/browser_bug410900.js
+++ b/browser/components/preferences/in-content/tests/browser_bug410900.js
@@ -17,17 +17,17 @@ function test() {
               getService(Ci.nsIExternalProtocolService);
   var info = extps.getProtocolHandlerInfo("apppanetest");
   info.possibleApplicationHandlers.appendElement(handler);
 
   var hserv = Cc["@mozilla.org/uriloader/handler-service;1"].
               getService(Ci.nsIHandlerService);
   hserv.store(info);
 
-  openPreferencesViaOpenPreferencesAPI("applications", null, {leaveOpen: true}).then(
+  openPreferencesViaOpenPreferencesAPI("general", {leaveOpen: true}).then(
       () => runTest(gBrowser.selectedBrowser.contentWindow)
   );
 }
 
 function runTest(win) {
   var rbox = win.document.getElementById("handlersView");
   ok(rbox, "handlersView is present");
 
--- a/browser/components/preferences/in-content/tests/browser_bug731866.js
+++ b/browser/components/preferences/in-content/tests/browser_bug731866.js
@@ -1,16 +1,17 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 Components.utils.import("resource://gre/modules/PlacesUtils.jsm");
 Components.utils.import("resource://gre/modules/NetUtil.jsm");
 
 const storageManagerDisabled = !SpecialPowers.getBoolPref("browser.storageManager.enabled");
 const offlineGroupDisabled = !SpecialPowers.getBoolPref("browser.preferences.offlineGroup.enabled");
+const browserContainersGroupDisabled = !SpecialPowers.getBoolPref("privacy.userContext.ui.enabled");
 
 function test() {
   waitForExplicitFinish();
   open_preferences(runTest);
 }
 
 var gElements;
 
@@ -33,16 +34,21 @@ function checkElements(expectedPane) {
     }
     // The siteDataGroup in the Storage Management project will replace the offlineGroup eventually,
     // so during the transition period, we have to check the pref to see if the offlineGroup
     // should be hidden always. See the bug 1354530 for the details.
     if (element.id == "offlineGroup" && offlineGroupDisabled) {
       is_element_hidden(element, "Disabled offlineGroup should be hidden");
       continue;
     }
+    // The browserContainersGroup is still only pref-on on Nightly
+    if (element.id == "browserContainersGroup" && browserContainersGroupDisabled) {
+      is_element_hidden(element, "Disabled browserContainersGroup should be hidden");
+      continue;
+    }
 
     let attributeValue = element.getAttribute("data-category");
     let suffix = " (id=" + element.id + ")";
     if (attributeValue == "pane" + expectedPane) {
       is_element_visible(element, expectedPane + " elements should be visible" + suffix);
     } else {
       is_element_hidden(element, "Elements not in " + expectedPane + " should be hidden" + suffix);
     }
@@ -51,18 +57,18 @@ function checkElements(expectedPane) {
 
 function runTest(win) {
   is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded");
 
   let tab = win.document;
   gElements = tab.getElementById("mainPrefPane").children;
 
   let panes = [
-    "General", "Search", "Content", "Applications",
-    "Privacy", "Security", "Sync", "Advanced",
+    "General", "Search",
+    "Privacy", "Sync",
   ];
 
   for (let pane of panes) {
     win.gotoPref("pane" + pane);
     checkElements(pane);
   }
 
   gBrowser.removeCurrentTab();
--- a/browser/components/preferences/in-content/tests/browser_bug795764_cachedisabled.js
+++ b/browser/components/preferences/in-content/tests/browser_bug795764_cachedisabled.js
@@ -1,13 +1,14 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
-Components.utils.import("resource://gre/modules/PlacesUtils.jsm");
-Components.utils.import("resource://gre/modules/NetUtil.jsm");
+const { interfaces: Ci, utils: Cu } = Components;
+Cu.import("resource://gre/modules/PlacesUtils.jsm");
+Cu.import("resource://gre/modules/NetUtil.jsm");
 
 function test() {
   waitForExplicitFinish();
 
   // Adding one fake site so that the SiteDataManager would run.
   // Otherwise, without any site then it would just return so we would end up in not testing SiteDataManager.
   let principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin("https://www.foo.com");
   Services.perms.addFromPrincipal(principal, "persistent-storage", Ci.nsIPermissionManager.ALLOW_ACTION);
@@ -15,36 +16,37 @@ function test() {
     Services.perms.removeFromPrincipal(principal, "persistent-storage");
   });
 
   SpecialPowers.pushPrefEnv({set: [
     ["browser.cache.offline.enable", false],
     ["browser.cache.disk.enable", false],
     ["browser.cache.memory.enable", false],
     ["browser.storageManager.enabled", true],
-    ["browser.preferences.offlineGroup.enabled", true]
+    ["browser.preferences.offlineGroup.enabled", true],
+    ["privacy.userContext.ui.enabled", true]
   ]}).then(() => open_preferences(runTest));
 }
 
 function runTest(win) {
   is(gBrowser.currentURI.spec, "about:preferences", "about:preferences loaded");
 
   let tab = win.document;
   let elements = tab.getElementById("mainPrefPane").children;
 
-  // Test if advanced pane is opened correctly
-  win.gotoPref("paneAdvanced");
+  // Test if privacy pane is opened correctly
+  win.gotoPref("panePrivacy");
   for (let element of elements) {
     if (element.nodeName == "preferences") {
       continue;
     }
     let attributeValue = element.getAttribute("data-category");
-    if (attributeValue == "paneAdvanced") {
-      is_element_visible(element, "Advanced elements should be visible");
+    if (attributeValue == "panePrivacy") {
+      is_element_visible(element, `Privacy element of id=${element.id} should be visible`);
     } else {
-      is_element_hidden(element, "Non-Advanced elements should be hidden");
+      is_element_hidden(element, `Non-Privacy element of id=${element.id} should be hidden`);
     }
   }
 
   gBrowser.removeCurrentTab();
   win.close();
   finish();
 }
--- a/browser/components/preferences/in-content/tests/browser_change_app_handler.js
+++ b/browser/components/preferences/in-content/tests/browser_change_app_handler.js
@@ -11,18 +11,19 @@ function setupFakeHandler() {
   let infoToModify = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
   infoToModify.possibleApplicationHandlers.appendElement(handler);
 
   gHandlerSvc.store(infoToModify);
 }
 
 add_task(async function() {
   setupFakeHandler();
-  await openPreferencesViaOpenPreferencesAPI("applications", null, {leaveOpen: true});
-  info("Preferences page opened on the applications pane.");
+
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
+  is(prefs.selectedPane, "paneGeneral", "General pane was selected");
   let win = gBrowser.selectedBrowser.contentWindow;
 
   let container = win.document.getElementById("handlersView");
   let ourItem = container.querySelector("richlistitem[type='text/x-test-handler']");
   ok(ourItem, "handlersView is present");
   ourItem.scrollIntoView();
   container.selectItem(ourItem);
   ok(ourItem.selected, "Should be able to select our item.");
@@ -83,16 +84,18 @@ add_task(async function() {
   ok(!mimeInfo.preferredApplicationHandler, "App should no longer be set as preferred.");
 
   // Check that we display this result:
   list = await waitForCondition(() => win.document.getAnonymousElementByAttribute(ourItem, "class", "actionsMenu"));
   ok(list.selectedItem, "Should have a selected item");
   ok(!list.selectedItem.handlerApp,
      "No app should be visible as preferred item.");
 
+  let tabRemovedPromise = BrowserTestUtils.tabRemoved(gBrowser.selectedTab);
   gBrowser.removeCurrentTab();
+  await tabRemovedPromise;
 });
 
 registerCleanupFunction(function() {
   let infoToModify = gMimeSvc.getFromTypeAndExtension("text/x-test-handler", null);
   gHandlerSvc.remove(infoToModify);
 });
 
rename from browser/components/preferences/in-content-new/tests/browser_checkspelling.js
rename to browser/components/preferences/in-content/tests/browser_checkspelling.js
--- a/browser/components/preferences/in-content/tests/browser_cookies_dialog.js
+++ b/browser/components/preferences/in-content/tests/browser_cookies_dialog.js
@@ -3,17 +3,17 @@
 Components.utils.import("resource://gre/modules/Services.jsm");
 
 const COOKIES_URL = "chrome://browser/content/preferences/cookies.xul";
 
 const URI = Services.io.newURI("http://www.example.com");
 var cookiesDialog;
 
 add_task(async function openCookiesSubDialog() {
-  await openPreferencesViaOpenPreferencesAPI("panePrivacy", null, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
 
   let dialogOpened = promiseLoadSubDialog(COOKIES_URL);
 
   await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
     let doc = content.document;
     let cookiesButton = doc.getElementById("historyRememberCookies");
     cookiesButton.click();
   });
--- a/browser/components/preferences/in-content/tests/browser_cookies_exceptions.js
+++ b/browser/components/preferences/in-content/tests/browser_cookies_exceptions.js
@@ -329,17 +329,17 @@ var testRunner = {
           }
         },
       };
 
       registerCleanupFunction(function() {
         Services.prefs.clearUserPref("privacy.history.custom");
       });
 
-      openPreferencesViaOpenPreferencesAPI("panePrivacy", null, {leaveOpen: true}).then(function() {
+      openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true}).then(function() {
         let doc = gBrowser.contentDocument;
         let historyMode = doc.getElementById("historyMode");
         historyMode.value = "custom";
         historyMode.doCommand();
 
         let promiseSubDialogLoaded =
           promiseLoadSubDialog("chrome://browser/content/preferences/permissions.xul");
         doc.getElementById("cookieExceptions").doCommand();
rename from browser/components/preferences/in-content-new/tests/browser_engines.js
rename to browser/components/preferences/in-content/tests/browser_engines.js
--- a/browser/components/preferences/in-content/tests/browser_homepages_filter_aboutpreferences.js
+++ b/browser/components/preferences/in-content/tests/browser_homepages_filter_aboutpreferences.js
@@ -1,12 +1,12 @@
 add_task(async function() {
   is(gBrowser.currentURI.spec, "about:blank", "Test starts with about:blank open");
   await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:home");
-  await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   let doc = gBrowser.contentDocument;
   is(gBrowser.currentURI.spec, "about:preferences#general",
      "#general should be in the URI for about:preferences");
   let oldHomepagePref = Services.prefs.getCharPref("browser.startup.homepage");
 
   let useCurrent = doc.getElementById("useCurrent");
   useCurrent.click();
 
rename from browser/components/preferences/in-content-new/tests/browser_layersacceleration.js
rename to browser/components/preferences/in-content/tests/browser_layersacceleration.js
rename from browser/components/preferences/in-content-new/tests/browser_masterpassword.js
rename to browser/components/preferences/in-content/tests/browser_masterpassword.js
--- a/browser/components/preferences/in-content/tests/browser_notifications_do_not_disturb.js
+++ b/browser/components/preferences/in-content/tests/browser_notifications_do_not_disturb.js
@@ -3,22 +3,22 @@
 
 
 registerCleanupFunction(function() {
   while (gBrowser.tabs[1])
     gBrowser.removeTab(gBrowser.tabs[1]);
 });
 
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneContent", undefined, {leaveOpen: true});
-  is(prefs.selectedPane, "paneContent", "Content pane was selected");
+  let prefs = await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
+  is(prefs.selectedPane, "panePrivacy", "Privacy pane was selected");
 
   let doc = gBrowser.contentDocument;
-  let notificationsDoNotDisturbRow = doc.getElementById("notificationsDoNotDisturbRow");
-  if (notificationsDoNotDisturbRow.hidden) {
+  let notificationsDoNotDisturbBox = doc.getElementById("notificationsDoNotDisturbBox");
+  if (notificationsDoNotDisturbBox.hidden) {
     todo(false, "Do not disturb is not available on this platform");
     return;
   }
 
   let alertService;
   try {
     alertService = Cc["@mozilla.org/alerts-service;1"]
                      .getService(Ci.nsIAlertsService)
--- a/browser/components/preferences/in-content/tests/browser_password_management.js
+++ b/browser/components/preferences/in-content/tests/browser_password_management.js
@@ -1,25 +1,27 @@
 "use strict";
 const PM_URL = "chrome://passwordmgr/content/passwordManager.xul";
 
 var passwordsDialog;
 
-add_task(async function setup() {
-  Services.logins.removeAllLogins();
+add_task(async function test_setup() {
+  let pwmgr = Cc["@mozilla.org/login-manager;1"].
+                getService(Ci.nsILoginManager);
+  pwmgr.removeAllLogins();
 
   // add login data
   let nsLoginInfo = new Components.Constructor("@mozilla.org/login-manager/loginInfo;1",
-                                               Ci.nsILoginInfo, "init");
+                                                 Ci.nsILoginInfo, "init");
   let login = new nsLoginInfo("http://example.com/", "http://example.com/", null,
                               "user", "password", "u1", "p1");
-  Services.logins.addLogin(login);
+  pwmgr.addLogin(login);
 
   registerCleanupFunction(async function() {
-    Services.logins.removeAllLogins();
+    pwmgr.removeAllLogins();
   });
 });
 
 add_task(async function test_openPasswordSubDialog() {
   // Undo the save password change.
   registerCleanupFunction(async function() {
     await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
       let doc = content.document;
@@ -27,17 +29,17 @@ add_task(async function test_openPasswor
       if (savePasswordCheckBox.checked) {
         savePasswordCheckBox.click();
       }
     });
 
     gBrowser.removeCurrentTab();
   });
 
-  await openPreferencesViaOpenPreferencesAPI("security", null, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
 
   let dialogOpened = promiseLoadSubDialog(PM_URL);
 
   await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
     let doc = content.document;
     let savePasswordCheckBox = doc.getElementById("savePasswords");
     Assert.ok(!savePasswordCheckBox.checked,
               "Save Password CheckBox should be unchecked by default");
--- a/browser/components/preferences/in-content/tests/browser_performance.js
+++ b/browser/components/preferences/in-content/tests/browser_performance.js
@@ -5,20 +5,20 @@ add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [
     ["layers.acceleration.disabled", DEFAULT_HW_ACCEL_PREF],
     ["dom.ipc.processCount", DEFAULT_PROCESS_COUNT],
     ["browser.preferences.defaultPerformanceSettings.enabled", true],
   ]});
 });
 
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
-  let doc = gBrowser.selectedBrowser.contentDocument;
+  let doc = gBrowser.contentDocument;
   let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
 
   is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
     "pref value should be true before clicking on checkbox");
   ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
 
   useRecommendedPerformanceSettings.click();
 
@@ -70,17 +70,17 @@ add_task(async function() {
 
   is(performanceSettings.hidden, false, "performance settings section should be still shown");
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
   let doc = gBrowser.contentDocument;
   let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
   let allowHWAccel = doc.querySelector("#allowHWAccel");
   let contentProcessCount = doc.querySelector("#contentProcessCount");
   let performanceSettings = doc.querySelector("#performanceSettings");
 
@@ -95,17 +95,17 @@ add_task(async function() {
   ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
   is(performanceSettings.hidden, true, "performance settings section should be still shown");
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
   let doc = gBrowser.contentDocument;
   let performanceSettings = doc.querySelector("#performanceSettings");
 
   is(performanceSettings.hidden, true, "performance settings section should not be shown");
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
@@ -114,17 +114,17 @@ add_task(async function() {
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function() {
   Services.prefs.setIntPref("dom.ipc.processCount", 7);
 
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
   let doc = gBrowser.contentDocument;
 
   let performanceSettings = doc.querySelector("#performanceSettings");
   is(performanceSettings.hidden, false, "performance settings section should be shown");
 
   let contentProcessCount = doc.querySelector("#contentProcessCount");
@@ -133,17 +133,17 @@ add_task(async function() {
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function() {
   Services.prefs.setBoolPref("layers.acceleration.disabled", true);
 
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
   let doc = gBrowser.contentDocument;
 
   let performanceSettings = doc.querySelector("#performanceSettings");
   is(performanceSettings.hidden, false, "performance settings section should be shown");
 
   let allowHWAccel = doc.querySelector("#allowHWAccel");
--- a/browser/components/preferences/in-content/tests/browser_performance_e10srollout.js
+++ b/browser/components/preferences/in-content/tests/browser_performance_e10srollout.js
@@ -9,20 +9,20 @@ add_task(async function() {
   ]});
 });
 
 add_task(async function() {
   Services.prefs.clearUserPref("dom.ipc.processCount");
   Services.prefs.setIntPref("dom.ipc.processCount.web", DEFAULT_PROCESS_COUNT + 1);
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
 
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
-  let doc = gBrowser.selectedBrowser.contentDocument;
+  let doc = gBrowser.contentDocument;
   let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
 
   is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
     "pref value should be true before clicking on checkbox");
   ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
 
   useRecommendedPerformanceSettings.click();
 
@@ -45,20 +45,20 @@ add_task(async function() {
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
 });
 
 add_task(async function() {
   Services.prefs.clearUserPref("dom.ipc.processCount");
   Services.prefs.setIntPref("dom.ipc.processCount.web", DEFAULT_PROCESS_COUNT + 1);
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
 
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
-  let doc = gBrowser.selectedBrowser.contentDocument;
+  let doc = gBrowser.contentDocument;
   let performanceSettings = doc.querySelector("#performanceSettings");
   is(performanceSettings.hidden, false, "performance settings section is shown");
 
   let contentProcessCount = doc.querySelector("#contentProcessCount");
   is(contentProcessCount.disabled, false, "process count control should be enabled");
   is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT, "default value should be the current value");
   is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT, "selected item should be the default one");
 
@@ -69,20 +69,20 @@ add_task(async function() {
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
 });
 
 add_task(async function() {
   Services.prefs.setIntPref("dom.ipc.processCount", DEFAULT_PROCESS_COUNT + 2);
   Services.prefs.setIntPref("dom.ipc.processCount.web", DEFAULT_PROCESS_COUNT + 1);
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
 
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
-  let doc = gBrowser.selectedBrowser.contentDocument;
+  let doc = gBrowser.contentDocument;
   let performanceSettings = doc.querySelector("#performanceSettings");
   is(performanceSettings.hidden, false, "performance settings section is shown");
 
   let contentProcessCount = doc.querySelector("#contentProcessCount");
   is(contentProcessCount.disabled, false, "process count control should be enabled");
   is(Services.prefs.getIntPref("dom.ipc.processCount"), DEFAULT_PROCESS_COUNT + 2, "process count should be the set value");
   is(contentProcessCount.selectedItem.value, DEFAULT_PROCESS_COUNT + 2, "selected item should be the set one");
 
--- a/browser/components/preferences/in-content/tests/browser_performance_non_e10s.js
+++ b/browser/components/preferences/in-content/tests/browser_performance_non_e10s.js
@@ -5,20 +5,20 @@ add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [
     ["layers.acceleration.disabled", DEFAULT_HW_ACCEL_PREF],
     ["dom.ipc.processCount", DEFAULT_PROCESS_COUNT],
     ["browser.preferences.defaultPerformanceSettings.enabled", true],
   ]});
 });
 
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
-  let doc = gBrowser.selectedBrowser.contentDocument;
+  let doc = gBrowser.contentDocument;
   let useRecommendedPerformanceSettings = doc.querySelector("#useRecommendedPerformanceSettings");
 
   is(Services.prefs.getBoolPref("browser.preferences.defaultPerformanceSettings.enabled"), true,
     "pref value should be true before clicking on checkbox");
   ok(useRecommendedPerformanceSettings.checked, "checkbox should be checked before clicking on checkbox");
 
   useRecommendedPerformanceSettings.click();
 
@@ -58,17 +58,17 @@ add_task(async function() {
 
   is(performanceSettings.hidden, false, "performance settings section should be still shown");
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function() {
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
   let doc = gBrowser.contentDocument;
   let performanceSettings = doc.querySelector("#performanceSettings");
 
   is(performanceSettings.hidden, true, "performance settings section should not be shown");
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", false);
@@ -77,17 +77,17 @@ add_task(async function() {
 
   Services.prefs.setBoolPref("browser.preferences.defaultPerformanceSettings.enabled", true);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function() {
   Services.prefs.setBoolPref("layers.acceleration.disabled", true);
 
-  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", null, {leaveOpen: true});
+  let prefs = await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   is(prefs.selectedPane, "paneGeneral", "General pane was selected");
 
   let doc = gBrowser.contentDocument;
 
   let performanceSettings = doc.querySelector("#performanceSettings");
   is(performanceSettings.hidden, false, "performance settings section should be shown");
 
   let allowHWAccel = doc.querySelector("#allowHWAccel");
rename from browser/components/preferences/in-content-new/tests/browser_permissions_dialog.js
rename to browser/components/preferences/in-content/tests/browser_permissions_dialog.js
--- a/browser/components/preferences/in-content/tests/browser_permissions_urlFieldHidden.js
+++ b/browser/components/preferences/in-content/tests/browser_permissions_urlFieldHidden.js
@@ -1,14 +1,14 @@
 "use strict";
 
 const PERMISSIONS_URL = "chrome://browser/content/preferences/permissions.xul";
 
 add_task(async function urlFieldVisibleForPopupPermissions(finish) {
-  await openPreferencesViaOpenPreferencesAPI("paneContent", null, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
   let win = gBrowser.selectedBrowser.contentWindow;
   let doc = win.document;
   let popupPolicyCheckbox = doc.getElementById("popupPolicy");
   ok(!popupPolicyCheckbox.checked, "popupPolicyCheckbox should be unchecked by default");
   popupPolicyCheckbox.click();
   let popupPolicyButton = doc.getElementById("popupPolicyButton");
   ok(popupPolicyButton, "popupPolicyButton found");
   let dialogPromise = promiseLoadSubDialog(PERMISSIONS_URL);
@@ -19,27 +19,8 @@ add_task(async function urlFieldVisibleF
   let urlLabel = dialog.document.getElementById("urlLabel");
   ok(!urlLabel.hidden, "urlLabel should be visible when one of block/session/allow visible");
   let url = dialog.document.getElementById("url");
   ok(!url.hidden, "url should be visible when one of block/session/allow visible");
 
   popupPolicyCheckbox.click();
   gBrowser.removeCurrentTab();
 });
-
-add_task(async function urlFieldHiddenForNotificationPermissions() {
-  await openPreferencesViaOpenPreferencesAPI("paneContent", null, {leaveOpen: true});
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let doc = win.document;
-  let notificationsPolicyButton = doc.getElementById("notificationsPolicyButton");
-  ok(notificationsPolicyButton, "notificationsPolicyButton found");
-  let dialogPromise = promiseLoadSubDialog(PERMISSIONS_URL);
-  notificationsPolicyButton.click();
-  let dialog = await dialogPromise;
-  ok(dialog, "dialog loaded");
-
-  let urlLabel = dialog.document.getElementById("urlLabel");
-  ok(urlLabel.hidden, "urlLabel should be hidden as requested");
-  let url = dialog.document.getElementById("url");
-  ok(url.hidden, "url should be hidden as requested");
-
-  gBrowser.removeCurrentTab();
-});
--- a/browser/components/preferences/in-content/tests/browser_sanitizeOnShutdown_prefLocked.js
+++ b/browser/components/preferences/in-content/tests/browser_sanitizeOnShutdown_prefLocked.js
@@ -23,17 +23,17 @@ function testPrefStateMatchesLockedState
 add_task(function setup() {
   registerCleanupFunction(function resetPreferences() {
     Services.prefs.unlockPref("privacy.sanitize.sanitizeOnShutdown");
     Services.prefs.clearUserPref("privacy.history.custom");
   });
 });
 
 add_task(async function test_preference_enabled_when_unlocked() {
-  await openPreferencesViaOpenPreferencesAPI("panePrivacy", undefined, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
   testPrefStateMatchesLockedState();
 });
 
 add_task(async function test_preference_disabled_when_locked() {
   Services.prefs.lockPref("privacy.sanitize.sanitizeOnShutdown");
-  await openPreferencesViaOpenPreferencesAPI("panePrivacy", undefined, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("panePrivacy", {leaveOpen: true});
   testPrefStateMatchesLockedState();
 });
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_1.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_1.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_2.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_2.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_3.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_3.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_4.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_4.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_5.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_5.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_6.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_6.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_7.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_7.js
rename from browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_8.js
rename to browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_8.js
new file mode 100644
--- /dev/null
+++ b/browser/components/preferences/in-content/tests/browser_search_within_preferences_1.js
@@ -0,0 +1,285 @@
+"use strict";
+/**
+ * This file contains tests for the Preferences search bar.
+ */
+
+requestLongerTimeout(6);
+
+/**
+ * Tests to see if search bar is being shown when pref is turned on
+ */
+add_task(async function() {
+  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+  is_element_visible(searchInput, "Search box should be shown");
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+/**
+ * Test for "Search Result" panel.
+ * After it runs a search, it tests if the "Search Results" panel is the only selected category.
+ * The search is then cleared, it then tests if the "General" panel is the only selected category.
+ */
+add_task(async function() {
+  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
+
+  // Performs search
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+
+  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
+    "Search input should be focused when visiting preferences");
+
+  let query = "password";
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
+  EventUtils.sendString(query);
+  await searchCompletedPromise;
+
+  let categoriesList = gBrowser.contentDocument.getElementById("categories");
+
+  for (let i = 0; i < categoriesList.childElementCount; i++) {
+    let child = categoriesList.children[i]
+    is(child.selected, false, "No other panel should be selected");
+  }
+  // Takes search off
+  searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
+  let count = query.length;
+  while (count--) {
+    EventUtils.sendKey("BACK_SPACE");
+  }
+  await searchCompletedPromise;
+
+  // Checks if back to generalPane
+  for (let i = 0; i < categoriesList.childElementCount; i++) {
+    let child = categoriesList.children[i]
+    if (child.id == "category-general") {
+      is(child.selected, true, "General panel should be selected");
+    } else if (child.id) {
+      is(child.selected, false, "No other panel should be selected");
+    }
+  }
+
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+/**
+ * Test for "password" case. When we search "password", it should show the "passwordGroup"
+ */
+add_task(async function() {
+  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
+
+  // Performs search
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+
+  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
+    "Search input should be focused when visiting preferences");
+
+  let query = "password";
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
+  EventUtils.sendString(query);
+  await searchCompletedPromise;
+
+  let mainPrefTag = gBrowser.contentDocument.getElementById("mainPrefPane");
+
+  for (let i = 0; i < mainPrefTag.childElementCount; i++) {
+    let child = mainPrefTag.children[i]
+    if (child.id == "passwordsGroup" ||
+        child.id == "weavePrefsDeck" ||
+        child.id == "header-searchResults" ||
+        child.id == "certSelection" ||
+        child.id == "connectionGroup") {
+      is_element_visible(child, "Should be in search results");
+    } else if (child.id) {
+      is_element_hidden(child, "Should not be in search results");
+    }
+  }
+
+  // Takes search off
+  searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
+  let count = query.length;
+  while (count--) {
+    EventUtils.sendKey("BACK_SPACE");
+  }
+  await searchCompletedPromise;
+
+  // Checks if back to generalPane
+  for (let i = 0; i < mainPrefTag.childElementCount; i++) {
+    let child = mainPrefTag.children[i]
+    if (child.id == "paneGeneral"
+    || child.id == "startupGroup"
+    || child.id == "languagesGroup"
+    || child.id == "fontsGroup"
+    || child.id == "downloadsGroup"
+    || child.id == "applicationsGroup"
+    || child.id == "drmGroup"
+    || child.id == "updateApp"
+    || child.id == "browsingGroup"
+    || child.id == "performanceGroup"
+    || child.id == "connectionGroup"
+    || child.id == "generalCategory"
+    || child.id == "languageAndAppearanceCategory"
+    || child.id == "filesAndApplicationsCategory"
+    || child.id == "updatesCategory"
+    || child.id == "performanceCategory"
+    || child.id == "browsingCategory"
+    || child.id == "networkProxyCategory") {
+      is_element_visible(child, "Should be in general tab");
+    } else if (child.id) {
+      is_element_hidden(child, "Should not be in general tab");
+    }
+  }
+
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+/**
+ * Test for if nothing is found
+ */
+add_task(async function() {
+  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
+
+  let noResultsEl = gBrowser.contentDocument.querySelector(".no-results-message");
+
+  is_element_hidden(noResultsEl, "Should not be in search results yet");
+
+  // Performs search
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+
+  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
+    "Search input should be focused when visiting preferences");
+
+  let query = "coach";
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
+  EventUtils.sendString(query);
+  await searchCompletedPromise;
+
+  is_element_visible(noResultsEl, "Should be in search results");
+
+  // Takes search off
+  searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
+  let count = query.length;
+  while (count--) {
+    EventUtils.sendKey("BACK_SPACE");
+  }
+  await searchCompletedPromise;
+
+  is_element_hidden(noResultsEl, "Should not be in search results");
+
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+/**
+ * Test for if we go back to general tab after search case
+ */
+add_task(async function() {
+  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
+  let generalPane = gBrowser.contentDocument.getElementById("generalCategory");
+
+  is_element_hidden(generalPane, "Should not be in general");
+
+  // Performs search
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+
+  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
+    "Search input should be focused when visiting preferences");
+
+  let query = "password";
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
+  EventUtils.sendString(query);
+  await searchCompletedPromise;
+
+  // Takes search off
+  searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
+  let count = query.length;
+  while (count--) {
+    EventUtils.sendKey("BACK_SPACE");
+  }
+  await searchCompletedPromise;
+
+  // Checks if back to normal
+  is_element_visible(generalPane, "Should be in generalPane");
+
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+/**
+ * Test for "Site Data" case, verifying elements with data-hidden-from-search = true
+ * are hidden in search result.
+ */
+add_task(async function() {
+  await SpecialPowers.pushPrefEnv({"set": [["browser.storageManager.enabled", false]]});
+  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
+  let generalPane = gBrowser.contentDocument.getElementById("generalCategory");
+
+  is_element_hidden(generalPane, "Should not be in general");
+
+  // Performs search
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+
+  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
+    "Search input should be focused when visiting preferences");
+
+  let query = "site data";
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
+  EventUtils.sendString(query);
+  await searchCompletedPromise;
+
+  let mainPrefTag = gBrowser.contentDocument.getElementById("mainPrefPane");
+
+  let child = mainPrefTag.querySelector("#siteDataGroup");
+  is_element_hidden(child, "Should be hidden in search results");
+
+  // Takes search off
+  searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == "");
+  let count = query.length;
+  while (count--) {
+    EventUtils.sendKey("BACK_SPACE");
+  }
+  await searchCompletedPromise;
+
+  // Checks if back to normal
+  is_element_visible(generalPane, "Should be in generalPane");
+
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
+
+/**
+ * Test for if we go to another tab after searching
+ */
+add_task(async function() {
+  await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+
+  is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
+    "Search input should be focused when visiting preferences");
+
+  let query = "password";
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+      gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == query);
+  EventUtils.sendString(query);
+  await searchCompletedPromise;
+
+  let privacyCategory = gBrowser.contentDocument.getElementById("category-privacy");
+  privacyCategory.click();
+  is(searchInput.value, "", "search input should be empty");
+  let categoriesList = gBrowser.contentDocument.getElementById("categories");
+  for (let i = 0; i < categoriesList.childElementCount; i++) {
+    let child = categoriesList.children[i]
+    if (child.id == "category-privacy") {
+      is(child.selected, true, "Privacy panel should be selected");
+    } else if (child.id) {
+      is(child.selected, false, "No other panel should be selected");
+    }
+  }
+
+  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
+});
rename from browser/components/preferences/in-content-new/tests/browser_search_within_preferences_2.js
rename to browser/components/preferences/in-content/tests/browser_search_within_preferences_2.js
rename from browser/components/preferences/in-content-new/tests/browser_search_within_preferences_command.js
rename to browser/components/preferences/in-content/tests/browser_search_within_preferences_command.js
--- a/browser/components/preferences/in-content/tests/browser_searchsuggestions.js
+++ b/browser/components/preferences/in-content/tests/browser_searchsuggestions.js
@@ -3,34 +3,34 @@ var original = Services.prefs.getBoolPre
 registerCleanupFunction(() => {
   Services.prefs.setBoolPref("browser.search.suggest.enabled", original);
 });
 
 // Open with suggestions enabled
 add_task(async function() {
   Services.prefs.setBoolPref("browser.search.suggest.enabled", true);
 
-  await openPreferencesViaOpenPreferencesAPI("search", undefined, { leaveOpen: true });
+  await openPreferencesViaOpenPreferencesAPI("search", { leaveOpen: true });
 
   let doc = gBrowser.selectedBrowser.contentDocument;
   let urlbarBox = doc.getElementById("urlBarSuggestion");
   ok(!urlbarBox.disabled, "Checkbox should be enabled");
 
   Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
 
   ok(urlbarBox.disabled, "Checkbox should be disabled");
 
   gBrowser.removeCurrentTab();
 });
 
 // Open with suggestions disabled
 add_task(async function() {
   Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
 
-  await openPreferencesViaOpenPreferencesAPI("search", undefined, { leaveOpen: true });
+  await openPreferencesViaOpenPreferencesAPI("search", { leaveOpen: true });
 
   let doc = gBrowser.selectedBrowser.contentDocument;
   let urlbarBox = doc.getElementById("urlBarSuggestion");
   ok(urlbarBox.disabled, "Checkbox should be disabled");
 
   Services.prefs.setBoolPref("browser.search.suggest.enabled", true);
 
   ok(!urlbarBox.disabled, "Checkbox should be enabled");
rename from browser/components/preferences/in-content-new/tests/browser_security-1.js
rename to browser/components/preferences/in-content/tests/browser_security-1.js
rename from browser/components/preferences/in-content-new/tests/browser_security-2.js
rename to browser/components/preferences/in-content/tests/browser_security-2.js
deleted file mode 100644
--- a/browser/components/preferences/in-content/tests/browser_security.js
+++ /dev/null
@@ -1,138 +0,0 @@
-const PREFS = [
-  "browser.safebrowsing.phishing.enabled",
-  "browser.safebrowsing.malware.enabled",
-
-  "browser.safebrowsing.downloads.enabled",
-
-  "browser.safebrowsing.downloads.remote.block_potentially_unwanted",
-  "browser.safebrowsing.downloads.remote.block_uncommon"
-];
-
-let originals = PREFS.map(pref => [pref, Services.prefs.getBoolPref(pref)])
-let originalMalwareTable = Services.prefs.getCharPref("urlclassifier.malwareTable");
-registerCleanupFunction(function() {
-  originals.forEach(([pref, val]) => Services.prefs.setBoolPref(pref, val))
-  Services.prefs.setCharPref("urlclassifier.malwareTable", originalMalwareTable);
-});
-
-// This test only opens the Preferences once, and then reloads the page
-// each time that it wants to test various preference combinations. We
-// only use one tab (instead of opening/closing for each test) for all
-// to help improve test times on debug builds.
-add_task(async function setup() {
-  await openPreferencesViaOpenPreferencesAPI("security", undefined, { leaveOpen: true });
-  registerCleanupFunction(async function() {
-    await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-  });
-});
-
-// test the safebrowsing preference
-add_task(async function() {
-  async function checkPrefSwitch(val1, val2) {
-    Services.prefs.setBoolPref("browser.safebrowsing.phishing.enabled", val1);
-    Services.prefs.setBoolPref("browser.safebrowsing.malware.enabled", val2);
-
-    gBrowser.reload();
-    await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
-
-    let doc = gBrowser.selectedBrowser.contentDocument;
-    let checkbox = doc.getElementById("enableSafeBrowsing");
-    let blockDownloads = doc.getElementById("blockDownloads");
-    let blockUncommon = doc.getElementById("blockUncommonUnwanted");
-    let checked = checkbox.checked;
-    is(checked, val1 && val2, "safebrowsing preference is initialized correctly");
-    // should be disabled when checked is false (= pref is turned off)
-    is(blockDownloads.hasAttribute("disabled"), !checked, "block downloads checkbox is set correctly");
-    is(blockUncommon.hasAttribute("disabled"), !checked, "block uncommon checkbox is set correctly");
-
-    // click the checkbox
-    EventUtils.synthesizeMouseAtCenter(checkbox, {}, gBrowser.selectedBrowser.contentWindow);
-
-    // check that both settings are now turned on or off
-    is(Services.prefs.getBoolPref("browser.safebrowsing.phishing.enabled"), !checked,
-       "safebrowsing.enabled is set correctly");
-    is(Services.prefs.getBoolPref("browser.safebrowsing.malware.enabled"), !checked,
-       "safebrowsing.malware.enabled is set correctly");
-
-    // check if the other checkboxes have updated
-    checked = checkbox.checked;
-    is(blockDownloads.hasAttribute("disabled"), !checked, "block downloads checkbox is set correctly");
-    is(blockUncommon.hasAttribute("disabled"), !checked || !blockDownloads.checked, "block uncommon checkbox is set correctly");
-  }
-
-  await checkPrefSwitch(true, true);
-  await checkPrefSwitch(false, true);
-  await checkPrefSwitch(true, false);
-  await checkPrefSwitch(false, false);
-});
-
-// test the download protection preference
-add_task(async function() {
-  async function checkPrefSwitch(val) {
-    Services.prefs.setBoolPref("browser.safebrowsing.downloads.enabled", val);
-
-    gBrowser.reload();
-    await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
-
-    let doc = gBrowser.selectedBrowser.contentDocument;
-    let checkbox = doc.getElementById("blockDownloads");
-    let blockUncommon = doc.getElementById("blockUncommonUnwanted");
-    let checked = checkbox.checked;
-    is(checked, val, "downloads preference is initialized correctly");
-    // should be disabled when val is false (= pref is turned off)
-    is(blockUncommon.hasAttribute("disabled"), !val, "block uncommon checkbox is set correctly");
-
-    // click the checkbox
-    EventUtils.synthesizeMouseAtCenter(checkbox, {}, gBrowser.selectedBrowser.contentWindow);
-
-    // check that setting is now turned on or off
-    is(Services.prefs.getBoolPref("browser.safebrowsing.downloads.enabled"), !checked,
-       "safebrowsing.downloads preference is set correctly");
-
-    // check if the uncommon warning checkbox has updated
-    is(blockUncommon.hasAttribute("disabled"), val, "block uncommon checkbox is set correctly");
-  }
-
-  await checkPrefSwitch(true);
-  await checkPrefSwitch(false);
-});
-
-// test the unwanted/uncommon software warning preference
-add_task(async function() {
-  async function checkPrefSwitch(val1, val2) {
-    Services.prefs.setBoolPref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", val1);
-    Services.prefs.setBoolPref("browser.safebrowsing.downloads.remote.block_uncommon", val2);
-
-    gBrowser.reload();
-    await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
-
-    let doc = gBrowser.selectedBrowser.contentDocument;
-    let checkbox = doc.getElementById("blockUncommonUnwanted");
-    let checked = checkbox.checked;
-    is(checked, val1 && val2, "unwanted/uncommon preference is initialized correctly");
-
-    // click the checkbox
-    EventUtils.synthesizeMouseAtCenter(checkbox, {}, gBrowser.selectedBrowser.contentWindow);
-
-    // check that both settings are now turned on or off
-    is(Services.prefs.getBoolPref("browser.safebrowsing.downloads.remote.block_potentially_unwanted"), !checked,
-       "block_potentially_unwanted is set correctly");
-    is(Services.prefs.getBoolPref("browser.safebrowsing.downloads.remote.block_uncommon"), !checked,
-       "block_uncommon is set correctly");
-
-    // when the preference is on, the malware table should include these ids
-    let malwareTable = Services.prefs.getCharPref("urlclassifier.malwareTable").split(",");
-    is(malwareTable.includes("goog-unwanted-shavar"), !checked,
-       "malware table doesn't include goog-unwanted-shavar");
-    is(malwareTable.includes("test-unwanted-simple"), !checked,
-       "malware table doesn't include test-unwanted-simple");
-    let sortedMalware = malwareTable.slice(0);
-    sortedMalware.sort();
-    Assert.deepEqual(malwareTable, sortedMalware, "malware table has been sorted");
-  }
-
-  await checkPrefSwitch(true, true);
-  await checkPrefSwitch(false, true);
-  await checkPrefSwitch(true, false);
-  await checkPrefSwitch(false, false);
-});
--- a/browser/components/preferences/in-content/tests/browser_siteData.js
+++ b/browser/components/preferences/in-content/tests/browser_siteData.js
@@ -10,18 +10,21 @@ Cu.import("resource://gre/modules/XPCOMU
 Services.scriptloader.loadSubScript("resource://testing-common/sinon-2.3.2.js");
 
 const TEST_QUOTA_USAGE_HOST = "example.com";
 const TEST_QUOTA_USAGE_ORIGIN = "https://" + TEST_QUOTA_USAGE_HOST;
 const TEST_QUOTA_USAGE_URL = TEST_QUOTA_USAGE_ORIGIN + "/browser/browser/components/preferences/in-content/tests/site_data_test.html";
 const TEST_OFFLINE_HOST = "example.org";
 const TEST_OFFLINE_ORIGIN = "https://" + TEST_OFFLINE_HOST;
 const TEST_OFFLINE_URL = TEST_OFFLINE_ORIGIN + "/browser/browser/components/preferences/in-content/tests/offline/offline.html";
+const REMOVE_DIALOG_URL = "chrome://browser/content/preferences/siteDataRemoveSelected.xul";
+
 const { NetUtil } = Cu.import("resource://gre/modules/NetUtil.jsm", {});
 const { DownloadUtils } = Cu.import("resource://gre/modules/DownloadUtils.jsm", {});
+const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
 const { OfflineAppCacheHelper } = Cu.import("resource:///modules/offlineAppCache.jsm", {});
 
 const mockOfflineAppCacheHelper = {
   clear: null,
 
   originalClear: null,
 
   register() {
@@ -30,22 +33,16 @@ const mockOfflineAppCacheHelper = {
     OfflineAppCacheHelper.clear = this.clear;
   },
 
   unregister() {
     OfflineAppCacheHelper.clear = this.originalClear;
   }
 };
 
-function addPersistentStoragePerm(origin) {
-  let uri = NetUtil.newURI(origin);
-  let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
-  Services.perms.addFromPrincipal(principal, "persistent-storage", Ci.nsIPermissionManager.ALLOW_ACTION);
-}
-
 function getPersistentStoragePermStatus(origin) {
   let uri = NetUtil.newURI(origin);
   let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
   return Services.perms.testExactPermissionFromPrincipal(principal, "persistent-storage");
 }
 
 function getQuotaUsage(origin) {
   return new Promise(resolve => {
@@ -90,94 +87,35 @@ function promiseCookiesCleared() {
   });
 }
 
 registerCleanupFunction(function() {
   delete window.sinon;
   mockOfflineAppCacheHelper.unregister();
 });
 
-// Test grouping and listing sites across scheme, port and origin attributes by host
-add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  const quotaUsage = 1024;
-  mockSiteDataManager.register();
-  mockSiteDataManager.fakeSites = [
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com^userContextId=1"),
-      persisted: true
-    },
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com:123"),
-      persisted: false
-    },
-    {
-      usage: quotaUsage,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://account.xyz.com"),
-      persisted: false
-    },
-  ];
-
-  let updatedPromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
-  await updatedPromise;
-  await openSettingsDialog();
-  let dialogFrame = content.gSubDialog._topDialog._frame;
-  let frameDoc = dialogFrame.contentDocument;
-
-  let siteItems = frameDoc.getElementsByTagName("richlistitem");
-  is(siteItems.length, 1, "Should group sites across scheme, port and origin attributes");
-
-  let expected = "account.xyz.com";
-  let hostCol = siteItems[0].getAttribute("host");
-  is(hostCol, expected, "Should group and list sites by host");
-
-  let prefStrBundle = frameDoc.getElementById("bundlePreferences");
-  expected = prefStrBundle.getFormattedString("siteUsage",
-    DownloadUtils.convertByteUnits(quotaUsage * mockSiteDataManager.fakeSites.length));
-  let usageCol = siteItems[0].getAttribute("usage");
-  is(usageCol, expected, "Should sum up usages across scheme, port and origin attributes");
-
-  expected = prefStrBundle.getString("persistent");
-  let statusCol = siteItems[0].getAttribute("status");
-  is(statusCol, expected, "Should mark persisted status across scheme, port and origin attributes");
-
-  mockSiteDataManager.unregister();
-  await BrowserTestUtils.removeTab(gBrowser.selectedTab);
-});
-
 // Test listing site using quota usage or site using appcache
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
 
   // Open a test site which would save into appcache
   await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_OFFLINE_URL);
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 
   // Open a test site which would save into quota manager
   await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_QUOTA_USAGE_URL);
   await waitForEvent(gBrowser.selectedBrowser.contentWindow, "test-indexedDB-done");
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 
-  let updatedPromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatedPromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatedPromise;
-  await openSettingsDialog();
-  let dialogFrame = content.gSubDialog._topDialog._frame;
+  await openSiteDataSettingsDialog();
+  let dialog = content.gSubDialog._topDialog;
+  let dialogFrame = dialog._frame;
   let frameDoc = dialogFrame.contentDocument;
 
   let siteItems = frameDoc.getElementsByTagName("richlistitem");
   is(siteItems.length, 2, "Should list sites using quota usage or appcache");
 
   let appcacheSite = frameDoc.querySelector(`richlistitem[host="${TEST_OFFLINE_HOST}"]`);
   ok(appcacheSite, "Should list site using appcache");
 
@@ -193,18 +131,18 @@ add_task(async function() {
     request.callback = resolve;
   });
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 // Test buttons are disabled and loading message shown while updating sites
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  let updatedPromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatedPromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatedPromise;
 
   let actual = null;
   let expected = null;
   let doc = gBrowser.selectedBrowser.contentDocument;
   let clearBtn = doc.getElementById("clearSiteDataButton");
   let settingsButton = doc.getElementById("siteDataSettings");
   let prefStrBundle = doc.getElementById("bundlePreferences");
@@ -226,35 +164,35 @@ add_task(async function() {
   expected = prefStrBundle.getString("loadingSiteDataSize");
   is(actual, expected, "Should show the loading message while updating");
 
   Services.obs.notifyObservers(null, "sitedatamanager:sites-updated");
   is(clearBtn.disabled, false, "Should enable clear button after sites updated");
   is(settingsButton.disabled, false, "Should enable settings button after sites updated");
   await SiteDataManager.getTotalUsage()
                        .then(usage => {
-                          actual = totalSiteDataSizeLabel.textContent;
-                          expected = prefStrBundle.getFormattedString(
+                         actual = totalSiteDataSizeLabel.textContent;
+                         expected = prefStrBundle.getFormattedString(
                            "totalSiteDataSize", DownloadUtils.convertByteUnits(usage));
                           is(actual, expected, "Should show the right total site data size");
                        });
 
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 // Test the function of the "Clear All Data" button
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
   addPersistentStoragePerm(TEST_QUOTA_USAGE_ORIGIN);
 
   await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_QUOTA_USAGE_URL);
   await waitForEvent(gBrowser.selectedBrowser.contentWindow, "test-indexedDB-done");
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
 
   // Test the initial states
   let cacheUsage = await cacheUsageGetter.get();
   let quotaUsage = await getQuotaUsage(TEST_QUOTA_USAGE_ORIGIN);
   let totalUsage = await SiteDataManager.getTotalUsage();
   Assert.greater(cacheUsage, 0, "The cache usage should not be 0");
   Assert.greater(quotaUsage, 0, "The quota usage should not be 0");
   Assert.greater(totalUsage, 0, "The total usage should not be 0");
@@ -277,17 +215,17 @@ add_task(async function() {
   Assert.greater(cacheUsage, 0, "The cache usage should not be 0");
   Assert.greater(quotaUsage, 0, "The quota usage should not be 0");
   Assert.greater(totalUsage, 0, "The total usage should not be 0");
   // Test cancelling "Clear All Data" ends
 
   // Test accepting "Clear All Data"
   // Click "Clear All Data" button and then accept
   let acceptPromise = promiseAlertDialogOpen("accept");
-  let updatePromise = promiseSitesUpdated();
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
   let cookiesClearedPromise = promiseCookiesCleared();
 
   mockOfflineAppCacheHelper.register();
   clearBtn.doCommand();
   await acceptPromise;
   await updatePromise;
   mockOfflineAppCacheHelper.unregister();
 
@@ -308,17 +246,17 @@ add_task(async function() {
   // Test accepting "Clear All Data" ends
 
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 // Test sorting
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register();
+  mockSiteDataManager.register(SiteDataManager);
   mockSiteDataManager.fakeSites = [
     {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
       persisted: true
     },
     {
@@ -330,23 +268,22 @@ add_task(async function() {
     {
       usage: 1024 * 3,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
       persisted: true
     },
   ];
 
-  let updatePromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
 
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let dialog = win.gSubDialog._topDialog;
+  let dialog = content.gSubDialog._topDialog;
   let dialogFrame = dialog._frame;
   let frameDoc = dialogFrame.contentDocument;
   let hostCol = frameDoc.getElementById("hostCol");
   let usageCol = frameDoc.getElementById("usageCol");
   let statusCol = frameDoc.getElementById("statusCol");
   let sitesList = frameDoc.getElementById("sitesList");
 
   // Test default sorting
--- a/browser/components/preferences/in-content/tests/browser_siteData2.js
+++ b/browser/components/preferences/in-content/tests/browser_siteData2.js
@@ -1,26 +1,41 @@
 "use strict";
+const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
+const REMOVE_DIALOG_URL = "chrome://browser/content/preferences/siteDataRemoveSelected.xul";
 
+function promiseSettingsDialogClose() {
+  return new Promise(resolve => {
+    let win = gBrowser.selectedBrowser.contentWindow;
+    let dialogOverlay = win.gSubDialog._topDialog._overlay;
+    let dialogWin = win.gSubDialog._topDialog._frame.contentWindow;
+    dialogWin.addEventListener("unload", function unload() {
+      if (dialogWin.document.documentURI === "chrome://browser/content/preferences/siteDataSettings.xul") {
+        isnot(dialogOverlay.style.visibility, "visible", "The Settings dialog should be hidden");
+        resolve();
+      }
+    }, { once: true });
+  });
+}
 
 function assertAllSitesNotListed(win) {
   let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   let removeBtn = frameDoc.getElementById("removeSelected");
   let removeAllBtn = frameDoc.getElementById("removeAll");
   let sitesList = frameDoc.getElementById("sitesList");
   let sites = sitesList.getElementsByTagName("richlistitem");
   is(sites.length, 0, "Should not list all sites");
   is(removeBtn.disabled, true, "Should disable the removeSelected button");
   is(removeAllBtn.disabled, true, "Should disable the removeAllBtn button");
 }
 
 // Test selecting and removing all sites one by one
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register();
+  mockSiteDataManager.register(SiteDataManager);
   mockSiteDataManager.fakeSites = [
     {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
       persisted: true
     },
     {
@@ -39,20 +54,20 @@ add_task(async function() {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("http://email.bar.com"),
       persisted: false
     },
   ];
   let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
 
-  let updatePromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
 
   let win = gBrowser.selectedBrowser.contentWindow;
   let doc = gBrowser.selectedBrowser.contentDocument;
   let frameDoc = null;
   let saveBtn = null;
   let cancelBtn = null;
   let settingsDialogClosePromise = null;
 
@@ -62,45 +77,45 @@ add_task(async function() {
   // Test the "Cancel" button
   settingsDialogClosePromise = promiseSettingsDialogClose();
   frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   cancelBtn = frameDoc.getElementById("cancel");
   removeAllSitesOneByOne();
   assertAllSitesNotListed(win);
   cancelBtn.doCommand();
   await settingsDialogClosePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertSitesListed(doc, fakeHosts);
 
   // Test the "Save Changes" button but cancelling save
   let cancelPromise = promiseAlertDialogOpen("cancel");
   settingsDialogClosePromise = promiseSettingsDialogClose();
   frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   saveBtn = frameDoc.getElementById("save");
   removeAllSitesOneByOne();
   assertAllSitesNotListed(win);
   saveBtn.doCommand();
   await cancelPromise;
   await settingsDialogClosePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertSitesListed(doc, fakeHosts);
 
   // Test the "Save Changes" button and accepting save
   let acceptPromise = promiseAlertDialogOpen("accept");
   settingsDialogClosePromise = promiseSettingsDialogClose();
-  updatePromise = promiseSitesUpdated();
+  updatePromise = promiseSiteDataManagerSitesUpdated();
   frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   saveBtn = frameDoc.getElementById("save");
   removeAllSitesOneByOne();
   assertAllSitesNotListed(win);
   saveBtn.doCommand();
   await acceptPromise;
   await settingsDialogClosePromise;
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertAllSitesNotListed(win);
 
   mockSiteDataManager.unregister();
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 
   function removeAllSitesOneByOne() {
     frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
     let removeBtn = frameDoc.getElementById("removeSelected");
@@ -111,17 +126,17 @@ add_task(async function() {
       removeBtn.doCommand();
     }
   }
 });
 
 // Test selecting and removing partial sites
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register();
+  mockSiteDataManager.register(SiteDataManager);
   mockSiteDataManager.fakeSites = [
     {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
       persisted: true
     },
     {
@@ -158,20 +173,20 @@ add_task(async function() {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("https://[0:0:0:0:0:0:0:1]"),
       persisted: true
     },
   ];
   let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
 
-  let updatePromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
 
   let win = gBrowser.selectedBrowser.contentWindow;
   let doc = gBrowser.selectedBrowser.contentDocument;
   let frameDoc = null;
   let saveBtn = null;
   let cancelBtn = null;
   let removeDialogOpenPromise = null;
   let settingsDialogClosePromise = null;
@@ -182,43 +197,43 @@ add_task(async function() {
   // Test the "Cancel" button
   settingsDialogClosePromise = promiseSettingsDialogClose();
   frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   cancelBtn = frameDoc.getElementById("cancel");
   removeSelectedSite(fakeHosts.slice(0, 2));
   assertSitesListed(doc, fakeHosts.slice(2));
   cancelBtn.doCommand();
   await settingsDialogClosePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertSitesListed(doc, fakeHosts);
 
   // Test the "Save Changes" button but canceling save
   removeDialogOpenPromise = promiseWindowDialogOpen("cancel", REMOVE_DIALOG_URL);
   settingsDialogClosePromise = promiseSettingsDialogClose();
   frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   saveBtn = frameDoc.getElementById("save");
   removeSelectedSite(fakeHosts.slice(0, 2));
   assertSitesListed(doc, fakeHosts.slice(2));
   saveBtn.doCommand();
   await removeDialogOpenPromise;
   await settingsDialogClosePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertSitesListed(doc, fakeHosts);
 
   // Test the "Save Changes" button and accepting save
   removeDialogOpenPromise = promiseWindowDialogOpen("accept", REMOVE_DIALOG_URL);
   settingsDialogClosePromise = promiseSettingsDialogClose();
   frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   saveBtn = frameDoc.getElementById("save");
   removeSelectedSite(fakeHosts.slice(0, 2));
   assertSitesListed(doc, fakeHosts.slice(2));
   saveBtn.doCommand();
   await removeDialogOpenPromise;
   await settingsDialogClosePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertSitesListed(doc, fakeHosts.slice(2));
 
   mockSiteDataManager.unregister();
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 
   function removeSelectedSite(hosts) {
     frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
     let removeBtn = frameDoc.getElementById("removeSelected");
@@ -262,52 +277,52 @@ add_task(async function() {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("http://email.bar.com"),
       persisted: false
     },
   ];
   let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
 
-  let updatePromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
 
   // Search "foo" to only list foo.com sites
   let win = gBrowser.selectedBrowser.contentWindow;
   let doc = gBrowser.selectedBrowser.contentDocument;
   let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
   let searchBox = frameDoc.getElementById("searchBox");
   searchBox.value = "xyz";
   searchBox.doCommand();
   assertSitesListed(doc, fakeHosts.filter(host => host.includes("xyz")));
 
   // Test only removing all visible sites listed
-  updatePromise = promiseSitesUpdated();
+  updatePromise = promiseSiteDataManagerSitesUpdated();
   let acceptRemovePromise = promiseWindowDialogOpen("accept", REMOVE_DIALOG_URL);
   let settingsDialogClosePromise = promiseSettingsDialogClose();
   let removeAllBtn = frameDoc.getElementById("removeAll");
   let saveBtn = frameDoc.getElementById("save");
   removeAllBtn.doCommand();
   saveBtn.doCommand();
   await acceptRemovePromise;
   await settingsDialogClosePromise;
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertSitesListed(doc, fakeHosts.filter(host => !host.includes("xyz")));
 
   mockSiteDataManager.unregister();
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 // Test dynamically clearing all site data
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register();
+  mockSiteDataManager.register(SiteDataManager);
   mockSiteDataManager.fakeSites = [
     {
       usage: 1024,
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
       persisted: true
     },
     {
@@ -315,20 +330,20 @@ add_task(async function() {
       principal: Services.scriptSecurityManager
                          .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
       persisted: false
     },
   ];
   let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
 
   // Test the initial state
-  let updatePromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   let doc = gBrowser.selectedBrowser.contentDocument;
   assertSitesListed(doc, fakeHosts);
 
   // Add more sites dynamically
   mockSiteDataManager.fakeSites.push({
     usage: 1024,
     principal: Services.scriptSecurityManager
                        .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
@@ -338,24 +353,24 @@ add_task(async function() {
     principal: Services.scriptSecurityManager
                        .createCodebasePrincipalFromOrigin("http://email.bar.com"),
     persisted: false
   });
 
   // Test clearing all site data dynamically
   let win = gBrowser.selectedBrowser.contentWindow;
   let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  updatePromise = promiseSitesUpdated();
+  updatePromise = promiseSiteDataManagerSitesUpdated();
   let acceptRemovePromise = promiseAlertDialogOpen("accept");
   let settingsDialogClosePromise = promiseSettingsDialogClose();
   let removeAllBtn = frameDoc.getElementById("removeAll");
   let saveBtn = frameDoc.getElementById("save");
   removeAllBtn.doCommand();
   saveBtn.doCommand();
   await acceptRemovePromise;
   await settingsDialogClosePromise;
   await updatePromise;
-  await openSettingsDialog();
+  await openSiteDataSettingsDialog();
   assertAllSitesNotListed(win);
 
   mockSiteDataManager.unregister();
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
--- a/browser/components/preferences/in-content/tests/browser_siteData3.js
+++ b/browser/components/preferences/in-content/tests/browser_siteData3.js
@@ -1,102 +1,107 @@
 "use strict";
+const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
+const { DownloadUtils } = Cu.import("resource://gre/modules/DownloadUtils.jsm", {});
 
-// Test search on the host column
+// Test not displaying sites which store 0 byte and don't have persistent storage.
 add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register();
+  await SpecialPowers.pushPrefEnv({ set: [["browser.storageManager.enabled", true]] });
+  mockSiteDataManager.register(SiteDataManager);
   mockSiteDataManager.fakeSites = [
     {
+      usage: 0,
+      principal: Services.scriptSecurityManager
+        .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
+      persisted: true
+    },
+    {
+      usage: 0,
+      principal: Services.scriptSecurityManager
+        .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
+      persisted: false
+    },
+    {
       usage: 1024,
       principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
+        .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
       persisted: true
     },
     {
       usage: 1024,
       principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
-      persisted: false
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
+        .createCodebasePrincipalFromOrigin("http://email.bar.com"),
       persisted: false
     },
   ];
   let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
 
-  let updatePromise = promiseSitesUpdated();
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
-  await updatePromise;
-  await openSettingsDialog();
-
-  let win = gBrowser.selectedBrowser.contentWindow;
+  let updatePromise = promiseSiteDataManagerSitesUpdated();
   let doc = gBrowser.selectedBrowser.contentDocument;
-  let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
-  let searchBox = frameDoc.getElementById("searchBox");
-
-  searchBox.value = "xyz";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts.filter(host => host.includes("xyz")));
-
-  searchBox.value = "bar";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts.filter(host => host.includes("bar")));
-
-  searchBox.value = "";
-  searchBox.doCommand();
-  assertSitesListed(doc, fakeHosts);
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
+  await updatePromise;
+  await openSiteDataSettingsDialog();
+  assertSitesListed(doc, fakeHosts.filter(host => host != "shopping.xyz.com"));
 
   mockSiteDataManager.unregister();
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
-// Test not displaying sites which store 0 byte and don't have persistent storage.
+// Test grouping and listing sites across scheme, port and origin attributes by host
 add_task(async function() {
-  await SpecialPowers.pushPrefEnv({set: [["browser.storageManager.enabled", true]]});
-  mockSiteDataManager.register();
+  await SpecialPowers.pushPrefEnv({ set: [["browser.storageManager.enabled", true]] });
+  const quotaUsage = 1024;
+  mockSiteDataManager.register(SiteDataManager);
   mockSiteDataManager.fakeSites = [
     {
-      usage: 0,
+      usage: quotaUsage,
       principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
+        .createCodebasePrincipalFromOrigin("https://account.xyz.com^userContextId=1"),
       persisted: true
     },
     {
-      usage: 0,
+      usage: quotaUsage,
       principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("https://shopping.xyz.com"),
+        .createCodebasePrincipalFromOrigin("https://account.xyz.com"),
+      persisted: false
+    },
+    {
+      usage: quotaUsage,
+      principal: Services.scriptSecurityManager
+        .createCodebasePrincipalFromOrigin("https://account.xyz.com:123"),
       persisted: false
     },
     {
-      usage: 1024,
+      usage: quotaUsage,
       principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://cinema.bar.com"),
-      persisted: true
-    },
-    {
-      usage: 1024,
-      principal: Services.scriptSecurityManager
-                         .createCodebasePrincipalFromOrigin("http://email.bar.com"),
+        .createCodebasePrincipalFromOrigin("http://account.xyz.com"),
       persisted: false
     },
   ];
-  let fakeHosts = mockSiteDataManager.fakeSites.map(site => site.principal.URI.host);
+
+  let updatedPromise = promiseSiteDataManagerSitesUpdated();
+  await openPreferencesViaOpenPreferencesAPI("privacy", { leaveOpen: true });
+  await updatedPromise;
+  await openSiteDataSettingsDialog();
+  let win = gBrowser.selectedBrowser.contentWindow;
+  let dialogFrame = win.gSubDialog._topDialog._frame;
+  let frameDoc = dialogFrame.contentDocument;
+
+  let siteItems = frameDoc.getElementsByTagName("richlistitem");
+  is(siteItems.length, 1, "Should group sites across scheme, port and origin attributes");
 
-  let updatePromise = promiseSitesUpdated();
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  await openPreferencesViaOpenPreferencesAPI("advanced", "networkTab", { leaveOpen: true });
-  await updatePromise;
-  await openSettingsDialog();
-  assertSitesListed(doc, fakeHosts.filter(host => host != "shopping.xyz.com"));
+  let expected = "account.xyz.com";
+  let host = siteItems[0].getAttribute("host");
+  is(host, expected, "Should group and list sites by host");
+
+  let prefStrBundle = frameDoc.getElementById("bundlePreferences");
+  expected = prefStrBundle.getFormattedString("siteUsage",
+    DownloadUtils.convertByteUnits(quotaUsage * mockSiteDataManager.fakeSites.length));
+  let usage = siteItems[0].getAttribute("usage");
+  is(usage, expected, "Should sum up usages across scheme, port and origin attributes");
+
+  expected = prefStrBundle.getString("persistent");
+  let status = siteItems[0].getAttribute("status");
+  is(status, expected, "Should mark persisted status across scheme, port and origin attributes");
 
   mockSiteDataManager.unregister();
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
--- a/browser/components/preferences/in-content/tests/browser_site_login_exceptions.js
+++ b/browser/components/preferences/in-content/tests/browser_site_login_exceptions.js
@@ -12,17 +12,17 @@ add_task(async function openLoginExcepti
       if (savePasswordCheckBox.checked) {
         savePasswordCheckBox.click();
       }
     });
 
     gBrowser.removeCurrentTab();
   });
 
-  await openPreferencesViaOpenPreferencesAPI("security", null, {leaveOpen: true});
+  await openPreferencesViaOpenPreferencesAPI("privacy", {leaveOpen: true});
 
   let dialogOpened = promiseLoadSubDialog(PERMISSIONS_URL);
 
   await ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
     let doc = content.document;
     let savePasswordCheckBox = doc.getElementById("savePasswords");
     Assert.ok(!savePasswordCheckBox.checked,
               "Save Password CheckBox should be unchecked by default");
--- a/browser/components/preferences/in-content/tests/head.js
+++ b/browser/components/preferences/in-content/tests/head.js
@@ -1,59 +1,14 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 Components.utils.import("resource://gre/modules/Promise.jsm");
 
-// Tests within /browser/components/preferences/in-content/tests/
-// test the "old" preferences organization, before it was reorganized.
-// Thus, all of these tests should revert back to the "oldOrganization"
-// before running.
-Services.prefs.setBoolPref("browser.preferences.useOldOrganization", true);
-registerCleanupFunction(function() {
-  Services.prefs.clearUserPref("browser.preferences.useOldOrganization");
-});
-
 const kDefaultWait = 2000;
-const REMOVE_DIALOG_URL = "chrome://browser/content/preferences/siteDataRemoveSelected.xul";
-const { SiteDataManager } = Cu.import("resource:///modules/SiteDataManager.jsm", {});
-const mockSiteDataManager = {
-
-  _originalQMS: null,
-  _originalRemoveQuotaUsage: null,
-
-  getUsage(onUsageResult) {
-    let result = this.fakeSites.map(site => ({
-      origin: site.principal.origin,
-      usage: site.usage,
-      persisted: site.persisted
-    }));
-    onUsageResult({ result });
-  },
-
-  _removeQuotaUsage(site) {
-    var target = site.principals[0].URI.host;
-    this.fakeSites = this.fakeSites.filter(fakeSite => {
-      return fakeSite.principal.URI.host != target;
-    });
-  },
-
-  register() {
-    this._originalQMS = SiteDataManager._qms;
-    SiteDataManager._qms = this;
-    this._originalRemoveQuotaUsage = SiteDataManager._removeQuotaUsage;
-    SiteDataManager._removeQuotaUsage = this._removeQuotaUsage.bind(this);
-    this.fakeSites = null;
-  },
-
-  unregister() {
-    SiteDataManager._qms = this._originalQMS;
-    SiteDataManager._removeQuotaUsage = this._originalRemoveQuotaUsage;
-  }
-};
 
 function is_hidden(aElement) {
   var style = aElement.ownerGlobal.getComputedStyle(aElement);
   if (style.display == "none")
     return true;
   if (style.visibility != "visible")
     return true;
 
@@ -74,34 +29,34 @@ function is_element_hidden(aElement, aMs
   ok(is_hidden(aElement), aMsg);
 }
 
 function open_preferences(aCallback) {
   gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:preferences");
   let newTabBrowser = gBrowser.getBrowserForTab(gBrowser.selectedTab);
   newTabBrowser.addEventListener("Initialized", function() {
     aCallback(gBrowser.contentWindow);
-  }, {capture: true, once: true});
+  }, { capture: true, once: true });
 }
 
 function openAndLoadSubDialog(aURL, aFeatures = null, aParams = null, aClosingCallback = null) {
   let promise = promiseLoadSubDialog(aURL);
   content.gSubDialog.open(aURL, aFeatures, aParams, aClosingCallback);
   return promise;
 }
 
 function promiseLoadSubDialog(aURL) {
   return new Promise((resolve, reject) => {
     content.gSubDialog._dialogStack.addEventListener("dialogopen", function dialogopen(aEvent) {
       if (aEvent.detail.dialog._frame.contentWindow.location == "about:blank")
         return;
       content.gSubDialog._dialogStack.removeEventListener("dialogopen", dialogopen);
 
       is(aEvent.detail.dialog._frame.contentWindow.location.toString(), aURL,
-         "Check the proper URL is loaded");
+        "Check the proper URL is loaded");
 
       // Check visibility
       is_element_visible(aEvent.detail.dialog._overlay, "Overlay is visible");
 
       // Check that stylesheets were injected
       let expectedStyleSheetURLs = aEvent.detail.dialog._injectedStyleSheets.slice(0);
       for (let styleSheet of aEvent.detail.dialog._frame.contentDocument.styleSheets) {
         let i = expectedStyleSheetURLs.indexOf(styleSheet.href);
@@ -143,49 +98,49 @@ function waitForEvent(aSubject, aEventNa
   let stack = new Error().stack;
   let timerID = setTimeout(function wfe_canceller() {
     aSubject.removeEventListener(aEventName, listener);
     eventDeferred.reject(new Error(aEventName + " event timeout at " + stack));
   }, timeoutMs);
 
   var listener = function(aEvent) {
     if (aTarget && aTarget !== aEvent.target)
-        return;
+      return;
 
     // stop the timeout clock and resume
     clearTimeout(timerID);
     eventDeferred.resolve(aEvent);
   };
 
   function cleanup(aEventOrError) {
     // unhook listener in case of success or failure
     aSubject.removeEventListener(aEventName, listener);
     return aEventOrError;
   }
   aSubject.addEventListener(aEventName, listener);
   return eventDeferred.promise.then(cleanup, cleanup);
 }
 
-function openPreferencesViaOpenPreferencesAPI(aPane, aAdvancedTab, aOptions) {
+function openPreferencesViaOpenPreferencesAPI(aPane, aOptions) {
   return new Promise(resolve => {
+    let finalPrefPaneLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
     gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:blank");
-    openPreferences(aPane, aAdvancedTab ? {advancedTab: aAdvancedTab} : undefined);
+    openPreferences(aPane);
     let newTabBrowser = gBrowser.selectedBrowser;
 
-    newTabBrowser.addEventListener("Initialized", function() {
-      newTabBrowser.contentWindow.addEventListener("load", function() {
+    newTabBrowser.addEventListener("Initialized", function () {
+      newTabBrowser.contentWindow.addEventListener("load", async function() {
         let win = gBrowser.contentWindow;
         let selectedPane = win.history.state;
-        let doc = win.document;
-        let selectedAdvancedTab = aAdvancedTab && doc.getElementById("advancedPrefs").selectedTab.id;
+        await finalPrefPaneLoaded;
         if (!aOptions || !aOptions.leaveOpen)
           gBrowser.removeCurrentTab();
-        resolve({selectedPane, selectedAdvancedTab});
-      }, {once: true});
-    }, {capture: true, once: true});
+        resolve({ selectedPane });
+      }, { once: true });
+    }, { capture: true, once: true });
 
   });
 }
 
 function waitForCondition(aConditionFn, aMaxTries = 50, aCheckInterval = 100) {
   return new Promise((resolve, reject) => {
     function tryNow() {
       tries++;
@@ -212,65 +167,114 @@ function promiseWindowDialogOpen(buttonA
       if (topic == "domwindowopened" && subj instanceof Ci.nsIDOMWindow) {
         subj.addEventListener("load", function onLoad() {
           if (subj.document.documentURI == url) {
             Services.ww.unregisterNotification(onOpen);
             let doc = subj.document.documentElement;
             doc.getButton(buttonAction).click();
             resolve();
           }
-        }, {once: true});
+        }, { once: true });
       }
     });
   });
 }
 
 function promiseAlertDialogOpen(buttonAction) {
   return promiseWindowDialogOpen(buttonAction, "chrome://global/content/commonDialog.xul");
 }
 
-function openSettingsDialog() {
-  let win = gBrowser.selectedBrowser.contentWindow;
+function addPersistentStoragePerm(origin) {
+  let uri = NetUtil.newURI(origin);
+  let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
+  Services.perms.addFromPrincipal(principal, "persistent-storage", Ci.nsIPermissionManager.ALLOW_ACTION);
+}
+
+function promiseSiteDataManagerSitesUpdated() {
+  return TestUtils.topicObserved("sitedatamanager:sites-updated", () => true);
+}
+
+function openSiteDataSettingsDialog() {
   let doc = gBrowser.selectedBrowser.contentDocument;
   let settingsBtn = doc.getElementById("siteDataSettings");
-  let dialogOverlay = win.gSubDialog._preloadDialog._overlay;
+  let dialogOverlay = content.gSubDialog._preloadDialog._overlay;
   let dialogLoadPromise = promiseLoadSubDialog("chrome://browser/content/preferences/siteDataSettings.xul");
   let dialogInitPromise = TestUtils.topicObserved("sitedata-settings-init", () => true);
-  let fullyLoadPromise = Promise.all([ dialogLoadPromise, dialogInitPromise ]).then(() => {
+  let fullyLoadPromise = Promise.all([dialogLoadPromise, dialogInitPromise]).then(() => {
     is(dialogOverlay.style.visibility, "visible", "The Settings dialog should be visible");
   });
   settingsBtn.doCommand();
   return fullyLoadPromise;
 }
 
 function assertSitesListed(doc, hosts) {
-  let win = gBrowser.selectedBrowser.contentWindow;
-  let frameDoc = win.gSubDialog._topDialog._frame.contentDocument;
+  let frameDoc = content.gSubDialog._topDialog._frame.contentDocument;
   let removeBtn = frameDoc.getElementById("removeSelected");
   let removeAllBtn = frameDoc.getElementById("removeAll");
   let sitesList = frameDoc.getElementById("sitesList");
   let totalSitesNumber = sitesList.getElementsByTagName("richlistitem").length;
   is(totalSitesNumber, hosts.length, "Should list the right sites number");
   hosts.forEach(host => {
     let site = sitesList.querySelector(`richlistitem[host="${host}"]`);
     ok(site, `Should list the site of ${host}`);
   });
   is(removeBtn.disabled, false, "Should enable the removeSelected button");
   is(removeAllBtn.disabled, false, "Should enable the removeAllBtn button");
 }
 
-function promiseSitesUpdated() {
-  return TestUtils.topicObserved("sitedatamanager:sites-updated", () => true);
+async function evaluateSearchResults(keyword, searchReults) {
+  searchReults = Array.isArray(searchReults) ? searchReults : [searchReults];
+  searchReults.push("header-searchResults");
+
+  let searchInput = gBrowser.contentDocument.getElementById("searchInput");
+  searchInput.focus();
+  let searchCompletedPromise = BrowserTestUtils.waitForEvent(
+    gBrowser.contentWindow, "PreferencesSearchCompleted", evt => evt.detail == keyword);
+  EventUtils.sendString(keyword);
+  await searchCompletedPromise;
+
+  let mainPrefTag = gBrowser.contentDocument.getElementById("mainPrefPane");
+  for (let i = 0; i < mainPrefTag.childElementCount; i++) {
+    let child = mainPrefTag.children[i];
+    if (searchReults.includes(child.id)) {
+      is_element_visible(child, "Should be in search results");
+    } else if (child.id) {
+      is_element_hidden(child, "Should not be in search results");
+    }
+  }
 }
 
-function promiseSettingsDialogClose() {
-  return new Promise(resolve => {
-    let win = gBrowser.selectedBrowser.contentWindow;
-    let dialogOverlay = win.gSubDialog._topDialog._overlay;
-    let dialogWin = win.gSubDialog._topDialog._frame.contentWindow;
-    dialogWin.addEventListener("unload", function unload() {
-      if (dialogWin.document.documentURI === "chrome://browser/content/preferences/siteDataSettings.xul") {
-        isnot(dialogOverlay.style.visibility, "visible", "The Settings dialog should be hidden");
-        resolve();
-      }
-    }, { once: true });
-  });
-}
+const mockSiteDataManager = {
+
+  _SiteDataManager: null,
+  _originalQMS: null,
+  _originalRemoveQuotaUsage: null,
+
+  getUsage(onUsageResult) {
+    let result = this.fakeSites.map(site => ({
+      origin: site.principal.origin,
+      usage: site.usage,
+      persisted: site.persisted
+    }));
+    onUsageResult({ result });
+  },
+
+  _removeQuotaUsage(site) {
+    var target = site.principals[0].URI.host;
+    this.fakeSites = this.fakeSites.filter(fakeSite => {
+      return fakeSite.principal.URI.host != target;
+    });
+  },
+
+  register(SiteDataManager) {
+    this._SiteDataManager = SiteDataManager;
+    this._originalQMS = this._SiteDataManager._qms;
+    this._SiteDataManager._qms = this;
+    this._originalRemoveQuotaUsage = this._SiteDataManager._removeQuotaUsage;
+    this._SiteDataManager._removeQuotaUsage = this._removeQuotaUsage.bind(this);
+    this.fakeSites = null;
+  },
+
+  unregister() {
+    this._SiteDataManager._qms = this._originalQMS;
+    this._SiteDataManager._removeQuotaUsage = this._originalRemoveQuotaUsage;
+  }
+};
--- a/browser/components/preferences/in-content/tests/offline/offline.html
+++ b/browser/components/preferences/in-content/tests/offline/offline.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html manifest="manifest.appcache">
+<html manifest="manifest.appcache">>
   <head>
     <meta charset="utf-8">
     <meta http-equiv="Cache-Control" content="public" />
     <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
 
   </head>
 
   <body>
--- a/browser/components/preferences/moz.build
+++ b/browser/components/preferences/moz.build
@@ -1,21 +1,19 @@
 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # 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/.
 
 DIRS += [
-	'in-content-new',
 	'in-content'
 ]
 
 BROWSER_CHROME_MANIFESTS += [
-    'in-content-new/tests/browser.ini',
     'in-content/tests/browser.ini'
 ]
 
 for var in ('MOZ_APP_NAME', 'MOZ_MACBUNDLE_NAME'):
     DEFINES[var] = CONFIG[var]
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3', 'cocoa'):
     DEFINES['HAVE_SHELL_SERVICE'] = 1
--- a/browser/components/preferences/siteDataRemoveSelected.xul
+++ b/browser/components/preferences/siteDataRemoveSelected.xul
@@ -1,17 +1,17 @@
 <?xml version="1.0"?>
 
 <!-- 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/. -->
 
 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 <?xml-stylesheet href="chrome://browser/content/preferences/siteDataSettings.css" type="text/css"?>
-<?xml-stylesheet href="chrome://browser/skin/preferences/in-content-new/siteDataSettings.css" type="text/css"?>
+<?xml-stylesheet href="chrome://browser/skin/preferences/in-content/siteDataSettings.css" type="text/css"?>
 
 <!DOCTYPE dialog SYSTEM "chrome://browser/locale/preferences/siteDataSettings.dtd" >
 
 <dialog id="SiteDataRemoveSelectedDialog"
         windowtype="Browser:SiteDataRemoveSelected"
         width="500"
         title="&removingDialog.title;"
         onload="gSiteDataRemoveSelected.init();"
--- a/browser/components/preferences/siteDataSettings.xul
+++ b/browser/components/preferences/siteDataSettings.xul
@@ -2,17 +2,17 @@
 
 <!-- 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/. -->
 
 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 <?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
 <?xml-stylesheet href="chrome://browser/content/preferences/siteDataSettings.css" type="text/css"?>
-<?xml-stylesheet href="chrome://browser/skin/preferences/in-content-new/siteDataSettings.css" type="text/css"?>
+<?xml-stylesheet href="chrome://browser/skin/preferences/in-content/siteDataSettings.css" type="text/css"?>
 
 <!DOCTYPE dialog SYSTEM "chrome://browser/locale/preferences/siteDataSettings.dtd" >
 
 <window id="SiteDataSettingsDialog" windowtype="Browser:SiteDataSettings"
         class="windowDialog" title="&window.title;"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         style="width: 45em;"
         onload="gSiteDataSettings.init();"
--- a/browser/components/translation/test/browser_translation_yandex.js
+++ b/browser/components/translation/test/browser_translation_yandex.js
@@ -73,28 +73,27 @@ add_task(async function test_yandex_attr
   let attribution = notif._getAnonElt("translationEngine").selectedIndex;
   Assert.equal(attribution, 1, "Yandex attribution should be shown.");
 
   gBrowser.removeTab(tab);
 });
 
 
 add_task(async function test_preference_attribution() {
-
     let prefUrl = "about:preferences#general";
+    let waitPrefLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
     let tab = await promiseTestPageLoad(prefUrl);
-
+    await waitPrefLoaded;
     let browser = gBrowser.getBrowserForTab(tab);
     let win = browser.contentWindow;
     let bingAttribution = win.document.getElementById("bingAttribution");
     ok(bingAttribution, "Bing attribution should exist.");
     ok(bingAttribution.hidden, "Bing attribution should be hidden.");
 
     gBrowser.removeTab(tab);
-
 });
 
 /**
  * A helper function for constructing a URL to a page stored in the
  * local fixture folder.
  *
  * @param filename  Name of a fixture file.
  */
--- a/browser/components/uitour/UITour-lib.js
+++ b/browser/components/uitour/UITour-lib.js
@@ -720,40 +720,28 @@ if (typeof Mozilla == "undefined") {
    */
   Mozilla.UITour.toggleReaderMode = function() {
     _sendEvent("toggleReaderMode");
   };
 
   /**
    * @param {String} pane - Pane to open/switch the preferences to.
    * Valid values match fragments on about:preferences and are subject to change e.g.:
-   * <ul>
-   * For the old Preferences
-   * <li>general
-   * <li>search
-   * <li>content
-   * <li>applications
-   * <li>privacy
-   * <li>security
-   * <li>sync
-   * <li>advanced
-   * </ul>
    *
    * <ul>
-   * For the new Preferences
+   * For the Preferences
    * <li>general
    * <li>applications
    * <li>sync
    * <li>privacy
    * <li>advanced
    * </ul>
    *
-   * The mapping between the old and the new Preferences:
    * To open to the options of sending telemetry, health report, crach reports,
-   * that is, the advanced pane > dataChoicesTab on the old and the privcacy pane > reports on the new.
+   * that is, the privcacy pane > reports on the preferences.
    * Please call `Mozilla.UITour.openPreferences("privacy-reports")`.
    * UITour would do route mapping automatically.
    *
    * @since 42
    */
   Mozilla.UITour.openPreferences = function(pane) {
     _sendEvent("openPreferences", {
       pane
--- a/browser/components/uitour/UITour.jsm
+++ b/browser/components/uitour/UITour.jsm
@@ -547,32 +547,17 @@ this.UITour = {
         break;
       }
 
       case "openPreferences": {
         if (typeof data.pane != "string" && typeof data.pane != "undefined") {
           log.warn("openPreferences: Invalid pane specified");
           return false;
         }
-
-        let paneID = data.pane;
-        let extraArgs = { origin: "UITour" };
-        if (Services.prefs.getBoolPref("browser.preferences.useOldOrganization", true)) {
-          // We are heading to the old Preferences so
-          // let's map the new one to the old one if the `paneID` was for the new Preferences.
-          // Currently only the old advanced pane > dataChoicesTab has the mapping need,
-          // so here only do mapping for it right now.
-          // We could add another mapping when there is need.
-          if (paneID == "privacy-reports") {
-            paneID = "advanced";
-            extraArgs.advancedTab = "dataChoicesTab";
-          }
-        }
-
-        window.openPreferences(paneID, extraArgs);
+        window.openPreferences(data.pane, { origin: "UITour" });
         break;
       }
 
       case "showFirefoxAccounts": {
         // 'signup' is the only action that makes sense currently, so we don't
         // accept arbitrary actions just to be safe...
         let p = new URLSearchParams("action=signup&entrypoint=uitour");
         // Call our helper to validate extraURLCampaignParams and populate URLSearchParams
--- a/browser/components/uitour/test/browser_openPreferences.js
+++ b/browser/components/uitour/test/browser_openPreferences.js
@@ -30,37 +30,21 @@ add_UITour_task(async function test_open
 
 add_UITour_task(async function test_openPrivacyPreferences() {
   let promiseTabOpened = BrowserTestUtils.waitForNewTab(gBrowser, "about:preferences#privacy");
   await gContentAPI.openPreferences("privacy");
   let tab = await promiseTabOpened;
   await BrowserTestUtils.removeTab(tab);
 });
 
-add_UITour_task(async function test_openOldDataChoicesTab() {
-  if (!AppConstants.MOZ_DATA_REPORTING) {
-    return;
-  }
-  await SpecialPowers.pushPrefEnv({set: [["browser.preferences.useOldOrganization", true]]});
-  let promiseTabOpened = BrowserTestUtils.waitForNewTab(gBrowser, "about:preferences#advanced");
-  await gContentAPI.openPreferences("privacy-reports");
-  let tab = await promiseTabOpened;
-  await BrowserTestUtils.waitForEvent(gBrowser.selectedBrowser, "Initialized");
-  let doc = gBrowser.selectedBrowser.contentDocument;
-  let selectedTab = doc.getElementById("advancedPrefs").selectedTab;
-  is(selectedTab.id, "dataChoicesTab", "Should open to the dataChoicesTab in the old Preferences");
-  await BrowserTestUtils.removeTab(tab);
-});
-
 add_UITour_task(async function test_openPrivacyReports() {
   if (!AppConstants.MOZ_TELEMETRY_REPORTING &&
       !(AppConstants.MOZ_DATA_REPORTING && AppConstants.MOZ_CRASHREPORTER)) {
     return;
   }
-  await SpecialPowers.pushPrefEnv({set: [["browser.preferences.useOldOrganization", false]]});
   let promiseTabOpened = BrowserTestUtils.waitForNewTab(gBrowser, "about:preferences#privacy-reports");
   await gContentAPI.openPreferences("privacy-reports");
   let tab = await promiseTabOpened;
   await BrowserTestUtils.waitForEvent(gBrowser.selectedBrowser, "Initialized");
   let doc = gBrowser.selectedBrowser.contentDocument;
   let reports = doc.querySelector("groupbox[data-subcategory='reports']");
   is(doc.location.hash, "#privacy", "Should not display the reports subcategory in the location hash.");
   is(reports.hidden, false, "Should open to the reports subcategory in the privacy pane in the new Preferences.");
--- a/browser/extensions/formautofill/FormAutofillParent.jsm
+++ b/browser/extensions/formautofill/FormAutofillParent.jsm
@@ -79,17 +79,17 @@ FormAutofillParent.prototype = {
    * Cache of the Form Autofill status (considering preferences and storage).
    */
   _active: null,
 
   /**
    * Initializes ProfileStorage and registers the message handler.
    */
   async init() {
-    Services.obs.addObserver(this, "advanced-pane-loaded");
+    Services.obs.addObserver(this, "sync-pane-loaded");
     Services.ppmm.addMessageListener("FormAutofill:InitStorage", this);
     Services.ppmm.addMessageListener("FormAutofill:GetRecords", this);
     Services.ppmm.addMessageListener("FormAutofill:SaveAddress", this);
     Services.ppmm.addMessageListener("FormAutofill:SaveCreditCard", this);
     Services.ppmm.addMessageListener("FormAutofill:RemoveAddresses", this);
     Services.ppmm.addMessageListener("FormAutofill:RemoveCreditCards", this);
     Services.ppmm.addMessageListener("FormAutofill:OpenPreferences", this);
     Services.ppmm.addMessageListener("FormAutofill:GetDecryptedString", this);
@@ -99,28 +99,22 @@ FormAutofillParent.prototype = {
     Services.prefs.addObserver(ENABLED_AUTOFILL_ADDRESSES_PREF, this);
     Services.prefs.addObserver(ENABLED_AUTOFILL_CREDITCARDS_PREF, this);
     Services.obs.addObserver(this, "formautofill-storage-changed");
   },
 
   observe(subject, topic, data) {
     log.debug("observe:", topic, "with data:", data);
     switch (topic) {
-      case "advanced-pane-loaded": {
-        let useOldOrganization = Services.prefs.getBoolPref("browser.preferences.useOldOrganization",
-                                                            false);
-        let formAutofillPreferences = new FormAutofillPreferences({useOldOrganization});
+      case "sync-pane-loaded": {
+        let formAutofillPreferences = new FormAutofillPreferences();
         let document = subject.document;
         let prefGroup = formAutofillPreferences.init(document);
-        let parentNode = useOldOrganization ?
-                         document.getElementById("mainPrefPane") :
-                         document.getElementById("passwordsGroup");
-        let insertBeforeNode = useOldOrganization ?
-                               document.getElementById("locationBarGroup") :
-                               document.getElementById("masterPasswordRow");
+        let parentNode = document.getElementById("passwordsGroup");
+        let insertBeforeNode = document.getElementById("masterPasswordRow");
         parentNode.insertBefore(prefGroup, insertBeforeNode);
         break;
       }
 
       case "nsPref:changed": {
         // Observe pref changes and update _active cache if status is changed.
         this._updateStatus();
         break;
@@ -252,17 +246,17 @@ FormAutofillParent.prototype = {
     this.profileStorage._saveImmediately();
 
     Services.ppmm.removeMessageListener("FormAutofill:InitStorage", this);
     Services.ppmm.removeMessageListener("FormAutofill:GetRecords", this);
     Services.ppmm.removeMessageListener("FormAutofill:SaveAddress", this);
     Services.ppmm.removeMessageListener("FormAutofill:SaveCreditCard", this);
     Services.ppmm.removeMessageListener("FormAutofill:RemoveAddresses", this);
     Services.ppmm.removeMessageListener("FormAutofill:RemoveCreditCards", this);
-    Services.obs.removeObserver(this, "advanced-pane-loaded");
+    Services.obs.removeObserver(this, "sync-pane-loaded");
     Services.prefs.removeObserver(ENABLED_AUTOFILL_ADDRESSES_PREF, this);
     Services.prefs.removeObserver(ENABLED_AUTOFILL_CREDITCARDS_PREF, this);
   },
 
   /**
    * Get the records from profile store and return results back to content
    * process. It will decrypt the credit card number and append
    * "cc-number-decrypted" to each record if MasterPassword isn't set.
--- a/browser/extensions/formautofill/FormAutofillPreferences.jsm
+++ b/browser/extensions/formautofill/FormAutofillPreferences.jsm
@@ -24,18 +24,17 @@ Cu.import("resource://formautofill/FormA
 
 const {ENABLED_AUTOFILL_ADDRESSES_PREF, ENABLED_AUTOFILL_CREDITCARDS_PREF} = FormAutofillUtils;
 // Add credit card enabled flag in telemetry environment for recording the number of
 // users who disable/enable the credit card autofill feature.
 
 this.log = null;
 FormAutofillUtils.defineLazyLogGetter(this, this.EXPORTED_SYMBOLS[0]);
 
-function FormAutofillPreferences({useOldOrganization}) {
-  this.useOldOrganization = useOldOrganization;
+function FormAutofillPreferences() {
   this.bundle = Services.strings.createBundle(BUNDLE_URI);
 }
 
 FormAutofillPreferences.prototype = {
   /**
    * Create the Form Autofill preference group.
    *
    * @param   {XULDocument} document
@@ -57,40 +56,26 @@ FormAutofillPreferences.prototype = {
   },
 
   /**
    * Create Form Autofill preference group
    *
    * @param  {XULDocument} document
    */
   createPreferenceGroup(document) {
-    let formAutofillGroup;
+    let formAutofillGroup = document.createElementNS(XUL_NS, "vbox");
     let addressAutofill = document.createElementNS(XUL_NS, "hbox");
     let addressAutofillCheckbox = document.createElementNS(XUL_NS, "checkbox");
     let savedAddressesBtn = document.createElementNS(XUL_NS, "button");
     let creditCardAutofill = document.createElementNS(XUL_NS, "hbox");
     let creditCardAutofillCheckbox = document.createElementNS(XUL_NS, "checkbox");
     let savedCreditCardsBtn = document.createElementNS(XUL_NS, "button");
 
-    if (this.useOldOrganization) {
-      let caption = document.createElementNS(XUL_NS, "caption");
-      let captionLabel = document.createElementNS(XUL_NS, "label");
-
-      formAutofillGroup = document.createElementNS(XUL_NS, "groupbox");
-      formAutofillGroup.hidden = document.location.href != "about:preferences#privacy";
-      // Use .setAttribute because HTMLElement.dataset is not available on XUL elements
-      formAutofillGroup.setAttribute("data-category", "panePrivacy");
-      formAutofillGroup.appendChild(caption);
-      caption.appendChild(captionLabel);
-      captionLabel.textContent = this.bundle.GetStringFromName("preferenceGroupTitle");
-    } else {
-      formAutofillGroup = document.createElementNS(XUL_NS, "vbox");
-      savedAddressesBtn.className = "accessory-button";
-      savedCreditCardsBtn.className = "accessory-button";
-    }
+    savedAddressesBtn.className = "accessory-button";
+    savedCreditCardsBtn.className = "accessory-button";
 
     this.refs = {
       formAutofillGroup,
       addressAutofillCheckbox,
       savedAddressesBtn,
       creditCardAutofillCheckbox,
       savedCreditCardsBtn,
     };
--- a/browser/extensions/formautofill/test/browser/browser_privacyPreferences.js
+++ b/browser/extensions/formautofill/test/browser/browser_privacyPreferences.js
@@ -8,41 +8,47 @@ const SELECTORS = {
   creditCardAutofillCheckbox: "#creditCardAutofill checkbox",
   savedAddressesBtn: "#addressAutofill button",
   savedCreditCardsBtn: "#creditCardAutofill button",
 };
 
 // Visibility of form autofill group should be hidden when opening
 // preferences page.
 add_task(async function test_aboutPreferences() {
+  let finalPrefPaneLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
   await BrowserTestUtils.withNewTab({gBrowser, url: PAGE_PREFS}, async function(browser) {
+    await finalPrefPaneLoaded;
     await ContentTask.spawn(browser, SELECTORS, (selectors) => {
       is(content.document.querySelector(selectors.group).hidden, true,
         "Form Autofill group should be hidden");
     });
   });
 });
 
 // Visibility of form autofill group should be visible when opening
 // directly to privacy page. Checkbox is checked by default.
 add_task(async function test_aboutPreferencesPrivacy() {
+  let finalPrefPaneLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
   await BrowserTestUtils.withNewTab({gBrowser, url: PAGE_PRIVACY}, async function(browser) {
+    await finalPrefPaneLoaded;
     await ContentTask.spawn(browser, SELECTORS, (selectors) => {
       is(content.document.querySelector(selectors.group).hidden, false,
         "Form Autofill group should be visible");
       is(content.document.querySelector(selectors.addressAutofillCheckbox).checked, true,
         "Autofill addresses checkbox should be checked");
       is(content.document.querySelector(selectors.creditCardAutofillCheckbox).checked, true,
         "Autofill credit cards checkbox should be checked");
     });
   });
 });
 
 add_task(async function test_openManageAutofillDialogs() {
+  let finalPrefPaneLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
   await BrowserTestUtils.withNewTab({gBrowser, url: PAGE_PRIVACY}, async function(browser) {
+    await finalPrefPaneLoaded;
     const args = [SELECTORS, MANAGE_ADDRESSES_DIALOG_URL, MANAGE_CREDIT_CARDS_DIALOG_URL];
     await ContentTask.spawn(browser, args, ([selectors, addrUrl, ccUrl]) => {
       function testManageDialogOpened(expectedUrl) {
         return {open: openUrl => is(openUrl, expectedUrl, "Manage dialog called")};
       }
 
       let realgSubDialog = content.window.gSubDialog;
       content.window.gSubDialog = testManageDialogOpened(addrUrl);
@@ -53,18 +59,19 @@ add_task(async function test_openManageA
     });
   });
 });
 
 // Checkbox should be unchecked when form autofill addresses and credit cards are disabled.
 add_task(async function test_autofillDisabledCheckbox() {
   SpecialPowers.pushPrefEnv({set: [[ENABLED_AUTOFILL_ADDRESSES_PREF, false]]});
   SpecialPowers.pushPrefEnv({set: [[ENABLED_AUTOFILL_CREDITCARDS_PREF, false]]});
-
+  let finalPrefPaneLoaded = TestUtils.topicObserved("sync-pane-loaded", () => true);
   await BrowserTestUtils.withNewTab({gBrowser, url: PAGE_PRIVACY}, async function(browser) {
+    await finalPrefPaneLoaded;
     await ContentTask.spawn(browser, SELECTORS, (selectors) => {
       is(content.document.querySelector(selectors.group).hidden, false,
         "Form Autofill group should be visible");
       is(content.document.querySelector(selectors.addressAutofillCheckbox).checked, false,
         "Checkbox should be unchecked when Autofill Addresses is disabled");
       is(content.document.querySelector(selectors.creditCardAutofillCheckbox).checked, false,
         "Checkbox should be unchecked when Autofill Credit Cards is disabled");
     });
--- a/browser/extensions/shield-recipe-client/content/AboutPages.jsm
+++ b/browser/extensions/shield-recipe-client/content/AboutPages.jsm
@@ -137,44 +137,39 @@ XPCOMUtils.defineLazyGetter(this.AboutPa
   // Extra methods for about:study-specific behavior.
   Object.assign(aboutStudies, {
     /**
      * Register listeners for messages from the content processes.
      */
     registerParentListeners() {
       Services.mm.addMessageListener("Shield:GetStudyList", this);
       Services.mm.addMessageListener("Shield:RemoveStudy", this);
-      Services.mm.addMessageListener("Shield:OpenOldDataPreferences", this);
     },
 
     /**
      * Unregister listeners for messages from the content process.
      */
     unregisterParentListeners() {
       Services.mm.removeMessageListener("Shield:GetStudyList", this);
       Services.mm.removeMessageListener("Shield:RemoveStudy", this);
-      Services.mm.removeMessageListener("Shield:OpenOldDataPreferences", this);
     },
 
     /**
      * Dispatch messages from the content process to the appropriate handler.
      * @param {Object} message
      *   See the nsIMessageListener documentation for details about this object.
      */
     receiveMessage(message) {
       switch (message.name) {
         case "Shield:GetStudyList":
           this.sendStudyList(message.target);
           break;
         case "Shield:RemoveStudy":
           this.removeStudy(message.data);
           break;
-        case "Shield:OpenOldDataPreferences":
-          this.openOldDataPreferences();
-          break;
       }
     },
 
     /**
      * Fetch a list of studies from storage and send it to the process that
      * requested them.
      * @param {<browser>} target
      *   XUL <browser> element for the tab containing the about:studies page
@@ -199,20 +194,15 @@ XPCOMUtils.defineLazyGetter(this.AboutPa
       await AddonStudies.stop(recipeId);
 
       // Update any open tabs with the new study list now that it has changed.
       Services.mm.broadcastAsyncMessage("Shield:ReceiveStudyList", {
         studies: await AddonStudies.getAll(),
       });
     },
 
-    openOldDataPreferences() {
-      const browserWindow = Services.wm.getMostRecentWindow("navigator:browser");
-      browserWindow.openAdvancedPreferences("dataChoicesTab", {origin: "aboutStudies"});
-    },
-
     getShieldLearnMoreHref() {
       return Services.urlFormatter.formatURLPref(SHIELD_LEARN_MORE_URL_PREF);
     },
   });
 
   return aboutStudies;
 });
--- a/browser/extensions/shield-recipe-client/content/shield-content-frame.js
+++ b/browser/extensions/shield-recipe-client/content/shield-content-frame.js
@@ -19,18 +19,16 @@ const { utils: Cu } = Components;
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 const frameGlobal = {};
 XPCOMUtils.defineLazyModuleGetter(
   frameGlobal, "AboutPages", "resource://shield-recipe-client-content/AboutPages.jsm",
 );
 
-const USE_OLD_PREF_ORGANIZATION_PREF = "browser.preferences.useOldOrganization";
-
 /**
  * Handles incoming events from the parent process and about:studies.
  * @implements nsIMessageListener
  * @implements EventListener
  */
 class ShieldFrameListener {
   handleEvent(event) {
     // Abort if the current page isn't about:studies.
@@ -109,17 +107,13 @@ class ShieldFrameListener {
 
   onShutdown() {
     removeMessageListener("Shield:SendStudyList", this);
     removeMessageListener("Shield:ShuttingDown", this);
     removeEventListener("Shield", this);
   }
 
   navigateToDataPreferences() {
-    if (Services.prefs.getBoolPref(USE_OLD_PREF_ORGANIZATION_PREF)) {
-      sendAsyncMessage("Shield:OpenOldDataPreferences");
-    } else {
-      content.location = "about:preferences#privacy-reports";
-    }
+    content.location = "about:preferences#privacy-reports";
   }
 }
 
 addEventListener("ShieldPageEvent", new ShieldFrameListener(), false, true);
--- a/browser/extensions/shield-recipe-client/lib/ShieldPreferences.jsm
+++ b/browser/extensions/shield-recipe-client/lib/ShieldPreferences.jsm
@@ -36,30 +36,28 @@ this.ShieldPreferences = {
     CleanupManager.addCleanupHandler(() => {
       Services.prefs.removeObserver(FHR_UPLOAD_ENABLED_PREF, this);
     });
 
     // Disabled outside of en-* locales temporarily (bug 1377192).
     // Disabled when MOZ_DATA_REPORTING is false since the FHR UI is also hidden
     // when data reporting is false.
     if (AppConstants.MOZ_DATA_REPORTING && Services.locale.getAppLocaleAsLangTag().startsWith("en")) {
-      Services.obs.addObserver(this, "advanced-pane-loaded");
+      Services.obs.addObserver(this, "privacy-pane-loaded");
       CleanupManager.addCleanupHandler(() => {
-        Services.obs.removeObserver(this, "advanced-pane-loaded");
+        Services.obs.removeObserver(this, "privacy-pane-loaded");
       });
     }
   },
 
   observe(subject, topic, data) {
     switch (topic) {
       // Add the opt-out-study checkbox to the Privacy preferences when it is shown.
-      case "advanced-pane-loaded":
-        if (!Services.prefs.getBoolPref("browser.preferences.useOldOrganization", false)) {
-          this.injectOptOutStudyCheckbox(subject.document);
-        }
+      case "privacy-pane-loaded":
+        this.injectOptOutStudyCheckbox(subject.document);
         break;
       // If the FHR pref changes, set the opt-out-study pref to the value it is changing to.
       case NS_PREFBRANCH_PREFCHANGE_TOPIC_ID:
         if (data === FHR_UPLOAD_ENABLED_PREF) {
           const fhrUploadEnabled = Services.prefs.getBoolPref(FHR_UPLOAD_ENABLED_PREF);
           Services.prefs.setBoolPref(OPT_OUT_STUDIES_ENABLED_PREF, fhrUploadEnabled);
         }
         break;
--- a/browser/extensions/shield-recipe-client/test/browser/browser_about_studies.js
+++ b/browser/extensions/shield-recipe-client/test/browser/browser_about_studies.js
@@ -35,70 +35,32 @@ decorate_task(
       AboutPages.aboutStudies.getShieldLearnMoreHref(),
       "Clicking Learn More opens the correct page on SUMO.",
     );
     ok(!location.includes("%OS%"), "The Learn More URL is formatted.");
   }
 );
 
 decorate_task(
-  withPrefEnv({
-    set: [["browser.preferences.useOldOrganization", false]],
-  }),
   withAboutStudies,
   async function testUpdatePreferencesNewOrganization(browser) {
     ContentTask.spawn(browser, null, () => {
       content.document.getElementById("shield-studies-update-preferences").click();
     });
     await BrowserTestUtils.waitForLocationChange(gBrowser);
 
     is(
       browser.currentURI.spec,
       "about:preferences#privacy-reports",
       "Clicking Update Preferences opens the privacy section of the new about:prefernces.",
     );
   }
 );
 
 decorate_task(
-  withPrefEnv({
-    set: [["browser.preferences.useOldOrganization", true]],
-  }),
-  withAboutStudies,
-  async function testUpdatePreferencesOldOrganization(browser) {
-    // We have to use gBrowser instead of browser in most spots since we're
-    // dealing with a new tab outside of the about:studies tab.
-    const tab = await BrowserTestUtils.switchTab(gBrowser, () => {
-      ContentTask.spawn(browser, null, () => {
-        content.document.getElementById("shield-studies-update-preferences").click();
-      });
-    });
-
-    if (gBrowser.contentDocument.readyState !== "complete") {
-      await BrowserTestUtils.waitForEvent(gBrowser.contentWindow, "load");
-    }
-
-    const location = gBrowser.contentWindow.location.href;
-    is(
-      location,
-      "about:preferences#advanced",
-      "Clicking Update Preferences opens the advanced section of the old about:prefernces.",
-    );
-
-    const dataChoicesTab = gBrowser.contentDocument.getElementById("dataChoicesTab");
-    ok(
-      dataChoicesTab.selected,
-      "Click Update preferences selects the Data Choices tab in the old about:preferences."
-    );
-
-    await BrowserTestUtils.removeTab(tab);
-  }
-);
-
-decorate_task(
   AddonStudies.withStudies([
     // Sort order should be study3, study1, study2 (order by enabled, then most recent).
     studyFactory({
       name: "A Fake Study",
       active: true,
       description: "A fake description",
       studyStartDate: new Date(2017),
     }),
--- a/browser/installer/allowed-dupes.mn
+++ b/browser/installer/allowed-dupes.mn
@@ -5,45 +5,16 @@
 # PLEASE DO NOT ADD MORE EXCEPTIONS TO THIS LIST
 #
 
 # updater on osx is bug 1311194
 LaunchServices/org.mozilla.updater
 updater.app/Contents/MacOS/org.mozilla.updater
 updater.app/Contents/PkgInfo
 browser/chrome.manifest
-# browser preferences fork is bug 1349689
-browser/chrome/browser/content/browser/preferences/in-content/advanced.js
-browser/chrome/browser/content/browser/preferences/in-content/applications.js
-browser/chrome/browser/content/browser/preferences/in-content/containers.js
-browser/chrome/browser/content/browser/preferences/in-content/content.js
-browser/chrome/browser/content/browser/preferences/in-content/main.js
-browser/chrome/browser/content/browser/preferences/in-content/preferences.js
-browser/chrome/browser/content/browser/preferences/in-content/privacy.js
-browser/chrome/browser/content/browser/preferences/in-content/search.js
-browser/chrome/browser/content/browser/preferences/in-content/security.js
-browser/chrome/browser/content/browser/preferences/in-content/sync.js
-browser/chrome/browser/content/browser/preferences/in-content-new/containers.js
-browser/chrome/browser/content/browser/preferences/in-content-new/content.js
-browser/chrome/browser/content/browser/preferences/in-content-new/main.js
-browser/chrome/browser/content/browser/preferences/in-content-new/preferences.js
-browser/chrome/browser/content/browser/preferences/in-content-new/privacy.js
-browser/chrome/browser/content/browser/preferences/in-content-new/search.js
-browser/chrome/browser/content/browser/preferences/in-content-new/security.js
-browser/chrome/browser/content/browser/preferences/in-content-new/sync.js
-browser/chrome/browser/skin/classic/browser/preferences/in-content/search.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content/containers.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content/icons.svg
-browser/chrome/browser/skin/classic/browser/preferences/in-content/preferences.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content/dialog.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content-new/search.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content-new/containers.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content-new/icons.svg
-browser/chrome/browser/skin/classic/browser/preferences/in-content-new/preferences.css
-browser/chrome/browser/skin/classic/browser/preferences/in-content-new/dialog.css
 # browser branding / themes is bug 1313106
 browser/chrome/browser/content/branding/icon128.png
 browser/chrome/browser/content/branding/icon16.png
 browser/chrome/browser/content/branding/icon32.png
 browser/chrome/browser/content/branding/icon48.png
 browser/chrome/browser/content/browser/defaultthemes/5.header.png
 browser/chrome/browser/content/browser/extension.svg
 browser/chrome/browser/content/browser/places/bookmarkProperties.xul
--- a/browser/locales/en-US/chrome/browser/aboutDialog.dtd
+++ b/browser/locales/en-US/chrome/browser/aboutDialog.dtd
@@ -1,16 +1,16 @@
 <!-- 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/.  -->
 <!ENTITY aboutDialog.title          "About &brandFullName;">
 
 <!-- LOCALIZATION NOTE (update.*):
 # These strings are also used in the update pane of preferences.
-# See about:preferences#advanced.
+# See about:preferences#general.
 -->
 <!-- LOCALIZATION NOTE (update.checkForUpdatesButton.*, update.updateButton.*):
 # Only one button is present at a time.
 # The button when displayed is located directly under the Firefox version in
 # the about dialog (see bug 596813 for screenshots).
 -->
 <!ENTITY update.checkForUpdatesButton.label       "Check for updates">
 <!ENTITY update.checkForUpdatesButton.accesskey   "C">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/advanced.dtd
+++ /dev/null
@@ -1,150 +0,0 @@
-<!-- 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/. -->
-
-<!-- Note: each tab panel must contain unique accesskeys -->
-
-<!ENTITY generalTab.label                "General">
-
-<!ENTITY accessibility.label             "Accessibility">
-
-<!ENTITY useCursorNavigation.label       "Always use the cursor keys to navigate within pages">
-<!ENTITY useCursorNavigation.accesskey   "c">
-<!ENTITY searchOnStartTyping.label       "Search for text when you start typing">
-<!ENTITY searchOnStartTyping.accesskey   "x">
-<!ENTITY blockAutoReload.label           "Warn you when websites try to redirect or reload the page">
-<!ENTITY blockAutoReload.accesskey       "b">
-<!ENTITY useOnScreenKeyboard.label       "Show a touch keyboard when necessary">
-<!ENTITY useOnScreenKeyboard.accesskey   "k">
-
-<!ENTITY browsing.label                  "Browsing">
-
-<!ENTITY useAutoScroll.label             "Use autoscrolling">
-<!ENTITY useAutoScroll.accesskey         "a">
-<!ENTITY useSmoothScrolling.label        "Use smooth scrolling">
-<!ENTITY useSmoothScrolling.accesskey    "m">
-<!ENTITY checkUserSpelling.label         "Check your spelling as you type">
-<!ENTITY checkUserSpelling.accesskey     "t">
-
-<!ENTITY dataChoicesTab.label            "Data Choices">
-
-<!-- LOCALIZATION NOTE (healthReportingDisabled.label): This message is displayed above
-disabled data sharing options in developer builds or builds with no Telemetry support
-available. -->
-<!ENTITY healthReportingDisabled.label   "Data reporting is disabled for this build configuration">
-
-<!ENTITY healthReportDesc.label          "Helps you understand your browser performance and shares data with &vendorShortName; about your browser health">
-<!ENTITY enableHealthReport.label        "Enable &brandShortName; Health Report">
-<!ENTITY enableHealthReport.accesskey    "R">
-<!ENTITY healthReportLearnMore.label     "Learn more">
-
-<!ENTITY telemetryDesc.label             "Shares performance, usage, hardware and customization data about your browser with &vendorShortName; to help us make &brandShortName; better">
-<!ENTITY enableTelemetryData.label       "Share Additional Data (i.e., Telemetry)">
-<!ENTITY enableTelemetryData.accesskey   "T">
-<!ENTITY telemetryLearnMore.label        "Learn more">
-
-<!ENTITY crashReporterDesc2.label         "Crash reports help &vendorShortName; fix problems and make your browser more stable and secure">
-<!ENTITY alwaysSubmitCrashReports.label   "Allow &brandShortName; to send backlogged crash reports on your behalf">
-<!ENTITY alwaysSubmitCrashReports.accesskey "c">
-<!ENTITY crashReporterLearnMore.label     "Learn more">
-
-<!ENTITY networkTab.label                "Network">
-
-<!ENTITY connection.label                "Connection">
-
-<!ENTITY connectionDesc.label            "Configure how &brandShortName; connects to the Internet">
-<!ENTITY connectionSettings.label        "Settings…">
-<!ENTITY connectionSettings.accesskey    "e">
-
-<!ENTITY httpCache.label                 "Cached Web Content">
-
-<!ENTITY offlineStorage2.label           "Offline Web Content and User Data">
-
-<!--  Site Data section manages sites using Storage API and is under Network -->
-<!ENTITY siteData.label                  "Site Data">
-<!ENTITY clearSiteData.label             "Clear All Data">
-<!ENTITY clearSiteData.accesskey         "l">
-<!ENTITY siteDataSettings.label          "Settings…">
-<!ENTITY siteDataSettings.accesskey      "i">
-<!ENTITY siteDataLearnMoreLink.label     "Learn more">
-
-<!-- LOCALIZATION NOTE:
-  The entities limitCacheSizeBefore.label and limitCacheSizeAfter.label appear on a single
-  line in preferences as follows:
-
-  &limitCacheSizeBefore.label [textbox for cache size in MB] &limitCacheSizeAfter.label;
--->
-<!ENTITY limitCacheSizeBefore.label      "Limit cache to">
-<!ENTITY limitCacheSizeBefore.accesskey  "L">
-<!ENTITY limitCacheSizeAfter.label       "MB of space">
-<!ENTITY clearCacheNow.label             "Clear Now">
-<!ENTITY clearCacheNow.accesskey         "C">
-<!ENTITY clearOfflineAppCacheNow.label   "Clear Now">
-<!ENTITY clearOfflineAppCacheNow.accesskey "N">
-<!ENTITY overrideSmartCacheSize.label    "Override automatic cache management">
-<!ENTITY overrideSmartCacheSize.accesskey "O">
-
-<!ENTITY updateTab.label                 "Update">
-
-<!ENTITY updateApplication.label         "&brandShortName; Updates">
-<!ENTITY updateAuto1.label               "Automatically install updates (recommended: improved security)">
-<!ENTITY updateAuto1.accesskey           "A">
-<!ENTITY updateCheckChoose.label         "Check for updates, but let you choose whether to install them">
-<!ENTITY updateCheckChoose.accesskey     "C">
-<!ENTITY updateManual.label              "Never check for updates (not recommended: security risk)">
-<!ENTITY updateManual.accesskey          "N">
-
-<!ENTITY updateHistory.label             "Show Update History">
-<!ENTITY updateHistory.accesskey         "p">
-
-<!ENTITY useService.label                "Use a background service to install updates">
-<!ENTITY useService.accesskey            "b">
-
-<!ENTITY autoUpdateOthers.label          "Automatically Update">
-<!ENTITY enableSearchUpdate.label        "Search Engines">
-<!ENTITY enableSearchUpdate.accesskey    "E">
-
-<!ENTITY offlineStorageNotify.label               "Tell you when a website asks to store data for offline use">
-<!ENTITY offlineStorageNotify.accesskey           "T">
-<!ENTITY offlineStorageNotifyExceptions.label     "Exceptions…">
-<!ENTITY offlineStorageNotifyExceptions.accesskey "x">
-
-<!ENTITY offlineAppsList2.label          "The following websites are allowed to store data for offline use:">
-<!ENTITY offlineAppsList.height          "7em">
-<!ENTITY offlineAppsListRemove.label     "Remove…">
-<!ENTITY offlineAppsListRemove.accesskey "R">
-<!ENTITY offlineAppRemove.confirm        "Remove offline data">
-
-<!ENTITY certificateTab.label            "Certificates">
-<!ENTITY certPersonal.label              "Requests">
-<!ENTITY certPersonal.description        "When a server requests your personal certificate:">
-<!ENTITY selectCerts.auto                "Select one automatically">
-<!ENTITY selectCerts.auto.accesskey      "S">
-<!ENTITY selectCerts.ask                 "Ask you every time">
-<!ENTITY selectCerts.ask.accesskey       "A">
-<!ENTITY enableOCSP.label                "Query OCSP responder servers to confirm the current validity of certificates">
-<!ENTITY enableOCSP.accesskey            "Q">
-<!ENTITY viewCerts.label                 "View Certificates">
-<!ENTITY viewCerts.accesskey             "C">
-<!ENTITY viewSecurityDevices.label       "Security Devices">
-<!ENTITY viewSecurityDevices.accesskey   "D">
-
-<!ENTITY performance.label               "Performance">
-<!ENTITY useRecommendedPerformanceSettings.label
-                                         "Use recommended performance settings">
-<!ENTITY useRecommendedPerformanceSettings.description
-                                         "These settings are tailored to your computer’s hardware and operating system.">
-<!ENTITY useRecommendedPerformanceSettings.accesskey
-                                         "U">
-<!ENTITY performanceSettingsLearnMore.label
-                                         "Learn more">
-<!ENTITY limitContentProcessOption.label "Content process limit">
-<!ENTITY limitContentProcessOption.description
-                                         "Additional content processes can improve performance when using multiple tabs, but will also use more memory.">
-<!ENTITY limitContentProcessOption.accesskey   "L">
-<!ENTITY limitContentProcessOption.disabledDescription
-                                         "Modifying the number of content processes is only possible with multiprocess &brandShortName;.">
-<!ENTITY limitContentProcessOption.disabledDescriptionLink
-                                         "Learn how to check if multiprocess is enabled">
-<!ENTITY allowHWAccel.label              "Use hardware acceleration when available">
-<!ENTITY allowHWAccel.accesskey          "r">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/applications.dtd
+++ /dev/null
@@ -1,13 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY  typeColumn.label        "Content Type">
-<!ENTITY  typeColumn.accesskey    "T">
-
-<!ENTITY  actionColumn2.label     "Action">
-<!ENTITY  actionColumn2.accesskey "A">
-
-<!ENTITY  focusSearch1.key        "f">
-
-<!ENTITY  filter.emptytext        "Search">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/containers.dtd
+++ /dev/null
@@ -1,26 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY addButton.label      "Add New Container">
-<!ENTITY addButton.accesskey  "A">
-<!ENTITY preferencesButton.label "Preferences">
-<!ENTITY removeButton.label   "Remove">
-<!-- &#171; is &laquo; however it's not defined in XML -->
-<!ENTITY backLink.label       "&#171; Go Back to Privacy">
-
-<!ENTITY window.title         "Add New Container">
-<!ENTITY window.width         "45em">
-
-<!ENTITY name.label           "Name:">
-<!ENTITY name.accesskey       "N">
-<!ENTITY name.placeholder     "Enter a container name">
-<!ENTITY icon.label           "Icon:">
-<!ENTITY icon.accesskey       "I">
-<!ENTITY color.label          "Color:">
-<!ENTITY color.accesskey      "o">
-<!ENTITY windowClose.key      "w">
-
-<!ENTITY button.ok.label      "Done">
-<!ENTITY button.ok.accesskey  "D">
-
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/containers.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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/.
-
-containers.labelMinWidth = 4rem
-containers.updateContainerTitle = %S Container Preferences
-
-containers.blue.label = Blue
-containers.turquoise.label = Turquoise
-containers.green.label = Green
-containers.yellow.label = Yellow
-containers.orange.label = Orange
-containers.red.label = Red
-containers.pink.label = Pink
-containers.purple.label = Purple
-
-containers.fingerprint.label = Fingerprint
-containers.briefcase.label = Briefcase
-# LOCALIZATION NOTE (containers.dollar.label)
-# String represents a money sign but currently uses a dollar sign so don't change to local currency
-# See Bug 1291672
-containers.dollar.label = Dollar sign
-containers.cart.label = Shopping cart
-containers.circle.label = Dot
-containers.vacation.label = Vacation
-containers.gift.label = Gift
-containers.food.label = Food
-containers.fruit.label = Fruit
-containers.pet.label = Pet
-containers.tree.label = Tree
-containers.chill.label = Chill
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/content.dtd
+++ /dev/null
@@ -1,60 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY  popups.label                "Pop-ups">
-
-<!ENTITY  blockPopups.label           "Block pop-up windows">
-<!ENTITY  blockPopups.accesskey       "B">
-
-<!ENTITY  notificationsPolicy.label            "Notifications">
-<!ENTITY  notificationsPolicyLearnMore.label   "Learn more">
-<!ENTITY  notificationsPolicyDesc4.label       "Choose which websites are allowed to send you notifications">
-<!ENTITY  notificationsPolicyButton.accesskey  "h">
-<!ENTITY  notificationsPolicyButton.label      "Choose…">
-<!ENTITY  notificationsDoNotDisturb.label      "Do not disturb me">
-<!ENTITY  notificationsDoNotDisturb.accesskey  "n">
-<!ENTITY  notificationsDoNotDisturbDetails.value "No notification will be shown until you restart &brandShortName;">
-
-<!ENTITY  popupExceptions.label       "Exceptions…">
-<!ENTITY  popupExceptions.accesskey   "E">
-
-<!ENTITY  fontsAndColors.label        "Fonts &amp; Colors">
-
-<!ENTITY  defaultFont.label           "Default font:">
-<!ENTITY  defaultFont.accesskey       "D">
-<!ENTITY  defaultSize.label           "Size:">
-<!ENTITY  defaultSize.accesskey       "S">
-
-<!ENTITY  advancedFonts.label         "Advanced…">
-<!ENTITY  advancedFonts.accesskey     "A">
-
-<!ENTITY  colors.label                "Colors…">
-<!ENTITY  colors.accesskey            "C">
-
-
-<!ENTITY languages.label              "Languages">
-<!ENTITY chooseLanguage.label         "Choose your preferred language for displaying pages">
-<!ENTITY chooseButton.label           "Choose…">
-<!ENTITY chooseButton.accesskey       "o">
-
-<!ENTITY translateWebPages.label      "Translate web content">
-<!ENTITY translateWebPages.accesskey  "T">
-<!ENTITY translateExceptions.label    "Exceptions…">
-<!ENTITY translateExceptions.accesskey "x">
-
-<!-- LOCALIZATION NOTE (translation.options.attribution.beforeLogo,
-  -                     translation.options.attribution.afterLogo):
-  -  These 2 strings are displayed before and after a 'Microsoft Translator'
-  -  logo.
-  -  The translations for these strings should match the translations in
-  -  browser/translation.dtd
-  -->
-<!ENTITY translation.options.attribution.beforeLogo "Translations by">
-<!ENTITY translation.options.attribution.afterLogo "">
-
-<!ENTITY  drmContent.label             "DRM Content">
-
-<!ENTITY  playDRMContent.label         "Play DRM content">
-<!ENTITY  playDRMContent.accesskey     "P">
-<!ENTITY  playDRMContent.learnMore.label "Learn more">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/main.dtd
+++ /dev/null
@@ -1,46 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY startup.label             "Startup">
-
-<!ENTITY startupPage.label         "When &brandShortName; starts:">
-<!ENTITY startupPage.accesskey     "s">
-<!ENTITY startupUserHomePage.label "Show your home page">
-<!ENTITY startupBlankPage.label    "Show a blank page">
-<!ENTITY startupPrevSession.label  "Show your windows and tabs from last time">
-
-<!ENTITY homepage.label            "Home Page:">
-<!ENTITY homepage.accesskey        "P">
-<!ENTITY useCurrentPage.label      "Use Current Page">
-<!ENTITY useCurrentPage.accesskey  "C">
-<!ENTITY useMultiple.label         "Use Current Pages">
-<!ENTITY chooseBookmark.label      "Use Bookmark…">
-<!ENTITY chooseBookmark.accesskey  "B">
-<!ENTITY restoreDefault.label      "Restore to Default">
-<!ENTITY restoreDefault.accesskey  "R">
-
-<!ENTITY downloads.label     "Downloads">
-
-<!ENTITY saveTo.label "Save files to">
-<!ENTITY saveTo.accesskey "v">
-<!ENTITY chooseFolderWin.label        "Browse…">
-<!ENTITY chooseFolderWin.accesskey    "o">
-<!ENTITY chooseFolderMac.label        "Choose…">
-<!ENTITY chooseFolderMac.accesskey    "e">
-<!ENTITY alwaysAskWhere.label         "Always ask you where to save files">
-<!ENTITY alwaysAskWhere.accesskey     "A">
-
-<!ENTITY alwaysCheckDefault2.label        "Always check if &brandShortName; is your default browser">
-<!ENTITY alwaysCheckDefault2.accesskey    "y">
-<!ENTITY setAsMyDefaultBrowser2.label     "Make Default">
-<!ENTITY setAsMyDefaultBrowser2.accesskey "D">
-<!ENTITY isDefault.label                  "&brandShortName; is currently your default browser">
-<!ENTITY isNotDefault.label               "&brandShortName; is not your default browser">
-
-<!ENTITY separateProfileMode.label        "Allow &brandShortName; and Firefox to run at the same time">
-<!ENTITY useFirefoxSync.label             "Tip: This uses separate profiles. Use Sync to share data between them.">
-<!ENTITY getStarted.notloggedin.label     "Sign in to &syncBrand.shortName.label;…">
-<!ENTITY getStarted.configured.label      "Open &syncBrand.shortName.label; preferences">
-
-<!ENTITY e10sEnabled.label                "Enable multi-process &brandShortName;">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/preferences.dtd
+++ /dev/null
@@ -1,29 +0,0 @@
-<!-- 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/. -->
-
-
-<!ENTITY  prefWindow.titleWin     "Options">
-<!ENTITY  prefWindow.title        "Preferences">
-<!-- LOCALIZATION NOTE (prefWindow.titleGNOME): This is not used for in-content preferences -->
-<!ENTITY  prefWindow.titleGNOME   "&brandShortName; Preferences">
-<!-- When making changes to prefWindow.styleWin test both Windows Classic and
-     Luna since widget heights are different based on the OS theme -->
-<!ENTITY  prefWinMinSize.styleWin2      "width: 42em; min-height: 37.5em;">
-<!ENTITY  prefWinMinSize.styleMac       "width: 47em; min-height: 40em;">
-<!ENTITY  prefWinMinSize.styleGNOME     "width: 45.5em; min-height: 40.5em;">
-
-<!ENTITY  paneGeneral.title       "General">
-<!ENTITY  paneTabs.title          "Tabs">
-<!ENTITY  paneSearch.title        "Search">
-<!ENTITY  paneContent.title       "Content">
-<!ENTITY  paneApplications.title  "Applications">
-<!ENTITY  panePrivacy.title       "Privacy">
-<!ENTITY  paneContainers.title    "Container Tabs">
-<!ENTITY  paneSecurity.title      "Security">
-<!ENTITY  paneAdvanced.title      "Advanced">
-
-<!-- LOCALIZATION NOTE (paneSync.title): This should match syncBrand.shortName.label in ../syncBrand.dtd -->
-<!ENTITY  paneSync.title          "Sync">
-
-<!ENTITY  helpButton.label        "Help">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/preferences.properties
+++ /dev/null
@@ -1,259 +0,0 @@
-# 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/.
-
-#### Security
-
-# LOCALIZATION NOTE: phishBefore uses %S to represent the name of the provider
-#                    whose privacy policy must be accepted (for enabling
-#                    check-every-page-as-I-load-it phishing protection).
-phishBeforeText=Selecting this option will send the address of web pages you are viewing to %S. To continue, please review and accept the following terms of service.
-
-#### Fonts
-
-labelDefaultFont=Default (%S)
-
-veryLargeMinimumFontTitle=Large minimum font size
-veryLargeMinimumFontWarning=You have selected a very large minimum font size (more than 24 pixels). This may make it difficult or impossible to use some important configuration pages like this one.
-acceptVeryLargeMinimumFont=Keep my changes anyway
-
-#### Permissions Manager
-
-trackingprotectionpermissionstext2=You have disabled Tracking Protection on these websites.
-trackingprotectionpermissionstitle=Exceptions - Tracking Protection
-cookiepermissionstext=You can specify which websites are always or never allowed to use cookies.  Type the exact address of the site you want to manage and then click Block, Allow for Session, or Allow.
-cookiepermissionstitle=Exceptions - Cookies
-addonspermissionstext=You can specify which websites are allowed to install add-ons. Type the exact address of the site you want to allow and then click Allow.
-addons_permissions_title2=Allowed Websites - Add-ons Installation
-popuppermissionstext=You can specify which websites are allowed to open pop-up windows. Type the exact address of the site you want to allow and then click Allow.
-popuppermissionstitle2=Allowed Websites - Pop-ups
-notificationspermissionstext4=Control which websites are always or never allowed to send you notifications. If you remove a site, it will need to request permission again.
-notificationspermissionstitle=Notification Permissions
-invalidURI=Please enter a valid hostname
-invalidURITitle=Invalid Hostname Entered
-savedLoginsExceptions_title=Exceptions - Saved Logins
-savedLoginsExceptions_desc2=Logins for the following websites will not be saved:
-
-#### Block List Manager
-
-blockliststext=You can choose which list Firefox will use to block Web elements that may track your browsing activity.
-blockliststitle=Block Lists
-# LOCALIZATION NOTE (mozNameTemplate): This template constructs the name of the
-# block list in the block lists dialog. It combines the list name and
-# description.
-#   e.g. mozNameTemplate : "Standard (Recommended). This list does a pretty good job."
-#   %1$S = list name (fooName), %2$S = list descriptive text (fooDesc)
-mozNameTemplate=%1$S %2$S
-# LOCALIZATION NOTE (mozstdName, etc.): These labels appear in the tracking
-# protection block lists dialog, mozNameTemplate is used to create the final
-# string. Note that in the future these two strings (name, desc) could be
-# displayed on two different lines.
-mozstdName=Disconnect.me basic protection (Recommended).
-mozstdDesc=Allows some trackers so websites function properly.
-mozfullName=Disconnect.me strict protection.
-mozfullDesc2=Blocks known trackers. Some websites may not function properly.
-# LOCALIZATION NOTE (blocklistChangeRequiresRestart): %S = brandShortName
-blocklistChangeRequiresRestart=%S must restart to change block lists.
-
-#### Master Password
-
-pw_change2empty_in_fips_mode=You are currently in FIPS mode. FIPS requires a non-empty Master Password.
-pw_change_failed_title=Password Change Failed
-
-#### Fonts
-
-# LOCALIZATION NOTE: Next two strings are for language name representations with
-#   and without the region.
-#   e.g. languageRegionCodeFormat : "French/Canada  [fr-ca]" languageCodeFormat : "French  [fr]"
-#   %1$S = language name, %2$S = region name, %3$S = language-region code
-languageRegionCodeFormat=%1$S/%2$S  [%3$S]
-#   %1$S = language name, %2$S = language-region code
-languageCodeFormat=%1$S  [%2$S]
-
-#### Downloads
-
-desktopFolderName=Desktop
-downloadsFolderName=Downloads
-chooseDownloadFolderTitle=Choose Download Folder:
-
-#### Applications
-
-fileEnding=%S file
-saveFile=Save File
-
-# LOCALIZATION NOTE (useApp, useDefault): %S = Application name
-useApp=Use %S
-useDefault=Use %S (default)
-
-useOtherApp=Use other…
-fpTitleChooseApp=Select Helper Application
-manageApp=Application Details…
-webFeed=Web Feed
-videoPodcastFeed=Video Podcast
-audioPodcastFeed=Podcast
-alwaysAsk=Always ask
-portableDocumentFormat=Portable Document Format (PDF)
-
-# LOCALIZATION NOTE (usePluginIn):
-# %1$S = plugin name (for example "QuickTime Plugin-in 7.2")
-# %2$S = brandShortName from brand.properties (for example "Minefield")
-usePluginIn=Use %S (in %S)
-
-# LOCALIZATION NOTE (previewInApp, addLiveBookmarksInApp): %S = brandShortName
-previewInApp=Preview in %S
-addLiveBookmarksInApp=Add Live Bookmarks in %S
-
-# LOCALIZATION NOTE (typeDescriptionWithType):
-# %1$S = type description (for example "Portable Document Format")
-# %2$S = type (for example "application/pdf")
-typeDescriptionWithType=%S (%S)
-
-
-#### Cookie Viewer
-
-hostColon=Host:
-domainColon=Domain:
-forSecureOnly=Encrypted connections only
-forAnyConnection=Any type of connection
-expireAtEndOfSession=At end of session
-can=Allow
-canAccessFirstParty=Allow first party only
-canSession=Allow for Session
-cannot=Block
-noCookieSelected=<no cookie selected>
-cookiesAll=The following cookies are stored on your computer:
-cookiesFiltered=The following cookies match your search:
-
-# LOCALIZATION NOTE (removeAllCookies, removeAllShownCookies):
-# removeAllCookies and removeAllShownCookies are both used on the same one button,
-# never displayed together and can share the same accesskey.
-# When only partial cookies are shown as a result of keyword search,
-# removeAllShownCookies is displayed as button label.
-# removeAllCookies is displayed when no keyword search and all cookies are shown.
-removeAllCookies.label=Remove All
-removeAllCookies.accesskey=A
-removeAllShownCookies.label=Remove All Shown
-removeAllShownCookies.accesskey=A
-
-# LOCALIZATION NOTE (removeSelectedCookies):
-# Semicolon-separated list of plural forms. See:
-# http://developer.mozilla.org/en/docs/Localization_and_Plurals
-# If you need to display the number of selected elements in your language,
-# you can use #1 in your localization as a placeholder for the number.
-# For example this is the English string with numbers:
-# removeSelectedCookied=Remove #1 Selected;Remove #1 Selected
-removeSelectedCookies.label=Remove Selected;Remove Selected
-removeSelectedCookies.accesskey=R
-
-defaultUserContextLabel=None
-
-#### Offline apps
-offlineAppsList.height=7em
-offlineAppRemoveTitle=Remove offline website data
-offlineAppRemovePrompt=After removing this data, %S will not be available offline.  Are you sure you want to remove this offline website?
-offlineAppRemoveConfirm=Remove offline data
-
-# LOCALIZATION NOTE: The next string is for the disk usage of the
-# offline application
-#   e.g. offlineAppUsage : "50.23 MB"
-#   %1$S = size (in bytes or megabytes, ...)
-#   %2$S = unit of measure (bytes, KB, MB, ...)
-offlineAppUsage=%1$S %2$S
-
-offlinepermissionstext=The following websites are not allowed to store data for offline use:
-offlinepermissionstitle=Offline Data
-
-####Preferences::Advanced::Network
-#LOCALIZATION NOTE: The next string is for the disk usage of the web content cache.
-#   e.g., "Your web content cache is currently using 200 MB"
-#   %1$S = size
-#   %2$S = unit (MB, KB, etc.)
-actualDiskCacheSize=Your web content cache is currently using %1$S %2$S of disk space
-actualDiskCacheSizeCalculated=Calculating web content cache size…
-
-####Preferences::Advanced::Network
-#LOCALIZATION NOTE: The next string is for the disk usage of the application cache.
-#   e.g., "Your application cache is currently using 200 MB"
-#   %1$S = size
-#   %2$S = unit (MB, KB, etc.)
-actualAppCacheSize=Your application cache is currently using %1$S %2$S of disk space
-
-####Preferences::Advanced::Network
-#LOCALIZATION NOTE: The next string is for the total usage of site data.
-#   e.g., "The total usage is currently using 200 MB"
-#   %1$S = size
-#   %2$S = unit (MB, KB, etc.)
-totalSiteDataSize=Your stored site data is currently using %1$S %2$S of disk space
-loadingSiteDataSize=Calculating site data size…
-clearSiteDataPromptTitle=Clear all cookies and site data
-clearSiteDataPromptText=Selecting ‘Clear Now’ will clear all cookies and site data stored by Firefox. This may sign you out of websites and remove offline web content.
-clearSiteDataNow=Clear Now
-persistent=Persistent
-siteUsage=%1$S %2$S
-acceptRemove=Remove
-# LOCALIZATION NOTE (siteDataSettings2.description): %S = brandShortName
-siteDataSettings2.description=The following websites store site data on your computer. %S keeps data from websites with persistent storage until you delete it, and deletes data from websites with non-persistent storage as space is needed.
-# LOCALIZATION NOTE (removeAllSiteData, removeAllSiteDataShown):
-# removeAllSiteData and removeAllSiteDataShown are both used on the same one button,
-# never displayed together and can share the same accesskey.
-# When only partial sites are shown as a result of keyword search,
-# removeAllShown is displayed as button label.
-# removeAll is displayed when no keyword search and all sites are shown.
-removeAllSiteData.label=Remove All
-removeAllSiteData.accesskey=e
-removeAllSiteDataShown.label=Remove All Shown
-removeAllSiteDataShown.accesskey=e
-spaceAlert.learnMoreButton.label=Learn More
-spaceAlert.learnMoreButton.accesskey=L
-spaceAlert.over5GB.prefButton.label=Open Preferences
-spaceAlert.over5GB.prefButton.accesskey=O
-# LOCALIZATION NOTE (spaceAlert.over5GB.prefButtonWin.label): On Windows Preferences is called Options
-spaceAlert.over5GB.prefButtonWin.label=Open Options
-spaceAlert.over5GB.prefButtonWin.accesskey=O
-# LOCALIZATION NOTE (spaceAlert.over5GB.message): %S = brandShortName
-spaceAlert.over5GB.message=%S is running out of disk space. Website contents may not display properly. You can clear stored site data in Preferences > Advanced > Site Data.
-# LOCALIZATION NOTE (spaceAlert.over5GB.messageWin):
-# - On Windows Preferences is called Options
-# - %S = brandShortName
-spaceAlert.over5GB.messageWin=%S is running out of disk space. Website contents may not display properly. You can clear stored site data in Options > Advanced > Site Data.
-spaceAlert.under5GB.okButton.label=OK, Got it
-spaceAlert.under5GB.okButton.accesskey=K
-# LOCALIZATION NOTE (spaceAlert.under5GB.message): %S = brandShortName
-spaceAlert.under5GB.message=%S is running out of disk space. Website contents may not display properly. Visit “Learn More” to optimize your disk usage for better browsing experience.
-
-# LOCALIZATION NOTE (featureEnableRequiresRestart, featureDisableRequiresRestart, restartTitle): %S = brandShortName
-featureEnableRequiresRestart=%S must restart to enable this feature.
-featureDisableRequiresRestart=%S must restart to disable this feature.
-shouldRestartTitle=Restart %S
-okToRestartButton=Restart %S now
-revertNoRestartButton=Revert
-
-restartNow=Restart Now
-restartLater=Restart Later
-
-disableContainersAlertTitle=Close All Container Tabs?
-
-# LOCALIZATION NOTE (disableContainersMsg): Semi-colon list of plural forms.
-# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
-# #S is the number of container tabs
-disableContainersMsg=If you disable Container Tabs now, #S container tab will be closed. Are you sure you want to disable Container Tabs?;If you disable Container Tabs now, #S container tabs will be closed. Are you sure you want to disable Container Tabs?
-
-# LOCALIZATION NOTE (disableContainersOkButton): Semi-colon list of plural forms.
-# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
-# #S is the number of container tabs
-disableContainersOkButton=Close #S Container Tab;Close #S Container Tabs
-
-disableContainersButton2=Keep enabled
-
-removeContainerAlertTitle=Remove This Container?
-
-# LOCALIZATION NOTE (removeContainerMsg): Semi-colon list of plural forms.
-# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
-# #S is the number of container tabs
-removeContainerMsg=If you remove this Container now, #S container tab will be closed. Are you sure you want to remove this Container?;If you remove this Container now, #S container tabs will be closed. Are you sure you want to remove this Container?
-
-removeContainerOkButton=Remove this Container
-removeContainerButton2=Don’t remove this Container
-
-# LOCALIZATION NOTE %S is the default value of the `dom.ipc.processCount` pref.
-defaultContentProcessCount=%S (default)
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/privacy.dtd
+++ /dev/null
@@ -1,113 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY  trackingProtectionHeader.label       "Use Tracking Protection">
-<!ENTITY  trackingProtectionAlways.label       "Always">
-<!ENTITY  trackingProtectionAlways.accesskey   "y">
-<!ENTITY  trackingProtectionPrivate.label      "Only in private windows">
-<!ENTITY  trackingProtectionPrivate.accesskey  "l">
-<!ENTITY  trackingProtectionNever.label        "Never">
-<!ENTITY  trackingProtectionNever.accesskey    "n">
-<!ENTITY  trackingProtectionLearnMore.label    "Learn more">
-<!ENTITY  trackingProtectionExceptions.label   "Exceptions…">
-<!ENTITY  trackingProtectionExceptions.accesskey "x">
-
-<!ENTITY tracking.label                 "Tracking">
-<!ENTITY trackingProtectionPBM5.label         "Use Tracking Protection in Private Windows">
-<!ENTITY trackingProtectionPBM5.accesskey     "v">
-<!ENTITY trackingProtectionPBMLearnMore.label "Learn more">
-<!ENTITY changeBlockList.label          "Change Block List">
-<!ENTITY changeBlockList.accesskey      "C">
-
-<!-- LOCALIZATION NOTE (doNotTrack.pre.label): include a trailing space as needed -->
-<!-- LOCALIZATION NOTE (doNotTrack.post.label): include a starting space as needed -->
-<!ENTITY  doNotTrack.pre.label          "You can also ">
-<!ENTITY  doNotTrack.settings.label     "manage your Do Not Track settings">
-<!ENTITY  doNotTrack.post.label         ".">
-
-<!ENTITY  history.label                 "History">
-
-<!ENTITY  locationBar.label             "Location Bar">
-
-<!ENTITY  locbar.suggest.label          "When using the location bar, suggest:">
-<!ENTITY  locbar.history.label          "History">
-<!ENTITY  locbar.history.accesskey      "H">
-<!ENTITY  locbar.bookmarks.label        "Bookmarks">
-<!ENTITY  locbar.bookmarks.accesskey    "k">
-<!ENTITY  locbar.openpage.label         "Open tabs">
-<!ENTITY  locbar.openpage.accesskey     "O">
-<!ENTITY  locbar.searches.label         "Related searches from the default search engine">
-<!ENTITY  locbar.searches.accesskey     "d">
-
-<!ENTITY  suggestionSettings.label      "Change preferences for search engine suggestions…">
-<!ENTITY  suggestionSettings.accesskey  "g">
-
-<!ENTITY  acceptCookies2.label          "Accept cookies from websites">
-<!ENTITY  acceptCookies2.accesskey      "A">
-
-<!ENTITY  acceptThirdParty.pre.label      "Accept third-party cookies:">
-<!ENTITY  acceptThirdParty.pre.accesskey  "y">
-<!ENTITY  acceptThirdParty.always.label   "Always">
-<!ENTITY  acceptThirdParty.never.label    "Never">
-<!ENTITY  acceptThirdParty.visited.label  "From visited">
-
-<!ENTITY  keepUntil.label               "Keep until:">
-<!ENTITY  keepUntil.accesskey           "u">
-
-<!ENTITY  expire.label                  "they expire">
-<!ENTITY  close.label                   "I close &brandShortName;">
-
-<!ENTITY  cookieExceptions.label        "Exceptions…">
-<!ENTITY  cookieExceptions.accesskey    "E">
-
-<!ENTITY  showCookies.label             "Show Cookies…">
-<!ENTITY  showCookies.accesskey         "S">
-
-<!ENTITY  historyHeader.pre.label          "&brandShortName; will:">
-<!ENTITY  historyHeader.pre.accesskey      "w">
-<!ENTITY  historyHeader.remember.label     "Remember history">
-<!ENTITY  historyHeader.dontremember.label "Never remember history">
-<!ENTITY  historyHeader.custom.label       "Use custom settings for history">
-<!ENTITY  historyHeader.post.label         "">
-
-<!ENTITY  rememberDescription.label      "&brandShortName; will remember your browsing, download, form and search history, and keep cookies from websites you visit.">
-
-<!-- LOCALIZATION NOTE (rememberActions.pre.label): include a trailing space as needed -->
-<!-- LOCALIZATION NOTE (rememberActions.middle.label): include a starting and trailing space as needed -->
-<!-- LOCALIZATION NOTE (rememberActions.post.label): include a starting space as needed -->
-<!ENTITY  rememberActions.pre.label           "You may want to ">
-<!ENTITY  rememberActions.clearHistory.label  "clear your recent history">
-<!ENTITY  rememberActions.middle.label        ", or ">
-<!ENTITY  rememberActions.removeCookies.label "remove individual cookies">
-<!ENTITY  rememberActions.post.label          ".">
-
-<!ENTITY  dontrememberDescription.label  "&brandShortName; will use the same settings as private browsing, and will not remember any history as you browse the Web.">
-
-<!-- LOCALIZATION NOTE (dontrememberActions.pre.label): include a trailing space as needed -->
-<!-- LOCALIZATION NOTE (dontrememberActions.post.label): include a starting space as needed -->
-<!ENTITY  dontrememberActions.pre.label          "You may also want to ">
-<!ENTITY  dontrememberActions.clearHistory.label "clear all current history">
-<!ENTITY  dontrememberActions.post.label         ".">
-
-<!ENTITY  privateBrowsingPermanent2.label "Always use private browsing mode">
-<!ENTITY  privateBrowsingPermanent2.accesskey "p">
-
-<!ENTITY  rememberHistory2.label      "Remember my browsing and download history">
-<!ENTITY  rememberHistory2.accesskey  "b">
-
-<!ENTITY  rememberSearchForm.label       "Remember search and form history">
-<!ENTITY  rememberSearchForm.accesskey   "f">
-
-<!ENTITY  clearOnClose.label             "Clear history when &brandShortName; closes">
-<!ENTITY  clearOnClose.accesskey         "r">
-
-<!ENTITY  clearOnCloseSettings.label     "Settings…">
-<!ENTITY  clearOnCloseSettings.accesskey "t">
-
-<!ENTITY  browserContainersHeader.label         "Container Tabs">
-<!ENTITY  browserContainersLearnMore.label      "Learn more">
-<!ENTITY  browserContainersEnabled.label        "Enable Container Tabs">
-<!ENTITY  browserContainersEnabled.accesskey    "n">
-<!ENTITY  browserContainersSettings.label        "Settings…">
-<!ENTITY  browserContainersSettings.accesskey    "i">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/search.dtd
+++ /dev/null
@@ -1,29 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY defaultSearchEngine.label             "Default Search Engine">
-
-<!ENTITY chooseYourDefaultSearchEngine.label   "Choose your default search engine. &brandShortName; uses it in the location bar, search bar, and start page.">
-
-<!ENTITY provideSearchSuggestions.label        "Provide search suggestions">
-<!ENTITY provideSearchSuggestions.accesskey    "s">
-
-<!ENTITY showURLBarSuggestions.label           "Show search suggestions in location bar results">
-<!ENTITY showURLBarSuggestions.accesskey       "l">
-<!ENTITY urlBarSuggestionsPermanentPB.label    "Search suggestions will not be shown in location bar results because you have configured &brandShortName; to never remember history.">
-
-<!ENTITY oneClickSearchEngines.label           "One-click Search Engines">
-
-<!ENTITY chooseWhichOneToDisplay.label         "The search bar lets you search alternate engines directly. Choose which ones to display.">
-
-<!ENTITY engineNameColumn.label                "Search Engine">
-<!ENTITY engineKeywordColumn.label             "Keyword">
-
-<!ENTITY restoreDefaultSearchEngines.label     "Restore Default Search Engines">
-<!ENTITY restoreDefaultSearchEngines.accesskey "d">
-
-<!ENTITY removeEngine.label                    "Remove">
-<!ENTITY removeEngine.accesskey                "r">
-
-<!ENTITY addMoreSearchEngines.label            "Add more search engines…">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/security.dtd
+++ /dev/null
@@ -1,40 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY  general.label                 "General">
-
-<!ENTITY  warnOnAddonInstall2.label       "Warn you when websites try to install add-ons">
-<!ENTITY  warnOnAddonInstall2.accesskey   "W">
-
-<!-- LOCALIZATION NOTE (enableSafeBrowsing.label, blockDownloads.label, blockUncommonUnwanted.label):
-  It is important that wording follows the guidelines outlined on this page:
-  https://developers.google.com/safe-browsing/developers_guide_v2#AcceptableUsage
--->
-<!ENTITY  enableSafeBrowsing.label        "Block dangerous and deceptive content">
-<!ENTITY  enableSafeBrowsing.accesskey    "B">
-
-<!ENTITY  blockDownloads.label            "Block dangerous downloads">
-<!ENTITY  blockDownloads.accesskey        "D">
-
-<!ENTITY  blockUncommonAndUnwanted.label     "Warn you about unwanted and uncommon software">
-<!ENTITY  blockUncommonAndUnwanted.accesskey "C">
-
-<!ENTITY  addonExceptions.label         "Exceptions…">
-<!ENTITY  addonExceptions.accesskey     "E">
-
-
-<!ENTITY  logins.label                  "Logins">
-
-<!ENTITY  rememberLogins2.label         "Remember logins for websites">
-<!ENTITY  rememberLogins2.accesskey     "R">
-<!ENTITY  passwordExceptions.label      "Exceptions…">
-<!ENTITY  passwordExceptions.accesskey  "x">
-
-<!ENTITY  useMasterPassword.label        "Use a master password">
-<!ENTITY  useMasterPassword.accesskey    "U">
-<!ENTITY  changeMasterPassword.label     "Change Master Password…">
-<!ENTITY  changeMasterPassword.accesskey "M">
-
-<!ENTITY  savedLogins.label              "Saved Logins…">
-<!ENTITY  savedLogins.accesskey          "L">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/sync.dtd
+++ /dev/null
@@ -1,90 +0,0 @@
-<!-- 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/. -->
-
-<!-- The page shown when logged in... -->
-
-<!ENTITY engine.bookmarks.label     "Bookmarks">
-<!ENTITY engine.bookmarks.accesskey "m">
-<!ENTITY engine.tabs.label2         "Open Tabs">
-<!ENTITY engine.tabs.accesskey      "T">
-<!ENTITY engine.history.label       "History">
-<!ENTITY engine.history.accesskey   "r">
-<!ENTITY engine.logins.label        "Logins">
-<!ENTITY engine.logins.accesskey    "L">
-<!ENTITY engine.prefs.label         "Preferences">
-<!ENTITY engine.prefs.accesskey     "S">
-<!ENTITY engine.addons.label        "Add-ons">
-<!ENTITY engine.addons.accesskey    "A">
-<!ENTITY engine.addresses.label     "Addresses">
-<!ENTITY engine.addresses.accesskey "e">
-<!ENTITY engine.creditcards.label   "Credit cards">
-<!ENTITY engine.creditcards.accesskey "C">
-
-<!-- Device Settings -->
-<!ENTITY fxaSyncDeviceName.label       "Device Name">
-<!ENTITY changeSyncDeviceName.label "Change Device Name…">
-<!ENTITY changeSyncDeviceName.accesskey "h">
-<!ENTITY cancelChangeSyncDeviceName.label "Cancel">
-<!ENTITY cancelChangeSyncDeviceName.accesskey "n">
-<!ENTITY saveChangeSyncDeviceName.label "Save">
-<!ENTITY saveChangeSyncDeviceName.accesskey "v">
-
-<!-- Footer stuff -->
-<!ENTITY prefs.tosLink.label        "Terms of Service">
-<!ENTITY fxaPrivacyNotice.link.label "Privacy Notice">
-
-<!-- LOCALIZATION NOTE (signedInUnverified.beforename.label,
-signedInUnverified.aftername.label): these two string are used respectively
-before and after the account email address. Localizers can use one of them, or
-both, to better adapt this sentence to their language.
--->
-<!ENTITY signedInUnverified.beforename.label "">
-<!ENTITY signedInUnverified.aftername.label "is not verified.">
-
-<!-- LOCALIZATION NOTE (signedInLoginFailure.beforename.label,
-signedInLoginFailure.aftername.label): these two string are used respectively
-before and after the account email address. Localizers can use one of them, or
-both, to better adapt this sentence to their language.
--->
-<!ENTITY signedInLoginFailure.beforename.label "Please sign in to reconnect">
-<!ENTITY signedInLoginFailure.aftername.label "">
-
-<!ENTITY notSignedIn.label           "You are not signed in.">
-<!ENTITY signIn.label                "Sign in">
-<!ENTITY signIn.accesskey            "g">
-<!ENTITY profilePicture.tooltip      "Change profile picture">
-<!ENTITY verifiedManage.label        "Manage Account">
-<!ENTITY verifiedManage.accesskey    "o">
-<!ENTITY disconnect.label            "Disconnect…">
-<!ENTITY disconnect.accesskey        "D">
-<!ENTITY verify.label                "Verify Email">
-<!ENTITY verify.accesskey            "V">
-<!ENTITY forget.label                "Forget this Email">
-<!ENTITY forget.accesskey            "F">
-
-<!ENTITY signedOut.caption            "Take Your Web With You">
-<!ENTITY signedOut.description        "Synchronize your bookmarks, history, tabs, passwords, add-ons, and preferences across all your devices.">
-<!ENTITY signedOut.accountBox.title   "Connect with a &syncBrand.fxAccount.label;">
-<!ENTITY signedOut.accountBox.create  "Create Account">
-<!ENTITY signedOut.accountBox.create.accesskey  "C">
-<!ENTITY signedOut.accountBox.signin  "Sign In">
-<!ENTITY signedOut.accountBox.signin.accesskey  "I">
-
-<!ENTITY signedIn.engines.label       "Sync Across All Devices">
-
-<!-- LOCALIZATION NOTE (mobilePromo3.*): the following strings will be used to
-     create a single sentence with active links.
-     The resulting sentence in English is: "Download Firefox for
-     Android or iOS to sync with your mobile device." -->
-
-<!ENTITY mobilePromo3.start            "Download Firefox for ">
-<!-- LOCALIZATION NOTE (mobilePromo3.androidLink): This is a link title that links to https://www.mozilla.org/firefox/android/ -->
-<!ENTITY mobilePromo3.androidLink      "Android">
-
-<!-- LOCALIZATION NOTE (mobilePromo3.iOSBefore): This is text displayed between mobilePromo3.androidLink and mobilePromo3.iosLink -->
-<!ENTITY mobilePromo3.iOSBefore         " or ">
-<!-- LOCALIZATION NOTE (mobilePromo3.iOSLink): This is a link title that links to https://www.mozilla.org/firefox/ios/ -->
-<!ENTITY mobilePromo3.iOSLink          "iOS">
-
-<!ENTITY mobilePromo3.end              " to sync with your mobile device.">
deleted file mode 100644
--- a/browser/locales/en-US/chrome/browser/preferences-old/tabs.dtd
+++ /dev/null
@@ -1,22 +0,0 @@
-<!-- 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/. -->
-
-<!ENTITY ctrlTabRecentlyUsedOrder.label       "Ctrl+Tab cycles through tabs in recently used order">
-<!ENTITY ctrlTabRecentlyUsedOrder.accesskey   "T">
-
-<!ENTITY newWindowsAsTabs.label       "Open new windows in a new tab instead">
-<!ENTITY newWindowsAsTabs.accesskey   "w">
-
-<!ENTITY warnOnCloseMultipleTabs.label      "Warn you when closing multiple tabs">
-<!ENTITY warnOnCloseMultipleTabs.accesskey  "m">
-
-<!ENTITY warnOnOpenManyTabs.label       "Warn you when opening multiple tabs might slow down &brandShortName;">
-<!ENTITY warnOnOpenManyTabs.accesskey   "d">
-
-<!ENTITY switchLinksToNewTabs.label        "When you open a link in a new tab, switch to it immediately">
-<!ENTITY switchLinksToNewTabs.accesskey    "h">
-
-<!ENTITY showTabsInTaskbar.label          "Show tab previews in the Windows taskbar">
-<!ENTITY showTabsInTaskbar.accesskey      "k">
-<!ENTITY tabsGroup.label          "Tabs">
--- a/browser/locales/jar.mn
+++ b/browser/locales/jar.mn
@@ -57,53 +57,40 @@
     locale/browser/places/moveBookmarks.dtd        (%chrome/browser/places/moveBookmarks.dtd)
     locale/browser/safebrowsing/phishing-afterload-warning-message.dtd (%chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd)
     locale/browser/safebrowsing/report-phishing.dtd                    (%chrome/browser/safebrowsing/report-phishing.dtd)
     locale/browser/safebrowsing/safebrowsing.properties   (%chrome/browser/safebrowsing/safebrowsing.properties)
     locale/browser/feeds/subscribe.dtd              (%chrome/browser/feeds/subscribe.dtd)
     locale/browser/feeds/subscribe.properties       (%chrome/browser/feeds/subscribe.properties)
     locale/browser/migration/migration.dtd         (%chrome/browser/migration/migration.dtd)
     locale/browser/migration/migration.properties  (%chrome/browser/migration/migration.properties)
-    locale/browser/preferences-old/advanced.dtd       (%chrome/browser/preferences-old/advanced.dtd)
     locale/browser/preferences/advanced.dtd           (%chrome/browser/preferences/advanced.dtd)
     locale/browser/preferences/applicationManager.dtd     (%chrome/browser/preferences/applicationManager.dtd)
     locale/browser/preferences/applicationManager.properties     (%chrome/browser/preferences/applicationManager.properties)
-    locale/browser/preferences-old/applications.dtd   (%chrome/browser/preferences-old/applications.dtd)
     locale/browser/preferences/applications.dtd       (%chrome/browser/preferences/applications.dtd)
     locale/browser/preferences/blocklists.dtd         (%chrome/browser/preferences/blocklists.dtd)
     locale/browser/preferences/colors.dtd             (%chrome/browser/preferences/colors.dtd)
     locale/browser/preferences/connection.dtd         (%chrome/browser/preferences/connection.dtd)
-    locale/browser/preferences-old/containers.dtd     (%chrome/browser/preferences-old/containers.dtd)
     locale/browser/preferences/containers.dtd         (%chrome/browser/preferences/containers.dtd)
-    locale/browser/preferences-old/containers.properties (%chrome/browser/preferences-old/containers.properties)
     locale/browser/preferences/containers.properties     (%chrome/browser/preferences/containers.properties)
-    locale/browser/preferences-old/content.dtd        (%chrome/browser/preferences-old/content.dtd)
     locale/browser/preferences/content.dtd            (%chrome/browser/preferences/content.dtd)
     locale/browser/preferences/cookies.dtd            (%chrome/browser/preferences/cookies.dtd)
     locale/browser/preferences/donottrack.dtd         (%chrome/browser/preferences/donottrack.dtd)
     locale/browser/preferences/fonts.dtd              (%chrome/browser/preferences/fonts.dtd)
     locale/browser/preferences/languages.dtd          (%chrome/browser/preferences/languages.dtd)
-    locale/browser/preferences-old/main.dtd           (%chrome/browser/preferences-old/main.dtd)
     locale/browser/preferences/main.dtd               (%chrome/browser/preferences/main.dtd)
     locale/browser/preferences/permissions.dtd        (%chrome/browser/preferences/permissions.dtd)
-    locale/browser/preferences-old/preferences.dtd    (%chrome/browser/preferences-old/preferences.dtd)
     locale/browser/preferences/preferences.dtd        (%chrome/browser/preferences/preferences.dtd)
-    locale/browser/preferences-old/preferences.properties (%chrome/browser/preferences-old/preferences.properties)
     locale/browser/preferences/preferences.properties     (%chrome/browser/preferences/preferences.properties)
-    locale/browser/preferences-old/privacy.dtd        (%chrome/browser/preferences-old/privacy.dtd)
     locale/browser/preferences/privacy.dtd            (%chrome/browser/preferences/privacy.dtd)
-    locale/browser/preferences-old/search.dtd         (%chrome/browser/preferences-old/search.dtd)
     locale/browser/preferences/search.dtd             (%chrome/browser/preferences/search.dtd)
-    locale/browser/preferences-old/security.dtd       (%chrome/browser/preferences-old/security.dtd)
     locale/browser/preferences/security.dtd           (%chrome/browser/preferences/security.dtd)
     locale/browser/preferences/selectBookmark.dtd     (%chrome/browser/preferences/selectBookmark.dtd)
     locale/browser/preferences/siteDataSettings.dtd     (%chrome/browser/preferences/siteDataSettings.dtd)
-    locale/browser/preferences-old/sync.dtd           (%chrome/browser/preferences-old/sync.dtd)
     locale/browser/preferences/sync.dtd               (%chrome/browser/preferences/sync.dtd)
-    locale/browser/preferences-old/tabs.dtd           (%chrome/browser/preferences-old/tabs.dtd)
     locale/browser/preferences/tabs.dtd               (%chrome/browser/preferences/tabs.dtd)
     locale/browser/preferences/translation.dtd        (%chrome/browser/preferences/translation.dtd)
     locale/browser/syncBrand.dtd                (%chrome/browser/syncBrand.dtd)
     locale/browser/syncSetup.properties         (%chrome/browser/syncSetup.properties)
 #if BUILD_FASTER
     locale/browser/searchplugins/               (searchplugins/*.xml)
     locale/browser/searchplugins/list.json      (search/list.json)
 #else
--- a/browser/themes/linux/jar.mn
+++ b/browser/themes/linux/jar.mn
@@ -52,19 +52,17 @@ browser.jar:
   skin/classic/browser/places/query.png               (places/query.png)
   skin/classic/browser/places/tag.png                 (places/tag.png)
   skin/classic/browser/places/toolbarDropMarker.png   (places/toolbarDropMarker.png)
   skin/classic/browser/places/unsortedBookmarks.png   (places/unsortedBookmarks.png)
   skin/classic/browser/places/downloads.png           (places/downloads.png)
   skin/classic/browser/preferences/alwaysAsk.png      (preferences/alwaysAsk.png)
   skin/classic/browser/preferences/preferences.css    (preferences/preferences.css)
 * skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css)
-* skin/classic/browser/preferences/in-content-new/preferences.css     (preferences/in-content-new/preferences.css)
 * skin/classic/browser/preferences/in-content/dialog.css      (preferences/in-content/dialog.css)
-* skin/classic/browser/preferences/in-content-new/dialog.css          (preferences/in-content-new/dialog.css)
   skin/classic/browser/preferences/applications.css   (preferences/applications.css)
   skin/classic/browser/tabbrowser/tabDragIndicator.png      (tabbrowser/tabDragIndicator.png)
 
   skin/classic/browser/sync-desktopIcon.svg  (../shared/sync-desktopIcon.svg)
   skin/classic/browser/sync-mobileIcon.svg  (../shared/sync-mobileIcon.svg)
 #ifdef E10S_TESTING_ONLY
   skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png)
 #endif
deleted file mode 100644
--- a/browser/themes/linux/preferences/in-content-new/dialog.css
+++ /dev/null
@@ -1,19 +0,0 @@
-/* - 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/. */
-
-%include ../../../shared/incontentprefs/dialog.inc.css
-
-label:not(.menu-text),
-textbox,
-description,
-.tab-text,
-caption > label {
-  font-size: 1.2em;
-}
-
-/* Create a separate rule to unset these styles on .tree-input instead of
-   using :not(.tree-input) so the selector specifity doesn't change. */
-textbox.tree-input {
-  font-size: unset;
-}
deleted file mode 100644
--- a/browser/themes/linux/preferences/in-content-new/preferences.css
+++ /dev/null
@@ -1,36 +0,0 @@
-/* - 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/. */
-
-%include ../../../shared/incontentprefs/preferences.inc.css
-
-.treecol-sortdirection {
-  /* override the Linux only toolkit rule */
-  -moz-appearance: none;
-}
-
-.actionsMenu {
-  font-family: "Clear Sans", sans-serif;
-  font-size: 1.25rem;
-  line-height: 22px;
-}
-
-.actionsMenu > .menulist-label-box > .menulist-icon {
-  margin-top: 1px;
-  margin-inline-start: 1px;
-  margin-inline-end: 6px;
-}
-
-.actionsMenu > .menulist-label-box > .menulist-label {
-  margin-top: 2px !important;
-}
-
-menulist.actionsMenu > .menulist-dropmarker {
-  margin-top: 11px;
-  margin-bottom: 11px;
-}
-
-textbox + button,
-filefield + button {
-  margin-inline-start: -4px;
-}
--- a/browser/themes/linux/preferences/in-content/dialog.css
+++ b/browser/themes/linux/preferences/in-content/dialog.css
@@ -1,13 +1,13 @@
 /* - 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/. */
 
-%include ../../../shared/incontentprefs-old/dialog.inc.css
+%include ../../../shared/incontentprefs/dialog.inc.css
 
 label:not(.menu-text),
 textbox,
 description,
 .tab-text,
 caption > label {
   font-size: 1.2em;
 }
--- a/browser/themes/linux/preferences/in-content/preferences.css
+++ b/browser/themes/linux/preferences/in-content/preferences.css
@@ -1,13 +1,13 @@
 /* - 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/. */
 
-%include ../../../shared/incontentprefs-old/preferences.inc.css
+%include ../../../shared/incontentprefs/preferences.inc.css
 
 .treecol-sortdirection {
   /* override the Linux only toolkit rule */
   -moz-appearance: none;
 }
 
 .actionsMenu {
   font-family: "Clear Sans", sans-serif;
@@ -20,29 +20,17 @@
   margin-inline-start: 1px;
   margin-inline-end: 6px;
 }
 
 .actionsMenu > .menulist-label-box > .menulist-label {
   margin-top: 2px !important;
 }
 
-#fxaProfileImage {
-  -moz-user-focus: normal;
-}
-
 menulist.actionsMenu > .menulist-dropmarker {
   margin-top: 11px;
   margin-bottom: 11px;
 }
 
 textbox + button,
 filefield + button {
   margin-inline-start: -4px;
 }
-
-/**
- * Dialog
- */
-
-#dialogTitle {
-  font-size: 1em;
-}
--- a/browser/themes/osx/jar.mn
+++ b/browser/themes/osx/jar.mn
@@ -70,19 +70,17 @@ browser.jar:
   skin/classic/browser/places/tag@2x.png                    (places/tag@2x.png)
   skin/classic/browser/places/downloads.png                 (places/downloads.png)
   skin/classic/browser/places/livemark-item.png             (places/livemark-item.png)
   skin/classic/browser/preferences/alwaysAsk.png            (preferences/alwaysAsk.png)
   skin/classic/browser/preferences/application.png          (preferences/application.png)
   skin/classic/browser/preferences/saveFile.png             (preferences/saveFile.png)
 * skin/classic/browser/preferences/preferences.css          (preferences/preferences.css)
 * skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css)
-* skin/classic/browser/preferences/in-content-new/preferences.css     (preferences/in-content-new/preferences.css)
 * skin/classic/browser/preferences/in-content/dialog.css      (preferences/in-content/dialog.css)
-* skin/classic/browser/preferences/in-content-new/dialog.css          (preferences/in-content-new/dialog.css)
   skin/classic/browser/preferences/applications.css         (preferences/applications.css)
   skin/classic/browser/tabbrowser/tabDragIndicator.png                   (tabbrowser/tabDragIndicator.png)
   skin/classic/browser/tabbrowser/tabDragIndicator@2x.png                (tabbrowser/tabDragIndicator@2x.png)
   skin/classic/browser/sync-desktopIcon.svg  (../shared/sync-desktopIcon.svg)
   skin/classic/browser/sync-mobileIcon.svg  (../shared/sync-mobileIcon.svg)
   skin/classic/browser/yosemite/menuPanel-customize.png                (menuPanel-customize-yosemite.png)
   skin/classic/browser/yosemite/menuPanel-customize@2x.png             (menuPanel-customize-yosemite@2x.png)
   skin/classic/browser/yosemite/menuPanel-exit.png                     (menuPanel-exit-yosemite.png)
deleted file mode 100644
--- a/browser/themes/osx/preferences/in-content-new/dialog.css
+++ /dev/null
@@ -1,36 +0,0 @@
-/* - 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/. */
-
-%include ../../../shared/incontentprefs/dialog.inc.css
-
-prefwindow,
-.windowDialog {
-  font: message-box !important;
-}
-
-label:not(.menu-text),
-textbox,
-description,
-.tab-text,
-caption > label {
-  font-size: 1.3em;
-}
-
-/* Create a separate rule to unset these styles on .tree-input instead of
-   using :not(.tree-input) so the selector specifity doesn't change. */
-textbox.tree-input {
-  font-size: unset;
-}
-
-button {
-  font-size: 1em;
-}
-
-caption {
-  font: message-box;
-}
-
-.prefWindow-dlgbuttons {
-  margin: 0;
-}
deleted file mode 100644
--- a/browser/themes/osx/preferences/in-content-new/preferences.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* - 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/. */
-
-%include ../../../shared/incontentprefs/preferences.inc.css
-
-.actionsMenu > .menulist-label-box > .menulist-icon {
-  margin-top: 2px;
-  margin-inline-start: 2px;
-  margin-inline-end: 8px !important;
-}
-
-#downloadFolder > .fileFieldContentBox {
-  padding-inline-start: 3px;
-}
-
-filefield + button {
-  margin-inline-start: -8px;
-  margin-top: 4px;
-  margin-bottom: 4px;
-}
-
-#popupPolicyRow {
-  /* Override styles from
-     browser/themes/osx/preferences/preferences.css */
-  margin-bottom: 0 !important;
-  padding-bottom: 0 !important;
-  border-bottom: none;
-}
--- a/browser/themes/osx/preferences/in-content/dialog.css
+++ b/browser/themes/osx/preferences/in-content/dialog.css
@@ -1,13 +1,13 @@
 /* - 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/. */
 
-%include ../../../shared/incontentprefs-old/dialog.inc.css
+%include ../../../shared/incontentprefs/dialog.inc.css
 
 prefwindow,
 .windowDialog {
   font: message-box !important;
 }
 
 label:not(.menu-text),
 textbox,
--- a/browser/themes/osx/preferences/in-content/preferences.css
+++ b/browser/themes/osx/preferences/in-content/preferences.css
@@ -1,53 +1,29 @@
 /* - 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/. */
 
-%include ../../../shared/incontentprefs-old/preferences.inc.css
-
-prefpane .groupbox-title {
-  background: none;
-  margin-bottom: 0;
-}
+%include ../../../shared/incontentprefs/preferences.inc.css
 
 .actionsMenu > .menulist-label-box > .menulist-icon {
   margin-top: 2px;
   margin-inline-start: 2px;
   margin-inline-end: 8px !important;
 }
 
 #downloadFolder > .fileFieldContentBox {
   padding-inline-start: 3px;
 }
 
-#fxaProfileImage {
-  -moz-user-focus: normal;
-}
-
-textbox + button {
-  margin-inline-start: -4px;
-}
-
 filefield + button {
   margin-inline-start: -8px;
+  margin-top: 4px;
+  margin-bottom: 4px;
 }
 
 #popupPolicyRow {
   /* Override styles from
      browser/themes/osx/preferences/preferences.css */
   margin-bottom: 0 !important;
   padding-bottom: 0 !important;
   border-bottom: none;
 }
-
-#advancedPrefs {
-  margin-right: 0; /*override margin from normal preferences.css */
-  margin-left: 0;
-}
-
-/**
- * Dialog
- */
-
-#dialogTitle {
-  font-size: 1.1em;
-}
deleted file mode 100644
index e0a37a85e976434143dc7123b204c003610ba428..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index bb6bab5e07b551b74c33c85b9a8cb5a1eb8d6ff6..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 40c90b1faef6ec6871fbef599845c7fecfdcdc27..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index af2d5ace59b26324e375af49598d63443ec5ac3a..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 63c006c29baf1ec44c0ae6b37196f7356d510950..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 283b091dfc385cfff5138c2aa3f95b11da24e85d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
--- a/browser/themes/shared/incontentprefs-old/containers.css
+++ /dev/null
@@ -1,33 +0,0 @@
-/* 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/. */
-
-%include ../../../components/contextualidentity/content/usercontext.css
-
-.container-header-links {
-  font-size: 1.25rem;
-  margin-block-end: 15px;
-}
-
-[data-identity-icon] {
-  margin: 0;
-  margin-inline-end: 16px;
-}
-
-#containersView {
-  border: 0 none;
-  background: transparent;
-}
-
-#containersView richlistitem {
-  margin: 0px;
-  margin-inline-end: 8px;
-  padding: 0;
-  padding-block-end: 8px;
-  border-block-end: 1px solid var(--in-content-box-border-color);
-}
-
-#containersView richlistitem:last-of-type {
-  border-block-end: 0 none;
-  margin-block-end: 8px;
-}
deleted file mode 100644
--- a/browser/themes/shared/incontentprefs-old/dialog.inc.css
+++ /dev/null
@@ -1,68 +0,0 @@
-%if 0
-/* - 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/. */
-%endif
-
-dialog,
-window,
-prefpane,
-prefwindow,
-.windowDialog {
-  -moz-appearance: none;
-  background-color: #fbfbfb;
-  color: #424e5a;
-  margin: 0;
-  padding: 0;
-}
-
-.contentPane {
-  margin: 0;
-}
-
-tabbox {
-  /* override the rule in certManager.xul */
-  margin: 0 0 5px !important;
-}
-
-tabpanels {
-  font-size: 1em;
-}
-
-tabs,
-label,
-description,
-#useDocumentColors {
-  margin-right: 4px;
-  margin-left: 4px;
-}
-
-tree:not(#rejectsTree) {
-  min-height: 15em;
-}
-
-.actionButtons {
-  margin: 3px 0 0 !important;
-}
-
-caption {
-  padding-inline-start: 0;
-}
-
-groupbox {
-  font-size: 1em;
-  margin-top: 0;
-  margin-right: 4px;
-  margin-left: 4px;
-  padding-top: 0;
-  padding-bottom: 5px;
-}
-
-prefpane .groupbox-body {
-  padding: 0 0 5px;
-}
-
-groupbox description {
-  margin-right: 0;
-  margin-left: 0;
-}
deleted file mode 100644
--- a/browser/themes/shared/incontentprefs-old/icons.svg
+++ /dev/null
@@ -1,63 +0,0 @@
-<?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/. -->
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24">
-  <style>
-    use:not(:target) {
-      display: none;
-    }
-    use {
-      fill: #fbfbfb;
-      stroke: rgba(0,0,0,0.4);
-      stroke-width: .5px;
-    }
-    use[id$="-native"] {
-      fill: ThreeDHighlight;
-    }
-  </style>
-  <defs>
-    <g id="general-shape">
-      <path d="M18.97,3H5.03C3.914,3,3,3.914,3,5.03v13.94C3,20.086,3.914,21,5.03,21H18.97c1.117,0,2.03-0.914,2.03-2.03 V5.03C21,3.914,20.086,3,18.97,3z M5.35,19.326c-0.404,0-0.731-0.327-0.731-0.731c0-0.404,0.327-0.731,0.731-0.731 c0.404,0,0.731,0.327,0.731,0.731C6.081,19,5.754,19.326,5.35,19.326z M5.35,6.168c-0.403,0-0.731-0.328-0.731-0.731 c0-0.404,0.328-0.731,0.731-0.731c0.403,0,0.731,0.327,0.731,0.731C6.081,5.84,5.753,6.168,5.35,6.168z M15.243,14.035 c0,0.229-0.186,0.416-0.414,0.416c-0.229,0-0.415,0.186-0.415,0.414v3.347c0,0.228-0.185,0.384-0.414,0.384l-4.141,0.03 c-0.227,0-0.414-0.186-0.414-0.414v-3.347c0-0.228-0.185-0.414-0.414-0.414c-0.227,0-0.414-0.187-0.414-0.416V6.582 c0-0.229,0.187-0.414,0.414-0.414h5.798c0.228,0,0.414,0.185,0.414,0.414V14.035z M18.509,19.326c-0.404,0-0.731-0.327-0.731-0.731 c0-0.404,0.327-0.731,0.731-0.731c0.404,0,0.731,0.327,0.731,0.731C19.24,19,18.913,19.326,18.509,19.326z M18.509,6.168 c-0.404,0-0.731-0.328-0.731-0.731c0-0.404,0.327-0.731,0.731-0.731c0.404,0,0.731,0.327,0.731,0.731 C19.24,5.84,18.913,6.168,18.509,6.168z"/>
-      <path d="M12.757,7.824h-1.657c-0.456,0-0.828,0.373-0.828,0.828v8.282c0,0.456,0.373,0.828,0.828,0.828h1.657 c0.456,0,0.828-0.373,0.828-0.828V8.652C13.586,8.196,13.213,7.824,12.757,7.824z"/>
-    </g>
-    <g id="search-shape">
-      <path d="M2,10.018c0,4.43,3.585,8.019,8.009,8.019 c1.603,0,3.095-0.473,4.348-1.285l4.806,4.81c0.58,0.583,1.523,0.583,2.105,0l0.296-0.297c0.582-0.583,0.582-1.527,0-2.11 l-4.808-4.814c0.8-1.247,1.265-2.73,1.265-4.323c0-4.43-3.587-8.018-8.012-8.018C5.585,2,2,5.589,2,10.018z M5.104,10.021 c0-2.716,2.196-4.915,4.906-4.915c2.71,0,4.908,2.199,4.908,4.915c0,2.712-2.198,4.911-4.908,4.911 C7.3,14.931,5.104,12.732,5.104,10.021z"/>
-    </g>
-    <g id="content-shape">
-      <path d="M16.286,2H5.571C4.388,2,3.429,2.96,3.429,4.143v15.714 C3.429,21.04,4.388,22,5.571,22h12.857c1.185,0,2.143-0.96,2.143-2.143V6.286L16.286,2z M18.945,19.223c0,0.22-0.18,0.4-0.4,0.4 h-13.2c-0.22,0-0.4-0.18-0.4-0.4v-0.846c0-0.22,0.18-0.4,0.4-0.4h13.2c0.22,0,0.4,0.18,0.4,0.4V19.223z M18.945,15.223 c0,0.22-0.18,0.4-0.4,0.4h-13.2c-0.22,0-0.4-0.18-0.4-0.4v-0.846c0-0.22,0.18-0.4,0.4-0.4h13.2c0.22,0,0.4,0.18,0.4,0.4V15.223z M18.945,11.229c0,0.22-0.18,0.4-0.4,0.4h-13.2c-0.22,0-0.4-0.18-0.4-0.4v-0.846c0-0.22,0.18-0.4,0.4-0.4h13.2 c0.22,0,0.4,0.18,0.4,0.4V11.229z M14.833,7.707v-4.65l4.65,4.65H14.833z"/>
-    </g>
-    <g id="applications-shape">
-      <path d="M16.673,8.914C16.089,4.122,13.248,1,12,1c-1.25,0-3.986,3.122-4.767,7.914l-3.122,3.131v7.889h2.268 l2.978-3.436c0.28,0.29,0.737,1.666,1.065,1.858h3.155c0.331-0.193,0.789-1.569,1.068-1.858l3.123,3.436h2.12v-7.84L16.673,8.914z M12.042,8.735c-0.604,0-1.279,0.06-1.818,0.165c0.478-1.453,1.345-3.117,1.781-3.117c0.435,0,1.301,1.655,1.775,3.1 C13.265,8.789,12.615,8.735,12.042,8.735z M12.524,19.145c0.076,0.196,0.119,0.602,0.119,0.86c0,0.66-0.524,1.074-0.687,1.074 c-0.163,0-0.615-0.414-0.615-1.074c0-0.257,0.045-0.664,0.119-0.86h-0.754c-0.089,0.345-0.39,1.005-0.39,1.408 c0,1.458,1.328,2.447,1.686,2.447c0.359,0,1.686-0.951,1.686-2.407c0-0.404-0.301-1.103-0.388-1.449H12.524z"/>
-    </g>
-    <g id="privacy-shape">
-      <path d="M21.632,9.541c-0.083,1.403,0.246,3.079-1.597,5.498 c-1.965,2.578-3.914,2.594-4.284,2.575c-2.249-0.117-2.502-1.875-3.792-1.875c-1.13,0-2.012,1.745-3.711,1.836 c-0.37,0.02-2.319,0.042-4.284-2.536c-1.841-2.419-1.514-4.095-1.597-5.498C2.287,8.138,2,6.618,2,6.618s0.887,0.895,2.033,0.973 C5.179,7.67,5.394,7.191,7.811,6.501C10.424,5.752,12,8.814,12,8.814s1.776-3.016,4.189-2.313c2.414,0.7,2.515,1.169,3.661,1.091 C20.996,7.513,22,6.618,22,6.618S21.713,8.138,21.632,9.541z M8.117,10.129c-1.429-0.314-2.028,0.223-2.642,0.451 c-0.534,0.202-1.02,0.264-1.02,0.264s0.083,0.819,1.515,1.521c1.432,0.703,4.37,0.338,4.37,0.338S10.651,10.687,8.117,10.129z M18.525,10.58c-0.612-0.228-1.212-0.765-2.642-0.451c-2.534,0.558-2.223,2.573-2.223,2.573s2.938,0.365,4.37-0.338 c1.432-0.702,1.515-1.521,1.515-1.521S19.059,10.782,18.525,10.58z"/>
-    </g>
-    <g id="security-shape">
-      <path d="M18.909,9.783h-0.863V8.086C18.046,4.725,15.339,2,12,2 C8.661,2,5.954,4.725,5.954,8.086v1.697H5.091c-0.955,0-1.728,0.779-1.728,1.739v8.738c0,0.961,0.773,1.74,1.728,1.74h13.818 c0.954,0,1.728-0.779,1.728-1.74v-8.738C20.637,10.562,19.863,9.783,18.909,9.783z M8.545,8.086c0-1.92,1.547-3.478,3.455-3.478 c1.908,0,3.455,1.557,3.455,3.478v1.697h-6.91V8.086z M5.181,16.092l-0.909-1.2v-2.284l2.728,3.483H5.181z M8.818,16.092 l-2.773-3.657h1.727l2.864,3.657H8.818z M12,16.092l-2.773-3.657h1.727l2.864,3.657H12z M15.637,16.092l-2.773-3.657h1.727 l2.864,3.657H15.637z M19.728,16.092h-0.455l-2.773-3.657h1.727l1.501,1.916V16.092z"/>
-    </g>
-    <g id="sync-shape">
-      <path d="M17.024,3.351 c-0.562,0.331 -1.311,0.879 -1.821,1.698 -0.367,0.592 -0.752,1.288 -1.08,1.914 0.987,0.413 1.862,1.095 2.476,2.029 0.614,0.957 0.929,2.122 0.83,3.351 -0.201,1.787 -1.359,3.433 -3.046,4.36 -0.696,-0.774 -1.951,-2.945 -1.951,-2.945 -0.007,0.007 -0.004,2.556 -0.871,4.334 -0.573,1.184 -1.24,2.202 -2.305,2.995 1.431,0.51 2.915,0.886 4.282,0.909 l 0.162,0.002 c 2.99,0.021 5.844,-0.48 5.844,-0.48 0,0 -1.236,-0.802 -1.808,-1.346 1.86,-1.072 3.111,-2.791 3.634,-4.708 0.283,-0.759 0.478,-1.566 0.57,-2.409 C 22.383,9.011 20.33,5.278 17.024,3.351 Z M 6.569,12.302 C 6.526,10.271 7.755,8.327 9.644,7.29 c 0.696,0.774 2.32,2.899 2.32,2.899 0,0 -0.064,-5.157 1.657,-7.973 -6.097,-0.668 -9.69,0.443 -9.69,0.443 0,0 1.763,0.607 2.333,1.136 C 6.122,3.891 5.984,3.992 5.85,4.096 4.4,5.064 3.368,6.449 2.825,7.994 2.436,8.892 2.171,9.863 2.06,10.887 1.622,14.886 3.629,18.572 6.871,20.515 7.39,20.124 7.975,19.631 8.61,18.983 9.189,18.389 9.647,17.682 10.021,16.967 8.082,16.208 6.714,14.404 6.569,12.302 Z"/>
-    </g>
-    <g id="advanced-shape">
-      <path d="M19.173,16.163c0.004,0.04,0.007,0.08,0.007,0.121c0,1.748-3.197,3.165-7.14,3.165 c-3.943,0-7.14-1.417-7.14-3.165c0 -0.037,0.003-0.073,0.006-0.109C3.11,16.572,2,17.243,2,18.341C2,20.362,6.477,22,12,22 c5.523,0,10-1.638,10-3.659 C22,17.22,20.922,16.553,19.173,16.163z"/>
-      <path d="M18.224,15.979c0.006-0.11-0.018-0.285-0.054-0.39c0,0-0.762-2.205-1.176-3.403 c-0.624-1.807-2.112-6.139-2.112-6.139c-0.036-0.104-0.031-0.273,0.01-0.376l0.497-1.234c0.041-0.102,0.116-0.266,0.166-0.364 l0.986-1.942c0.05-0.098,0.013-0.133-0.081-0.077L9.965,5.871c-0.095,0.056-0.203,0.186-0.24,0.29c0,0-0.252,0.7-0.412,1.144 C8.64,9.173,7.968,11.04,7.296,12.908c-0.26,0.723-0.52,1.446-0.78,2.168c-0.056,0.156-0.112,0.311-0.168,0.466 c-0.093,0.26-0.049,0.617,0.032,0.881c0.237,0.763,1.001,1.189,1.708,1.435c0.611,0.213,1.254,0.328,1.895,0.403 c0.895,0.105,1.805,0.14,2.706,0.112c1.356-0.041,2.767-0.261,4.004-0.846c0.429-0.203,0.854-0.459,1.174-0.816 c0.121-0.135,0.226-0.287,0.297-0.455C18.215,16.134,18.224,15.979,18.224,15.979z M14.063,16.131 c0.019,0.108-0.046,0.156-0.143,0.104l-1.466-0.772c-0.097-0.052-0.257-0.052-0.354,0l-1.466,0.773 c-0.097,0.052-0.162,0.004-0.143-0.104l0.28-1.636c0.019-0.109-0.031-0.261-0.109-0.338l-1.186-1.158 c-0.079-0.077-0.054-0.153,0.055-0.169l1.638-0.239c0.109-0.016,0.238-0.11,0.286-0.209l0.733-1.488 c0.049-0.099,0.128-0.099,0.177,0l0.733,1.488c0.049,0.099,0.178,0.193,0.286,0.209l1.639,0.239 c0.109,0.016,0.134,0.092,0.055,0.169l-1.186,1.158c-0.079,0.077-0.128,0.229-0.109,0.338L14.063,16.131z"/>
-    </g>
-  </defs>
-  <use id="general" xlink:href="#general-shape"/>
-  <use id="general-native" xlink:href="#general-shape"/>
-  <use id="search" xlink:href="#search-shape"/>
-  <use id="search-native" xlink:href="#search-shape"/>
-  <use id="content" xlink:href="#content-shape"/>
-  <use id="content-native" xlink:href="#content-shape"/>
-  <use id="applications" xlink:href="#applications-shape"/>
-  <use id="applications-native" xlink:href="#applications-shape"/>
-  <use id="privacy" xlink:href="#privacy-shape"/>
-  <use id="privacy-native" xlink:href="#privacy-shape"/>
-  <use id="security" xlink:href="#security-shape"/>
-  <use id="security-native" xlink:href="#security-shape"/>
-  <use id="sync" xlink:href="#sync-shape"/>
-  <use id="sync-native" xlink:href="#sync-shape"/>
-  <use id="advanced" xlink:href="#advanced-shape"/>
-  <use id="advanced-native" xlink:href="#advanced-shape"/>
-</svg>
deleted file mode 100644
--- a/browser/themes/shared/incontentprefs-old/preferences.inc.css
+++ /dev/null
@@ -1,573 +0,0 @@
-%if 0
-/* - 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/. */
-%endif
-@namespace html "http://www.w3.org/1999/xhtml";
-
-#mainPrefPane {
-  max-width: 800px;
-  padding: 0;
-  font: message-box;
-  font-size: 1.25rem;
-}
-
-* {
-  -moz-user-select: text;
-}
-
-button,
-treecol {
-  /* override the * rule */
-  -moz-user-select: none;
-}
-
-#engineList treechildren::-moz-tree-image(engineShown, checked),
-#blocklistsTree treechildren::-moz-tree-image(selectionCol, checked) {
-  list-style-image: url("chrome://global/skin/in-content/check.svg");
-  -moz-context-properties: fill, stroke;
-  fill: #2292d0;
-  stroke: none;
-  width: 21px;
-  height: 21px;
-}
-
-#engineList treechildren::-moz-tree-image(engineShown, checked, selected),
-#blocklistsTree treechildren::-moz-tree-image(selectionCol, checked, selected) {
-  fill: white;
-  stroke: #0095dd;
-}
-
-#engineList treechildren::-moz-tree-row,
-#blocklistsTree treechildren::-moz-tree-row {
-  min-height: 36px;
-}
-
-#selectionCol {
-  min-width: 26px;
-}
-
-.learnMore {
-  margin-inline-start: 10px;
-  font-weight: normal;
-  white-space: nowrap;
-}
-
-/* Category List */
-
-#categories {
-  max-height: 100vh;
-}
-
-#categories > scrollbox {
-  overflow-x: hidden !important;
-}
-
-/**
- * We want the last category to always have non-0 getBoundingClientRect().bottom
- * so we can use the value to figure out the max-height of the list in
- * preferences.js, so use collapse instead of display: none; if it's hidden
- */
-#categories > .category[hidden="true"] {
-  display: -moz-box;
-  visibility: collapse;
-}
-
-#category-general > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general");
-}
-
-#category-search > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#search");
-}
-
-#category-content > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content");
-}
-
-#category-application > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications");
-}
-
-#category-privacy > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy");
-}
-
-#category-security > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security");
-}
-
-#category-sync > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync");
-}
-
-#category-advanced > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced");
-}
-
-@media (max-width: 800px) {
-  .category-name {
-    display: none;
-  }
-}
-
-/* header */
-.header {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-}
-
-.header[hidden=true] {
-  display: none;
-}
-
-#header-advanced {
-  border-bottom: none;
-  padding-bottom: 0;
-}
-
-/* General Pane */
-
-#startupTable {
-  border-collapse: collapse;
-}
-
-#startupTable > tr > td {
-  padding: 0; /* remove the padding from html.css */
-}
-
-#startupTable > tr:not(:first-child) > td {
-  padding-top: 0.5em; /* add a spacing between the rows */
-}
-
-#startupTable > tr > .label-cell {
-  text-align: end;
-  width: 0; /* make the column as small as possible */
-}
-
-#startupTable > tr > .label-cell > label {
-  white-space: nowrap;
-}
-
-#startupTable > tr > .content-cell > menulist,
-#startupTable > tr > .content-cell > textbox {
-  width: calc(100% - 8px);
-  margin-left: 4px;
-  margin-right: 4px;
-}
-
-#startupTable > tr > .homepage-buttons {
-  display: flex;
-  flex-wrap: wrap;
-}
-
-#startupTable > tr > .homepage-buttons > .content-cell-item {
-  flex-grow: 1;
-}
-
-#useFirefoxSync  {
-  font-size: 90%;
-  margin-inline-end: 8px !important;
-}
-
-#getStarted {
-  font-size: 90%;
-}
-
-#isNotDefaultLabel {
-  font-weight: bold;
-}
-
-#downloadFolder {
-  margin-inline-start: 0;
-}
-
-#browserHomePage:-moz-locale-dir(rtl) input {
-  unicode-bidi: plaintext;
-  direction: rtl;
-}
-
-/* Content pane */
-
-#defaultFontSizeLabel {
-  /* !important needed to override common !important rule */
-  margin-inline-start: 4px !important;
-}
-
-/* Applications Pane Styles */
-
-#applicationsContent {
-  padding: 15px 0;
-}
-
-#filter {
-  margin-inline-start: 0;
-}
-
-#handlersView {
-  height: 25em;
-}
-
-#handlersView > richlistitem {
-  min-height: 36px !important;
-}
-
-.typeIcon {
-  margin-inline-start: 10px !important;
-  margin-inline-end: 9px !important;
-}
-
-.actionIcon {
-  margin-inline-start: 11px !important;
-  margin-inline-end: 8px !important;
-}
-
-.actionsMenu {
-  min-height: 36px;
-}
-
-.actionsMenu > menupopup > menuitem {
-  padding-inline-start: 10px !important;
-}
-
-.actionsMenu > menupopup > menuitem > .menu-iconic-left {
-  margin-inline-end: 8px !important;
-}
-
-/* Privacy pane */
-
-.doNotTrackLearnMore {
-  margin-inline-start: calc(1em + 30px);
-  margin-bottom: 1em;
-  font-weight: normal;
-}
-
-.doNotTrackLearnMore > label {
-  font-size: 1em !important;
-  margin-left: 0;
-}
-
-/* Collapse the non-active vboxes in decks to use only the height the
-   active vbox needs */
-#historyPane:not([selectedIndex="1"]) > #historyDontRememberPane,
-#historyPane:not([selectedIndex="2"]) > #historyCustomPane,
-#weavePrefsDeck:not([selectedIndex="1"]) > #hasFxaAccount,
-#fxaLoginStatus:not([selectedIndex="1"]) > #fxaLoginUnverified,
-#fxaLoginStatus:not([selectedIndex="2"]) > #fxaLoginRejected {
-  visibility: collapse;
-}
-
-/* XXX This style is for bug 740213 and should be removed once that
-   bug has a solution. */
-description > html|a {
-  cursor: pointer;
-}
-
-#weavePrefsDeck > vbox > label,
-#weavePrefsDeck > vbox > groupbox,
-#weavePrefsDeck > vbox > description,
-#weavePrefsDeck > #hasFxaAccount > vbox > label,
-#weavePrefsDeck > #hasFxaAccount > hbox > label {
-  /* no margin-inline-start for elements at the beginning of a line */
-  margin-inline-start: 0;
-}
-
-#tabsElement {
-  margin-inline-end: 4px; /* add the 4px end-margin of other elements */
-}
-
-.indent {
-  /* !important needed to override margin-inline-start:0 !important; rule
-     define in common.css for labels */
-  margin-inline-start: 33px !important;
-}
-
-.text-link {
-  margin-bottom: 0;
-}
-
-#showUpdateHistory {
-  margin-inline-start: 0;
-}
-
-/**
- * Dialog
- */
-
-.dialogOverlay {
-  visibility: hidden;
-}
-
-.dialogOverlay[topmost="true"] {
-  background-color: rgba(0,0,0,0.5);
-}
-
-.dialogBox {
-  background-color: #fbfbfb;
-  background-clip: content-box;
-  color: #424e5a;
-  font-size: 14px;
-  /* `transparent` will use the dialogText color in high-contrast themes and
-     when page colors are disabled */
-  border: 1px solid transparent;
-  border-radius: 3.5px;
-  box-shadow: 0 2px 6px 0 rgba(0,0,0,0.3);
-  display: -moz-box;
-  margin: 0;
-  padding: 0;
-}
-
-.dialogBox[resizable="true"] {
-  resize: both;
-  overflow: hidden;
-  min-height: 20em;
-  min-width: 66ch;
-}
-
-.dialogBox > .groupbox-title {
-  padding: 3.5px 0;
-  background-color: #F1F1F1;
-  border-bottom: 1px solid #C1C1C1;
-}
-
-.dialogTitle {
-  text-align: center;
-  -moz-user-select: none;
-}
-
-.close-icon {
-  border: none;
-  background: none !important;
-  min-width: 0;
-  min-height: auto;
-}
-
-.dialogBox > .groupbox-body {
-  -moz-appearance: none;
-  padding: 20px;
-}
-
-.dialogFrame {
-  -moz-box-flex: 1;
-  /* Default dialog dimensions */
-  width: 66ch;
-}
-
-.largeDialogContainer.doScroll {
-  overflow-y: auto;
-  -moz-box-flex: 1;
-}
-
-/**
- * End Dialog
- */
-
-/**
- * Font dialog menulist fixes
- */
-
-#defaultFontType,
-#serif,
-#sans-serif,
-#monospace {
-  min-width: 30ch;
-}
-
-/**
- * Sync
- */
-
-#fxaProfileImage {
-  width: 60px;
-  height: 60px;
-  border-radius: 50%;
-  list-style-image: url(chrome://browser/skin/fxa/default-avatar.svg);
-  margin-inline-end: 15px;
-  image-rendering: auto;
-  border: 1px solid transparent;
-}
-
-#fxaLoginStatus[hasName] #fxaProfileImage {
-  width: 80px;
-  height: 80px;
-}
-
-#fxaProfileImage.actionable {
-  cursor: pointer;
-}
-
-#fxaProfileImage.actionable:hover {
-  border-color: #0095DD;
-}
-
-#fxaProfileImage.actionable:hover:active {
-  border-color: #ff9500;
-}
-
-#noFxaAccount {
-  padding-top: 15px;
-}
-
-#fxaContentWrapper {
-  -moz-box-flex: 1;
-}
-
-#noFxaGroup {
-  -moz-box-flex: 1;
-  margin: 0;
-}
-
-#fxaContentWrapper {
-  padding-right: 15px;
-}
-
-#noFxaGroup > vbox,
-#fxaGroup {
-  -moz-box-align: start;
-}
-
-#fxaSyncEngines > vbox:first-child {
-  margin-right: 80px;
-}
-
-#fxaSyncComputerName {
-  margin-inline-start: 0px;
-  -moz-box-flex: 1;
-}
-
-#tosPP-small-ToS {
-  margin-bottom: 14px;
-}
-
-#noFxaCaption {
-  font-weight: bold;
-  margin-bottom: 11px;
-}
-
-.fxaSyncIllustration {
-  margin-top: 35px;
-  width: 231px;
-  -moz-context-properties: fill;
-  fill: #bfcbd3;
-}
-
-#syncOptions caption {
-  margin-bottom: 11px;
-}
-
-#fxaDeviceName {
-  margin-bottom: 27.5px;
-}
-
-#noFxaDescription {
-  margin-bottom: 20px !important;
-}
-
-.separator {
-  border-bottom: 1px solid var(--in-content-box-border-color);
-}
-
-.fxaAccountBox {
-  border: 1px solid #D1D2D3;
-  border-radius: 5px;
-  padding: 14px 20px 14px 14px;
-}
-
-#signedOutAccountBoxTitle {
-  font-weight: bold;
-}
-
-.fxaAccountBoxButtons {
-  margin-bottom: 0 !important;
-  margin-top: 11px;
-  display: flex;
-  align-items: center;
-}
-
-.fxaAccountBoxButtons > * {
-  -moz-box-flex: 1;
-}
-
-.fxaAccountBoxButtons > button {
-  text-align: center;
-  padding-left: 11px;
-  padding-right: 11px;
-  margin: 0;
-  min-width: 0;
-}
-
-.fxaAccountBoxButtons > button:first-child {
-  margin-inline-end: 14px !important;
-}
-
-#verifiedManage:visited {
-  color: var(--in-content-link-color);
-}
-
-#fxaLoginStatus[hasName] #fxaEmailAddress1 {
-  font-size: 1.1rem;
-}
-
-#fxaEmailAddress1,
-#fxaEmailAddress2,
-#fxaEmailAddress3 {
-  word-break: break-all;
-}
-
-.fxaFirefoxLogo {
-  list-style-image: url(chrome://browser/skin/fxa/logo.png);
-  width: 64px;
-  height: 64px;
-  margin-inline-end: 14px;
-}
-
-.fxaMobilePromo {
-  margin-bottom: 20px;
-  margin-top: 25px;
-}
-
-#fxaLoginRejectedWarning {
-  list-style-image: url(chrome://browser/skin/warning.svg);
-  filter: drop-shadow(0 1px 0 hsla(206, 50%, 10%, .15));
-  margin: 4px 8px 0px 0px;
-}
-
-#syncOptions {
-  margin-bottom: 27.5px;
-}
-
-.androidLink {
-  background-image: url("chrome://browser/skin/fxa/android.png");
-}
-
-.iOSLink {
-  background-image: url("chrome://browser/skin/fxa/ios.png");
-}
-
-.androidLink,
-.iOSLink {
-  margin: 0 0 0 2px;
-  padding-left: 28px;
-  padding-top: 6px;
-  height: 28px;
-  background-repeat: no-repeat;
-  background-size: 24px 28px;
-}
-
-#tosPP-small {
-  margin-top: 20px;
-  margin-bottom: 20px;
-}
-
-@media (min-resolution: 1.1dppx) {
-  .androidLink {
-    background-image: url("chrome://browser/skin/fxa/android@2x.png");
-  }
-  .iOSLink {
-    background-image: url("chrome://browser/skin/fxa/ios@2x.png");
-  }
-  .fxaFirefoxLogo {
-    list-style-image: url(chrome://browser/skin/fxa/logo@2x.png);
-  }
-}
deleted file mode 100644
--- a/browser/themes/shared/incontentprefs-old/search.css
+++ /dev/null
@@ -1,49 +0,0 @@
-/* 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/. */
-
- #defaultEngine {
-   margin-inline-start: 0;
- }
-
-#defaultEngine > .menulist-label-box > .menulist-icon {
-  height: 16px;
-}
-
-/* work around a display: none in Linux's menu.css, see bug 1112310 */
-.searchengine-menuitem > .menu-iconic-left {
-  display: -moz-box;
-}
-
-#engineList {
-  margin: .5em 0;
-}
-
-#engineList treechildren::-moz-tree-image(engineName) {
-  margin-inline-end: 10px;
-  margin-inline-start: 1px;
-  width: 16px;
-  height: 16px;
-}
-
-#engineList treechildren::-moz-tree-drop-feedback {
-  background-color: Highlight;
-  width: 10000px; /* 100% doesn't work; 10k is hopefully larger than any window
-                     we may have, overflow isn't visible. */
-  height: 2px;
-  margin-inline-start: 0;
-}
-
-#engineShown {
-  min-width: 26px;
-}
-
-#addEnginesBox {
-  margin-bottom: 1em;
-}
-
-#removeEngineButton,
-#restoreDefaultSearchEngines {
-  margin-right: 0;
-  margin-left: 0;
-}
--- a/browser/themes/shared/incontentprefs/containers.css
+++ b/browser/themes/shared/incontentprefs/containers.css
@@ -1,16 +1,16 @@
 /* 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/. */
 
 %include ../../../components/contextualidentity/content/usercontext.css
 
 .container-header-links {
-  font-size: 1.36rem;
+  font-size: 1.25rem;
   margin-block-end: 15px;
 }
 
 [data-identity-icon] {
   margin: 0;
   margin-inline-end: 16px;
 }
 
--- a/browser/themes/shared/incontentprefs/preferences.inc.css
+++ b/browser/themes/shared/incontentprefs/preferences.inc.css
@@ -122,29 +122,29 @@ separator.thin:not([orient="vertical"]) 
 .header-name {
   font-size: 2rem;
   font-weight: 300;
 }
 
 /* Category List */
 
 #category-general > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/general.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/general.svg");
 }
 
 #category-search > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/search.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/search.svg");
 }
 
 #category-privacy > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/privacy-security.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/privacy-security.svg");
 }
 
 #category-sync > .category-icon {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/sync.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/sync.svg");
 }
 
 /* header */
 .header {
   display: flex;
   align-items: center;
   justify-content: space-between;
 }
@@ -499,17 +499,17 @@ separator.thin:not([orient="vertical"]) 
  * Sync
  */
 
 .fxaProfileImage {
   width: 80px;
   height: 80px;
   border-radius: 50%;
   border: 1px solid transparent;
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/fxa-avatar.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/fxa-avatar.svg");
   margin-inline-end: 24px;
   -moz-user-focus: normal;
 }
 
 .fxaProfileImage.actionable {
   cursor: pointer;
 }
 
@@ -548,17 +548,17 @@ separator.thin:not([orient="vertical"]) 
   margin-bottom: 4px;
 }
 
 #noFxaSignIn {
   margin-inline-start: 8px;
 }
 
 .fxaSyncIllustration {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/sync-devices.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/sync-devices.svg");
   width: 312px;
   height: 136px;
 }
 
 #noFxaDescription {
   padding-inline-end: 52px;
 }
 
@@ -602,21 +602,21 @@ separator.thin:not([orient="vertical"]) 
   max-width: 224px;
 }
 
 .fxaMobilePromo {
   margin: 2px 0 32px 0 !important;
 }
 
 .androidLink {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/logo-android.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/logo-android.svg");
 }
 
 .iOSLink {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/logo-ios.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/logo-ios.svg");
 }
 
 .androidLink,
 .iOSLink {
   margin-inline-start: 2px;
   margin-inline-end: 4px;
   width: 20px;
   height: 20px;
@@ -673,26 +673,26 @@ separator.thin:not([orient="vertical"]) 
 .help-button:link,
 .help-button:visited {
   color: var(--in-content-category-text);
   text-decoration: none;
   border-radius: 2px;
 }
 
 .face-sad {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/face-sad.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/face-sad.svg");
   width: 20px;
   height: 20px;
   margin-inline-end: 8px;
   margin-top: 5px;
   margin-bottom: 5px;
 }
 
 .face-smile {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/face-smile.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/face-smile.svg");
   width: 20px;
   height: 20px;
   margin-inline-end: 8px;
   margin-top: 5px;
   margin-bottom: 5px;
 }
 
 .search-container {
@@ -761,17 +761,17 @@ menulist[indicator=true] > menupopup men
 
 menulist[indicator=true] > menupopup menuitem:not([image]) > .menu-iconic-left > .menu-iconic-icon {
   width: 8px;
   height: 10px;
   margin: 0;
 }
 
 menulist[indicator=true] > menupopup menuitem[indicator=true]:not([image]) > .menu-iconic-left > .menu-iconic-icon {
-  list-style-image: url(chrome://browser/skin/preferences/in-content-new/search-arrow-indicator.svg);
+  list-style-image: url(chrome://browser/skin/preferences/in-content/search-arrow-indicator.svg);
 }
 
 menulist[indicator=true] > menupopup menuitem[indicator=true]:not([image]) > .menu-iconic-left > .menu-iconic-icon:-moz-locale-dir(rtl) {
   transform: scaleX(-1);
 }
 
 .menu-iconic-highlightable-text {
   margin: 0; /* Align with the margin of xul:label.menu-iconic-text */
@@ -782,12 +782,12 @@ menulist[indicator=true] > menupopup men
   line-height: 30px;
 }
 
 .no-results-container {
   margin-top: 64px;
 }
 
 .no-results-container > image {
-  list-style-image: url("chrome://browser/skin/preferences/in-content-new/no-search-results.svg");
+  list-style-image: url("chrome://browser/skin/preferences/in-content/no-search-results.svg");
   width: 380px;
   height: 293px;
 }
--- a/browser/themes/shared/jar.inc.mn
+++ b/browser/themes/shared/jar.inc.mn
@@ -86,44 +86,35 @@
   skin/classic/browser/panel-icon-arrow-right.svg              (../shared/panel-icon-arrow-right.svg)
   skin/classic/browser/panel-icon-cancel.svg                   (../shared/panel-icon-cancel.svg)
 #ifndef XP_MACOSX
   skin/classic/browser/panel-icon-folder.svg                   (../shared/panel-icon-folder.svg)
 #else
   skin/classic/browser/panel-icon-magnifier.svg                (../shared/panel-icon-magnifier.svg)
 #endif
   skin/classic/browser/panel-icon-retry.svg                    (../shared/panel-icon-retry.svg)
-  skin/classic/browser/preferences/in-content-new/face-sad.svg     (../shared/incontentprefs/face-sad.svg)
-  skin/classic/browser/preferences/in-content-new/face-smile.svg   (../shared/incontentprefs/face-smile.svg)
-  skin/classic/browser/preferences/in-content-new/fxa-avatar.svg   (../shared/incontentprefs/fxa-avatar.svg)
-  skin/classic/browser/preferences/in-content-new/general.svg      (../shared/incontentprefs/general.svg)
-  skin/classic/browser/preferences/in-content-new/logo-android.svg (../shared/incontentprefs/logo-android.svg)
-  skin/classic/browser/preferences/in-content-new/logo-ios.svg     (../shared/incontentprefs/logo-ios.svg)
-  skin/classic/browser/preferences/in-content-new/no-search-results.svg       (../shared/incontentprefs/no-search-results.svg)
-  skin/classic/browser/preferences/in-content-new/privacy-security.svg        (../shared/incontentprefs/privacy-security.svg)
-  skin/classic/browser/preferences/in-content-new/privacy.css      (../shared/incontentprefs/privacy.css)
-  skin/classic/browser/preferences/in-content-new/search-arrow-indicator.svg  (../shared/incontentprefs/search-arrow-indicator.svg)
-  skin/classic/browser/preferences/in-content-new/search.css       (../shared/incontentprefs/search.css)
-  skin/classic/browser/preferences/in-content-new/search.svg       (../shared/incontentprefs/search.svg)
-  skin/classic/browser/preferences/in-content-new/siteDataSettings.css (../shared/incontentprefs/siteDataSettings.css)
-  skin/classic/browser/preferences/in-content-new/sync-devices.svg (../shared/incontentprefs/sync-devices.svg)
-  skin/classic/browser/preferences/in-content-new/sync.svg         (../shared/incontentprefs/sync.svg)
-* skin/classic/browser/preferences/in-content-new/containers.css   (../shared/incontentprefs/containers.css)
-  skin/classic/browser/preferences/in-content/icons.svg        (../shared/incontentprefs-old/icons.svg)
-  skin/classic/browser/preferences/in-content/search.css       (../shared/incontentprefs-old/search.css)
-* skin/classic/browser/preferences/in-content/containers.css   (../shared/incontentprefs-old/containers.css)
+  skin/classic/browser/preferences/in-content/face-sad.svg     (../shared/incontentprefs/face-sad.svg)
+  skin/classic/browser/preferences/in-content/face-smile.svg   (../shared/incontentprefs/face-smile.svg)
+  skin/classic/browser/preferences/in-content/fxa-avatar.svg   (../shared/incontentprefs/fxa-avatar.svg)
+  skin/classic/browser/preferences/in-content/general.svg      (../shared/incontentprefs/general.svg)
+  skin/classic/browser/preferences/in-content/logo-android.svg (../shared/incontentprefs/logo-android.svg)
+  skin/classic/browser/preferences/in-content/logo-ios.svg     (../shared/incontentprefs/logo-ios.svg)
+  skin/classic/browser/preferences/in-content/no-search-results.svg       (../shared/incontentprefs/no-search-results.svg)
+  skin/classic/browser/preferences/in-content/privacy-security.svg        (../shared/incontentprefs/privacy-security.svg)
+  skin/classic/browser/preferences/in-content/privacy.css      (../shared/incontentprefs/privacy.css)
+  skin/classic/browser/preferences/in-content/search-arrow-indicator.svg  (../shared/incontentprefs/search-arrow-indicator.svg)
+  skin/classic/browser/preferences/in-content/search.css       (../shared/incontentprefs/search.css)
+  skin/classic/browser/preferences/in-content/search.svg       (../shared/incontentprefs/search.svg)
+  skin/classic/browser/preferences/in-content/siteDataSettings.css (../shared/incontentprefs/siteDataSettings.css)
+  skin/classic/browser/preferences/in-content/sync-devices.svg (../shared/incontentprefs/sync-devices.svg)
+  skin/classic/browser/preferences/in-content/sync.svg         (../shared/incontentprefs/sync.svg)
+* skin/classic/browser/preferences/in-content/containers.css   (../shared/incontentprefs/containers.css)
 * skin/classic/browser/preferences/containers.css              (../shared/preferences/containers.css)
   skin/classic/browser/fxa/default-avatar.svg                  (../shared/fxa/default-avatar.svg)
-  skin/classic/browser/fxa/logo.png                            (../shared/fxa/logo.png)
-  skin/classic/browser/fxa/logo@2x.png                         (../shared/fxa/logo@2x.png)
   skin/classic/browser/fxa/sync-illustration.svg               (../shared/fxa/sync-illustration.svg)
-  skin/classic/browser/fxa/android.png                         (../shared/fxa/android.png)
-  skin/classic/browser/fxa/android@2x.png                      (../shared/fxa/android@2x.png)
-  skin/classic/browser/fxa/ios.png                             (../shared/fxa/ios.png)
-  skin/classic/browser/fxa/ios@2x.png                          (../shared/fxa/ios@2x.png)
 
 
   skin/classic/browser/arrow-left.svg                 (../shared/icons/arrow-left.svg)
   skin/classic/browser/back.svg                       (../shared/icons/back.svg)
   skin/classic/browser/back-12.svg                    (../shared/icons/back-12.svg)
   skin/classic/browser/bookmark.svg                   (../shared/icons/bookmark.svg)
   skin/classic/browser/bookmark-animation.svg         (../shared/icons/bookmark-animation.svg)
   skin/classic/browser/bookmark-hollow.svg            (../shared/icons/bookmark-hollow.svg)
--- a/browser/themes/windows/jar.mn
+++ b/browser/themes/windows/jar.mn
@@ -62,19 +62,17 @@ browser.jar:
   skin/classic/browser/places/unsortedBookmarks.png            (places/unsortedBookmarks.png)
   skin/classic/browser/places/downloads.png                    (places/downloads.png)
   skin/classic/browser/places/livemark-item.png                (places/livemark-item.png)
   skin/classic/browser/preferences/alwaysAsk.png               (preferences/alwaysAsk.png)
   skin/classic/browser/preferences/application.png             (preferences/application.png)
   skin/classic/browser/preferences/saveFile.png                (preferences/saveFile.png)
   skin/classic/browser/preferences/preferences.css             (preferences/preferences.css)
 * skin/classic/browser/preferences/in-content/preferences.css  (preferences/in-content/preferences.css)
-* skin/classic/browser/preferences/in-content-new/preferences.css      (preferences/in-content-new/preferences.css)
 * skin/classic/browser/preferences/in-content/dialog.css       (preferences/in-content/dialog.css)
-* skin/classic/browser/preferences/in-content-new/dialog.css           (preferences/in-content-new/dialog.css)
   skin/classic/browser/preferences/applications.css            (preferences/applications.css)
   skin/classic/browser/tabbrowser/tabDragIndicator.png         (tabbrowser/tabDragIndicator.png)
   skin/classic/browser/window-controls/close.svg                 (window-controls/close.svg)
   skin/classic/browser/window-controls/close-highcontrast.svg    (window-controls/close-highcontrast.svg)
   skin/classic/browser/window-controls/close-themes.svg          (window-controls/close-themes.svg)
   skin/classic/browser/window-controls/maximize.svg              (window-controls/maximize.svg)
   skin/classic/browser/window-controls/maximize-highcontrast.svg (window-controls/maximize-highcontrast.svg)
   skin/classic/browser/window-controls/maximize-themes.svg       (window-controls/maximize-themes.svg)
deleted file mode 100644
--- a/browser/themes/windows/preferences/in-content-new/dialog.css
+++ /dev/null
@@ -1,19 +0,0 @@
-/* - 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/. */
-
-%include ../../../shared/incontentprefs/dialog.inc.css
-
-label:not(.menu-text),
-textbox,
-description,
-.tab-text,
-caption > label {
-  font-size: 1.2em;
-}
-
-/* Create a separate rule to unset these styles on .tree-input instead of
-   using :not(.tree-input) so the selector specifity doesn't change. */
-textbox.tree-input {
-  font-size: unset;
-}
--- a/browser/themes/windows/preferences/in-content/dialog.css
+++ b/browser/themes/windows/preferences/in-content/dialog.css
@@ -1,13 +1,13 @@
 /* - 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/. */
 
-%include ../../../shared/incontentprefs-old/dialog.inc.css
+%include ../../../shared/incontentprefs/dialog.inc.css
 
 label:not(.menu-text),
 textbox,
 description,
 .tab-text,
 caption > label {
   font-size: 1.2em;
 }
--- a/browser/themes/windows/preferences/in-content/preferences.css
+++ b/browser/themes/windows/preferences/in-content/preferences.css
@@ -1,64 +1,16 @@
 /* - 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/. */
 
-%include ../../../shared/incontentprefs-old/preferences.inc.css
-
-@media (-moz-windows-default-theme: 0) {
-  #category-general > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general-native");
-  }
-
-  #category-search > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#search-native");
-  }
-
-  #category-content > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content-native");
-  }
-
-  #category-application > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications-native");
-  }
-
-  #category-privacy > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy-native");
-  }
-
-  #category-security > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security-native");
-  }
-
-  #category-sync > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync-native");
-  }
-
-  #category-advanced > .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced-native");
-  }
-}
+%include ../../../shared/incontentprefs/preferences.inc.css
 
 .actionsMenu > .menulist-label-box > .menulist-icon {
   margin-inline-end: 9px;
 }
 
 textbox + button,
 filefield + button {
   margin-inline-start: -4px;
-}
-
-#advancedPrefs {
-  padding-bottom: 0; /* override padding from normal preferences.css */
-}
-
-#fxaProfileImage {
-  -moz-user-focus: normal;
+  margin-top: 4px;
+  margin-bottom: 4px;
 }
-
-/**
- * Dialog
- */
-
-#dialogTitle {
-  font-size: 1em;
-}
--- a/browser/tools/mozscreenshots/mozscreenshots/extension/configurations/Preferences.jsm
+++ b/browser/tools/mozscreenshots/mozscreenshots/extension/configurations/Preferences.jsm
@@ -11,72 +11,46 @@ const {classes: Cc, interfaces: Ci, util
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://testing-common/TestUtils.jsm");
 Cu.import("resource://testing-common/ContentTask.jsm");
 
 this.Preferences = {
 
   init(libDir) {
     let panes = [
-      /* The "new" organization */
       ["paneGeneral"],
-      ["paneGeneral", scrollToBrowsingGroup],
-      ["paneApplications"],
-      ["paneSync"],
+      ["paneGeneral", browsingGroup],
+      ["paneGeneral", connectionDialog],
+      ["paneSearch"],
       ["panePrivacy"],
-      ["panePrivacy", scrollToCacheGroup],
-      ["panePrivacy", DNTDialog],
+      ["panePrivacy", cacheGroup],
       ["panePrivacy", clearRecentHistoryDialog],
-      ["panePrivacy", connectionDialog],
       ["panePrivacy", certManager],
       ["panePrivacy", deviceManager],
-      ["paneAdvanced"],
+      ["panePrivacy", DNTDialog],
+      ["paneSync"],
+    ];
 
-      /* The "old" organization. The third argument says to
-         set the pref to show the old organization when
-         opening the preferences. */
-      ["paneGeneral", null, true],
-      ["paneSearch", null, true],
-      ["paneContent", null, true],
-      ["paneApplications", null, true],
-      ["panePrivacy", null, true],
-      ["panePrivacy", DNTDialog, true],
-      ["panePrivacy", clearRecentHistoryDialog, true],
-      ["paneSecurity", null, true],
-      ["paneSync", null, true],
-      ["paneAdvanced", null, true, "generalTab"],
-      ["paneAdvanced", null, true, "dataChoicesTab"],
-      ["paneAdvanced", null, true, "networkTab"],
-      ["paneAdvanced", connectionDialog, true, "networkTab"],
-      ["paneAdvanced", null, true, "updateTab"],
-      ["paneAdvanced", null, true, "encryptionTab"],
-      ["paneAdvanced", certManager, true, "encryptionTab"],
-      ["paneAdvanced", deviceManager, true, "encryptionTab"],
-    ];
-    for (let [primary, customFn, useOldOrg, advanced] of panes) {
-      let configName = primary.replace(/^pane/, "prefs") + (advanced ? "-" + advanced : "");
+    for (let [primary, customFn] of panes) {
+      let configName = primary.replace(/^pane/, "prefs");
       if (customFn) {
         configName += "-" + customFn.name;
       }
       this.configurations[configName] = {};
-      this.configurations[configName].applyConfig = prefHelper.bind(null, primary, customFn, useOldOrg, advanced);
+      this.configurations[configName].applyConfig = prefHelper.bind(null, primary, customFn);
     }
   },
 
   configurations: {},
 };
 
-let prefHelper = async function(primary, customFn = null, useOldOrg = false, advanced = null) {
+let prefHelper = async function(primary, customFn = null) {
   let browserWindow = Services.wm.getMostRecentWindow("navigator:browser");
   let selectedBrowser = browserWindow.gBrowser.selectedBrowser;
 
-  if (useOldOrg) {
-    Services.prefs.setBoolPref("browser.preferences.useOldOrganization", !!useOldOrg);
-  }
-
   // close any dialog that might still be open
   await ContentTask.spawn(selectedBrowser, null, async function() {
     if (!content.window.gSubDialog) {
       return;
     }
     content.window.gSubDialog.close();
   });
 
@@ -84,51 +58,45 @@ let prefHelper = async function(primary,
   if (selectedBrowser.currentURI.specIgnoringRef == "about:preferences") {
     if (selectedBrowser.currentURI.spec == "about:preferences#" + primary.replace(/^pane/, "")) {
       // We're already on the correct pane.
       readyPromise = Promise.resolve();
     } else {
       readyPromise = paintPromise(browserWindow);
     }
   } else {
-    readyPromise = TestUtils.topicObserved("advanced-pane-loaded");
+    readyPromise = TestUtils.topicObserved("sync-pane-loaded");
   }
 
-  if (useOldOrg && primary == "paneAdvanced") {
-    browserWindow.openAdvancedPreferences(advanced);
-  } else {
-    browserWindow.openPreferences(primary);
-  }
+  browserWindow.openPreferences(primary);
 
   await readyPromise;
 
   if (customFn) {
     let customPaintPromise = paintPromise(browserWindow);
     await customFn(selectedBrowser);
     await customPaintPromise;
   }
-
-  Services.prefs.clearUserPref("browser.preferences.useOldOrganization");
 };
 
 function paintPromise(browserWindow) {
   return new Promise((resolve) => {
     browserWindow.addEventListener("MozAfterPaint", function() {
       resolve();
     }, {once: true});
   });
 }
 
-async function scrollToBrowsingGroup(aBrowser) {
+async function browsingGroup(aBrowser) {
   await ContentTask.spawn(aBrowser, null, async function() {
     content.document.getElementById("browsingGroup").scrollIntoView();
   });
 }
 
-async function scrollToCacheGroup(aBrowser) {
+async function cacheGroup(aBrowser) {
   await ContentTask.spawn(aBrowser, null, async function() {
     content.document.getElementById("cacheGroup").scrollIntoView();
   });
 }
 
 async function DNTDialog(aBrowser) {
   await ContentTask.spawn(aBrowser, null, async function() {
     content.document.getElementById("doNotTrackSettings").click();
--- a/testing/runtimes/mochitest-browser-chrome-e10s.runtimes.json
+++ b/testing/runtimes/mochitest-browser-chrome-e10s.runtimes.json
@@ -1,857 +1,857 @@
 {
-  "excluded_test_average": 1310, 
+  "excluded_test_average": 1310,
   "runtimes": {
-    "Main app process exited normally": 2031025, 
-    "accessible/tests/browser/browser_caching_attributes.js": 2753, 
-    "accessible/tests/browser/browser_shutdown_acc_reference.js": 3187, 
-    "accessible/tests/browser/browser_shutdown_doc_acc_reference.js": 2817, 
-    "accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js": 4118, 
-    "accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js": 4032, 
-    "accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_doc.js": 4807, 
-    "accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_obj.js": 4805, 
-    "accessible/tests/browser/browser_shutdown_multi_reference.js": 2720, 
-    "accessible/tests/browser/browser_shutdown_proxy_acc_reference.js": 3799, 
-    "accessible/tests/browser/browser_shutdown_proxy_doc_acc_reference.js": 3746, 
-    "accessible/tests/browser/browser_shutdown_start_restart.js": 2701, 
-    "accessible/tests/browser/e10s/browser_caching_name.js": 9803, 
-    "browser/base/content/test/alerts/browser_notification_open_settings.js": 2814, 
-    "browser/base/content/test/captivePortal/browser_captivePortal_certErrorUI.js": 3183, 
-    "browser/base/content/test/chat/browser_chatwindow.js": 5602, 
-    "browser/base/content/test/chat/browser_focus.js": 4750, 
-    "browser/base/content/test/chat/browser_tearoff.js": 3032, 
-    "browser/base/content/test/general/browser_aboutAccounts.js": 4700, 
-    "browser/base/content/test/general/browser_aboutCertError.js": 11629, 
-    "browser/base/content/test/general/browser_aboutHome.js": 24998, 
-    "browser/base/content/test/general/browser_aboutHome_wrapsCorrectly.js": 3959, 
-    "browser/base/content/test/general/browser_aboutTabCrashed.js": 14550, 
-    "browser/base/content/test/general/browser_aboutTabCrashed_clearEmail.js": 2776, 
-    "browser/base/content/test/general/browser_addCertException.js": 3849, 
-    "browser/base/content/test/general/browser_addKeywordSearch.js": 2907, 
-    "browser/base/content/test/general/browser_alltabslistener.js": 3702, 
-    "browser/base/content/test/general/browser_audioTabIcon.js": 41909, 
-    "browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js": 7882, 
-    "browser/base/content/test/general/browser_blockHPKP.js": 3461, 
-    "browser/base/content/test/general/browser_bookmark_popup.js": 14200, 
-    "browser/base/content/test/general/browser_bookmark_titles.js": 2930, 
-    "browser/base/content/test/general/browser_bug1299667.js": 9269, 
-    "browser/base/content/test/general/browser_bug386835.js": 5032, 
-    "browser/base/content/test/general/browser_bug406216.js": 4791, 
-    "browser/base/content/test/general/browser_bug422590.js": 9050, 
-    "browser/base/content/test/general/browser_bug460146.js": 4439, 
-    "browser/base/content/test/general/browser_bug462673.js": 5101, 
-    "browser/base/content/test/general/browser_bug491431.js": 2670, 
-    "browser/base/content/test/general/browser_bug495058.js": 6831, 
-    "browser/base/content/test/general/browser_bug550565.js": 3997, 
-    "browser/base/content/test/general/browser_bug553455.js": 37176, 
-    "browser/base/content/test/general/browser_bug575561.js": 13472, 
-    "browser/base/content/test/general/browser_bug585558.js": 3058, 
-    "browser/base/content/test/general/browser_bug590206.js": 13742, 
-    "browser/base/content/test/general/browser_bug592338.js": 5715, 
-    "browser/base/content/test/general/browser_bug609700.js": 3600, 
-    "browser/base/content/test/general/browser_bug623893.js": 4495, 
-    "browser/base/content/test/general/browser_bug676619.js": 12005, 
-    "browser/base/content/test/general/browser_bug719271.js": 5308, 
-    "browser/base/content/test/general/browser_bug734076.js": 4225, 
-    "browser/base/content/test/general/browser_bug763468_perwindowpb.js": 8245, 
-    "browser/base/content/test/general/browser_bug767836_perwindowpb.js": 8317, 
-    "browser/base/content/test/general/browser_bug817947.js": 4167, 
-    "browser/base/content/test/general/browser_bug822367.js": 9554, 
-    "browser/base/content/test/general/browser_bug902156.js": 5042, 
-    "browser/base/content/test/general/browser_bug906190.js": 28243, 
-    "browser/base/content/test/general/browser_bug963945.js": 3613, 
-    "browser/base/content/test/general/browser_close_dependent_tabs.js": 2877, 
-    "browser/base/content/test/general/browser_contentAltClick.js": 3557, 
-    "browser/base/content/test/general/browser_contentSearchUI.js": 20488, 
-    "browser/base/content/test/general/browser_contextmenu.js": 4785, 
-    "browser/base/content/test/general/browser_contextmenu_childprocess.js": 5501, 
-    "browser/base/content/test/general/browser_ctrlTab.js": 5609, 
-    "browser/base/content/test/general/browser_datachoices_notification.js": 6696, 
-    "browser/base/content/test/general/browser_decoderDoctor.js": 4428, 
-    "browser/base/content/test/general/browser_devices_get_user_media.js": 14991, 
-    "browser/base/content/test/general/browser_devices_get_user_media_in_frame.js": 4616, 
-    "browser/base/content/test/general/browser_documentnavigation.js": 6759, 
-    "browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js": 5545, 
-    "browser/base/content/test/general/browser_e10s_chrome_process.js": 8580, 
-    "browser/base/content/test/general/browser_e10s_switchbrowser.js": 12757, 
-    "browser/base/content/test/general/browser_fullscreen-window-open.js": 4312, 
-    "browser/base/content/test/general/browser_fxa_oauth.js": 5410, 
-    "browser/base/content/test/general/browser_fxa_web_channel.js": 4727, 
-    "browser/base/content/test/general/browser_fxaccounts.js": 2909, 
-    "browser/base/content/test/general/browser_getshortcutoruri.js": 3083, 
-    "browser/base/content/test/general/browser_identity_UI.js": 20930, 
-    "browser/base/content/test/general/browser_insecureLoginForms.js": 4482, 
-    "browser/base/content/test/general/browser_mcb_redirect.js": 9425, 
-    "browser/base/content/test/general/browser_misused_characters_in_strings.js": 5746, 
-    "browser/base/content/test/general/browser_mixedContentFromOnunload.js": 2915, 
-    "browser/base/content/test/general/browser_mixed_content_cert_override.js": 4893, 
-    "browser/base/content/test/general/browser_mixedcontent_securityflags.js": 3358, 
-    "browser/base/content/test/general/browser_newTabDrop.js": 6573, 
-    "browser/base/content/test/general/browser_newWindowDrop.js": 26213, 
-    "browser/base/content/test/general/browser_newwindow_focus.js": 6189, 
-    "browser/base/content/test/general/browser_no_mcb_on_http_site.js": 3587, 
-    "browser/base/content/test/general/browser_offlineQuotaNotification.js": 3595, 
-    "browser/base/content/test/general/browser_overflowScroll.js": 13531, 
-    "browser/base/content/test/general/browser_pageInfo.js": 2735, 
-    "browser/base/content/test/general/browser_parsable_css.js": 2783, 
-    "browser/base/content/test/general/browser_parsable_script.js": 8620, 
-    "browser/base/content/test/general/browser_permissions.js": 7325, 
-    "browser/base/content/test/general/browser_plainTextLinks.js": 3173, 
-    "browser/base/content/test/general/browser_popupUI.js": 2907, 
-    "browser/base/content/test/general/browser_printpreview.js": 6858, 
-    "browser/base/content/test/general/browser_private_browsing_window.js": 3954, 
-    "browser/base/content/test/general/browser_readerMode.js": 3992, 
-    "browser/base/content/test/general/browser_refreshBlocker.js": 11983, 
-    "browser/base/content/test/general/browser_relatedTabs.js": 9815, 
-    "browser/base/content/test/general/browser_remoteTroubleshoot.js": 4239, 
-    "browser/base/content/test/general/browser_restore_isAppTab.js": 6238, 
-    "browser/base/content/test/general/browser_sanitize-timespans.js": 6091, 
-    "browser/base/content/test/general/browser_sanitizeDialog.js": 21552, 
-    "browser/base/content/test/general/browser_save_link-perwindowpb.js": 4886, 
-    "browser/base/content/test/general/browser_save_link_when_window_navigates.js": 6001, 
-    "browser/base/content/test/general/browser_save_private_link_perwindowpb.js": 3473, 
-    "browser/base/content/test/general/browser_selectpopup.js": 25885, 
-    "browser/base/content/test/general/browser_ssl_error_reports.js": 10048, 
-    "browser/base/content/test/general/browser_syncui.js": 5116, 
-    "browser/base/content/test/general/browser_tabDrop.js": 5665, 
-    "browser/base/content/test/general/browser_tab_close_dependent_window.js": 3872, 
-    "browser/base/content/test/general/browser_tab_detach_restore.js": 4869, 
-    "browser/base/content/test/general/browser_tab_drag_drop_perwindow.js": 22451, 
-    "browser/base/content/test/general/browser_tab_dragdrop.js": 3603, 
-    "browser/base/content/test/general/browser_tab_dragdrop2.js": 6579, 
-    "browser/base/content/test/general/browser_tabfocus.js": 5898, 
-    "browser/base/content/test/general/browser_tabkeynavigation.js": 3751, 
-    "browser/base/content/test/general/browser_tabs_isActive.js": 3883, 
-    "browser/base/content/test/general/browser_testOpenNewRemoteTabsFromNonRemoteBrowsers.js": 18627, 
-    "browser/base/content/test/general/browser_trackingUI_1.js": 10728, 
-    "browser/base/content/test/general/browser_trackingUI_2.js": 8000, 
-    "browser/base/content/test/general/browser_trackingUI_4.js": 10177, 
-    "browser/base/content/test/general/browser_trackingUI_5.js": 10282, 
-    "browser/base/content/test/general/browser_trackingUI_telemetry.js": 14193, 
-    "browser/base/content/test/general/browser_typeAheadFind.js": 2889, 
-    "browser/base/content/test/general/browser_unloaddialogs.js": 2918, 
-    "browser/base/content/test/general/browser_utilityOverlay.js": 3089, 
-    "browser/base/content/test/general/browser_viewSourceInTabOnViewSource.js": 3445, 
-    "browser/base/content/test/general/browser_web_channel.js": 15741, 
-    "browser/base/content/test/general/browser_windowactivation.js": 4655, 
-    "browser/base/content/test/newtab/browser_newtab_block.js": 4959, 
-    "browser/base/content/test/newtab/browser_newtab_bug1194895.js": 7308, 
-    "browser/base/content/test/newtab/browser_newtab_drag_drop.js": 4697, 
-    "browser/base/content/test/newtab/browser_newtab_drag_drop_ext.js": 6606, 
-    "browser/base/content/test/newtab/browser_newtab_enhanced.js": 4411, 
-    "browser/base/content/test/newtab/browser_newtab_perwindow_private_browsing.js": 2913, 
-    "browser/base/content/test/newtab/browser_newtab_unpin.js": 3032, 
-    "browser/base/content/test/plugins/browser_CTP_crashreporting.js": 4878, 
-    "browser/base/content/test/plugins/browser_CTP_drag_drop.js": 5737, 
-    "browser/base/content/test/plugins/browser_CTP_notificationBar.js": 4802, 
-    "browser/base/content/test/plugins/browser_CTP_remove_navigate.js": 3322, 
-    "browser/base/content/test/plugins/browser_blocking.js": 9383, 
-    "browser/base/content/test/plugins/browser_blocklist_content.js": 3661, 
-    "browser/base/content/test/plugins/browser_iterate_hidden_plugins.js": 5033, 
-    "browser/base/content/test/plugins/browser_pageInfo_plugins.js": 4977, 
-    "browser/base/content/test/plugins/browser_pluginCrashCommentAndURL.js": 4166, 
-    "browser/base/content/test/plugins/browser_pluginnotification.js": 13366, 
-    "browser/base/content/test/plugins/browser_plugins_added_dynamically.js": 2827, 
-    "browser/base/content/test/plugins/browser_private_clicktoplay.js": 8632, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_2.js": 4734, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_3.js": 3791, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_4.js": 3407, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_5.js": 4197, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_no_anchors.js": 3514, 
-    "browser/base/content/test/referrer/browser_referrer_middle_click.js": 22708, 
-    "browser/base/content/test/referrer/browser_referrer_middle_click_in_container.js": 21681, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab.js": 4029, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab2.js": 3993, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab3.js": 4107, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_private.js": 6835, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_tab.js": 4075, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_window.js": 7014, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_window_in_container.js": 7292, 
-    "browser/base/content/test/referrer/browser_referrer_simple_click.js": 15480, 
-    "browser/base/content/test/social/browser_aboutHome_activation.js": 6065, 
-    "browser/base/content/test/social/browser_blocklist.js": 4105, 
-    "browser/base/content/test/social/browser_share.js": 12077, 
-    "browser/base/content/test/social/browser_social_activation.js": 10299, 
-    "browser/base/content/test/social/browser_social_chatwindow_resize.js": 2879, 
-    "browser/base/content/test/social/browser_social_marks.js": 2931, 
-    "browser/base/content/test/social/browser_social_marks_context.js": 3212, 
-    "browser/base/content/test/social/browser_social_window.js": 8012, 
-    "browser/base/content/test/tabcrashed/browser_autoSubmitRequest.js": 10853, 
-    "browser/base/content/test/tabcrashed/browser_clearEmail.js": 6353, 
-    "browser/base/content/test/tabcrashed/browser_showForm.js": 3905, 
-    "browser/base/content/test/tabcrashed/browser_shown.js": 25688, 
-    "browser/base/content/test/tabcrashed/browser_withoutDump.js": 3481, 
-    "browser/base/content/test/tabs/browser_navigatePinnedTab.js": 4864, 
-    "browser/base/content/test/tabs/browser_tabSpinnerProbe.js": 5417, 
-    "browser/base/content/test/tabs/browser_tabSwitchPrintPreview.js": 2875, 
-    "browser/base/content/test/urlbar/browser_URLBarSetURI.js": 5330, 
-    "browser/base/content/test/urlbar/browser_action_searchengine_alias.js": 2728, 
-    "browser/base/content/test/urlbar/browser_autocomplete_enter_race.js": 7424, 
-    "browser/base/content/test/urlbar/browser_autocomplete_tag_star_visibility.js": 3225, 
-    "browser/base/content/test/urlbar/browser_bug1025195_switchToTabHavingURI_aOpenParams.js": 12054, 
-    "browser/base/content/test/urlbar/browser_bug304198.js": 4204, 
-    "browser/base/content/test/urlbar/browser_canonizeURL.js": 3722, 
-    "browser/base/content/test/urlbar/browser_moz_action_link.js": 4514, 
-    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar.js": 11900, 
-    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar_perwindowpb.js": 4119, 
-    "browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js": 12974, 
-    "browser/base/content/test/urlbar/browser_urlbarDecode.js": 2975, 
-    "browser/base/content/test/urlbar/browser_urlbarEnter.js": 2959, 
-    "browser/base/content/test/urlbar/browser_urlbarHashChangeProxyState.js": 4051, 
-    "browser/base/content/test/urlbar/browser_urlbarKeepStateAcrossTabSwitches.js": 5226, 
-    "browser/base/content/test/urlbar/browser_urlbarOneOffs.js": 8093, 
-    "browser/base/content/test/urlbar/browser_urlbarRaceWithTabs.js": 2691, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchSingleWordNotification.js": 19159, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestions.js": 2764, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestionsNotification.js": 12217, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchTelemetry.js": 7549, 
-    "browser/base/content/test/urlbar/browser_urlbar_autoFill_backspaced.js": 7083, 
-    "browser/base/content/test/urlbar/browser_urlbar_blanking.js": 4755, 
-    "browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js": 3145, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media.js": 15015, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js": 6437, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_in_frame.js": 9186, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_tear_off_tab.js": 4002, 
-    "browser/components/contextualidentity/test/browser/browser_aboutURLs.js": 20655, 
-    "browser/components/contextualidentity/test/browser/browser_favicon.js": 8811, 
-    "browser/components/contextualidentity/test/browser/browser_forgetAPI_EME_forgetThisSite.js": 5468, 
-    "browser/components/contextualidentity/test/browser/browser_forgetAPI_quota_clearStoragesForPrincipal.js": 4645, 
-    "browser/components/contextualidentity/test/browser/browser_forgetaboutsite.js": 15613, 
-    "browser/components/contextualidentity/test/browser/browser_imageCache.js": 5556, 
-    "browser/components/contextualidentity/test/browser/browser_newtabButton.js": 5962, 
-    "browser/components/contextualidentity/test/browser/browser_serviceworkers.js": 3328, 
-    "browser/components/contextualidentity/test/browser/browser_usercontext.js": 5298, 
-    "browser/components/contextualidentity/test/browser/browser_usercontextid_tabdrop.js": 6384, 
-    "browser/components/customizableui/test/browser_1003588_no_specials_in_panel.js": 4117, 
-    "browser/components/customizableui/test/browser_1007336_lwthemes_in_customize_mode.js": 2698, 
-    "browser/components/customizableui/test/browser_1008559_anchor_undo_restore.js": 10158, 
-    "browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js": 5476, 
-    "browser/components/customizableui/test/browser_876926_customize_mode_wrapping.js": 9557, 
-    "browser/components/customizableui/test/browser_878452_drag_to_panel.js": 3840, 
-    "browser/components/customizableui/test/browser_880164_customization_context_menus.js": 16584, 
-    "browser/components/customizableui/test/browser_880382_drag_wide_widgets_in_panel.js": 8933, 
-    "browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js": 2964, 
-    "browser/components/customizableui/test/browser_885530_showInPrivateBrowsing.js": 13156, 
-    "browser/components/customizableui/test/browser_890140_orphaned_placeholders.js": 16100, 
-    "browser/components/customizableui/test/browser_918049_skipintoolbarset_dnd.js": 2884, 
-    "browser/components/customizableui/test/browser_923857_customize_mode_event_wrapping_during_reset.js": 4475, 
-    "browser/components/customizableui/test/browser_927717_customize_drag_empty_toolbar.js": 2696, 
-    "browser/components/customizableui/test/browser_934951_zoom_in_toolbar.js": 3110, 
-    "browser/components/customizableui/test/browser_938980_navbar_collapsed.js": 18610, 
-    "browser/components/customizableui/test/browser_956602_remove_special_widget.js": 2754, 
-    "browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js": 2843, 
-    "browser/components/customizableui/test/browser_963639_customizing_attribute_non_customizable_toolbar.js": 2665, 
-    "browser/components/customizableui/test/browser_967000_button_sync.js": 21565, 
-    "browser/components/customizableui/test/browser_968565_insert_before_hidden_items.js": 3967, 
-    "browser/components/customizableui/test/browser_969661_character_encoding_navbar_disabled.js": 2788, 
-    "browser/components/customizableui/test/browser_970511_undo_restore_default.js": 16172, 
-    "browser/components/customizableui/test/browser_973932_addonbar_currentset.js": 4063, 
-    "browser/components/customizableui/test/browser_975719_customtoolbars_behaviour.js": 12717, 
-    "browser/components/customizableui/test/browser_978084_dragEnd_after_move.js": 5406, 
-    "browser/components/customizableui/test/browser_985815_propagate_setToolbarVisibility.js": 6881, 
-    "browser/components/customizableui/test/browser_987640_charEncoding.js": 2958, 
-    "browser/components/customizableui/test/browser_988072_sidebar_events.js": 5655, 
-    "browser/components/customizableui/test/browser_993322_widget_notoolbar.js": 2659, 
-    "browser/components/customizableui/test/browser_995164_registerArea_during_customize_mode.js": 9798, 
-    "browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js": 9780, 
-    "browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js": 2711, 
-    "browser/components/customizableui/test/browser_switch_to_customize_mode.js": 6446, 
-    "browser/components/downloads/test/browser/browser_confirm_unblock_download.js": 5673, 
-    "browser/components/downloads/test/browser/browser_downloads_panel_block.js": 22665, 
-    "browser/components/downloads/test/browser/browser_iframe_gone_mid_download.js": 10126, 
-    "browser/components/downloads/test/browser/browser_indicatorDrop.js": 5207, 
-    "browser/components/downloads/test/browser/browser_libraryDrop.js": 6573, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_context.js": 6300, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js": 14329, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon_permissions.js": 4795, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_popup.js": 13629, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js": 5212, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js": 12029, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_simple.js": 2864, 
-    "browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js": 4052, 
-    "browser/components/extensions/test/browser/browser_ext_commands_onCommand.js": 5729, 
-    "browser/components/extensions/test/browser/browser_ext_contentscript_connect.js": 2752, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus.js": 8163, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus_onclick.js": 20234, 
-    "browser/components/extensions/test/browser/browser_ext_currentWindow.js": 10238, 
-    "browser/components/extensions/test/browser/browser_ext_getViews.js": 10194, 
-    "browser/components/extensions/test/browser/browser_ext_history.js": 2761, 
-    "browser/components/extensions/test/browser/browser_ext_incognito_popup.js": 5523, 
-    "browser/components/extensions/test/browser/browser_ext_incognito_views.js": 4503, 
-    "browser/components/extensions/test/browser/browser_ext_legacy_extension_context_contentscript.js": 3826, 
-    "browser/components/extensions/test/browser/browser_ext_omnibox.js": 8347, 
-    "browser/components/extensions/test/browser/browser_ext_optionsPage_privileges.js": 5250, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_context.js": 8940, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_popup.js": 6095, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_title.js": 9914, 
-    "browser/components/extensions/test/browser/browser_ext_popup_api_injection.js": 3388, 
-    "browser/components/extensions/test/browser/browser_ext_popup_background.js": 3376, 
-    "browser/components/extensions/test/browser/browser_ext_popup_corners.js": 2832, 
-    "browser/components/extensions/test/browser/browser_ext_popup_shutdown.js": 4009, 
-    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js": 25951, 
-    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js": 5089, 
-    "browser/components/extensions/test/browser/browser_ext_runtime_setUninstallURL.js": 4242, 
-    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed.js": 16179, 
-    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js": 4967, 
-    "browser/components/extensions/test/browser/browser_ext_sessions_restore.js": 13155, 
-    "browser/components/extensions/test/browser/browser_ext_tab_runtimeConnect.js": 2778, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_audio.js": 3403, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js": 8268, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId.js": 12419, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_create.js": 9721, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_detectLanguage.js": 3805, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js": 8420, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_events.js": 13310, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js": 4795, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js": 7985, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js": 9270, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_runAt.js": 3031, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move.js": 4072, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move_window.js": 8759, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_multiple.js": 7095, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_pinned.js": 5873, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js": 3548, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js": 17361, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_query.js": 10703, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js": 5331, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_update.js": 2635, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_update_url.js": 6590, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_zoom.js": 6108, 
-    "browser/components/extensions/test/browser/browser_ext_webNavigation_urlbar_transitions.js": 8815, 
-    "browser/components/extensions/test/browser/browser_ext_webRequest.js": 5725, 
-    "browser/components/extensions/test/browser/browser_ext_windows_allowScriptsToClose.js": 7452, 
-    "browser/components/extensions/test/browser/browser_ext_windows_create.js": 12038, 
-    "browser/components/extensions/test/browser/browser_ext_windows_create_tabId.js": 11520, 
-    "browser/components/extensions/test/browser/browser_ext_windows_create_url.js": 10253, 
-    "browser/components/extensions/test/browser/browser_ext_windows_events.js": 4538, 
-    "browser/components/extensions/test/browser/browser_ext_windows_size.js": 3534, 
-    "browser/components/extensions/test/browser/browser_ext_windows_update.js": 8075, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js": 8695, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_pageAction_icon.js": 14635, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_pageAction_icon_permissions.js": 8121, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup.js": 15769, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup_preload.js": 5990, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup_resize.js": 12165, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_simple.js": 3453, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_commands_execute_browser_action.js": 6277, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_commands_execute_page_action.js": 2762, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_commands_onCommand.js": 6624, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus.js": 10290, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_actionMenus.js": 3063, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_checkboxes.js": 3168, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_chrome.js": 5107, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_onclick.js": 21945, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_radioGroups.js": 2916, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_uninstall.js": 3330, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_urlPatterns.js": 3045, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_currentWindow.js": 11330, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_getViews.js": 11257, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_incognito_popup.js": 6068, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_incognito_views.js": 5153, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_lastError.js": 3287, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_omnibox.js": 9337, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_optionsPage_privileges.js": 5639, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_context.js": 9585, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_popup.js": 6144, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_popup_resize.js": 3622, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_title.js": 11366, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_api_injection.js": 3817, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_background.js": 3841, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_corners.js": 3373, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_sendMessage.js": 3224, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_shutdown.js": 5734, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_runtime_openOptionsPage.js": 29757, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_runtime_openOptionsPage_uninstall.js": 6092, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_runtime_setUninstallURL.js": 5937, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sessions_getRecentlyClosed.js": 16618, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sessions_getRecentlyClosed_private.js": 5558, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sessions_restore.js": 13634, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tab_runtimeConnect.js": 3585, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_audio.js": 4175, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_captureVisibleTab.js": 11402, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_cookieStoreId.js": 12035, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_create.js": 10233, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_create_invalid_url.js": 3392, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_detectLanguage.js": 4729, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_duplicate.js": 10649, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_events.js": 15209, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript.js": 5652, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_bad.js": 11694, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_good.js": 13878, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_runAt.js": 3664, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_getCurrent.js": 3280, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_insertCSS.js": 2850, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move.js": 6226, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move_window.js": 10003, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move_window_multiple.js": 8105, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move_window_pinned.js": 6474, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_onHighlighted.js": 3136, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_onUpdated.js": 19503, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_query.js": 14949, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_reload.js": 2811, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_reload_bypass_cache.js": 2932, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_removeCSS.js": 3081, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_sendMessage.js": 6988, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_update.js": 3288, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_update_url.js": 9245, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_zoom.js": 7363, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_theme_extreme.js": 2812, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_theme_icons.js": 2792, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_theme_lwtsupport.js": 3092, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_webNavigation_getFrames.js": 3528, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_webNavigation_urlbar_transitions.js": 11560, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_webRequest.js": 6269, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows.js": 3597, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_create.js": 12054, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_create_tabId.js": 12150, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_create_url.js": 9935, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_events.js": 5159, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_size.js": 4025, 
-    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_update.js": 9662, 
-    "browser/components/newtab/tests/browser/browser_newtab_overrides.js": 6212, 
-    "browser/components/newtab/tests/browser/browser_newtabwebchannel.js": 6703, 
-    "browser/components/originattributes/test/browser/browser_blobURLIsolation.js": 12696, 
-    "browser/components/originattributes/test/browser/browser_broadcastChannel.js": 11739, 
-    "browser/components/originattributes/test/browser/browser_cache.js": 23362, 
-    "browser/components/originattributes/test/browser/browser_cacheAPI.js": 16149, 
-    "browser/components/originattributes/test/browser/browser_clientAuth.js": 17197, 
-    "browser/components/originattributes/test/browser/browser_cookieIsolation.js": 9713, 
-    "browser/components/originattributes/test/browser/browser_favicon_firstParty.js": 11267, 
-    "browser/components/originattributes/test/browser/browser_favicon_userContextId.js": 7680, 
-    "browser/components/originattributes/test/browser/browser_firstPartyIsolation.js": 17088, 
-    "browser/components/originattributes/test/browser/browser_httpauth.js": 22120, 
-    "browser/components/originattributes/test/browser/browser_imageCacheIsolation.js": 19931, 
-    "browser/components/originattributes/test/browser/browser_localStorageIsolation.js": 9519, 
-    "browser/components/originattributes/test/browser/browser_permissions.js": 10375, 
-    "browser/components/originattributes/test/browser/browser_sanitize.js": 10658, 
-    "browser/components/originattributes/test/browser/browser_sharedworker.js": 10557, 
-    "browser/components/places/tests/browser/browser_bookmarkProperties_addKeywordForThisSearch.js": 6689, 
-    "browser/components/places/tests/browser/browser_bookmarkProperties_editTagContainer.js": 2668, 
-    "browser/components/places/tests/browser/browser_bookmarklet_windowOpen.js": 2811, 
-    "browser/components/places/tests/browser/browser_bookmarksProperties.js": 4908, 
-    "browser/components/places/tests/browser/browser_forgetthissite_single.js": 2712, 
-    "browser/components/places/tests/browser/browser_library_commands.js": 6259, 
-    "browser/components/places/tests/browser/browser_library_middleclick.js": 4930, 
-    "browser/components/places/tests/browser/browser_library_views_liveupdate.js": 9129, 
-    "browser/components/places/tests/browser/browser_sort_in_library.js": 2771, 
-    "browser/components/places/tests/browser/browser_views_liveupdate.js": 4735, 
-    "browser/components/preferences/in-content-new/tests/browser_advanced_siteData.js": 5809, 
-    "browser/components/preferences/in-content-new/tests/browser_advanced_update.js": 4994, 
-    "browser/components/preferences/in-content-new/tests/browser_basic_rebuild_fonts_test.js": 3402, 
-    "browser/components/preferences/in-content-new/tests/browser_bug1020245_openPreferences_to_paneContent.js": 8840, 
-    "browser/components/preferences/in-content-new/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.js": 3776, 
-    "browser/components/preferences/in-content-new/tests/browser_bug731866.js": 4124, 
-    "browser/components/preferences/in-content-new/tests/browser_connection_bug388287.js": 5029, 
-    "browser/components/preferences/in-content-new/tests/browser_cookies_exceptions.js": 32201, 
-    "browser/components/preferences/in-content-new/tests/browser_defaultbrowser_alwayscheck.js": 3689, 
-    "browser/components/preferences/in-content-new/tests/browser_homepages_filter_aboutpreferences.js": 3358, 
-    "browser/components/preferences/in-content-new/tests/browser_permissions_urlFieldHidden.js": 4320, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_1.js": 13262, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_3.js": 12449, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_4.js": 21002, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_5.js": 12584, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_8.js": 12359, 
-    "browser/components/preferences/in-content-new/tests/browser_sanitizeOnShutdown_prefLocked.js": 4144, 
-    "browser/components/preferences/in-content-new/tests/browser_searchsuggestions.js": 3473, 
-    "browser/components/preferences/in-content-new/tests/browser_security.js": 16398, 
-    "browser/components/preferences/in-content-new/tests/browser_subdialogs.js": 9718, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js": 6766, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js": 5869, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutHomeButtonAfterWindowClose.js": 4184, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutSessionRestore.js": 4488, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_blobUrl.js": 4308, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_cache.js": 3564, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_certexceptionsui.js": 2834, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_concurrent.js": 8634, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_context_and_chromeFlags.js": 3429, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_crh.js": 4396, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir.js": 5198, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js": 5365, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_toggle.js": 10849, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_favicon.js": 10071, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js": 6547, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_lastpbcontextexited.js": 6603, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage.js": 3786, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage_before_after.js": 5353, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_newtab_from_popup.js": 5469, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_noSessionRestoreMenuOption.js": 3943, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_nonbrowser.js": 2977, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_opendir.js": 3419, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placesTitleNoUpdate.js": 3645, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js": 7026, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js": 6747, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_protocolhandler.js": 5606, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js": 14661, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_ui.js": 3892, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_urlbarfocus.js": 3978, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js": 33528, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoom.js": 4290, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoomrestore.js": 3805, 
-    "browser/components/search/test/browser_426329.js": 9526, 
-    "browser/components/search/test/browser_aboutSearchReset.js": 5717, 
-    "browser/components/search/test/browser_amazon_behavior.js": 2653, 
-    "browser/components/search/test/browser_contextmenu.js": 3521, 
-    "browser/components/search/test/browser_google_behavior.js": 2646, 
-    "browser/components/search/test/browser_private_search_perwindowpb.js": 7022, 
-    "browser/components/search/test/browser_searchbar_keyboard_navigation.js": 2877, 
-    "browser/components/search/test/browser_webapi.js": 7355, 
-    "browser/components/search/test/browser_yahoo_behavior.js": 2951, 
-    "browser/components/sessionstore/test/browser_339445.js": 2878, 
-    "browser/components/sessionstore/test/browser_354894_perwindowpb.js": 38482, 
-    "browser/components/sessionstore/test/browser_393716.js": 3037, 
-    "browser/components/sessionstore/test/browser_394759_behavior.js": 23801, 
-    "browser/components/sessionstore/test/browser_394759_perwindowpb.js": 8814, 
-    "browser/components/sessionstore/test/browser_423132.js": 2951, 
-    "browser/components/sessionstore/test/browser_477657.js": 2742, 
-    "browser/components/sessionstore/test/browser_480893.js": 2844, 
-    "browser/components/sessionstore/test/browser_490040.js": 8565, 
-    "browser/components/sessionstore/test/browser_491168.js": 3299, 
-    "browser/components/sessionstore/test/browser_495495.js": 7224, 
-    "browser/components/sessionstore/test/browser_500328.js": 2931, 
-    "browser/components/sessionstore/test/browser_522545.js": 32199, 
-    "browser/components/sessionstore/test/browser_524745.js": 2799, 
-    "browser/components/sessionstore/test/browser_586068-apptabs.js": 6714, 
-    "browser/components/sessionstore/test/browser_586068-apptabs_ondemand.js": 9566, 
-    "browser/components/sessionstore/test/browser_586068-browser_state_interrupted.js": 14276, 
-    "browser/components/sessionstore/test/browser_586068-cascade.js": 8020, 
-    "browser/components/sessionstore/test/browser_586068-multi_window.js": 10010, 
-    "browser/components/sessionstore/test/browser_586068-reload.js": 11933, 
-    "browser/components/sessionstore/test/browser_586068-select.js": 8171, 
-    "browser/components/sessionstore/test/browser_586068-window_state.js": 12011, 
-    "browser/components/sessionstore/test/browser_586068-window_state_override.js": 8031, 
-    "browser/components/sessionstore/test/browser_588426.js": 3153, 
-    "browser/components/sessionstore/test/browser_590268.js": 15053, 
-    "browser/components/sessionstore/test/browser_590563.js": 4510, 
-    "browser/components/sessionstore/test/browser_595601-restore_hidden.js": 18914, 
-    "browser/components/sessionstore/test/browser_600545.js": 12385, 
-    "browser/components/sessionstore/test/browser_601955.js": 5227, 
-    "browser/components/sessionstore/test/browser_607016.js": 3238, 
-    "browser/components/sessionstore/test/browser_615394-SSWindowState_events.js": 40936, 
-    "browser/components/sessionstore/test/browser_618151.js": 2796, 
-    "browser/components/sessionstore/test/browser_625016.js": 3721, 
-    "browser/components/sessionstore/test/browser_635418.js": 4968, 
-    "browser/components/sessionstore/test/browser_636279.js": 4428, 
-    "browser/components/sessionstore/test/browser_637020.js": 7404, 
-    "browser/components/sessionstore/test/browser_644409-scratchpads.js": 5537, 
-    "browser/components/sessionstore/test/browser_659591.js": 2763, 
-    "browser/components/sessionstore/test/browser_662743.js": 4945, 
-    "browser/components/sessionstore/test/browser_701377.js": 5796, 
-    "browser/components/sessionstore/test/browser_819510_perwindowpb.js": 30564, 
-    "browser/components/sessionstore/test/browser_911547.js": 2917, 
-    "browser/components/sessionstore/test/browser_aboutSessionRestore.js": 3512, 
-    "browser/components/sessionstore/test/browser_async_duplicate_tab.js": 3388, 
-    "browser/components/sessionstore/test/browser_async_flushes.js": 4768, 
-    "browser/components/sessionstore/test/browser_async_remove_tab.js": 9518, 
-    "browser/components/sessionstore/test/browser_async_window_flushing.js": 8162, 
-    "browser/components/sessionstore/test/browser_background_tab_crash.js": 32355, 
-    "browser/components/sessionstore/test/browser_backup_recovery.js": 12682, 
-    "browser/components/sessionstore/test/browser_broadcast.js": 9539, 
-    "browser/components/sessionstore/test/browser_cleaner.js": 12624, 
-    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_tabs.js": 12485, 
-    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_windows.js": 19432, 
-    "browser/components/sessionstore/test/browser_cookies.js": 25064, 
-    "browser/components/sessionstore/test/browser_crashedTabs.js": 45302, 
-    "browser/components/sessionstore/test/browser_docshell_uuid_consistency.js": 4298, 
-    "browser/components/sessionstore/test/browser_dying_cache.js": 4078, 
-    "browser/components/sessionstore/test/browser_forget_async_closings.js": 8652, 
-    "browser/components/sessionstore/test/browser_formdata.js": 9252, 
-    "browser/components/sessionstore/test/browser_formdata_cc.js": 28234, 
-    "browser/components/sessionstore/test/browser_formdata_format.js": 14684, 
-    "browser/components/sessionstore/test/browser_formdata_xpath.js": 3662, 
-    "browser/components/sessionstore/test/browser_frame_history.js": 8320, 
-    "browser/components/sessionstore/test/browser_frametree.js": 4303, 
-    "browser/components/sessionstore/test/browser_grouped_session_store.js": 8304, 
-    "browser/components/sessionstore/test/browser_history_persist.js": 3533, 
-    "browser/components/sessionstore/test/browser_merge_closed_tabs.js": 3484, 
-    "browser/components/sessionstore/test/browser_newtab_userTypedValue.js": 33336, 
-    "browser/components/sessionstore/test/browser_pageStyle.js": 9837, 
-    "browser/components/sessionstore/test/browser_privatetabs.js": 9934, 
-    "browser/components/sessionstore/test/browser_remoteness_flip_on_restore.js": 31140, 
-    "browser/components/sessionstore/test/browser_replace_load.js": 3307, 
-    "browser/components/sessionstore/test/browser_restore_cookies_noOriginAttributes.js": 4540, 
-    "browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js": 5862, 
-    "browser/components/sessionstore/test/browser_scrollPositions.js": 22895, 
-    "browser/components/sessionstore/test/browser_scrollPositionsReaderMode.js": 9633, 
-    "browser/components/sessionstore/test/browser_sessionHistory.js": 10252, 
-    "browser/components/sessionstore/test/browser_sessionStorage.js": 8711, 
-    "browser/components/sessionstore/test/browser_sessionStoreContainer.js": 15636, 
-    "browser/components/sessionstore/test/browser_swapDocShells.js": 4691, 
-    "browser/components/sessionstore/test/browser_switch_remoteness.js": 8180, 
-    "browser/components/sessionstore/test/browser_undoCloseById.js": 6570, 
-    "browser/components/sessionstore/test/browser_unrestored_crashedTabs.js": 5777, 
-    "browser/components/sessionstore/test/browser_windowRestore_perwindowpb.js": 3309, 
-    "browser/components/sessionstore/test/browser_windowStateContainer.js": 27550, 
-    "browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js": 3056, 
-    "browser/components/tests/browser/browser_bug538331.js": 2826, 
-    "browser/components/translation/test/browser_translation_exceptions.js": 5142, 
-    "browser/components/translation/test/browser_translation_telemetry.js": 14685, 
-    "browser/components/translation/test/browser_translation_yandex.js": 3797, 
-    "browser/components/uitour/test/browser_UITour.js": 4388, 
-    "browser/components/uitour/test/browser_UITour2.js": 5610, 
-    "browser/components/uitour/test/browser_UITour_annotation_size_attributes.js": 2687, 
-    "browser/components/uitour/test/browser_UITour_availableTargets.js": 2729, 
-    "browser/components/uitour/test/browser_UITour_detach_tab.js": 3863, 
-    "browser/components/uitour/test/browser_UITour_heartbeat.js": 34288, 
-    "browser/components/uitour/test/browser_UITour_observe.js": 5301, 
-    "browser/components/uitour/test/browser_UITour_registerPageID.js": 3315, 
-    "browser/components/uitour/test/browser_UITour_sync.js": 19210, 
-    "browser/components/uitour/test/browser_backgroundTab.js": 8346, 
-    "browser/components/uitour/test/browser_openPreferences.js": 6981, 
-    "browser/components/uitour/test/browser_showMenu_controlCenter.js": 3441, 
-    "browser/components/uitour/test/browser_trackingProtection.js": 3331, 
-    "browser/components/uitour/test/browser_trackingProtection_tour.js": 5364, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_main.js": 6849, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_navigation.js": 9323, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_views.js": 5701, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_zoom.js": 10608, 
-    "browser/extensions/shield-recipe-client/test/browser_Heartbeat.js": 8542, 
-    "browser/modules/test/browser_BrowserUITelemetry_buckets.js": 4394, 
-    "browser/modules/test/browser_CaptivePortalWatcher.js": 17780, 
-    "browser/modules/test/browser_ContentSearch.js": 6354, 
-    "browser/modules/test/browser_NetworkPrioritizer.js": 10398, 
-    "browser/modules/test/browser_PermissionUI.js": 6192, 
-    "browser/modules/test/browser_SelfSupportBackend.js": 5739, 
-    "browser/modules/test/browser_UnsubmittedCrashHandler.js": 3787, 
-    "browser/modules/test/browser_UsageTelemetry.js": 16257, 
-    "browser/modules/test/browser_UsageTelemetry_content.js": 4343, 
-    "browser/modules/test/browser_UsageTelemetry_content_aboutHome.js": 2857, 
-    "browser/modules/test/browser_UsageTelemetry_private_and_restore.js": 3264, 
-    "browser/modules/test/browser_UsageTelemetry_searchbar.js": 5439, 
-    "browser/modules/test/browser_UsageTelemetry_urlbar.js": 8094, 
-    "docshell/test/browser/browser_bug1309900_crossProcessHistoryNavigation.js": 3678, 
-    "docshell/test/browser/browser_bug388121-2.js": 3125, 
-    "docshell/test/browser/browser_bug422543.js": 3630, 
-    "docshell/test/browser/browser_bug852909.js": 2710, 
-    "docshell/test/browser/browser_bug92473.js": 3676, 
-    "docshell/test/browser/browser_grouped_shistory_bfcache_cleaning.js": 3003, 
-    "docshell/test/browser/browser_onbeforeunload_navigation.js": 6741, 
-    "docshell/test/browser/browser_timelineMarkers-03.js": 6428, 
-    "docshell/test/browser/browser_uriFixupIntegration.js": 2851, 
-    "docshell/test/navigation/browser_bug343515.js": 4657, 
-    "dom/base/test/browser_bug1058164.js": 4112, 
-    "dom/base/test/browser_bug1307747.js": 3267, 
-    "dom/base/test/browser_bug593387.js": 2717, 
-    "dom/base/test/browser_messagemanager_loadprocessscript.js": 3636, 
-    "dom/base/test/browser_use_counters.js": 30338, 
-    "dom/broadcastchannel/tests/browser_private_browsing.js": 5734, 
-    "dom/html/test/browser_bug1108547.js": 17434, 
-    "dom/html/test/browser_fullscreen-contextmenu-esc.js": 2742, 
-    "dom/indexedDB/test/browser_forgetThisSite.js": 5385, 
-    "dom/indexedDB/test/browser_permissionsPromptDeny.js": 4758, 
-    "dom/indexedDB/test/browser_permissionsPromptWorker.js": 2634, 
-    "dom/indexedDB/test/browser_perwindow_privateBrowsing.js": 3983, 
-    "dom/ipc/tests/browser_domainPolicy.js": 11725, 
-    "dom/manifest/test/browser_ManifestFinder_browserHasManifestLink.js": 3021, 
-    "dom/manifest/test/browser_ManifestObtainer_obtain.js": 23387, 
-    "dom/media/webaudio/test/browser_bug1181073.js": 4703, 
-    "dom/notification/test/browser/browser_permission_dismiss.js": 2646, 
-    "dom/security/test/contentverifier/browser_verify_content_about_newtab.js": 14195, 
-    "dom/security/test/contentverifier/browser_verify_content_about_newtab2.js": 12159, 
-    "dom/security/test/csp/browser_test_web_manifest.js": 6022, 
-    "dom/security/test/hsts/browser_hsts-priming_allow_active.js": 2840, 
-    "dom/security/test/hsts/browser_hsts-priming_block_active.js": 3459, 
-    "dom/security/test/hsts/browser_hsts-priming_block_active_with_redir_same.js": 3233, 
-    "dom/security/test/hsts/browser_hsts-priming_cache-timeout.js": 3469, 
-    "dom/security/test/hsts/browser_hsts-priming_hsts_after_mixed.js": 2658, 
-    "dom/security/test/hsts/browser_hsts-priming_no-duplicates.js": 3793, 
-    "dom/security/test/hsts/browser_hsts-priming_timeout.js": 4040, 
-    "dom/tests/browser/browser_ConsoleStoragePBTest_perwindowpb.js": 3659, 
-    "dom/tests/browser/browser_bug396843.js": 6574, 
-    "dom/tests/browser/browser_focus_steal_from_chrome.js": 25508, 
-    "dom/tests/browser/browser_largeAllocation.js": 16126, 
-    "dom/tests/browser/browser_localStorage_privatestorageevent.js": 5312, 
-    "dom/tests/browser/browser_prerendering.js": 2938, 
-    "dom/tests/browser/browser_test_new_window_from_content.js": 34364, 
-    "dom/tests/browser/browser_test_toolbars_visibility.js": 9886, 
-    "dom/workers/test/serviceworkers/browser_download.js": 2983, 
-    "editor/libeditor/tests/browser_bug527935.js": 2758, 
-    "embedding/components/windowwatcher/test/browser_new_content_window_chromeflags.js": 4855, 
-    "embedding/components/windowwatcher/test/browser_new_remote_window_flags.js": 6497, 
-    "embedding/components/windowwatcher/test/browser_new_sized_window.js": 6044, 
-    "embedding/test/browser_bug1204626.js": 6998, 
-    "layout/base/tests/browser_bug617076.js": 3093, 
-    "layout/base/tests/browser_disableDialogs_onbeforeunload.js": 4037, 
-    "layout/base/tests/browser_onbeforeunload_only_after_interaction.js": 3215, 
-    "layout/base/tests/browser_onbeforeunload_only_after_interaction_in_frame.js": 3325, 
-    "netwerk/cookie/test/browser/browser_originattributes.js": 6540, 
-    "netwerk/test/browser/browser_child_resource.js": 12411, 
-    "netwerk/test/browser/browser_post_file.js": 4241, 
-    "security/manager/ssl/tests/mochitest/browser/browser_bug627234_perwindowpb.js": 5670, 
-    "security/manager/ssl/tests/mochitest/browser/browser_certViewer.js": 7173, 
-    "security/manager/ssl/tests/mochitest/browser/browser_clientAuth_connection.js": 3739, 
-    "security/manager/ssl/tests/mochitest/browser/browser_deleteCert_ui.js": 3388, 
-    "testing/mochitest/tests/browser/browser_async.js": 10091, 
-    "testing/mochitest/tests/browser/browser_browserLoaded_content_loaded.js": 3364, 
-    "toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js": 8789, 
-    "toolkit/components/addoncompat/tests/browser/browser_addonShims.js": 9473, 
-    "toolkit/components/narrate/test/browser_narrate.js": 7247, 
-    "toolkit/components/narrate/test/browser_narrate_disable.js": 3577, 
-    "toolkit/components/narrate/test/browser_narrate_language.js": 2765, 
-    "toolkit/components/narrate/test/browser_voiceselect.js": 4199, 
-    "toolkit/components/narrate/test/browser_word_highlight.js": 4310, 
-    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger.js": 36259, 
-    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_httpsUpgrade.js": 5705, 
-    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_window_open.js": 11188, 
-    "toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js": 7185, 
-    "toolkit/components/passwordmgr/test/browser/browser_hasInsecureLoginForms.js": 3532, 
-    "toolkit/components/passwordmgr/test/browser/browser_http_autofill.js": 5749, 
-    "toolkit/components/passwordmgr/test/browser/browser_insecurePasswordWarning.js": 12930, 
-    "toolkit/components/passwordmgr/test/browser/browser_notifications.js": 5286, 
-    "toolkit/components/passwordmgr/test/browser/browser_notifications_password.js": 6651, 
-    "toolkit/components/passwordmgr/test/browser/browser_notifications_username.js": 10188, 
-    "toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js": 8993, 
-    "toolkit/components/passwordmgr/test/browser/browser_username_select_dialog.js": 3961, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_AddonWatcher.js": 12083, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts.js": 25867, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts_2.js": 6786, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_webpagePerformanceAlerts.js": 32808, 
-    "toolkit/components/places/tests/browser/browser_bug248970.js": 6832, 
-    "toolkit/components/places/tests/browser/browser_bug399606.js": 12353, 
-    "toolkit/components/places/tests/browser/browser_bug461710.js": 4764, 
-    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage.js": 6593, 
-    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage_failures.js": 11993, 
-    "toolkit/components/places/tests/browser/browser_visituri_privatebrowsing_perwindowpb.js": 4136, 
-    "toolkit/components/reader/test/browser_readerMode.js": 6766, 
-    "toolkit/components/reader/test/browser_readerMode_readingTime.js": 3200, 
-    "toolkit/components/remotebrowserutils/tests/browser/browser_RemoteWebNavigation.js": 4608, 
-    "toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js": 5319, 
-    "toolkit/components/startup/tests/browser/browser_bug511456.js": 3606, 
-    "toolkit/components/startup/tests/browser/browser_crash_detection.js": 35078, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_bg_destroy_browser.js": 2825, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_privacy.js": 10033, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_storage.js": 4779, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_update.js": 5801, 
-    "toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js": 6114, 
-    "toolkit/components/viewsource/test/browser/browser_bug464222.js": 3341, 
-    "toolkit/components/viewsource/test/browser/browser_bug713810.js": 3131, 
-    "toolkit/components/viewsource/test/browser/browser_viewsourceprefs.js": 3150, 
-    "toolkit/content/tests/browser/browser_audioCompeting.js": 4693, 
-    "toolkit/content/tests/browser/browser_bug1170531.js": 2687, 
-    "toolkit/content/tests/browser/browser_bug295977_autoscroll_overflow.js": 7231, 
-    "toolkit/content/tests/browser/browser_content_url_annotation.js": 2753, 
-    "toolkit/content/tests/browser/browser_crash_previous_frameloader.js": 3003, 
-    "toolkit/content/tests/browser/browser_f7_caret_browsing.js": 5261, 
-    "toolkit/content/tests/browser/browser_findbar.js": 12430, 
-    "toolkit/content/tests/browser/browser_label_textlink.js": 3976, 
-    "toolkit/content/tests/browser/browser_mediaPlayback.js": 6889, 
-    "toolkit/content/tests/browser/browser_mediaPlayback_mute.js": 9990, 
-    "toolkit/content/tests/browser/browser_mediaPlayback_suspended.js": 5188, 
-    "toolkit/content/tests/browser/browser_mediaPlayback_suspended_multipleAudio.js": 9034, 
-    "toolkit/content/tests/browser/browser_quickfind_editable.js": 4005, 
-    "toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js": 2879, 
-    "toolkit/modules/tests/browser/browser_RemotePageManager.js": 9725, 
-    "toolkit/modules/tests/browser/browser_WebRequest.js": 5284, 
-    "toolkit/mozapps/extensions/test/browser/browser_CTP_plugins.js": 13838, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug557943.js": 2647, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug557956.js": 30736, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562797.js": 69412, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562854.js": 7206, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562890.js": 3000, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562899.js": 4375, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562992.js": 3076, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug567127.js": 2900, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug567137.js": 7355, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug572561.js": 6580, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug577990.js": 17549, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug580298.js": 3569, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug581076.js": 11480, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug586574.js": 3823, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug587970.js": 3230, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug590347.js": 3586, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug591465.js": 7348, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug591663.js": 5829, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug596336.js": 7869, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug608316.js": 3286, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug610764.js": 4074, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug618502.js": 3939, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug679604.js": 4171, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug714593.js": 3279, 
-    "toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js": 20610, 
-    "toolkit/mozapps/extensions/test/browser/browser_details.js": 44528, 
-    "toolkit/mozapps/extensions/test/browser/browser_discovery.js": 62860, 
-    "toolkit/mozapps/extensions/test/browser/browser_discovery_install.js": 16361, 
-    "toolkit/mozapps/extensions/test/browser/browser_dragdrop.js": 6710, 
-    "toolkit/mozapps/extensions/test/browser/browser_eula.js": 4062, 
-    "toolkit/mozapps/extensions/test/browser/browser_experiments.js": 11973, 
-    "toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js": 5113, 
-    "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js": 53557, 
-    "toolkit/mozapps/extensions/test/browser/browser_hotfix.js": 4078, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings.js": 10764, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_browser.js": 7811, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_custom.js": 3870, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_info.js": 10507, 
-    "toolkit/mozapps/extensions/test/browser/browser_install.js": 20304, 
-    "toolkit/mozapps/extensions/test/browser/browser_installssl.js": 13849, 
-    "toolkit/mozapps/extensions/test/browser/browser_list.js": 16456, 
-    "toolkit/mozapps/extensions/test/browser/browser_manualupdates.js": 6810, 
-    "toolkit/mozapps/extensions/test/browser/browser_newaddon.js": 5304, 
-    "toolkit/mozapps/extensions/test/browser/browser_openDialog.js": 3149, 
-    "toolkit/mozapps/extensions/test/browser/browser_plugin_enabled_state_locked.js": 4336, 
-    "toolkit/mozapps/extensions/test/browser/browser_pluginprefs.js": 2734, 
-    "toolkit/mozapps/extensions/test/browser/browser_purchase.js": 6251, 
-    "toolkit/mozapps/extensions/test/browser/browser_recentupdates.js": 8887, 
-    "toolkit/mozapps/extensions/test/browser/browser_searching.js": 26394, 
-    "toolkit/mozapps/extensions/test/browser/browser_sorting.js": 7486, 
-    "toolkit/mozapps/extensions/test/browser/browser_sorting_plugins.js": 3145, 
-    "toolkit/mozapps/extensions/test/browser/browser_tabsettings.js": 3391, 
-    "toolkit/mozapps/extensions/test/browser/browser_types.js": 33981, 
-    "toolkit/mozapps/extensions/test/browser/browser_uninstalling.js": 22055, 
-    "toolkit/mozapps/extensions/test/browser/browser_updateid.js": 3257, 
-    "toolkit/mozapps/extensions/test/browser/browser_updatessl.js": 20643, 
-    "toolkit/mozapps/extensions/test/browser/browser_webapi_access.js": 8925, 
-    "toolkit/mozapps/extensions/test/browser/browser_webapi_addon_listener.js": 5518, 
-    "toolkit/mozapps/extensions/test/browser/browser_webapi_install.js": 9827, 
-    "toolkit/mozapps/extensions/test/browser/browser_webext_options.js": 8145, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_CTP_plugins.js": 12575, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562797.js": 31916, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562854.js": 5907, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562899.js": 4155, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug567137.js": 6618, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug572561.js": 5521, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug577990.js": 13724, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug580298.js": 2993, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug581076.js": 9600, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug586574.js": 3185, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug590347.js": 2952, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591465.js": 6409, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591663.js": 4501, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug596336.js": 6843, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug610764.js": 3232, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug618502.js": 2769, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug679604.js": 3301, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug714593.js": 2702, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_details.js": 39524, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_discovery.js": 47140, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_dragdrop.js": 4667, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_eula.js": 3478, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_experiments.js": 8203, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_globalwarnings.js": 4084, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings.js": 9106, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_browser.js": 7250, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_custom.js": 3430, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_info.js": 9317, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_install.js": 17430, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_list.js": 14900, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_manualupdates.js": 5859, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_openDialog.js": 2825, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_plugin_enabled_state_locked.js": 3748, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_purchase.js": 5235, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_recentupdates.js": 7919, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_searching.js": 22098, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting.js": 6879, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting_plugins.js": 3288, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_tabsettings.js": 2676, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_types.js": 28168, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_uninstalling.js": 19153, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_webext_options.js": 6971, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_amosigned_trigger.js": 2920, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_auth.js": 2849, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_auth4.js": 2724, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js": 3676, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_concurrent_installs.js": 3441, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_localfile.js": 3563, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_localfile3.js": 2933, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_localfile4.js": 3829, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_signed_multiple.js": 2684, 
+    "Main app process exited normally": 2031025,
+    "accessible/tests/browser/browser_caching_attributes.js": 2753,
+    "accessible/tests/browser/browser_shutdown_acc_reference.js": 3187,
+    "accessible/tests/browser/browser_shutdown_doc_acc_reference.js": 2817,
+    "accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js": 4118,
+    "accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js": 4032,
+    "accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_doc.js": 4807,
+    "accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_obj.js": 4805,
+    "accessible/tests/browser/browser_shutdown_multi_reference.js": 2720,
+    "accessible/tests/browser/browser_shutdown_proxy_acc_reference.js": 3799,
+    "accessible/tests/browser/browser_shutdown_proxy_doc_acc_reference.js": 3746,
+    "accessible/tests/browser/browser_shutdown_start_restart.js": 2701,
+    "accessible/tests/browser/e10s/browser_caching_name.js": 9803,
+    "browser/base/content/test/alerts/browser_notification_open_settings.js": 2814,
+    "browser/base/content/test/captivePortal/browser_captivePortal_certErrorUI.js": 3183,
+    "browser/base/content/test/chat/browser_chatwindow.js": 5602,
+    "browser/base/content/test/chat/browser_focus.js": 4750,
+    "browser/base/content/test/chat/browser_tearoff.js": 3032,
+    "browser/base/content/test/general/browser_aboutAccounts.js": 4700,
+    "browser/base/content/test/general/browser_aboutCertError.js": 11629,
+    "browser/base/content/test/general/browser_aboutHome.js": 24998,
+    "browser/base/content/test/general/browser_aboutHome_wrapsCorrectly.js": 3959,
+    "browser/base/content/test/general/browser_aboutTabCrashed.js": 14550,
+    "browser/base/content/test/general/browser_aboutTabCrashed_clearEmail.js": 2776,
+    "browser/base/content/test/general/browser_addCertException.js": 3849,
+    "browser/base/content/test/general/browser_addKeywordSearch.js": 2907,
+    "browser/base/content/test/general/browser_alltabslistener.js": 3702,
+    "browser/base/content/test/general/browser_audioTabIcon.js": 41909,
+    "browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js": 7882,
+    "browser/base/content/test/general/browser_blockHPKP.js": 3461,
+    "browser/base/content/test/general/browser_bookmark_popup.js": 14200,
+    "browser/base/content/test/general/browser_bookmark_titles.js": 2930,
+    "browser/base/content/test/general/browser_bug1299667.js": 9269,
+    "browser/base/content/test/general/browser_bug386835.js": 5032,
+    "browser/base/content/test/general/browser_bug406216.js": 4791,
+    "browser/base/content/test/general/browser_bug422590.js": 9050,
+    "browser/base/content/test/general/browser_bug460146.js": 4439,
+    "browser/base/content/test/general/browser_bug462673.js": 5101,
+    "browser/base/content/test/general/browser_bug491431.js": 2670,
+    "browser/base/content/test/general/browser_bug495058.js": 6831,
+    "browser/base/content/test/general/browser_bug550565.js": 3997,
+    "browser/base/content/test/general/browser_bug553455.js": 37176,
+    "browser/base/content/test/general/browser_bug575561.js": 13472,
+    "browser/base/content/test/general/browser_bug585558.js": 3058,
+    "browser/base/content/test/general/browser_bug590206.js": 13742,
+    "browser/base/content/test/general/browser_bug592338.js": 5715,
+    "browser/base/content/test/general/browser_bug609700.js": 3600,
+    "browser/base/content/test/general/browser_bug623893.js": 4495,
+    "browser/base/content/test/general/browser_bug676619.js": 12005,
+    "browser/base/content/test/general/browser_bug719271.js": 5308,
+    "browser/base/content/test/general/browser_bug734076.js": 4225,
+    "browser/base/content/test/general/browser_bug763468_perwindowpb.js": 8245,
+    "browser/base/content/test/general/browser_bug767836_perwindowpb.js": 8317,
+    "browser/base/content/test/general/browser_bug817947.js": 4167,
+    "browser/base/content/test/general/browser_bug822367.js": 9554,
+    "browser/base/content/test/general/browser_bug902156.js": 5042,
+    "browser/base/content/test/general/browser_bug906190.js": 28243,
+    "browser/base/content/test/general/browser_bug963945.js": 3613,
+    "browser/base/content/test/general/browser_close_dependent_tabs.js": 2877,
+    "browser/base/content/test/general/browser_contentAltClick.js": 3557,
+    "browser/base/content/test/general/browser_contentSearchUI.js": 20488,
+    "browser/base/content/test/general/browser_contextmenu.js": 4785,
+    "browser/base/content/test/general/browser_contextmenu_childprocess.js": 5501,
+    "browser/base/content/test/general/browser_ctrlTab.js": 5609,
+    "browser/base/content/test/general/browser_datachoices_notification.js": 6696,
+    "browser/base/content/test/general/browser_decoderDoctor.js": 4428,
+    "browser/base/content/test/general/browser_devices_get_user_media.js": 14991,
+    "browser/base/content/test/general/browser_devices_get_user_media_in_frame.js": 4616,
+    "browser/base/content/test/general/browser_documentnavigation.js": 6759,
+    "browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js": 5545,
+    "browser/base/content/test/general/browser_e10s_chrome_process.js": 8580,
+    "browser/base/content/test/general/browser_e10s_switchbrowser.js": 12757,
+    "browser/base/content/test/general/browser_fullscreen-window-open.js": 4312,
+    "browser/base/content/test/general/browser_fxa_oauth.js": 5410,
+    "browser/base/content/test/general/browser_fxa_web_channel.js": 4727,
+    "browser/base/content/test/general/browser_fxaccounts.js": 2909,
+    "browser/base/content/test/general/browser_getshortcutoruri.js": 3083,
+    "browser/base/content/test/general/browser_identity_UI.js": 20930,
+    "browser/base/content/test/general/browser_insecureLoginForms.js": 4482,
+    "browser/base/content/test/general/browser_mcb_redirect.js": 9425,
+    "browser/base/content/test/general/browser_misused_characters_in_strings.js": 5746,
+    "browser/base/content/test/general/browser_mixedContentFromOnunload.js": 2915,
+    "browser/base/content/test/general/browser_mixed_content_cert_override.js": 4893,
+    "browser/base/content/test/general/browser_mixedcontent_securityflags.js": 3358,
+    "browser/base/content/test/general/browser_newTabDrop.js": 6573,
+    "browser/base/content/test/general/browser_newWindowDrop.js": 26213,
+    "browser/base/content/test/general/browser_newwindow_focus.js": 6189,
+    "browser/base/content/test/general/browser_no_mcb_on_http_site.js": 3587,
+    "browser/base/content/test/general/browser_offlineQuotaNotification.js": 3595,
+    "browser/base/content/test/general/browser_overflowScroll.js": 13531,
+    "browser/base/content/test/general/browser_pageInfo.js": 2735,
+    "browser/base/content/test/general/browser_parsable_css.js": 2783,
+    "browser/base/content/test/general/browser_parsable_script.js": 8620,
+    "browser/base/content/test/general/browser_permissions.js": 7325,
+    "browser/base/content/test/general/browser_plainTextLinks.js": 3173,
+    "browser/base/content/test/general/browser_popupUI.js": 2907,
+    "browser/base/content/test/general/browser_printpreview.js": 6858,
+    "browser/base/content/test/general/browser_private_browsing_window.js": 3954,
+    "browser/base/content/test/general/browser_readerMode.js": 3992,
+    "browser/base/content/test/general/browser_refreshBlocker.js": 11983,
+    "browser/base/content/test/general/browser_relatedTabs.js": 9815,
+    "browser/base/content/test/general/browser_remoteTroubleshoot.js": 4239,
+    "browser/base/content/test/general/browser_restore_isAppTab.js": 6238,
+    "browser/base/content/test/general/browser_sanitize-timespans.js": 6091,
+    "browser/base/content/test/general/browser_sanitizeDialog.js": 21552,
+    "browser/base/content/test/general/browser_save_link-perwindowpb.js": 4886,
+    "browser/base/content/test/general/browser_save_link_when_window_navigates.js": 6001,
+    "browser/base/content/test/general/browser_save_private_link_perwindowpb.js": 3473,
+    "browser/base/content/test/general/browser_selectpopup.js": 25885,
+    "browser/base/content/test/general/browser_ssl_error_reports.js": 10048,
+    "browser/base/content/test/general/browser_syncui.js": 5116,
+    "browser/base/content/test/general/browser_tabDrop.js": 5665,
+    "browser/base/content/test/general/browser_tab_close_dependent_window.js": 3872,
+    "browser/base/content/test/general/browser_tab_detach_restore.js": 4869,
+    "browser/base/content/test/general/browser_tab_drag_drop_perwindow.js": 22451,
+    "browser/base/content/test/general/browser_tab_dragdrop.js": 3603,
+    "browser/base/content/test/general/browser_tab_dragdrop2.js": 6579,
+    "browser/base/content/test/general/browser_tabfocus.js": 5898,
+    "browser/base/content/test/general/browser_tabkeynavigation.js": 3751,
+    "browser/base/content/test/general/browser_tabs_isActive.js": 3883,
+    "browser/base/content/test/general/browser_testOpenNewRemoteTabsFromNonRemoteBrowsers.js": 18627,
+    "browser/base/content/test/general/browser_trackingUI_1.js": 10728,
+    "browser/base/content/test/general/browser_trackingUI_2.js": 8000,
+    "browser/base/content/test/general/browser_trackingUI_4.js": 10177,
+    "browser/base/content/test/general/browser_trackingUI_5.js": 10282,
+    "browser/base/content/test/general/browser_trackingUI_telemetry.js": 14193,
+    "browser/base/content/test/general/browser_typeAheadFind.js": 2889,
+    "browser/base/content/test/general/browser_unloaddialogs.js": 2918,
+    "browser/base/content/test/general/browser_utilityOverlay.js": 3089,
+    "browser/base/content/test/general/browser_viewSourceInTabOnViewSource.js": 3445,
+    "browser/base/content/test/general/browser_web_channel.js": 15741,
+    "browser/base/content/test/general/browser_windowactivation.js": 4655,
+    "browser/base/content/test/newtab/browser_newtab_block.js": 4959,
+    "browser/base/content/test/newtab/browser_newtab_bug1194895.js": 7308,
+    "browser/base/content/test/newtab/browser_newtab_drag_drop.js": 4697,
+    "browser/base/content/test/newtab/browser_newtab_drag_drop_ext.js": 6606,
+    "browser/base/content/test/newtab/browser_newtab_enhanced.js": 4411,
+    "browser/base/content/test/newtab/browser_newtab_perwindow_private_browsing.js": 2913,
+    "browser/base/content/test/newtab/browser_newtab_unpin.js": 3032,
+    "browser/base/content/test/plugins/browser_CTP_crashreporting.js": 4878,
+    "browser/base/content/test/plugins/browser_CTP_drag_drop.js": 5737,
+    "browser/base/content/test/plugins/browser_CTP_notificationBar.js": 4802,
+    "browser/base/content/test/plugins/browser_CTP_remove_navigate.js": 3322,
+    "browser/base/content/test/plugins/browser_blocking.js": 9383,
+    "browser/base/content/test/plugins/browser_blocklist_content.js": 3661,
+    "browser/base/content/test/plugins/browser_iterate_hidden_plugins.js": 5033,
+    "browser/base/content/test/plugins/browser_pageInfo_plugins.js": 4977,
+    "browser/base/content/test/plugins/browser_pluginCrashCommentAndURL.js": 4166,
+    "browser/base/content/test/plugins/browser_pluginnotification.js": 13366,
+    "browser/base/content/test/plugins/browser_plugins_added_dynamically.js": 2827,
+    "browser/base/content/test/plugins/browser_private_clicktoplay.js": 8632,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_2.js": 4734,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_3.js": 3791,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_4.js": 3407,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_5.js": 4197,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_no_anchors.js": 3514,
+    "browser/base/content/test/referrer/browser_referrer_middle_click.js": 22708,
+    "browser/base/content/test/referrer/browser_referrer_middle_click_in_container.js": 21681,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab.js": 4029,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab2.js": 3993,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab3.js": 4107,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_private.js": 6835,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_tab.js": 4075,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_window.js": 7014,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_window_in_container.js": 7292,
+    "browser/base/content/test/referrer/browser_referrer_simple_click.js": 15480,
+    "browser/base/content/test/social/browser_aboutHome_activation.js": 6065,
+    "browser/base/content/test/social/browser_blocklist.js": 4105,
+    "browser/base/content/test/social/browser_share.js": 12077,
+    "browser/base/content/test/social/browser_social_activation.js": 10299,
+    "browser/base/content/test/social/browser_social_chatwindow_resize.js": 2879,
+    "browser/base/content/test/social/browser_social_marks.js": 2931,
+    "browser/base/content/test/social/browser_social_marks_context.js": 3212,
+    "browser/base/content/test/social/browser_social_window.js": 8012,
+    "browser/base/content/test/tabcrashed/browser_autoSubmitRequest.js": 10853,
+    "browser/base/content/test/tabcrashed/browser_clearEmail.js": 6353,
+    "browser/base/content/test/tabcrashed/browser_showForm.js": 3905,
+    "browser/base/content/test/tabcrashed/browser_shown.js": 25688,
+    "browser/base/content/test/tabcrashed/browser_withoutDump.js": 3481,
+    "browser/base/content/test/tabs/browser_navigatePinnedTab.js": 4864,
+    "browser/base/content/test/tabs/browser_tabSpinnerProbe.js": 5417,
+    "browser/base/content/test/tabs/browser_tabSwitchPrintPreview.js": 2875,
+    "browser/base/content/test/urlbar/browser_URLBarSetURI.js": 5330,
+    "browser/base/content/test/urlbar/browser_action_searchengine_alias.js": 2728,
+    "browser/base/content/test/urlbar/browser_autocomplete_enter_race.js": 7424,
+    "browser/base/content/test/urlbar/browser_autocomplete_tag_star_visibility.js": 3225,
+    "browser/base/content/test/urlbar/browser_bug1025195_switchToTabHavingURI_aOpenParams.js": 12054,
+    "browser/base/content/test/urlbar/browser_bug304198.js": 4204,
+    "browser/base/content/test/urlbar/browser_canonizeURL.js": 3722,
+    "browser/base/content/test/urlbar/browser_moz_action_link.js": 4514,
+    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar.js": 11900,
+    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar_perwindowpb.js": 4119,
+    "browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js": 12974,
+    "browser/base/content/test/urlbar/browser_urlbarDecode.js": 2975,
+    "browser/base/content/test/urlbar/browser_urlbarEnter.js": 2959,
+    "browser/base/content/test/urlbar/browser_urlbarHashChangeProxyState.js": 4051,
+    "browser/base/content/test/urlbar/browser_urlbarKeepStateAcrossTabSwitches.js": 5226,
+    "browser/base/content/test/urlbar/browser_urlbarOneOffs.js": 8093,
+    "browser/base/content/test/urlbar/browser_urlbarRaceWithTabs.js": 2691,
+    "browser/base/content/test/urlbar/browser_urlbarSearchSingleWordNotification.js": 19159,
+    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestions.js": 2764,
+    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestionsNotification.js": 12217,
+    "browser/base/content/test/urlbar/browser_urlbarSearchTelemetry.js": 7549,
+    "browser/base/content/test/urlbar/browser_urlbar_autoFill_backspaced.js": 7083,
+    "browser/base/content/test/urlbar/browser_urlbar_blanking.js": 4755,
+    "browser/base/content/test/urlbar/browser_urlbar_remoteness_switch.js": 3145,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media.js": 15015,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js": 6437,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_in_frame.js": 9186,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_tear_off_tab.js": 4002,
+    "browser/components/contextualidentity/test/browser/browser_aboutURLs.js": 20655,
+    "browser/components/contextualidentity/test/browser/browser_favicon.js": 8811,
+    "browser/components/contextualidentity/test/browser/browser_forgetAPI_EME_forgetThisSite.js": 5468,
+    "browser/components/contextualidentity/test/browser/browser_forgetAPI_quota_clearStoragesForPrincipal.js": 4645,
+    "browser/components/contextualidentity/test/browser/browser_forgetaboutsite.js": 15613,
+    "browser/components/contextualidentity/test/browser/browser_imageCache.js": 5556,
+    "browser/components/contextualidentity/test/browser/browser_newtabButton.js": 5962,
+    "browser/components/contextualidentity/test/browser/browser_serviceworkers.js": 3328,
+    "browser/components/contextualidentity/test/browser/browser_usercontext.js": 5298,
+    "browser/components/contextualidentity/test/browser/browser_usercontextid_tabdrop.js": 6384,
+    "browser/components/customizableui/test/browser_1003588_no_specials_in_panel.js": 4117,
+    "browser/components/customizableui/test/browser_1007336_lwthemes_in_customize_mode.js": 2698,
+    "browser/components/customizableui/test/browser_1008559_anchor_undo_restore.js": 10158,
+    "browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js": 5476,
+    "browser/components/customizableui/test/browser_876926_customize_mode_wrapping.js": 9557,
+    "browser/components/customizableui/test/browser_878452_drag_to_panel.js": 3840,
+    "browser/components/customizableui/test/browser_880164_customization_context_menus.js": 16584,
+    "browser/components/customizableui/test/browser_880382_drag_wide_widgets_in_panel.js": 8933,
+    "browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js": 2964,
+    "browser/components/customizableui/test/browser_885530_showInPrivateBrowsing.js": 13156,
+    "browser/components/customizableui/test/browser_890140_orphaned_placeholders.js": 16100,
+    "browser/components/customizableui/test/browser_918049_skipintoolbarset_dnd.js": 2884,
+    "browser/components/customizableui/test/browser_923857_customize_mode_event_wrapping_during_reset.js": 4475,
+    "browser/components/customizableui/test/browser_927717_customize_drag_empty_toolbar.js": 2696,
+    "browser/components/customizableui/test/browser_934951_zoom_in_toolbar.js": 3110,
+    "browser/components/customizableui/test/browser_938980_navbar_collapsed.js": 18610,
+    "browser/components/customizableui/test/browser_956602_remove_special_widget.js": 2754,
+    "browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js": 2843,
+    "browser/components/customizableui/test/browser_963639_customizing_attribute_non_customizable_toolbar.js": 2665,
+    "browser/components/customizableui/test/browser_967000_button_sync.js": 21565,
+    "browser/components/customizableui/test/browser_968565_insert_before_hidden_items.js": 3967,
+    "browser/components/customizableui/test/browser_969661_character_encoding_navbar_disabled.js": 2788,
+    "browser/components/customizableui/test/browser_970511_undo_restore_default.js": 16172,
+    "browser/components/customizableui/test/browser_973932_addonbar_currentset.js": 4063,
+    "browser/components/customizableui/test/browser_975719_customtoolbars_behaviour.js": 12717,
+    "browser/components/customizableui/test/browser_978084_dragEnd_after_move.js": 5406,
+    "browser/components/customizableui/test/browser_985815_propagate_setToolbarVisibility.js": 6881,
+    "browser/components/customizableui/test/browser_987640_charEncoding.js": 2958,
+    "browser/components/customizableui/test/browser_988072_sidebar_events.js": 5655,
+    "browser/components/customizableui/test/browser_993322_widget_notoolbar.js": 2659,
+    "browser/components/customizableui/test/browser_995164_registerArea_during_customize_mode.js": 9798,
+    "browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js": 9780,
+    "browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js": 2711,
+    "browser/components/customizableui/test/browser_switch_to_customize_mode.js": 6446,
+    "browser/components/downloads/test/browser/browser_confirm_unblock_download.js": 5673,
+    "browser/components/downloads/test/browser/browser_downloads_panel_block.js": 22665,
+    "browser/components/downloads/test/browser/browser_iframe_gone_mid_download.js": 10126,
+    "browser/components/downloads/test/browser/browser_indicatorDrop.js": 5207,
+    "browser/components/downloads/test/browser/browser_libraryDrop.js": 6573,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_context.js": 6300,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js": 14329,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon_permissions.js": 4795,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_popup.js": 13629,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js": 5212,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js": 12029,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_simple.js": 2864,
+    "browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js": 4052,
+    "browser/components/extensions/test/browser/browser_ext_commands_onCommand.js": 5729,
+    "browser/components/extensions/test/browser/browser_ext_contentscript_connect.js": 2752,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus.js": 8163,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus_onclick.js": 20234,
+    "browser/components/extensions/test/browser/browser_ext_currentWindow.js": 10238,
+    "browser/components/extensions/test/browser/browser_ext_getViews.js": 10194,
+    "browser/components/extensions/test/browser/browser_ext_history.js": 2761,
+    "browser/components/extensions/test/browser/browser_ext_incognito_popup.js": 5523,
+    "browser/components/extensions/test/browser/browser_ext_incognito_views.js": 4503,
+    "browser/components/extensions/test/browser/browser_ext_legacy_extension_context_contentscript.js": 3826,
+    "browser/components/extensions/test/browser/browser_ext_omnibox.js": 8347,
+    "browser/components/extensions/test/browser/browser_ext_optionsPage_privileges.js": 5250,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_context.js": 8940,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_popup.js": 6095,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_title.js": 9914,
+    "browser/components/extensions/test/browser/browser_ext_popup_api_injection.js": 3388,
+    "browser/components/extensions/test/browser/browser_ext_popup_background.js": 3376,
+    "browser/components/extensions/test/browser/browser_ext_popup_corners.js": 2832,
+    "browser/components/extensions/test/browser/browser_ext_popup_shutdown.js": 4009,
+    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js": 25951,
+    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js": 5089,
+    "browser/components/extensions/test/browser/browser_ext_runtime_setUninstallURL.js": 4242,
+    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed.js": 16179,
+    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js": 4967,
+    "browser/components/extensions/test/browser/browser_ext_sessions_restore.js": 13155,
+    "browser/components/extensions/test/browser/browser_ext_tab_runtimeConnect.js": 2778,
+    "browser/components/extensions/test/browser/browser_ext_tabs_audio.js": 3403,
+    "browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js": 8268,
+    "browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId.js": 12419,
+    "browser/components/extensions/test/browser/browser_ext_tabs_create.js": 9721,
+    "browser/components/extensions/test/browser/browser_ext_tabs_detectLanguage.js": 3805,
+    "browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js": 8420,
+    "browser/components/extensions/test/browser/browser_ext_tabs_events.js": 13310,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js": 4795,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js": 7985,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js": 9270,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_runAt.js": 3031,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move.js": 4072,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move_window.js": 8759,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_multiple.js": 7095,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_pinned.js": 5873,
+    "browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js": 3548,
+    "browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js": 17361,
+    "browser/components/extensions/test/browser/browser_ext_tabs_query.js": 10703,
+    "browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js": 5331,
+    "browser/components/extensions/test/browser/browser_ext_tabs_update.js": 2635,
+    "browser/components/extensions/test/browser/browser_ext_tabs_update_url.js": 6590,
+    "browser/components/extensions/test/browser/browser_ext_tabs_zoom.js": 6108,
+    "browser/components/extensions/test/browser/browser_ext_webNavigation_urlbar_transitions.js": 8815,
+    "browser/components/extensions/test/browser/browser_ext_webRequest.js": 5725,
+    "browser/components/extensions/test/browser/browser_ext_windows_allowScriptsToClose.js": 7452,
+    "browser/components/extensions/test/browser/browser_ext_windows_create.js": 12038,
+    "browser/components/extensions/test/browser/browser_ext_windows_create_tabId.js": 11520,
+    "browser/components/extensions/test/browser/browser_ext_windows_create_url.js": 10253,
+    "browser/components/extensions/test/browser/browser_ext_windows_events.js": 4538,
+    "browser/components/extensions/test/browser/browser_ext_windows_size.js": 3534,
+    "browser/components/extensions/test/browser/browser_ext_windows_update.js": 8075,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js": 8695,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_pageAction_icon.js": 14635,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_pageAction_icon_permissions.js": 8121,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup.js": 15769,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup_preload.js": 5990,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup_resize.js": 12165,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_simple.js": 3453,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_commands_execute_browser_action.js": 6277,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_commands_execute_page_action.js": 2762,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_commands_onCommand.js": 6624,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus.js": 10290,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_actionMenus.js": 3063,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_checkboxes.js": 3168,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_chrome.js": 5107,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_onclick.js": 21945,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_radioGroups.js": 2916,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_uninstall.js": 3330,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_contextMenus_urlPatterns.js": 3045,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_currentWindow.js": 11330,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_getViews.js": 11257,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_incognito_popup.js": 6068,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_incognito_views.js": 5153,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_lastError.js": 3287,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_omnibox.js": 9337,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_optionsPage_privileges.js": 5639,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_context.js": 9585,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_popup.js": 6144,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_popup_resize.js": 3622,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_pageAction_title.js": 11366,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_api_injection.js": 3817,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_background.js": 3841,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_corners.js": 3373,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_sendMessage.js": 3224,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_shutdown.js": 5734,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_runtime_openOptionsPage.js": 29757,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_runtime_openOptionsPage_uninstall.js": 6092,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_runtime_setUninstallURL.js": 5937,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sessions_getRecentlyClosed.js": 16618,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sessions_getRecentlyClosed_private.js": 5558,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sessions_restore.js": 13634,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tab_runtimeConnect.js": 3585,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_audio.js": 4175,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_captureVisibleTab.js": 11402,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_cookieStoreId.js": 12035,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_create.js": 10233,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_create_invalid_url.js": 3392,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_detectLanguage.js": 4729,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_duplicate.js": 10649,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_events.js": 15209,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript.js": 5652,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_bad.js": 11694,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_good.js": 13878,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_runAt.js": 3664,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_getCurrent.js": 3280,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_insertCSS.js": 2850,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move.js": 6226,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move_window.js": 10003,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move_window_multiple.js": 8105,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_move_window_pinned.js": 6474,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_onHighlighted.js": 3136,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_onUpdated.js": 19503,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_query.js": 14949,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_reload.js": 2811,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_reload_bypass_cache.js": 2932,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_removeCSS.js": 3081,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_sendMessage.js": 6988,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_update.js": 3288,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_update_url.js": 9245,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_zoom.js": 7363,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_theme_extreme.js": 2812,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_theme_icons.js": 2792,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_theme_lwtsupport.js": 3092,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_webNavigation_getFrames.js": 3528,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_webNavigation_urlbar_transitions.js": 11560,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_webRequest.js": 6269,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows.js": 3597,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_create.js": 12054,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_create_tabId.js": 12150,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_create_url.js": 9935,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_events.js": 5159,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_size.js": 4025,
+    "browser/components/extensions/test/browser/test-oop-extensions/browser_ext_windows_update.js": 9662,
+    "browser/components/newtab/tests/browser/browser_newtab_overrides.js": 6212,
+    "browser/components/newtab/tests/browser/browser_newtabwebchannel.js": 6703,
+    "browser/components/originattributes/test/browser/browser_blobURLIsolation.js": 12696,
+    "browser/components/originattributes/test/browser/browser_broadcastChannel.js": 11739,
+    "browser/components/originattributes/test/browser/browser_cache.js": 23362,
+    "browser/components/originattributes/test/browser/browser_cacheAPI.js": 16149,
+    "browser/components/originattributes/test/browser/browser_clientAuth.js": 17197,
+    "browser/components/originattributes/test/browser/browser_cookieIsolation.js": 9713,
+    "browser/components/originattributes/test/browser/browser_favicon_firstParty.js": 11267,
+    "browser/components/originattributes/test/browser/browser_favicon_userContextId.js": 7680,
+    "browser/components/originattributes/test/browser/browser_firstPartyIsolation.js": 17088,
+    "browser/components/originattributes/test/browser/browser_httpauth.js": 22120,
+    "browser/components/originattributes/test/browser/browser_imageCacheIsolation.js": 19931,
+    "browser/components/originattributes/test/browser/browser_localStorageIsolation.js": 9519,
+    "browser/components/originattributes/test/browser/browser_permissions.js": 10375,
+    "browser/components/originattributes/test/browser/browser_sanitize.js": 10658,
+    "browser/components/originattributes/test/browser/browser_sharedworker.js": 10557,
+    "browser/components/places/tests/browser/browser_bookmarkProperties_addKeywordForThisSearch.js": 6689,
+    "browser/components/places/tests/browser/browser_bookmarkProperties_editTagContainer.js": 2668,
+    "browser/components/places/tests/browser/browser_bookmarklet_windowOpen.js": 2811,
+    "browser/components/places/tests/browser/browser_bookmarksProperties.js": 4908,
+    "browser/components/places/tests/browser/browser_forgetthissite_single.js": 2712,
+    "browser/components/places/tests/browser/browser_library_commands.js": 6259,
+    "browser/components/places/tests/browser/browser_library_middleclick.js": 4930,
+    "browser/components/places/tests/browser/browser_library_views_liveupdate.js": 9129,
+    "browser/components/places/tests/browser/browser_sort_in_library.js": 2771,
+    "browser/components/places/tests/browser/browser_views_liveupdate.js": 4735,
+    "browser/components/preferences/in-content/tests/browser_advanced_siteData.js": 5809,
+    "browser/components/preferences/in-content/tests/browser_advanced_update.js": 4994,
+    "browser/components/preferences/in-content/tests/browser_basic_rebuild_fonts_test.js": 3402,
+    "browser/components/preferences/in-content/tests/browser_bug1020245_openPreferences_to_paneContent.js": 8840,
+    "browser/components/preferences/in-content/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.js": 3776,
+    "browser/components/preferences/in-content/tests/browser_bug731866.js": 4124,
+    "browser/components/preferences/in-content/tests/browser_connection_bug388287.js": 5029,
+    "browser/components/preferences/in-content/tests/browser_cookies_exceptions.js": 32201,
+    "browser/components/preferences/in-content/tests/browser_defaultbrowser_alwayscheck.js": 3689,
+    "browser/components/preferences/in-content/tests/browser_homepages_filter_aboutpreferences.js": 3358,
+    "browser/components/preferences/in-content/tests/browser_permissions_urlFieldHidden.js": 4320,
+    "browser/components/preferences/in-content/tests/browser_privacypane_1.js": 13262,
+    "browser/components/preferences/in-content/tests/browser_privacypane_3.js": 12449,
+    "browser/components/preferences/in-content/tests/browser_privacypane_4.js": 21002,
+    "browser/components/preferences/in-content/tests/browser_privacypane_5.js": 12584,
+    "browser/components/preferences/in-content/tests/browser_privacypane_8.js": 12359,
+    "browser/components/preferences/in-content/tests/browser_sanitizeOnShutdown_prefLocked.js": 4144,
+    "browser/components/preferences/in-content/tests/browser_searchsuggestions.js": 3473,
+    "browser/components/preferences/in-content/tests/browser_security.js": 16398,
+    "browser/components/preferences/in-content/tests/browser_subdialogs.js": 9718,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js": 6766,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js": 5869,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutHomeButtonAfterWindowClose.js": 4184,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutSessionRestore.js": 4488,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_blobUrl.js": 4308,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_cache.js": 3564,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_certexceptionsui.js": 2834,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_concurrent.js": 8634,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_context_and_chromeFlags.js": 3429,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_crh.js": 4396,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir.js": 5198,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js": 5365,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_toggle.js": 10849,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_favicon.js": 10071,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js": 6547,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_lastpbcontextexited.js": 6603,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage.js": 3786,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage_before_after.js": 5353,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_newtab_from_popup.js": 5469,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_noSessionRestoreMenuOption.js": 3943,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_nonbrowser.js": 2977,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_opendir.js": 3419,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placesTitleNoUpdate.js": 3645,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js": 7026,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js": 6747,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_protocolhandler.js": 5606,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js": 14661,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_ui.js": 3892,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_urlbarfocus.js": 3978,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js": 33528,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoom.js": 4290,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoomrestore.js": 3805,
+    "browser/components/search/test/browser_426329.js": 9526,
+    "browser/components/search/test/browser_aboutSearchReset.js": 5717,
+    "browser/components/search/test/browser_amazon_behavior.js": 2653,
+    "browser/components/search/test/browser_contextmenu.js": 3521,
+    "browser/components/search/test/browser_google_behavior.js": 2646,
+    "browser/components/search/test/browser_private_search_perwindowpb.js": 7022,
+    "browser/components/search/test/browser_searchbar_keyboard_navigation.js": 2877,
+    "browser/components/search/test/browser_webapi.js": 7355,
+    "browser/components/search/test/browser_yahoo_behavior.js": 2951,
+    "browser/components/sessionstore/test/browser_339445.js": 2878,
+    "browser/components/sessionstore/test/browser_354894_perwindowpb.js": 38482,
+    "browser/components/sessionstore/test/browser_393716.js": 3037,
+    "browser/components/sessionstore/test/browser_394759_behavior.js": 23801,
+    "browser/components/sessionstore/test/browser_394759_perwindowpb.js": 8814,
+    "browser/components/sessionstore/test/browser_423132.js": 2951,
+    "browser/components/sessionstore/test/browser_477657.js": 2742,
+    "browser/components/sessionstore/test/browser_480893.js": 2844,
+    "browser/components/sessionstore/test/browser_490040.js": 8565,
+    "browser/components/sessionstore/test/browser_491168.js": 3299,
+    "browser/components/sessionstore/test/browser_495495.js": 7224,
+    "browser/components/sessionstore/test/browser_500328.js": 2931,
+    "browser/components/sessionstore/test/browser_522545.js": 32199,
+    "browser/components/sessionstore/test/browser_524745.js": 2799,
+    "browser/components/sessionstore/test/browser_586068-apptabs.js": 6714,
+    "browser/components/sessionstore/test/browser_586068-apptabs_ondemand.js": 9566,
+    "browser/components/sessionstore/test/browser_586068-browser_state_interrupted.js": 14276,
+    "browser/components/sessionstore/test/browser_586068-cascade.js": 8020,
+    "browser/components/sessionstore/test/browser_586068-multi_window.js": 10010,
+    "browser/components/sessionstore/test/browser_586068-reload.js": 11933,
+    "browser/components/sessionstore/test/browser_586068-select.js": 8171,
+    "browser/components/sessionstore/test/browser_586068-window_state.js": 12011,
+    "browser/components/sessionstore/test/browser_586068-window_state_override.js": 8031,
+    "browser/components/sessionstore/test/browser_588426.js": 3153,
+    "browser/components/sessionstore/test/browser_590268.js": 15053,
+    "browser/components/sessionstore/test/browser_590563.js": 4510,
+    "browser/components/sessionstore/test/browser_595601-restore_hidden.js": 18914,
+    "browser/components/sessionstore/test/browser_600545.js": 12385,
+    "browser/components/sessionstore/test/browser_601955.js": 5227,
+    "browser/components/sessionstore/test/browser_607016.js": 3238,
+    "browser/components/sessionstore/test/browser_615394-SSWindowState_events.js": 40936,
+    "browser/components/sessionstore/test/browser_618151.js": 2796,
+    "browser/components/sessionstore/test/browser_625016.js": 3721,
+    "browser/components/sessionstore/test/browser_635418.js": 4968,
+    "browser/components/sessionstore/test/browser_636279.js": 4428,
+    "browser/components/sessionstore/test/browser_637020.js": 7404,
+    "browser/components/sessionstore/test/browser_644409-scratchpads.js": 5537,
+    "browser/components/sessionstore/test/browser_659591.js": 2763,
+    "browser/components/sessionstore/test/browser_662743.js": 4945,
+    "browser/components/sessionstore/test/browser_701377.js": 5796,
+    "browser/components/sessionstore/test/browser_819510_perwindowpb.js": 30564,
+    "browser/components/sessionstore/test/browser_911547.js": 2917,
+    "browser/components/sessionstore/test/browser_aboutSessionRestore.js": 3512,
+    "browser/components/sessionstore/test/browser_async_duplicate_tab.js": 3388,
+    "browser/components/sessionstore/test/browser_async_flushes.js": 4768,
+    "browser/components/sessionstore/test/browser_async_remove_tab.js": 9518,
+    "browser/components/sessionstore/test/browser_async_window_flushing.js": 8162,
+    "browser/components/sessionstore/test/browser_background_tab_crash.js": 32355,
+    "browser/components/sessionstore/test/browser_backup_recovery.js": 12682,
+    "browser/components/sessionstore/test/browser_broadcast.js": 9539,
+    "browser/components/sessionstore/test/browser_cleaner.js": 12624,
+    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_tabs.js": 12485,
+    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_windows.js": 19432,
+    "browser/components/sessionstore/test/browser_cookies.js": 25064,
+    "browser/components/sessionstore/test/browser_crashedTabs.js": 45302,
+    "browser/components/sessionstore/test/browser_docshell_uuid_consistency.js": 4298,
+    "browser/components/sessionstore/test/browser_dying_cache.js": 4078,
+    "browser/components/sessionstore/test/browser_forget_async_closings.js": 8652,
+    "browser/components/sessionstore/test/browser_formdata.js": 9252,
+    "browser/components/sessionstore/test/browser_formdata_cc.js": 28234,
+    "browser/components/sessionstore/test/browser_formdata_format.js": 14684,
+    "browser/components/sessionstore/test/browser_formdata_xpath.js": 3662,
+    "browser/components/sessionstore/test/browser_frame_history.js": 8320,
+    "browser/components/sessionstore/test/browser_frametree.js": 4303,
+    "browser/components/sessionstore/test/browser_grouped_session_store.js": 8304,
+    "browser/components/sessionstore/test/browser_history_persist.js": 3533,
+    "browser/components/sessionstore/test/browser_merge_closed_tabs.js": 3484,
+    "browser/components/sessionstore/test/browser_newtab_userTypedValue.js": 33336,
+    "browser/components/sessionstore/test/browser_pageStyle.js": 9837,
+    "browser/components/sessionstore/test/browser_privatetabs.js": 9934,
+    "browser/components/sessionstore/test/browser_remoteness_flip_on_restore.js": 31140,
+    "browser/components/sessionstore/test/browser_replace_load.js": 3307,
+    "browser/components/sessionstore/test/browser_restore_cookies_noOriginAttributes.js": 4540,
+    "browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js": 5862,
+    "browser/components/sessionstore/test/browser_scrollPositions.js": 22895,
+    "browser/components/sessionstore/test/browser_scrollPositionsReaderMode.js": 9633,
+    "browser/components/sessionstore/test/browser_sessionHistory.js": 10252,
+    "browser/components/sessionstore/test/browser_sessionStorage.js": 8711,
+    "browser/components/sessionstore/test/browser_sessionStoreContainer.js": 15636,
+    "browser/components/sessionstore/test/browser_swapDocShells.js": 4691,
+    "browser/components/sessionstore/test/browser_switch_remoteness.js": 8180,
+    "browser/components/sessionstore/test/browser_undoCloseById.js": 6570,
+    "browser/components/sessionstore/test/browser_unrestored_crashedTabs.js": 5777,
+    "browser/components/sessionstore/test/browser_windowRestore_perwindowpb.js": 3309,
+    "browser/components/sessionstore/test/browser_windowStateContainer.js": 27550,
+    "browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js": 3056,
+    "browser/components/tests/browser/browser_bug538331.js": 2826,
+    "browser/components/translation/test/browser_translation_exceptions.js": 5142,
+    "browser/components/translation/test/browser_translation_telemetry.js": 14685,
+    "browser/components/translation/test/browser_translation_yandex.js": 3797,
+    "browser/components/uitour/test/browser_UITour.js": 4388,
+    "browser/components/uitour/test/browser_UITour2.js": 5610,
+    "browser/components/uitour/test/browser_UITour_annotation_size_attributes.js": 2687,
+    "browser/components/uitour/test/browser_UITour_availableTargets.js": 2729,
+    "browser/components/uitour/test/browser_UITour_detach_tab.js": 3863,
+    "browser/components/uitour/test/browser_UITour_heartbeat.js": 34288,
+    "browser/components/uitour/test/browser_UITour_observe.js": 5301,
+    "browser/components/uitour/test/browser_UITour_registerPageID.js": 3315,
+    "browser/components/uitour/test/browser_UITour_sync.js": 19210,
+    "browser/components/uitour/test/browser_backgroundTab.js": 8346,
+    "browser/components/uitour/test/browser_openPreferences.js": 6981,
+    "browser/components/uitour/test/browser_showMenu_controlCenter.js": 3441,
+    "browser/components/uitour/test/browser_trackingProtection.js": 3331,
+    "browser/components/uitour/test/browser_trackingProtection_tour.js": 5364,
+    "browser/extensions/pdfjs/test/browser_pdfjs_main.js": 6849,
+    "browser/extensions/pdfjs/test/browser_pdfjs_navigation.js": 9323,
+    "browser/extensions/pdfjs/test/browser_pdfjs_views.js": 5701,
+    "browser/extensions/pdfjs/test/browser_pdfjs_zoom.js": 10608,
+    "browser/extensions/shield-recipe-client/test/browser_Heartbeat.js": 8542,
+    "browser/modules/test/browser_BrowserUITelemetry_buckets.js": 4394,
+    "browser/modules/test/browser_CaptivePortalWatcher.js": 17780,
+    "browser/modules/test/browser_ContentSearch.js": 6354,
+    "browser/modules/test/browser_NetworkPrioritizer.js": 10398,
+    "browser/modules/test/browser_PermissionUI.js": 6192,
+    "browser/modules/test/browser_SelfSupportBackend.js": 5739,
+    "browser/modules/test/browser_UnsubmittedCrashHandler.js": 3787,
+    "browser/modules/test/browser_UsageTelemetry.js": 16257,
+    "browser/modules/test/browser_UsageTelemetry_content.js": 4343,
+    "browser/modules/test/browser_UsageTelemetry_content_aboutHome.js": 2857,
+    "browser/modules/test/browser_UsageTelemetry_private_and_restore.js": 3264,
+    "browser/modules/test/browser_UsageTelemetry_searchbar.js": 5439,
+    "browser/modules/test/browser_UsageTelemetry_urlbar.js": 8094,
+    "docshell/test/browser/browser_bug1309900_crossProcessHistoryNavigation.js": 3678,
+    "docshell/test/browser/browser_bug388121-2.js": 3125,
+    "docshell/test/browser/browser_bug422543.js": 3630,
+    "docshell/test/browser/browser_bug852909.js": 2710,
+    "docshell/test/browser/browser_bug92473.js": 3676,
+    "docshell/test/browser/browser_grouped_shistory_bfcache_cleaning.js": 3003,
+    "docshell/test/browser/browser_onbeforeunload_navigation.js": 6741,
+    "docshell/test/browser/browser_timelineMarkers-03.js": 6428,
+    "docshell/test/browser/browser_uriFixupIntegration.js": 2851,
+    "docshell/test/navigation/browser_bug343515.js": 4657,
+    "dom/base/test/browser_bug1058164.js": 4112,
+    "dom/base/test/browser_bug1307747.js": 3267,
+    "dom/base/test/browser_bug593387.js": 2717,
+    "dom/base/test/browser_messagemanager_loadprocessscript.js": 3636,
+    "dom/base/test/browser_use_counters.js": 30338,
+    "dom/broadcastchannel/tests/browser_private_browsing.js": 5734,
+    "dom/html/test/browser_bug1108547.js": 17434,
+    "dom/html/test/browser_fullscreen-contextmenu-esc.js": 2742,
+    "dom/indexedDB/test/browser_forgetThisSite.js": 5385,
+    "dom/indexedDB/test/browser_permissionsPromptDeny.js": 4758,
+    "dom/indexedDB/test/browser_permissionsPromptWorker.js": 2634,
+    "dom/indexedDB/test/browser_perwindow_privateBrowsing.js": 3983,
+    "dom/ipc/tests/browser_domainPolicy.js": 11725,
+    "dom/manifest/test/browser_ManifestFinder_browserHasManifestLink.js": 3021,
+    "dom/manifest/test/browser_ManifestObtainer_obtain.js": 23387,
+    "dom/media/webaudio/test/browser_bug1181073.js": 4703,
+    "dom/notification/test/browser/browser_permission_dismiss.js": 2646,
+    "dom/security/test/contentverifier/browser_verify_content_about_newtab.js": 14195,
+    "dom/security/test/contentverifier/browser_verify_content_about_newtab2.js": 12159,
+    "dom/security/test/csp/browser_test_web_manifest.js": 6022,
+    "dom/security/test/hsts/browser_hsts-priming_allow_active.js": 2840,
+    "dom/security/test/hsts/browser_hsts-priming_block_active.js": 3459,
+    "dom/security/test/hsts/browser_hsts-priming_block_active_with_redir_same.js": 3233,
+    "dom/security/test/hsts/browser_hsts-priming_cache-timeout.js": 3469,
+    "dom/security/test/hsts/browser_hsts-priming_hsts_after_mixed.js": 2658,
+    "dom/security/test/hsts/browser_hsts-priming_no-duplicates.js": 3793,
+    "dom/security/test/hsts/browser_hsts-priming_timeout.js": 4040,
+    "dom/tests/browser/browser_ConsoleStoragePBTest_perwindowpb.js": 3659,
+    "dom/tests/browser/browser_bug396843.js": 6574,
+    "dom/tests/browser/browser_focus_steal_from_chrome.js": 25508,
+    "dom/tests/browser/browser_largeAllocation.js": 16126,
+    "dom/tests/browser/browser_localStorage_privatestorageevent.js": 5312,
+    "dom/tests/browser/browser_prerendering.js": 2938,
+    "dom/tests/browser/browser_test_new_window_from_content.js": 34364,
+    "dom/tests/browser/browser_test_toolbars_visibility.js": 9886,
+    "dom/workers/test/serviceworkers/browser_download.js": 2983,
+    "editor/libeditor/tests/browser_bug527935.js": 2758,
+    "embedding/components/windowwatcher/test/browser_new_content_window_chromeflags.js": 4855,
+    "embedding/components/windowwatcher/test/browser_new_remote_window_flags.js": 6497,
+    "embedding/components/windowwatcher/test/browser_new_sized_window.js": 6044,
+    "embedding/test/browser_bug1204626.js": 6998,
+    "layout/base/tests/browser_bug617076.js": 3093,
+    "layout/base/tests/browser_disableDialogs_onbeforeunload.js": 4037,
+    "layout/base/tests/browser_onbeforeunload_only_after_interaction.js": 3215,
+    "layout/base/tests/browser_onbeforeunload_only_after_interaction_in_frame.js": 3325,
+    "netwerk/cookie/test/browser/browser_originattributes.js": 6540,
+    "netwerk/test/browser/browser_child_resource.js": 12411,
+    "netwerk/test/browser/browser_post_file.js": 4241,
+    "security/manager/ssl/tests/mochitest/browser/browser_bug627234_perwindowpb.js": 5670,
+    "security/manager/ssl/tests/mochitest/browser/browser_certViewer.js": 7173,
+    "security/manager/ssl/tests/mochitest/browser/browser_clientAuth_connection.js": 3739,
+    "security/manager/ssl/tests/mochitest/browser/browser_deleteCert_ui.js": 3388,
+    "testing/mochitest/tests/browser/browser_async.js": 10091,
+    "testing/mochitest/tests/browser/browser_browserLoaded_content_loaded.js": 3364,
+    "toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js": 8789,
+    "toolkit/components/addoncompat/tests/browser/browser_addonShims.js": 9473,
+    "toolkit/components/narrate/test/browser_narrate.js": 7247,
+    "toolkit/components/narrate/test/browser_narrate_disable.js": 3577,
+    "toolkit/components/narrate/test/browser_narrate_language.js": 2765,
+    "toolkit/components/narrate/test/browser_voiceselect.js": 4199,
+    "toolkit/components/narrate/test/browser_word_highlight.js": 4310,
+    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger.js": 36259,
+    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_httpsUpgrade.js": 5705,
+    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_window_open.js": 11188,
+    "toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js": 7185,
+    "toolkit/components/passwordmgr/test/browser/browser_hasInsecureLoginForms.js": 3532,
+    "toolkit/components/passwordmgr/test/browser/browser_http_autofill.js": 5749,
+    "toolkit/components/passwordmgr/test/browser/browser_insecurePasswordWarning.js": 12930,
+    "toolkit/components/passwordmgr/test/browser/browser_notifications.js": 5286,
+    "toolkit/components/passwordmgr/test/browser/browser_notifications_password.js": 6651,
+    "toolkit/components/passwordmgr/test/browser/browser_notifications_username.js": 10188,
+    "toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js": 8993,
+    "toolkit/components/passwordmgr/test/browser/browser_username_select_dialog.js": 3961,
+    "toolkit/components/perfmonitoring/tests/browser/browser_AddonWatcher.js": 12083,
+    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts.js": 25867,
+    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts_2.js": 6786,
+    "toolkit/components/perfmonitoring/tests/browser/browser_webpagePerformanceAlerts.js": 32808,
+    "toolkit/components/places/tests/browser/browser_bug248970.js": 6832,
+    "toolkit/components/places/tests/browser/browser_bug399606.js": 12353,
+    "toolkit/components/places/tests/browser/browser_bug461710.js": 4764,
+    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage.js": 6593,
+    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage_failures.js": 11993,
+    "toolkit/components/places/tests/browser/browser_visituri_privatebrowsing_perwindowpb.js": 4136,
+    "toolkit/components/reader/test/browser_readerMode.js": 6766,
+    "toolkit/components/reader/test/browser_readerMode_readingTime.js": 3200,
+    "toolkit/components/remotebrowserutils/tests/browser/browser_RemoteWebNavigation.js": 4608,
+    "toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js": 5319,
+    "toolkit/components/startup/tests/browser/browser_bug511456.js": 3606,
+    "toolkit/components/startup/tests/browser/browser_crash_detection.js": 35078,
+    "toolkit/components/thumbnails/test/browser_thumbnails_bg_destroy_browser.js": 2825,
+    "toolkit/components/thumbnails/test/browser_thumbnails_privacy.js": 10033,
+    "toolkit/components/thumbnails/test/browser_thumbnails_storage.js": 4779,
+    "toolkit/components/thumbnails/test/browser_thumbnails_update.js": 5801,
+    "toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js": 6114,
+    "toolkit/components/viewsource/test/browser/browser_bug464222.js": 3341,
+    "toolkit/components/viewsource/test/browser/browser_bug713810.js": 3131,
+    "toolkit/components/viewsource/test/browser/browser_viewsourceprefs.js": 3150,
+    "toolkit/content/tests/browser/browser_audioCompeting.js": 4693,
+    "toolkit/content/tests/browser/browser_bug1170531.js": 2687,
+    "toolkit/content/tests/browser/browser_bug295977_autoscroll_overflow.js": 7231,
+    "toolkit/content/tests/browser/browser_content_url_annotation.js": 2753,
+    "toolkit/content/tests/browser/browser_crash_previous_frameloader.js": 3003,
+    "toolkit/content/tests/browser/browser_f7_caret_browsing.js": 5261,
+    "toolkit/content/tests/browser/browser_findbar.js": 12430,
+    "toolkit/content/tests/browser/browser_label_textlink.js": 3976,
+    "toolkit/content/tests/browser/browser_mediaPlayback.js": 6889,
+    "toolkit/content/tests/browser/browser_mediaPlayback_mute.js": 9990,
+    "toolkit/content/tests/browser/browser_mediaPlayback_suspended.js": 5188,
+    "toolkit/content/tests/browser/browser_mediaPlayback_suspended_multipleAudio.js": 9034,
+    "toolkit/content/tests/browser/browser_quickfind_editable.js": 4005,
+    "toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js": 2879,
+    "toolkit/modules/tests/browser/browser_RemotePageManager.js": 9725,
+    "toolkit/modules/tests/browser/browser_WebRequest.js": 5284,
+    "toolkit/mozapps/extensions/test/browser/browser_CTP_plugins.js": 13838,
+    "toolkit/mozapps/extensions/test/browser/browser_bug557943.js": 2647,
+    "toolkit/mozapps/extensions/test/browser/browser_bug557956.js": 30736,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562797.js": 69412,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562854.js": 7206,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562890.js": 3000,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562899.js": 4375,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562992.js": 3076,
+    "toolkit/mozapps/extensions/test/browser/browser_bug567127.js": 2900,
+    "toolkit/mozapps/extensions/test/browser/browser_bug567137.js": 7355,
+    "toolkit/mozapps/extensions/test/browser/browser_bug572561.js": 6580,
+    "toolkit/mozapps/extensions/test/browser/browser_bug577990.js": 17549,
+    "toolkit/mozapps/extensions/test/browser/browser_bug580298.js": 3569,
+    "toolkit/mozapps/extensions/test/browser/browser_bug581076.js": 11480,
+    "toolkit/mozapps/extensions/test/browser/browser_bug586574.js": 3823,
+    "toolkit/mozapps/extensions/test/browser/browser_bug587970.js": 3230,
+    "toolkit/mozapps/extensions/test/browser/browser_bug590347.js": 3586,
+    "toolkit/mozapps/extensions/test/browser/browser_bug591465.js": 7348,
+    "toolkit/mozapps/extensions/test/browser/browser_bug591663.js": 5829,
+    "toolkit/mozapps/extensions/test/browser/browser_bug596336.js": 7869,
+    "toolkit/mozapps/extensions/test/browser/browser_bug608316.js": 3286,
+    "toolkit/mozapps/extensions/test/browser/browser_bug610764.js": 4074,
+    "toolkit/mozapps/extensions/test/browser/browser_bug618502.js": 3939,
+    "toolkit/mozapps/extensions/test/browser/browser_bug679604.js": 4171,
+    "toolkit/mozapps/extensions/test/browser/browser_bug714593.js": 3279,
+    "toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js": 20610,
+    "toolkit/mozapps/extensions/test/browser/browser_details.js": 44528,
+    "toolkit/mozapps/extensions/test/browser/browser_discovery.js": 62860,
+    "toolkit/mozapps/extensions/test/browser/browser_discovery_install.js": 16361,
+    "toolkit/mozapps/extensions/test/browser/browser_dragdrop.js": 6710,
+    "toolkit/mozapps/extensions/test/browser/browser_eula.js": 4062,
+    "toolkit/mozapps/extensions/test/browser/browser_experiments.js": 11973,
+    "toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js": 5113,
+    "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js": 53557,
+    "toolkit/mozapps/extensions/test/browser/browser_hotfix.js": 4078,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings.js": 10764,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_browser.js": 7811,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_custom.js": 3870,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_info.js": 10507,
+    "toolkit/mozapps/extensions/test/browser/browser_install.js": 20304,
+    "toolkit/mozapps/extensions/test/browser/browser_installssl.js": 13849,
+    "toolkit/mozapps/extensions/test/browser/browser_list.js": 16456,
+    "toolkit/mozapps/extensions/test/browser/browser_manualupdates.js": 6810,
+    "toolkit/mozapps/extensions/test/browser/browser_newaddon.js": 5304,
+    "toolkit/mozapps/extensions/test/browser/browser_openDialog.js": 3149,
+    "toolkit/mozapps/extensions/test/browser/browser_plugin_enabled_state_locked.js": 4336,
+    "toolkit/mozapps/extensions/test/browser/browser_pluginprefs.js": 2734,
+    "toolkit/mozapps/extensions/test/browser/browser_purchase.js": 6251,
+    "toolkit/mozapps/extensions/test/browser/browser_recentupdates.js": 8887,
+    "toolkit/mozapps/extensions/test/browser/browser_searching.js": 26394,
+    "toolkit/mozapps/extensions/test/browser/browser_sorting.js": 7486,
+    "toolkit/mozapps/extensions/test/browser/browser_sorting_plugins.js": 3145,
+    "toolkit/mozapps/extensions/test/browser/browser_tabsettings.js": 3391,
+    "toolkit/mozapps/extensions/test/browser/browser_types.js": 33981,
+    "toolkit/mozapps/extensions/test/browser/browser_uninstalling.js": 22055,
+    "toolkit/mozapps/extensions/test/browser/browser_updateid.js": 3257,
+    "toolkit/mozapps/extensions/test/browser/browser_updatessl.js": 20643,
+    "toolkit/mozapps/extensions/test/browser/browser_webapi_access.js": 8925,
+    "toolkit/mozapps/extensions/test/browser/browser_webapi_addon_listener.js": 5518,
+    "toolkit/mozapps/extensions/test/browser/browser_webapi_install.js": 9827,
+    "toolkit/mozapps/extensions/test/browser/browser_webext_options.js": 8145,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_CTP_plugins.js": 12575,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562797.js": 31916,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562854.js": 5907,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562899.js": 4155,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug567137.js": 6618,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug572561.js": 5521,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug577990.js": 13724,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug580298.js": 2993,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug581076.js": 9600,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug586574.js": 3185,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug590347.js": 2952,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591465.js": 6409,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591663.js": 4501,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug596336.js": 6843,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug610764.js": 3232,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug618502.js": 2769,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug679604.js": 3301,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug714593.js": 2702,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_details.js": 39524,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_discovery.js": 47140,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_dragdrop.js": 4667,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_eula.js": 3478,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_experiments.js": 8203,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_globalwarnings.js": 4084,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings.js": 9106,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_browser.js": 7250,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_custom.js": 3430,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_info.js": 9317,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_install.js": 17430,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_list.js": 14900,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_manualupdates.js": 5859,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_openDialog.js": 2825,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_plugin_enabled_state_locked.js": 3748,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_purchase.js": 5235,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_recentupdates.js": 7919,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_searching.js": 22098,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting.js": 6879,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting_plugins.js": 3288,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_tabsettings.js": 2676,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_types.js": 28168,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_uninstalling.js": 19153,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_webext_options.js": 6971,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_amosigned_trigger.js": 2920,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_auth.js": 2849,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_auth4.js": 2724,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js": 3676,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_concurrent_installs.js": 3441,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_localfile.js": 3563,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_localfile3.js": 2933,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_localfile4.js": 3829,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_signed_multiple.js": 2684,
     "uriloader/exthandler/tests/mochitest/browser_web_protocol_handlers.js": 4533
   }
 }
--- a/testing/runtimes/mochitest-browser-chrome.runtimes.json
+++ b/testing/runtimes/mochitest-browser-chrome.runtimes.json
@@ -1,856 +1,856 @@
 {
-  "excluded_test_average": 943, 
+  "excluded_test_average": 943,
   "runtimes": {
-    "Main app process exited normally": 256712, 
-    "accessible/tests/browser/browser_caching_name.js": 4954, 
-    "accessible/tests/browser/browser_shutdown_acc_reference.js": 3209, 
-    "accessible/tests/browser/browser_shutdown_doc_acc_reference.js": 2929, 
-    "accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js": 4225, 
-    "accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js": 4138, 
-    "accessible/tests/browser/browser_shutdown_multi_reference.js": 2710, 
-    "accessible/tests/browser/browser_shutdown_start_restart.js": 2713, 
-    "accessible/tests/browser/e10s/browser_caching_name.js": 8501, 
-    "accessible/tests/browser/e10s/browser_treeupdate_ariaowns.js": 2316, 
-    "accessible/tests/browser/e10s/browser_treeupdate_visibility.js": 2005, 
-    "browser/base/content/test/alerts/browser_notification_close.js": 2055, 
-    "browser/base/content/test/alerts/browser_notification_open_settings.js": 2448, 
-    "browser/base/content/test/captivePortal/browser_captivePortal_certErrorUI.js": 2503, 
-    "browser/base/content/test/chat/browser_chatwindow.js": 8674, 
-    "browser/base/content/test/chat/browser_focus.js": 6450, 
-    "browser/base/content/test/chat/browser_tearoff.js": 4319, 
-    "browser/base/content/test/general/browser_URLBarSetURI.js": 4590, 
-    "browser/base/content/test/general/browser_aboutAccounts.js": 4535, 
-    "browser/base/content/test/general/browser_aboutCertError.js": 9211, 
-    "browser/base/content/test/general/browser_aboutHome.js": 22363, 
-    "browser/base/content/test/general/browser_aboutHome_wrapsCorrectly.js": 3441, 
-    "browser/base/content/test/general/browser_action_keyword.js": 2708, 
-    "browser/base/content/test/general/browser_addCertException.js": 3136, 
-    "browser/base/content/test/general/browser_addKeywordSearch.js": 2128, 
-    "browser/base/content/test/general/browser_alltabslistener.js": 2755, 
-    "browser/base/content/test/general/browser_audioTabIcon.js": 39786, 
-    "browser/base/content/test/general/browser_autocomplete_edit_completed.js": 2099, 
-    "browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js": 6496, 
-    "browser/base/content/test/general/browser_blockHPKP.js": 2540, 
-    "browser/base/content/test/general/browser_bookmark_popup.js": 12455, 
-    "browser/base/content/test/general/browser_bookmark_titles.js": 2409, 
-    "browser/base/content/test/general/browser_bug1025195_switchToTabHavingURI_aOpenParams.js": 4631, 
-    "browser/base/content/test/general/browser_bug1045809.js": 1960, 
-    "browser/base/content/test/general/browser_bug1299667.js": 8754, 
-    "browser/base/content/test/general/browser_bug386835.js": 3234, 
-    "browser/base/content/test/general/browser_bug406216.js": 2261, 
-    "browser/base/content/test/general/browser_bug422590.js": 8139, 
-    "browser/base/content/test/general/browser_bug462673.js": 4036, 
-    "browser/base/content/test/general/browser_bug491431.js": 2127, 
-    "browser/base/content/test/general/browser_bug495058.js": 5673, 
-    "browser/base/content/test/general/browser_bug537013.js": 4228, 
-    "browser/base/content/test/general/browser_bug553455.js": 32427, 
-    "browser/base/content/test/general/browser_bug567306.js": 5920, 
-    "browser/base/content/test/general/browser_bug575561.js": 10730, 
-    "browser/base/content/test/general/browser_bug581242.js": 2704, 
-    "browser/base/content/test/general/browser_bug585558.js": 2040, 
-    "browser/base/content/test/general/browser_bug590206.js": 10362, 
-    "browser/base/content/test/general/browser_bug592338.js": 4611, 
-    "browser/base/content/test/general/browser_bug609700.js": 4015, 
-    "browser/base/content/test/general/browser_bug623893.js": 3163, 
-    "browser/base/content/test/general/browser_bug676619.js": 11546, 
-    "browser/base/content/test/general/browser_bug719271.js": 3871, 
-    "browser/base/content/test/general/browser_bug734076.js": 3261, 
-    "browser/base/content/test/general/browser_bug735471.js": 2085, 
-    "browser/base/content/test/general/browser_bug763468_perwindowpb.js": 6924, 
-    "browser/base/content/test/general/browser_bug767836_perwindowpb.js": 6682, 
-    "browser/base/content/test/general/browser_bug817947.js": 2969, 
-    "browser/base/content/test/general/browser_bug822367.js": 7570, 
-    "browser/base/content/test/general/browser_bug882977.js": 2116, 
-    "browser/base/content/test/general/browser_bug902156.js": 4323, 
-    "browser/base/content/test/general/browser_bug906190.js": 23834, 
-    "browser/base/content/test/general/browser_bug963945.js": 3860, 
-    "browser/base/content/test/general/browser_contentAltClick.js": 3194, 
-    "browser/base/content/test/general/browser_contentAreaClick.js": 2520, 
-    "browser/base/content/test/general/browser_contentSearchUI.js": 16302, 
-    "browser/base/content/test/general/browser_contextmenu.js": 6404, 
-    "browser/base/content/test/general/browser_contextmenu_childprocess.js": 4201, 
-    "browser/base/content/test/general/browser_ctrlTab.js": 4962, 
-    "browser/base/content/test/general/browser_datachoices_notification.js": 3564, 
-    "browser/base/content/test/general/browser_datareporting_notification.js": 4123, 
-    "browser/base/content/test/general/browser_decoderDoctor.js": 1926, 
-    "browser/base/content/test/general/browser_devices_get_user_media.js": 20295, 
-    "browser/base/content/test/general/browser_devices_get_user_media_in_frame.js": 6180, 
-    "browser/base/content/test/general/browser_documentnavigation.js": 5228, 
-    "browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js": 4787, 
-    "browser/base/content/test/general/browser_e10s_chrome_process.js": 4526, 
-    "browser/base/content/test/general/browser_e10s_switchbrowser.js": 5444, 
-    "browser/base/content/test/general/browser_fullscreen-window-open.js": 2830, 
-    "browser/base/content/test/general/browser_fxa_oauth.js": 4120, 
-    "browser/base/content/test/general/browser_fxa_web_channel.js": 3535, 
-    "browser/base/content/test/general/browser_fxaccounts.js": 3175, 
-    "browser/base/content/test/general/browser_getshortcutoruri.js": 3344, 
-    "browser/base/content/test/general/browser_identity_UI.js": 19308, 
-    "browser/base/content/test/general/browser_insecureLoginForms.js": 3538, 
-    "browser/base/content/test/general/browser_locationBarCommand.js": 3188, 
-    "browser/base/content/test/general/browser_mcb_redirect.js": 8524, 
-    "browser/base/content/test/general/browser_misused_characters_in_strings.js": 6197, 
-    "browser/base/content/test/general/browser_mixedContentFromOnunload.js": 2355, 
-    "browser/base/content/test/general/browser_mixed_content_cert_override.js": 4309, 
-    "browser/base/content/test/general/browser_mixedcontent_securityflags.js": 2629, 
-    "browser/base/content/test/general/browser_newTabDrop.js": 4928, 
-    "browser/base/content/test/general/browser_newWindowDrop.js": 21114, 
-    "browser/base/content/test/general/browser_no_mcb_on_http_site.js": 2901, 
-    "browser/base/content/test/general/browser_offlineQuotaNotification.js": 2814, 
-    "browser/base/content/test/general/browser_overflowScroll.js": 7265, 
-    "browser/base/content/test/general/browser_pageInfo.js": 2273, 
-    "browser/base/content/test/general/browser_parsable_css.js": 2523, 
-    "browser/base/content/test/general/browser_parsable_script.js": 8547, 
-    "browser/base/content/test/general/browser_permissions.js": 4518, 
-    "browser/base/content/test/general/browser_plainTextLinks.js": 2170, 
-    "browser/base/content/test/general/browser_popupUI.js": 2245, 
-    "browser/base/content/test/general/browser_printpreview.js": 5871, 
-    "browser/base/content/test/general/browser_private_browsing_window.js": 3607, 
-    "browser/base/content/test/general/browser_private_no_prompt.js": 2065, 
-    "browser/base/content/test/general/browser_readerMode.js": 3581, 
-    "browser/base/content/test/general/browser_refreshBlocker.js": 10694, 
-    "browser/base/content/test/general/browser_relatedTabs.js": 8578, 
-    "browser/base/content/test/general/browser_remoteTroubleshoot.js": 3548, 
-    "browser/base/content/test/general/browser_remoteWebNavigation_postdata.js": 2176, 
-    "browser/base/content/test/general/browser_sanitize-timespans.js": 6246, 
-    "browser/base/content/test/general/browser_sanitizeDialog.js": 21078, 
-    "browser/base/content/test/general/browser_save_link-perwindowpb.js": 5222, 
-    "browser/base/content/test/general/browser_save_link_when_window_navigates.js": 4887, 
-    "browser/base/content/test/general/browser_save_private_link_perwindowpb.js": 3032, 
-    "browser/base/content/test/general/browser_selectTabAtIndex.js": 2787, 
-    "browser/base/content/test/general/browser_ssl_error_reports.js": 8220, 
-    "browser/base/content/test/general/browser_syncui.js": 5402, 
-    "browser/base/content/test/general/browser_tabDrop.js": 3870, 
-    "browser/base/content/test/general/browser_tabMatchesInAwesomebar.js": 12675, 
-    "browser/base/content/test/general/browser_tabMatchesInAwesomebar_perwindowpb.js": 8317, 
-    "browser/base/content/test/general/browser_tab_close_dependent_window.js": 3170, 
-    "browser/base/content/test/general/browser_tab_detach_restore.js": 3826, 
-    "browser/base/content/test/general/browser_tab_drag_drop_perwindow.js": 9358, 
-    "browser/base/content/test/general/browser_tab_dragdrop.js": 5989, 
-    "browser/base/content/test/general/browser_tab_dragdrop2.js": 5365, 
-    "browser/base/content/test/general/browser_tabfocus.js": 3234, 
-    "browser/base/content/test/general/browser_tabkeynavigation.js": 2058, 
-    "browser/base/content/test/general/browser_tabs_isActive.js": 2148, 
-    "browser/base/content/test/general/browser_trackingUI_1.js": 8610, 
-    "browser/base/content/test/general/browser_trackingUI_2.js": 5972, 
-    "browser/base/content/test/general/browser_trackingUI_3.js": 2056, 
-    "browser/base/content/test/general/browser_trackingUI_4.js": 7873, 
-    "browser/base/content/test/general/browser_trackingUI_5.js": 8397, 
-    "browser/base/content/test/general/browser_trackingUI_telemetry.js": 12210, 
-    "browser/base/content/test/general/browser_typeAheadFind.js": 2104, 
-    "browser/base/content/test/general/browser_unloaddialogs.js": 1989, 
-    "browser/base/content/test/general/browser_urlbarCopying.js": 3291, 
-    "browser/base/content/test/general/browser_urlbarDelete.js": 2349, 
-    "browser/base/content/test/general/browser_urlbarSearchSingleWordNotification.js": 12733, 
-    "browser/base/content/test/general/browser_urlbarSearchSuggestionsNotification.js": 11224, 
-    "browser/base/content/test/general/browser_urlbarSearchTelemetry.js": 3252, 
-    "browser/base/content/test/general/browser_urlbar_autoFill_backspaced.js": 5662, 
-    "browser/base/content/test/general/browser_utilityOverlay.js": 2079, 
-    "browser/base/content/test/general/browser_viewSourceInTabOnViewSource.js": 2435, 
-    "browser/base/content/test/general/browser_web_channel.js": 13287, 
-    "browser/base/content/test/general/browser_windowactivation.js": 5022, 
-    "browser/base/content/test/newtab/browser_newtab_block.js": 4694, 
-    "browser/base/content/test/newtab/browser_newtab_bug1194895.js": 7375, 
-    "browser/base/content/test/newtab/browser_newtab_drag_drop.js": 4524, 
-    "browser/base/content/test/newtab/browser_newtab_drag_drop_ext.js": 10077, 
-    "browser/base/content/test/newtab/browser_newtab_enhanced.js": 4317, 
-    "browser/base/content/test/newtab/browser_newtab_intro.js": 2152, 
-    "browser/base/content/test/newtab/browser_newtab_perwindow_private_browsing.js": 2984, 
-    "browser/base/content/test/newtab/browser_newtab_unpin.js": 2896, 
-    "browser/base/content/test/plugins/browser_CTP_crashreporting.js": 4623, 
-    "browser/base/content/test/plugins/browser_CTP_drag_drop.js": 5004, 
-    "browser/base/content/test/plugins/browser_CTP_notificationBar.js": 4726, 
-    "browser/base/content/test/plugins/browser_CTP_outsideScrollArea.js": 2057, 
-    "browser/base/content/test/plugins/browser_CTP_remove_navigate.js": 2607, 
-    "browser/base/content/test/plugins/browser_CTP_zoom.js": 2497, 
-    "browser/base/content/test/plugins/browser_blocking.js": 8859, 
-    "browser/base/content/test/plugins/browser_bug743421.js": 1953, 
-    "browser/base/content/test/plugins/browser_clearplugindata.js": 1970, 
-    "browser/base/content/test/plugins/browser_iterate_hidden_plugins.js": 3842, 
-    "browser/base/content/test/plugins/browser_pageInfo_plugins.js": 4949, 
-    "browser/base/content/test/plugins/browser_pluginCrashCommentAndURL.js": 3975, 
-    "browser/base/content/test/plugins/browser_plugin_infolink.js": 2392, 
-    "browser/base/content/test/plugins/browser_pluginnotification.js": 10634, 
-    "browser/base/content/test/plugins/browser_plugins_added_dynamically.js": 2310, 
-    "browser/base/content/test/plugins/browser_private_clicktoplay.js": 7542, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_2.js": 4242, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_3.js": 3418, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_4.js": 2958, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_5.js": 3582, 
-    "browser/base/content/test/popupNotifications/browser_popupNotification_no_anchors.js": 2846, 
-    "browser/base/content/test/referrer/browser_referrer_middle_click.js": 17578, 
-    "browser/base/content/test/referrer/browser_referrer_middle_click_in_container.js": 17296, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab.js": 4884, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab2.js": 4456, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab3.js": 4761, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_private.js": 7624, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_tab.js": 5245, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_window.js": 8155, 
-    "browser/base/content/test/referrer/browser_referrer_open_link_in_window_in_container.js": 8389, 
-    "browser/base/content/test/referrer/browser_referrer_simple_click.js": 13704, 
-    "browser/base/content/test/social/browser_aboutHome_activation.js": 4928, 
-    "browser/base/content/test/social/browser_blocklist.js": 3946, 
-    "browser/base/content/test/social/browser_share.js": 9928, 
-    "browser/base/content/test/social/browser_social_activation.js": 8652, 
-    "browser/base/content/test/social/browser_social_chatwindow.js": 7424, 
-    "browser/base/content/test/social/browser_social_chatwindow_resize.js": 4743, 
-    "browser/base/content/test/social/browser_social_chatwindowfocus.js": 3147, 
-    "browser/base/content/test/social/browser_social_contextmenu.js": 3014, 
-    "browser/base/content/test/social/browser_social_errorPage.js": 5261, 
-    "browser/base/content/test/social/browser_social_flyout.js": 2181, 
-    "browser/base/content/test/social/browser_social_marks.js": 8438, 
-    "browser/base/content/test/social/browser_social_marks_context.js": 5938, 
-    "browser/base/content/test/social/browser_social_multiworker.js": 2746, 
-    "browser/base/content/test/social/browser_social_perwindowPB.js": 5727, 
-    "browser/base/content/test/social/browser_social_status.js": 4890, 
-    "browser/base/content/test/social/browser_social_window.js": 19940, 
-    "browser/base/content/test/tabs/browser_navigatePinnedTab.js": 3563, 
-    "browser/base/content/test/tabs/browser_tabSwitchPrintPreview.js": 2163, 
-    "browser/base/content/test/urlbar/browser_URLBarSetURI.js": 4770, 
-    "browser/base/content/test/urlbar/browser_action_searchengine.js": 2122, 
-    "browser/base/content/test/urlbar/browser_action_searchengine_alias.js": 1986, 
-    "browser/base/content/test/urlbar/browser_autocomplete_a11y_label.js": 1965, 
-    "browser/base/content/test/urlbar/browser_autocomplete_autoselect.js": 2100, 
-    "browser/base/content/test/urlbar/browser_autocomplete_enter_race.js": 5982, 
-    "browser/base/content/test/urlbar/browser_autocomplete_tag_star_visibility.js": 3463, 
-    "browser/base/content/test/urlbar/browser_bug1025195_switchToTabHavingURI_aOpenParams.js": 8349, 
-    "browser/base/content/test/urlbar/browser_bug1070778.js": 2199, 
-    "browser/base/content/test/urlbar/browser_bug304198.js": 1925, 
-    "browser/base/content/test/urlbar/browser_canonizeURL.js": 2985, 
-    "browser/base/content/test/urlbar/browser_moz_action_link.js": 2323, 
-    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar.js": 9636, 
-    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar_perwindowpb.js": 4170, 
-    "browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js": 9206, 
-    "browser/base/content/test/urlbar/browser_urlbarDecode.js": 2299, 
-    "browser/base/content/test/urlbar/browser_urlbarHashChangeProxyState.js": 2294, 
-    "browser/base/content/test/urlbar/browser_urlbarKeepStateAcrossTabSwitches.js": 2583, 
-    "browser/base/content/test/urlbar/browser_urlbarOneOffs.js": 6115, 
-    "browser/base/content/test/urlbar/browser_urlbarRaceWithTabs.js": 2282, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchSingleWordNotification.js": 16819, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestions.js": 2251, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestionsNotification.js": 10936, 
-    "browser/base/content/test/urlbar/browser_urlbarSearchTelemetry.js": 5890, 
-    "browser/base/content/test/urlbar/browser_urlbarStop.js": 2092, 
-    "browser/base/content/test/urlbar/browser_urlbar_autoFill_backspaced.js": 7004, 
-    "browser/base/content/test/urlbar/browser_urlbar_blanking.js": 3691, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media.js": 13978, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js": 5250, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_in_frame.js": 8327, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js": 6249, 
-    "browser/base/content/test/webrtc/browser_devices_get_user_media_tear_off_tab.js": 3249, 
-    "browser/components/contextualidentity/test/browser/browser_aboutURLs.js": 19159, 
-    "browser/components/contextualidentity/test/browser/browser_broadcastchannel.js": 1991, 
-    "browser/components/contextualidentity/test/browser/browser_eme.js": 2237, 
-    "browser/components/contextualidentity/test/browser/browser_favicon.js": 9300, 
-    "browser/components/contextualidentity/test/browser/browser_forgetAPI_EME_forgetThisSite.js": 5300, 
-    "browser/components/contextualidentity/test/browser/browser_forgetAPI_quota_clearStoragesForPrincipal.js": 3675, 
-    "browser/components/contextualidentity/test/browser/browser_forgetaboutsite.js": 13411, 
-    "browser/components/contextualidentity/test/browser/browser_imageCache.js": 4815, 
-    "browser/components/contextualidentity/test/browser/browser_newtabButton.js": 5498, 
-    "browser/components/contextualidentity/test/browser/browser_serviceworkers.js": 2686, 
-    "browser/components/contextualidentity/test/browser/browser_usercontext.js": 4116, 
-    "browser/components/contextualidentity/test/browser/browser_usercontextid_tabdrop.js": 4974, 
-    "browser/components/contextualidentity/test/browser/browser_windowOpen.js": 2486, 
-    "browser/components/customizableui/test/browser_1003588_no_specials_in_panel.js": 3488, 
-    "browser/components/customizableui/test/browser_1007336_lwthemes_in_customize_mode.js": 2654, 
-    "browser/components/customizableui/test/browser_1008559_anchor_undo_restore.js": 8718, 
-    "browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js": 3416, 
-    "browser/components/customizableui/test/browser_876926_customize_mode_wrapping.js": 8648, 
-    "browser/components/customizableui/test/browser_876944_customize_mode_create_destroy.js": 1987, 
-    "browser/components/customizableui/test/browser_878452_drag_to_panel.js": 3304, 
-    "browser/components/customizableui/test/browser_880164_customization_context_menus.js": 14163, 
-    "browser/components/customizableui/test/browser_880382_drag_wide_widgets_in_panel.js": 8111, 
-    "browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js": 2613, 
-    "browser/components/customizableui/test/browser_885530_showInPrivateBrowsing.js": 10316, 
-    "browser/components/customizableui/test/browser_889120_customize_tab_merging.js": 6271, 
-    "browser/components/customizableui/test/browser_890140_orphaned_placeholders.js": 13730, 
-    "browser/components/customizableui/test/browser_901207_searchbar_in_panel.js": 2327, 
-    "browser/components/customizableui/test/browser_914863_disabled_help_quit_buttons.js": 2058, 
-    "browser/components/customizableui/test/browser_918049_skipintoolbarset_dnd.js": 2438, 
-    "browser/components/customizableui/test/browser_923857_customize_mode_event_wrapping_during_reset.js": 3920, 
-    "browser/components/customizableui/test/browser_927717_customize_drag_empty_toolbar.js": 2338, 
-    "browser/components/customizableui/test/browser_934951_zoom_in_toolbar.js": 1922, 
-    "browser/components/customizableui/test/browser_938980_navbar_collapsed.js": 12517, 
-    "browser/components/customizableui/test/browser_940946_removable_from_navbar_customizemode.js": 1994, 
-    "browser/components/customizableui/test/browser_944887_destroyWidget_should_destroy_in_palette.js": 1960, 
-    "browser/components/customizableui/test/browser_956602_remove_special_widget.js": 2334, 
-    "browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js": 2399, 
-    "browser/components/customizableui/test/browser_963639_customizing_attribute_non_customizable_toolbar.js": 2295, 
-    "browser/components/customizableui/test/browser_967000_button_sync.js": 7471, 
-    "browser/components/customizableui/test/browser_968565_insert_before_hidden_items.js": 2534, 
-    "browser/components/customizableui/test/browser_969661_character_encoding_navbar_disabled.js": 2362, 
-    "browser/components/customizableui/test/browser_970511_undo_restore_default.js": 14354, 
-    "browser/components/customizableui/test/browser_973932_addonbar_currentset.js": 3456, 
-    "browser/components/customizableui/test/browser_975719_customtoolbars_behaviour.js": 10607, 
-    "browser/components/customizableui/test/browser_978084_dragEnd_after_move.js": 4609, 
-    "browser/components/customizableui/test/browser_985815_propagate_setToolbarVisibility.js": 5794, 
-    "browser/components/customizableui/test/browser_987640_charEncoding.js": 2372, 
-    "browser/components/customizableui/test/browser_988072_sidebar_events.js": 4880, 
-    "browser/components/customizableui/test/browser_993322_widget_notoolbar.js": 2224, 
-    "browser/components/customizableui/test/browser_995164_registerArea_during_customize_mode.js": 8583, 
-    "browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js": 8390, 
-    "browser/components/customizableui/test/browser_check_tooltips_in_navbar.js": 2096, 
-    "browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js": 2284, 
-    "browser/components/customizableui/test/browser_switch_to_customize_mode.js": 5363, 
-    "browser/components/downloads/test/browser/browser_confirm_unblock_download.js": 5417, 
-    "browser/components/downloads/test/browser/browser_downloads_panel_block.js": 22516, 
-    "browser/components/downloads/test/browser/browser_iframe_gone_mid_download.js": 7385, 
-    "browser/components/downloads/test/browser/browser_indicatorDrop.js": 5075, 
-    "browser/components/downloads/test/browser/browser_libraryDrop.js": 6251, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_context.js": 6063, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js": 13426, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon_permissions.js": 4447, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_popup.js": 13072, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js": 4825, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js": 11396, 
-    "browser/components/extensions/test/browser/browser_ext_browserAction_simple.js": 2631, 
-    "browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js": 3773, 
-    "browser/components/extensions/test/browser/browser_ext_commands_onCommand.js": 4519, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus.js": 6844, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus_actionMenus.js": 2209, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus_checkboxes.js": 2087, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus_chrome.js": 2877, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus_onclick.js": 19241, 
-    "browser/components/extensions/test/browser/browser_ext_contextMenus_radioGroups.js": 2043, 
-    "browser/components/extensions/test/browser/browser_ext_currentWindow.js": 8998, 
-    "browser/components/extensions/test/browser/browser_ext_getViews.js": 9544, 
-    "browser/components/extensions/test/browser/browser_ext_incognito_popup.js": 5140, 
-    "browser/components/extensions/test/browser/browser_ext_incognito_views.js": 4075, 
-    "browser/components/extensions/test/browser/browser_ext_legacy_extension_context_contentscript.js": 2629, 
-    "browser/components/extensions/test/browser/browser_ext_omnibox.js": 7971, 
-    "browser/components/extensions/test/browser/browser_ext_optionsPage_privileges.js": 5073, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_context.js": 8016, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_popup.js": 5772, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js": 2346, 
-    "browser/components/extensions/test/browser/browser_ext_pageAction_title.js": 9209, 
-    "browser/components/extensions/test/browser/browser_ext_popup_api_injection.js": 3126, 
-    "browser/components/extensions/test/browser/browser_ext_popup_background.js": 3195, 
-    "browser/components/extensions/test/browser/browser_ext_popup_corners.js": 2673, 
-    "browser/components/extensions/test/browser/browser_ext_popup_sendMessage.js": 2454, 
-    "browser/components/extensions/test/browser/browser_ext_popup_shutdown.js": 3823, 
-    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js": 24202, 
-    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js": 4739, 
-    "browser/components/extensions/test/browser/browser_ext_runtime_setUninstallURL.js": 3413, 
-    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed.js": 14654, 
-    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js": 4249, 
-    "browser/components/extensions/test/browser/browser_ext_sessions_restore.js": 11395, 
-    "browser/components/extensions/test/browser/browser_ext_tab_runtimeConnect.js": 2306, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_audio.js": 3006, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js": 7471, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId.js": 11426, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_create.js": 8814, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_detectLanguage.js": 3680, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js": 7481, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_events.js": 11709, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js": 4252, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js": 7803, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js": 9378, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_runAt.js": 2717, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_getCurrent.js": 2190, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move.js": 3728, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move_window.js": 7730, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_multiple.js": 6397, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_pinned.js": 4922, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js": 3195, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js": 16368, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_query.js": 9851, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_reload.js": 1956, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_reload_bypass_cache.js": 2218, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_removeCSS.js": 2097, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js": 4951, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_update.js": 2279, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_update_url.js": 5491, 
-    "browser/components/extensions/test/browser/browser_ext_tabs_zoom.js": 4946, 
-    "browser/components/extensions/test/browser/browser_ext_webNavigation_getFrames.js": 2319, 
-    "browser/components/extensions/test/browser/browser_ext_webNavigation_urlbar_transitions.js": 8373, 
-    "browser/components/extensions/test/browser/browser_ext_webRequest.js": 5295, 
-    "browser/components/extensions/test/browser/browser_ext_windows.js": 2319, 
-    "browser/components/extensions/test/browser/browser_ext_windows_allowScriptsToClose.js": 6112, 
-    "browser/components/extensions/test/browser/browser_ext_windows_create.js": 10089, 
-    "browser/components/extensions/test/browser/browser_ext_windows_create_tabId.js": 10142, 
-    "browser/components/extensions/test/browser/browser_ext_windows_create_url.js": 8076, 
-    "browser/components/extensions/test/browser/browser_ext_windows_events.js": 4114, 
-    "browser/components/extensions/test/browser/browser_ext_windows_size.js": 3006, 
-    "browser/components/extensions/test/browser/browser_ext_windows_update.js": 7168, 
-    "browser/components/newtab/tests/browser/browser_PreviewProvider.js": 2721, 
-    "browser/components/newtab/tests/browser/browser_newtab_overrides.js": 5220, 
-    "browser/components/newtab/tests/browser/browser_newtabwebchannel.js": 5901, 
-    "browser/components/originattributes/test/browser/browser_blobURLIsolation.js": 11316, 
-    "browser/components/originattributes/test/browser/browser_broadcastChannel.js": 9848, 
-    "browser/components/originattributes/test/browser/browser_cache.js": 20014, 
-    "browser/components/originattributes/test/browser/browser_cacheAPI.js": 13788, 
-    "browser/components/originattributes/test/browser/browser_clientAuth.js": 14758, 
-    "browser/components/originattributes/test/browser/browser_cookieIsolation.js": 8153, 
-    "browser/components/originattributes/test/browser/browser_favicon_firstParty.js": 9326, 
-    "browser/components/originattributes/test/browser/browser_favicon_userContextId.js": 6434, 
-    "browser/components/originattributes/test/browser/browser_firstPartyIsolation.js": 15130, 
-    "browser/components/originattributes/test/browser/browser_httpauth.js": 22525, 
-    "browser/components/originattributes/test/browser/browser_imageCacheIsolation.js": 19571, 
-    "browser/components/originattributes/test/browser/browser_localStorageIsolation.js": 7981, 
-    "browser/components/originattributes/test/browser/browser_permissions.js": 31916, 
-    "browser/components/originattributes/test/browser/browser_sanitize.js": 36498, 
-    "browser/components/originattributes/test/browser/browser_sharedworker.js": 8933, 
-    "browser/components/places/tests/browser/browser_0_library_left_pane_migration.js": 1932, 
-    "browser/components/places/tests/browser/browser_410196_paste_into_tags.js": 2102, 
-    "browser/components/places/tests/browser/browser_475045.js": 2023, 
-    "browser/components/places/tests/browser/browser_bookmarkProperties_addKeywordForThisSearch.js": 5613, 
-    "browser/components/places/tests/browser/browser_bookmarkProperties_editTagContainer.js": 2424, 
-    "browser/components/places/tests/browser/browser_bookmarklet_windowOpen.js": 2011, 
-    "browser/components/places/tests/browser/browser_bookmarksProperties.js": 4787, 
-    "browser/components/places/tests/browser/browser_forgetthissite_single.js": 2492, 
-    "browser/components/places/tests/browser/browser_library_batch_delete.js": 2138, 
-    "browser/components/places/tests/browser/browser_library_commands.js": 5823, 
-    "browser/components/places/tests/browser/browser_library_infoBox.js": 2070, 
-    "browser/components/places/tests/browser/browser_library_middleclick.js": 4660, 
-    "browser/components/places/tests/browser/browser_library_views_liveupdate.js": 9015, 
-    "browser/components/places/tests/browser/browser_sort_in_library.js": 2706, 
-    "browser/components/places/tests/browser/browser_views_liveupdate.js": 4275, 
-    "browser/components/preferences/in-content-new/tests/browser_advanced_siteData.js": 4546, 
-    "browser/components/preferences/in-content-new/tests/browser_advanced_update.js": 3765, 
-    "browser/components/preferences/in-content-new/tests/browser_basic_rebuild_fonts_test.js": 2815, 
-    "browser/components/preferences/in-content-new/tests/browser_bug1020245_openPreferences_to_paneContent.js": 7119, 
-    "browser/components/preferences/in-content-new/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.js": 3072, 
-    "browser/components/preferences/in-content-new/tests/browser_bug731866.js": 3887, 
-    "browser/components/preferences/in-content-new/tests/browser_connection.js": 2059, 
-    "browser/components/preferences/in-content-new/tests/browser_connection_bug388287.js": 4792, 
-    "browser/components/preferences/in-content-new/tests/browser_cookies_exceptions.js": 24898, 
-    "browser/components/preferences/in-content-new/tests/browser_defaultbrowser_alwayscheck.js": 3312, 
-    "browser/components/preferences/in-content-new/tests/browser_homepages_filter_aboutpreferences.js": 2566, 
-    "browser/components/preferences/in-content-new/tests/browser_permissions_urlFieldHidden.js": 3240, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_1.js": 12582, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_3.js": 11813, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_4.js": 19735, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_5.js": 11639, 
-    "browser/components/preferences/in-content-new/tests/browser_privacypane_8.js": 11650, 
-    "browser/components/preferences/in-content-new/tests/browser_proxy_backup.js": 2184, 
-    "browser/components/preferences/in-content-new/tests/browser_sanitizeOnShutdown_prefLocked.js": 3107, 
-    "browser/components/preferences/in-content-new/tests/browser_searchsuggestions.js": 2438, 
-    "browser/components/preferences/in-content-new/tests/browser_security.js": 11804, 
-    "browser/components/preferences/in-content-new/tests/browser_subdialogs.js": 8790, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js": 6301, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js": 4713, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutHomeButtonAfterWindowClose.js": 3379, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutSessionRestore.js": 3345, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_blobUrl.js": 3606, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_cache.js": 2957, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_certexceptionsui.js": 2477, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_concurrent.js": 7935, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_context_and_chromeFlags.js": 3542, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_crh.js": 3685, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir.js": 4398, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js": 4479, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_toggle.js": 9423, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_favicon.js": 9058, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js": 5966, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_lastpbcontextexited.js": 5888, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage.js": 3665, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage_before_after.js": 4699, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_newtab_from_popup.js": 4326, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_noSessionRestoreMenuOption.js": 3144, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_nonbrowser.js": 2557, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_opendir.js": 2563, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placesTitleNoUpdate.js": 3953, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js": 6580, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js": 5971, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_protocolhandler.js": 5707, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js": 12408, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_ui.js": 3242, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_urlbarfocus.js": 3376, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js": 25463, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoom.js": 3568, 
-    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoomrestore.js": 3486, 
-    "browser/components/safebrowsing/content/test/browser_bug400731.js": 1919, 
-    "browser/components/safebrowsing/content/test/browser_bug415846.js": 1921, 
-    "browser/components/search/test/browser_426329.js": 8841, 
-    "browser/components/search/test/browser_aboutSearchReset.js": 4146, 
-    "browser/components/search/test/browser_contextmenu.js": 2251, 
-    "browser/components/search/test/browser_oneOffContextMenu.js": 1931, 
-    "browser/components/search/test/browser_private_search_perwindowpb.js": 5217, 
-    "browser/components/search/test/browser_searchbar_keyboard_navigation.js": 2679, 
-    "browser/components/search/test/browser_searchbar_smallpanel_keyboard_navigation.js": 2229, 
-    "browser/components/search/test/browser_webapi.js": 6207, 
-    "browser/components/search/test/browser_yahoo_behavior.js": 2213, 
-    "browser/components/sessionstore/test/browser_354894_perwindowpb.js": 31054, 
-    "browser/components/sessionstore/test/browser_393716.js": 2257, 
-    "browser/components/sessionstore/test/browser_394759_behavior.js": 18512, 
-    "browser/components/sessionstore/test/browser_394759_perwindowpb.js": 6367, 
-    "browser/components/sessionstore/test/browser_423132.js": 2267, 
-    "browser/components/sessionstore/test/browser_463206.js": 2312, 
-    "browser/components/sessionstore/test/browser_464199.js": 1996, 
-    "browser/components/sessionstore/test/browser_465223.js": 1931, 
-    "browser/components/sessionstore/test/browser_477657.js": 2209, 
-    "browser/components/sessionstore/test/browser_480893.js": 2061, 
-    "browser/components/sessionstore/test/browser_490040.js": 7018, 
-    "browser/components/sessionstore/test/browser_491168.js": 2636, 
-    "browser/components/sessionstore/test/browser_495495.js": 5815, 
-    "browser/components/sessionstore/test/browser_500328.js": 2461, 
-    "browser/components/sessionstore/test/browser_522545.js": 15600, 
-    "browser/components/sessionstore/test/browser_524745.js": 2696, 
-    "browser/components/sessionstore/test/browser_586068-apptabs.js": 4253, 
-    "browser/components/sessionstore/test/browser_586068-apptabs_ondemand.js": 3099, 
-    "browser/components/sessionstore/test/browser_586068-browser_state_interrupted.js": 7824, 
-    "browser/components/sessionstore/test/browser_586068-cascade.js": 4403, 
-    "browser/components/sessionstore/test/browser_586068-multi_window.js": 6783, 
-    "browser/components/sessionstore/test/browser_586068-reload.js": 5703, 
-    "browser/components/sessionstore/test/browser_586068-select.js": 5048, 
-    "browser/components/sessionstore/test/browser_586068-window_state.js": 7307, 
-    "browser/components/sessionstore/test/browser_586068-window_state_override.js": 5164, 
-    "browser/components/sessionstore/test/browser_588426.js": 2657, 
-    "browser/components/sessionstore/test/browser_590268.js": 8307, 
-    "browser/components/sessionstore/test/browser_590563.js": 3125, 
-    "browser/components/sessionstore/test/browser_595601-restore_hidden.js": 12818, 
-    "browser/components/sessionstore/test/browser_599909.js": 2060, 
-    "browser/components/sessionstore/test/browser_600545.js": 8725, 
-    "browser/components/sessionstore/test/browser_601955.js": 5447, 
-    "browser/components/sessionstore/test/browser_607016.js": 2705, 
-    "browser/components/sessionstore/test/browser_615394-SSWindowState_events.js": 23104, 
-    "browser/components/sessionstore/test/browser_625016.js": 2891, 
-    "browser/components/sessionstore/test/browser_635418.js": 5002, 
-    "browser/components/sessionstore/test/browser_636279.js": 2253, 
-    "browser/components/sessionstore/test/browser_637020.js": 3577, 
-    "browser/components/sessionstore/test/browser_644409-scratchpads.js": 4627, 
-    "browser/components/sessionstore/test/browser_662743.js": 4474, 
-    "browser/components/sessionstore/test/browser_701377.js": 2504, 
-    "browser/components/sessionstore/test/browser_819510_perwindowpb.js": 23642, 
-    "browser/components/sessionstore/test/browser_911547.js": 2187, 
-    "browser/components/sessionstore/test/browser_aboutSessionRestore.js": 2603, 
-    "browser/components/sessionstore/test/browser_async_duplicate_tab.js": 2606, 
-    "browser/components/sessionstore/test/browser_async_window_flushing.js": 6549, 
-    "browser/components/sessionstore/test/browser_backup_recovery.js": 11615, 
-    "browser/components/sessionstore/test/browser_broadcast.js": 8420, 
-    "browser/components/sessionstore/test/browser_cleaner.js": 9836, 
-    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_tabs.js": 9435, 
-    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_windows.js": 14452, 
-    "browser/components/sessionstore/test/browser_cookies.js": 20675, 
-    "browser/components/sessionstore/test/browser_docshell_uuid_consistency.js": 1991, 
-    "browser/components/sessionstore/test/browser_dying_cache.js": 2972, 
-    "browser/components/sessionstore/test/browser_forget_async_closings.js": 6728, 
-    "browser/components/sessionstore/test/browser_formdata.js": 7492, 
-    "browser/components/sessionstore/test/browser_formdata_cc.js": 29674, 
-    "browser/components/sessionstore/test/browser_formdata_format.js": 10315, 
-    "browser/components/sessionstore/test/browser_formdata_xpath.js": 2650, 
-    "browser/components/sessionstore/test/browser_frame_history.js": 5986, 
-    "browser/components/sessionstore/test/browser_frametree.js": 3151, 
-    "browser/components/sessionstore/test/browser_history_persist.js": 2496, 
-    "browser/components/sessionstore/test/browser_merge_closed_tabs.js": 2586, 
-    "browser/components/sessionstore/test/browser_newtab_userTypedValue.js": 27350, 
-    "browser/components/sessionstore/test/browser_pageStyle.js": 8178, 
-    "browser/components/sessionstore/test/browser_privatetabs.js": 7866, 
-    "browser/components/sessionstore/test/browser_purge_shistory.js": 2055, 
-    "browser/components/sessionstore/test/browser_replace_load.js": 2189, 
-    "browser/components/sessionstore/test/browser_restore_cookies_noOriginAttributes.js": 2962, 
-    "browser/components/sessionstore/test/browser_restore_redirect.js": 2148, 
-    "browser/components/sessionstore/test/browser_scrollPositions.js": 31762, 
-    "browser/components/sessionstore/test/browser_scrollPositionsReaderMode.js": 9403, 
-    "browser/components/sessionstore/test/browser_sessionHistory.js": 7939, 
-    "browser/components/sessionstore/test/browser_sessionStorage.js": 7579, 
-    "browser/components/sessionstore/test/browser_sessionStoreContainer.js": 12959, 
-    "browser/components/sessionstore/test/browser_swapDocShells.js": 3819, 
-    "browser/components/sessionstore/test/browser_undoCloseById.js": 5522, 
-    "browser/components/sessionstore/test/browser_windowRestore_perwindowpb.js": 1935, 
-    "browser/components/sessionstore/test/browser_windowStateContainer.js": 21687, 
-    "browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js": 2649, 
-    "browser/components/translation/test/browser_translation_bing.js": 2069, 
-    "browser/components/translation/test/browser_translation_exceptions.js": 4586, 
-    "browser/components/translation/test/browser_translation_telemetry.js": 9736, 
-    "browser/components/translation/test/browser_translation_yandex.js": 3022, 
-    "browser/components/uitour/test/browser_UITour.js": 5030, 
-    "browser/components/uitour/test/browser_UITour2.js": 4854, 
-    "browser/components/uitour/test/browser_UITour_annotation_size_attributes.js": 2220, 
-    "browser/components/uitour/test/browser_UITour_availableTargets.js": 2331, 
-    "browser/components/uitour/test/browser_UITour_detach_tab.js": 3068, 
-    "browser/components/uitour/test/browser_UITour_heartbeat.js": 29548, 
-    "browser/components/uitour/test/browser_UITour_observe.js": 4010, 
-    "browser/components/uitour/test/browser_UITour_registerPageID.js": 2595, 
-    "browser/components/uitour/test/browser_UITour_sync.js": 17053, 
-    "browser/components/uitour/test/browser_backgroundTab.js": 7438, 
-    "browser/components/uitour/test/browser_openPreferences.js": 6317, 
-    "browser/components/uitour/test/browser_showMenu_controlCenter.js": 2779, 
-    "browser/components/uitour/test/browser_trackingProtection.js": 3564, 
-    "browser/components/uitour/test/browser_trackingProtection_tour.js": 4568, 
-    "browser/extensions/loop/chrome/test/mochitest/browser_LoopRooms_channel.js": 3910, 
-    "browser/extensions/loop/chrome/test/mochitest/browser_fxa_login.js": 11542, 
-    "browser/extensions/loop/chrome/test/mochitest/browser_mozLoop_chat.js": 5094, 
-    "browser/extensions/loop/chrome/test/mochitest/browser_mozLoop_sharingListeners.js": 2227, 
-    "browser/extensions/loop/chrome/test/mochitest/browser_toolbarbutton.js": 3852, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_main.js": 6113, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_navigation.js": 8730, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_views.js": 5372, 
-    "browser/extensions/pdfjs/test/browser_pdfjs_zoom.js": 9760, 
-    "browser/extensions/pocket/test/browser_pocket_ui_check.js": 2012, 
-    "browser/extensions/shield-recipe-client/test/browser_Heartbeat.js": 7131, 
-    "browser/modules/test/browser_BrowserUITelemetry_buckets.js": 4374, 
-    "browser/modules/test/browser_CaptivePortalWatcher.js": 13616, 
-    "browser/modules/test/browser_ContentSearch.js": 5221, 
-    "browser/modules/test/browser_NetworkPrioritizer.js": 4842, 
-    "browser/modules/test/browser_PermissionUI.js": 4839, 
-    "browser/modules/test/browser_SelfSupportBackend.js": 5724, 
-    "browser/modules/test/browser_UnsubmittedCrashHandler.js": 3442, 
-    "browser/modules/test/browser_UsageTelemetry.js": 12643, 
-    "browser/modules/test/browser_UsageTelemetry_content.js": 3285, 
-    "browser/modules/test/browser_UsageTelemetry_content_aboutHome.js": 2240, 
-    "browser/modules/test/browser_UsageTelemetry_private_and_restore.js": 2664, 
-    "browser/modules/test/browser_UsageTelemetry_searchbar.js": 4280, 
-    "browser/modules/test/browser_UsageTelemetry_urlbar.js": 6533, 
-    "docshell/test/browser/browser_bug388121-2.js": 2635, 
-    "docshell/test/browser/browser_bug422543.js": 2484, 
-    "docshell/test/browser/browser_bug852909.js": 1992, 
-    "docshell/test/browser/browser_onbeforeunload_navigation.js": 4636, 
-    "docshell/test/browser/browser_timelineMarkers-03.js": 6194, 
-    "docshell/test/browser/browser_uriFixupIntegration.js": 2103, 
-    "docshell/test/navigation/browser_bug343515.js": 3292, 
-    "docshell/test/navigation/browser_test-content-chromeflags.js": 1978, 
-    "dom/base/test/browser_bug1058164.js": 2748, 
-    "dom/base/test/browser_bug1307747.js": 2805, 
-    "dom/base/test/browser_use_counters.js": 23404, 
-    "dom/broadcastchannel/tests/browser_private_browsing.js": 4978, 
-    "dom/html/test/browser_bug1108547.js": 13316, 
-    "dom/html/test/browser_fullscreen-contextmenu-esc.js": 2445, 
-    "dom/indexedDB/test/browser_forgetThisSite.js": 4885, 
-    "dom/indexedDB/test/browser_permissionsPromptAllow.js": 1920, 
-    "dom/indexedDB/test/browser_permissionsPromptDeny.js": 3954, 
-    "dom/indexedDB/test/browser_permissionsPromptWorker.js": 2071, 
-    "dom/indexedDB/test/browser_perwindow_privateBrowsing.js": 2972, 
-    "dom/ipc/tests/browser_domainPolicy.js": 9706, 
-    "dom/manifest/test/browser_ManifestFinder_browserHasManifestLink.js": 2363, 
-    "dom/manifest/test/browser_ManifestObtainer_obtain.js": 18836, 
-    "dom/media/webaudio/test/browser_bug1181073.js": 4083, 
-    "dom/notification/test/browser/browser_permission_dismiss.js": 2250, 
-    "dom/power/test/browser_wakelocks.js": 4354, 
-    "dom/security/test/contentverifier/browser_verify_content_about_newtab.js": 12181, 
-    "dom/security/test/contentverifier/browser_verify_content_about_newtab2.js": 10284, 
-    "dom/security/test/csp/browser_manifest-src-override-default-src.js": 1939, 
-    "dom/security/test/csp/browser_test_web_manifest.js": 5639, 
-    "dom/security/test/hsts/browser_hsts-priming_allow_active.js": 2280, 
-    "dom/security/test/hsts/browser_hsts-priming_allow_display.js": 1974, 
-    "dom/security/test/hsts/browser_hsts-priming_block_active.js": 2803, 
-    "dom/security/test/hsts/browser_hsts-priming_block_active_with_redir_same.js": 2682, 
-    "dom/security/test/hsts/browser_hsts-priming_cache-timeout.js": 3110, 
-    "dom/security/test/hsts/browser_hsts-priming_hsts_after_mixed.js": 2328, 
-    "dom/security/test/hsts/browser_hsts-priming_no-duplicates.js": 2831, 
-    "dom/security/test/hsts/browser_hsts-priming_timeout.js": 3798, 
-    "dom/tests/browser/browser_ConsoleAPITests.js": 3520, 
-    "dom/tests/browser/browser_ConsoleStoragePBTest_perwindowpb.js": 2914, 
-    "dom/tests/browser/browser_bug396843.js": 6050, 
-    "dom/tests/browser/browser_focus_steal_from_chrome.js": 24015, 
-    "dom/tests/browser/browser_localStorage_privatestorageevent.js": 4393, 
-    "dom/tests/browser/browser_test_new_window_from_content.js": 31428, 
-    "dom/tests/browser/browser_test_toolbars_visibility.js": 7831, 
-    "dom/workers/test/serviceworkers/browser_download.js": 2556, 
-    "editor/libeditor/tests/browser_bug527935.js": 2560, 
-    "embedding/components/windowwatcher/test/browser_new_content_window_chromeflags.js": 3909, 
-    "embedding/components/windowwatcher/test/browser_new_content_window_from_chrome_principal.js": 2168, 
-    "embedding/components/windowwatcher/test/browser_new_sized_window.js": 4285, 
-    "embedding/test/browser_bug1204626.js": 5652, 
-    "layout/base/tests/browser_bug617076.js": 2453, 
-    "layout/base/tests/browser_disableDialogs_onbeforeunload.js": 2230, 
-    "layout/base/tests/browser_onbeforeunload_only_after_interaction.js": 2284, 
-    "layout/base/tests/browser_onbeforeunload_only_after_interaction_in_frame.js": 2441, 
-    "netwerk/cookie/test/browser/browser_originattributes.js": 5489, 
-    "netwerk/test/browser/browser_child_resource.js": 2440, 
-    "security/manager/ssl/tests/mochitest/browser/browser_bug627234_perwindowpb.js": 4724, 
-    "security/manager/ssl/tests/mochitest/browser/browser_certViewer.js": 6507, 
-    "security/manager/ssl/tests/mochitest/browser/browser_clientAuth_connection.js": 3321, 
-    "security/manager/ssl/tests/mochitest/browser/browser_deleteCert_ui.js": 2969, 
-    "testing/mochitest/tests/browser/browser_async.js": 10083, 
-    "testing/mochitest/tests/browser/browser_browserLoaded_content_loaded.js": 2864, 
-    "testing/mochitest/tests/browser/browser_waitForFocus.js": 2067, 
-    "toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js": 8669, 
-    "toolkit/components/addoncompat/tests/browser/browser_addonShims.js": 6424, 
-    "toolkit/components/narrate/test/browser_narrate.js": 3896, 
-    "toolkit/components/narrate/test/browser_narrate_disable.js": 2528, 
-    "toolkit/components/narrate/test/browser_narrate_language.js": 2241, 
-    "toolkit/components/narrate/test/browser_voiceselect.js": 3199, 
-    "toolkit/components/narrate/test/browser_word_highlight.js": 3436, 
-    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger.js": 30201, 
-    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_httpsUpgrade.js": 5048, 
-    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_window_open.js": 9295, 
-    "toolkit/components/passwordmgr/test/browser/browser_context_menu.js": 14753, 
-    "toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js": 5973, 
-    "toolkit/components/passwordmgr/test/browser/browser_hasInsecureLoginForms.js": 2667, 
-    "toolkit/components/passwordmgr/test/browser/browser_http_autofill.js": 4404, 
-    "toolkit/components/passwordmgr/test/browser/browser_insecurePasswordWarning.js": 9300, 
-    "toolkit/components/passwordmgr/test/browser/browser_notifications.js": 3980, 
-    "toolkit/components/passwordmgr/test/browser/browser_notifications_password.js": 4966, 
-    "toolkit/components/passwordmgr/test/browser/browser_notifications_username.js": 7874, 
-    "toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js": 8504, 
-    "toolkit/components/passwordmgr/test/browser/browser_username_select_dialog.js": 3380, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_AddonWatcher.js": 2539, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts.js": 23826, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts_2.js": 5789, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_compartments.js": 5699, 
-    "toolkit/components/perfmonitoring/tests/browser/browser_webpagePerformanceAlerts.js": 35101, 
-    "toolkit/components/places/tests/browser/browser_bug248970.js": 6353, 
-    "toolkit/components/places/tests/browser/browser_bug399606.js": 8916, 
-    "toolkit/components/places/tests/browser/browser_bug461710.js": 4239, 
-    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage.js": 5677, 
-    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage_failures.js": 10364, 
-    "toolkit/components/places/tests/browser/browser_visituri_privatebrowsing_perwindowpb.js": 3319, 
-    "toolkit/components/reader/test/browser_bug1124271_readerModePinnedTab.js": 2067, 
-    "toolkit/components/reader/test/browser_readerMode.js": 5178, 
-    "toolkit/components/reader/test/browser_readerMode_readingTime.js": 2362, 
-    "toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js": 4898, 
-    "toolkit/components/social/test/browser/browser_SocialProvider.js": 2324, 
-    "toolkit/components/social/test/browser/browser_frameworker.js": 5888, 
-    "toolkit/components/social/test/browser/browser_frameworker_sandbox.js": 5738, 
-    "toolkit/components/social/test/browser/browser_workerAPI.js": 2483, 
-    "toolkit/components/startup/tests/browser/browser_bug511456.js": 2803, 
-    "toolkit/components/startup/tests/browser/browser_crash_detection.js": 35076, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_bg_bad_url.js": 2260, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js": 2281, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js": 2113, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_bg_destroy_browser.js": 4497, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_privacy.js": 7688, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_storage.js": 4654, 
-    "toolkit/components/thumbnails/test/browser_thumbnails_update.js": 4615, 
-    "toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js": 4764, 
-    "toolkit/components/viewsource/test/browser/browser_bug464222.js": 2589, 
-    "toolkit/components/viewsource/test/browser/browser_bug713810.js": 2305, 
-    "toolkit/components/viewsource/test/browser/browser_contextmenu.js": 3464, 
-    "toolkit/components/viewsource/test/browser/browser_gotoline.js": 2177, 
-    "toolkit/components/viewsource/test/browser/browser_viewsourceprefs.js": 3124, 
-    "toolkit/content/tests/browser/browser_audioCompeting.js": 3484, 
-    "toolkit/content/tests/browser/browser_bug1170531.js": 2083, 
-    "toolkit/content/tests/browser/browser_bug295977_autoscroll_overflow.js": 7223, 
-    "toolkit/content/tests/browser/browser_f7_caret_browsing.js": 4806, 
-    "toolkit/content/tests/browser/browser_findbar.js": 9522, 
-    "toolkit/content/tests/browser/browser_label_textlink.js": 2560, 
-    "toolkit/content/tests/browser/browser_mediaPlayback.js": 6217, 
-    "toolkit/content/tests/browser/browser_mediaPlayback_mute.js": 9273, 
-    "toolkit/content/tests/browser/browser_mediaPlayback_suspended.js": 4139, 
-    "toolkit/content/tests/browser/browser_mediaPlayback_suspended_multipleAudio.js": 8178, 
-    "toolkit/content/tests/browser/browser_quickfind_editable.js": 3343, 
-    "toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js": 2527, 
-    "toolkit/modules/tests/browser/browser_RemotePageManager.js": 7969, 
-    "toolkit/modules/tests/browser/browser_WebRequest.js": 4238, 
-    "toolkit/mozapps/extensions/test/browser/browser_CTP_plugins.js": 11117, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug557943.js": 2060, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug557956.js": 30339, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562797.js": 52689, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562854.js": 5473, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562890.js": 2183, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562899.js": 3720, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug562992.js": 2158, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug567127.js": 2149, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug567137.js": 5681, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug572561.js": 4890, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug573062.js": 2049, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug577990.js": 12990, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug580298.js": 3033, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug581076.js": 9096, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug586574.js": 3052, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug587970.js": 2401, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug590347.js": 2933, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug591465.js": 6457, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug591663.js": 4259, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug596336.js": 6496, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug608316.js": 2414, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug610764.js": 2823, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug618502.js": 2623, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug679604.js": 2893, 
-    "toolkit/mozapps/extensions/test/browser/browser_bug714593.js": 2617, 
-    "toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js": 20447, 
-    "toolkit/mozapps/extensions/test/browser/browser_debug_button.js": 6544, 
-    "toolkit/mozapps/extensions/test/browser/browser_details.js": 38493, 
-    "toolkit/mozapps/extensions/test/browser/browser_discovery.js": 47540, 
-    "toolkit/mozapps/extensions/test/browser/browser_discovery_install.js": 13023, 
-    "toolkit/mozapps/extensions/test/browser/browser_dragdrop.js": 5732, 
-    "toolkit/mozapps/extensions/test/browser/browser_eula.js": 3411, 
-    "toolkit/mozapps/extensions/test/browser/browser_experiments.js": 10751, 
-    "toolkit/mozapps/extensions/test/browser/browser_globalinformations.js": 3474, 
-    "toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js": 3905, 
-    "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js": 46765, 
-    "toolkit/mozapps/extensions/test/browser/browser_hotfix.js": 3851, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings.js": 9334, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_browser.js": 7072, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_custom.js": 3215, 
-    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_info.js": 9210, 
-    "toolkit/mozapps/extensions/test/browser/browser_install.js": 16713, 
-    "toolkit/mozapps/extensions/test/browser/browser_installssl.js": 14037, 
-    "toolkit/mozapps/extensions/test/browser/browser_list.js": 13804, 
-    "toolkit/mozapps/extensions/test/browser/browser_manualupdates.js": 5553, 
-    "toolkit/mozapps/extensions/test/browser/browser_newaddon.js": 3395, 
-    "toolkit/mozapps/extensions/test/browser/browser_openDialog.js": 2435, 
-    "toolkit/mozapps/extensions/test/browser/browser_plugin_enabled_state_locked.js": 3727, 
-    "toolkit/mozapps/extensions/test/browser/browser_pluginprefs.js": 2051, 
-    "toolkit/mozapps/extensions/test/browser/browser_purchase.js": 4428, 
-    "toolkit/mozapps/extensions/test/browser/browser_recentupdates.js": 7583, 
-    "toolkit/mozapps/extensions/test/browser/browser_searching.js": 21947, 
-    "toolkit/mozapps/extensions/test/browser/browser_select_compatoverrides.js": 2440, 
-    "toolkit/mozapps/extensions/test/browser/browser_select_confirm.js": 2470, 
-    "toolkit/mozapps/extensions/test/browser/browser_select_selection.js": 2535, 
-    "toolkit/mozapps/extensions/test/browser/browser_select_update.js": 2276, 
-    "toolkit/mozapps/extensions/test/browser/browser_sorting.js": 6235, 
-    "toolkit/mozapps/extensions/test/browser/browser_sorting_plugins.js": 2582, 
-    "toolkit/mozapps/extensions/test/browser/browser_tabsettings.js": 2334, 
-    "toolkit/mozapps/extensions/test/browser/browser_types.js": 27100, 
-    "toolkit/mozapps/extensions/test/browser/browser_uninstalling.js": 19569, 
-    "toolkit/mozapps/extensions/test/browser/browser_updateid.js": 2102, 
-    "toolkit/mozapps/extensions/test/browser/browser_updatessl.js": 20828, 
-    "toolkit/mozapps/extensions/test/browser/browser_webapi_access.js": 7026, 
-    "toolkit/mozapps/extensions/test/browser/browser_webapi_addon_listener.js": 4087, 
-    "toolkit/mozapps/extensions/test/browser/browser_webapi_install.js": 8577, 
-    "toolkit/mozapps/extensions/test/browser/browser_webext_options.js": 6565, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_CTP_plugins.js": 11673, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug557943.js": 2147, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562797.js": 31447, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562854.js": 5682, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562890.js": 2120, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562899.js": 4089, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562992.js": 2199, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug567127.js": 2082, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug567137.js": 6395, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug572561.js": 5249, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug573062.js": 1997, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug577990.js": 13657, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug580298.js": 2852, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug581076.js": 9272, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug586574.js": 2970, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug587970.js": 2399, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug590347.js": 2813, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591465.js": 6131, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591663.js": 4516, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug596336.js": 6574, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug608316.js": 2469, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug610764.js": 2979, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug618502.js": 2773, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug679604.js": 3002, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug714593.js": 2619, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_debug_button.js": 7434, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_details.js": 39353, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_discovery.js": 46972, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_dragdrop.js": 4499, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_eula.js": 3261, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_experiments.js": 8135, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_globalinformations.js": 3232, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_globalwarnings.js": 3836, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings.js": 8986, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_browser.js": 7042, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_custom.js": 3359, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_info.js": 9014, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_install.js": 17201, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_list.js": 14575, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_manualupdates.js": 5677, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_openDialog.js": 2587, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_plugin_enabled_state_locked.js": 3670, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_pluginprefs.js": 2519, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_purchase.js": 4643, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_recentupdates.js": 7785, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_searching.js": 21951, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting.js": 6477, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting_plugins.js": 3129, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_tabsettings.js": 2300, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_types.js": 28129, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_uninstalling.js": 18998, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_updateid.js": 2226, 
-    "toolkit/mozapps/extensions/test/browser/test-window/browser_webext_options.js": 6669, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_amosigned_trigger.js": 2568, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_auth.js": 2405, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_auth4.js": 2193, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js": 2663, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_concurrent_installs.js": 2840, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_httphash5.js": 1977, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_httphash6.js": 2262, 
-    "toolkit/mozapps/extensions/test/xpinstall/browser_signed_multiple.js": 2368, 
+    "Main app process exited normally": 256712,
+    "accessible/tests/browser/browser_caching_name.js": 4954,
+    "accessible/tests/browser/browser_shutdown_acc_reference.js": 3209,
+    "accessible/tests/browser/browser_shutdown_doc_acc_reference.js": 2929,
+    "accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js": 4225,
+    "accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js": 4138,
+    "accessible/tests/browser/browser_shutdown_multi_reference.js": 2710,
+    "accessible/tests/browser/browser_shutdown_start_restart.js": 2713,
+    "accessible/tests/browser/e10s/browser_caching_name.js": 8501,
+    "accessible/tests/browser/e10s/browser_treeupdate_ariaowns.js": 2316,
+    "accessible/tests/browser/e10s/browser_treeupdate_visibility.js": 2005,
+    "browser/base/content/test/alerts/browser_notification_close.js": 2055,
+    "browser/base/content/test/alerts/browser_notification_open_settings.js": 2448,
+    "browser/base/content/test/captivePortal/browser_captivePortal_certErrorUI.js": 2503,
+    "browser/base/content/test/chat/browser_chatwindow.js": 8674,
+    "browser/base/content/test/chat/browser_focus.js": 6450,
+    "browser/base/content/test/chat/browser_tearoff.js": 4319,
+    "browser/base/content/test/general/browser_URLBarSetURI.js": 4590,
+    "browser/base/content/test/general/browser_aboutAccounts.js": 4535,
+    "browser/base/content/test/general/browser_aboutCertError.js": 9211,
+    "browser/base/content/test/general/browser_aboutHome.js": 22363,
+    "browser/base/content/test/general/browser_aboutHome_wrapsCorrectly.js": 3441,
+    "browser/base/content/test/general/browser_action_keyword.js": 2708,
+    "browser/base/content/test/general/browser_addCertException.js": 3136,
+    "browser/base/content/test/general/browser_addKeywordSearch.js": 2128,
+    "browser/base/content/test/general/browser_alltabslistener.js": 2755,
+    "browser/base/content/test/general/browser_audioTabIcon.js": 39786,
+    "browser/base/content/test/general/browser_autocomplete_edit_completed.js": 2099,
+    "browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js": 6496,
+    "browser/base/content/test/general/browser_blockHPKP.js": 2540,
+    "browser/base/content/test/general/browser_bookmark_popup.js": 12455,
+    "browser/base/content/test/general/browser_bookmark_titles.js": 2409,
+    "browser/base/content/test/general/browser_bug1025195_switchToTabHavingURI_aOpenParams.js": 4631,
+    "browser/base/content/test/general/browser_bug1045809.js": 1960,
+    "browser/base/content/test/general/browser_bug1299667.js": 8754,
+    "browser/base/content/test/general/browser_bug386835.js": 3234,
+    "browser/base/content/test/general/browser_bug406216.js": 2261,
+    "browser/base/content/test/general/browser_bug422590.js": 8139,
+    "browser/base/content/test/general/browser_bug462673.js": 4036,
+    "browser/base/content/test/general/browser_bug491431.js": 2127,
+    "browser/base/content/test/general/browser_bug495058.js": 5673,
+    "browser/base/content/test/general/browser_bug537013.js": 4228,
+    "browser/base/content/test/general/browser_bug553455.js": 32427,
+    "browser/base/content/test/general/browser_bug567306.js": 5920,
+    "browser/base/content/test/general/browser_bug575561.js": 10730,
+    "browser/base/content/test/general/browser_bug581242.js": 2704,
+    "browser/base/content/test/general/browser_bug585558.js": 2040,
+    "browser/base/content/test/general/browser_bug590206.js": 10362,
+    "browser/base/content/test/general/browser_bug592338.js": 4611,
+    "browser/base/content/test/general/browser_bug609700.js": 4015,
+    "browser/base/content/test/general/browser_bug623893.js": 3163,
+    "browser/base/content/test/general/browser_bug676619.js": 11546,
+    "browser/base/content/test/general/browser_bug719271.js": 3871,
+    "browser/base/content/test/general/browser_bug734076.js": 3261,
+    "browser/base/content/test/general/browser_bug735471.js": 2085,
+    "browser/base/content/test/general/browser_bug763468_perwindowpb.js": 6924,
+    "browser/base/content/test/general/browser_bug767836_perwindowpb.js": 6682,
+    "browser/base/content/test/general/browser_bug817947.js": 2969,
+    "browser/base/content/test/general/browser_bug822367.js": 7570,
+    "browser/base/content/test/general/browser_bug882977.js": 2116,
+    "browser/base/content/test/general/browser_bug902156.js": 4323,
+    "browser/base/content/test/general/browser_bug906190.js": 23834,
+    "browser/base/content/test/general/browser_bug963945.js": 3860,
+    "browser/base/content/test/general/browser_contentAltClick.js": 3194,
+    "browser/base/content/test/general/browser_contentAreaClick.js": 2520,
+    "browser/base/content/test/general/browser_contentSearchUI.js": 16302,
+    "browser/base/content/test/general/browser_contextmenu.js": 6404,
+    "browser/base/content/test/general/browser_contextmenu_childprocess.js": 4201,
+    "browser/base/content/test/general/browser_ctrlTab.js": 4962,
+    "browser/base/content/test/general/browser_datachoices_notification.js": 3564,
+    "browser/base/content/test/general/browser_datareporting_notification.js": 4123,
+    "browser/base/content/test/general/browser_decoderDoctor.js": 1926,
+    "browser/base/content/test/general/browser_devices_get_user_media.js": 20295,
+    "browser/base/content/test/general/browser_devices_get_user_media_in_frame.js": 6180,
+    "browser/base/content/test/general/browser_documentnavigation.js": 5228,
+    "browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js": 4787,
+    "browser/base/content/test/general/browser_e10s_chrome_process.js": 4526,
+    "browser/base/content/test/general/browser_e10s_switchbrowser.js": 5444,
+    "browser/base/content/test/general/browser_fullscreen-window-open.js": 2830,
+    "browser/base/content/test/general/browser_fxa_oauth.js": 4120,
+    "browser/base/content/test/general/browser_fxa_web_channel.js": 3535,
+    "browser/base/content/test/general/browser_fxaccounts.js": 3175,
+    "browser/base/content/test/general/browser_getshortcutoruri.js": 3344,
+    "browser/base/content/test/general/browser_identity_UI.js": 19308,
+    "browser/base/content/test/general/browser_insecureLoginForms.js": 3538,
+    "browser/base/content/test/general/browser_locationBarCommand.js": 3188,
+    "browser/base/content/test/general/browser_mcb_redirect.js": 8524,
+    "browser/base/content/test/general/browser_misused_characters_in_strings.js": 6197,
+    "browser/base/content/test/general/browser_mixedContentFromOnunload.js": 2355,
+    "browser/base/content/test/general/browser_mixed_content_cert_override.js": 4309,
+    "browser/base/content/test/general/browser_mixedcontent_securityflags.js": 2629,
+    "browser/base/content/test/general/browser_newTabDrop.js": 4928,
+    "browser/base/content/test/general/browser_newWindowDrop.js": 21114,
+    "browser/base/content/test/general/browser_no_mcb_on_http_site.js": 2901,
+    "browser/base/content/test/general/browser_offlineQuotaNotification.js": 2814,
+    "browser/base/content/test/general/browser_overflowScroll.js": 7265,
+    "browser/base/content/test/general/browser_pageInfo.js": 2273,
+    "browser/base/content/test/general/browser_parsable_css.js": 2523,
+    "browser/base/content/test/general/browser_parsable_script.js": 8547,
+    "browser/base/content/test/general/browser_permissions.js": 4518,
+    "browser/base/content/test/general/browser_plainTextLinks.js": 2170,
+    "browser/base/content/test/general/browser_popupUI.js": 2245,
+    "browser/base/content/test/general/browser_printpreview.js": 5871,
+    "browser/base/content/test/general/browser_private_browsing_window.js": 3607,
+    "browser/base/content/test/general/browser_private_no_prompt.js": 2065,
+    "browser/base/content/test/general/browser_readerMode.js": 3581,
+    "browser/base/content/test/general/browser_refreshBlocker.js": 10694,
+    "browser/base/content/test/general/browser_relatedTabs.js": 8578,
+    "browser/base/content/test/general/browser_remoteTroubleshoot.js": 3548,
+    "browser/base/content/test/general/browser_remoteWebNavigation_postdata.js": 2176,
+    "browser/base/content/test/general/browser_sanitize-timespans.js": 6246,
+    "browser/base/content/test/general/browser_sanitizeDialog.js": 21078,
+    "browser/base/content/test/general/browser_save_link-perwindowpb.js": 5222,
+    "browser/base/content/test/general/browser_save_link_when_window_navigates.js": 4887,
+    "browser/base/content/test/general/browser_save_private_link_perwindowpb.js": 3032,
+    "browser/base/content/test/general/browser_selectTabAtIndex.js": 2787,
+    "browser/base/content/test/general/browser_ssl_error_reports.js": 8220,
+    "browser/base/content/test/general/browser_syncui.js": 5402,
+    "browser/base/content/test/general/browser_tabDrop.js": 3870,
+    "browser/base/content/test/general/browser_tabMatchesInAwesomebar.js": 12675,
+    "browser/base/content/test/general/browser_tabMatchesInAwesomebar_perwindowpb.js": 8317,
+    "browser/base/content/test/general/browser_tab_close_dependent_window.js": 3170,
+    "browser/base/content/test/general/browser_tab_detach_restore.js": 3826,
+    "browser/base/content/test/general/browser_tab_drag_drop_perwindow.js": 9358,
+    "browser/base/content/test/general/browser_tab_dragdrop.js": 5989,
+    "browser/base/content/test/general/browser_tab_dragdrop2.js": 5365,
+    "browser/base/content/test/general/browser_tabfocus.js": 3234,
+    "browser/base/content/test/general/browser_tabkeynavigation.js": 2058,
+    "browser/base/content/test/general/browser_tabs_isActive.js": 2148,
+    "browser/base/content/test/general/browser_trackingUI_1.js": 8610,
+    "browser/base/content/test/general/browser_trackingUI_2.js": 5972,
+    "browser/base/content/test/general/browser_trackingUI_3.js": 2056,
+    "browser/base/content/test/general/browser_trackingUI_4.js": 7873,
+    "browser/base/content/test/general/browser_trackingUI_5.js": 8397,
+    "browser/base/content/test/general/browser_trackingUI_telemetry.js": 12210,
+    "browser/base/content/test/general/browser_typeAheadFind.js": 2104,
+    "browser/base/content/test/general/browser_unloaddialogs.js": 1989,
+    "browser/base/content/test/general/browser_urlbarCopying.js": 3291,
+    "browser/base/content/test/general/browser_urlbarDelete.js": 2349,
+    "browser/base/content/test/general/browser_urlbarSearchSingleWordNotification.js": 12733,
+    "browser/base/content/test/general/browser_urlbarSearchSuggestionsNotification.js": 11224,
+    "browser/base/content/test/general/browser_urlbarSearchTelemetry.js": 3252,
+    "browser/base/content/test/general/browser_urlbar_autoFill_backspaced.js": 5662,
+    "browser/base/content/test/general/browser_utilityOverlay.js": 2079,
+    "browser/base/content/test/general/browser_viewSourceInTabOnViewSource.js": 2435,
+    "browser/base/content/test/general/browser_web_channel.js": 13287,
+    "browser/base/content/test/general/browser_windowactivation.js": 5022,
+    "browser/base/content/test/newtab/browser_newtab_block.js": 4694,
+    "browser/base/content/test/newtab/browser_newtab_bug1194895.js": 7375,
+    "browser/base/content/test/newtab/browser_newtab_drag_drop.js": 4524,
+    "browser/base/content/test/newtab/browser_newtab_drag_drop_ext.js": 10077,
+    "browser/base/content/test/newtab/browser_newtab_enhanced.js": 4317,
+    "browser/base/content/test/newtab/browser_newtab_intro.js": 2152,
+    "browser/base/content/test/newtab/browser_newtab_perwindow_private_browsing.js": 2984,
+    "browser/base/content/test/newtab/browser_newtab_unpin.js": 2896,
+    "browser/base/content/test/plugins/browser_CTP_crashreporting.js": 4623,
+    "browser/base/content/test/plugins/browser_CTP_drag_drop.js": 5004,
+    "browser/base/content/test/plugins/browser_CTP_notificationBar.js": 4726,
+    "browser/base/content/test/plugins/browser_CTP_outsideScrollArea.js": 2057,
+    "browser/base/content/test/plugins/browser_CTP_remove_navigate.js": 2607,
+    "browser/base/content/test/plugins/browser_CTP_zoom.js": 2497,
+    "browser/base/content/test/plugins/browser_blocking.js": 8859,
+    "browser/base/content/test/plugins/browser_bug743421.js": 1953,
+    "browser/base/content/test/plugins/browser_clearplugindata.js": 1970,
+    "browser/base/content/test/plugins/browser_iterate_hidden_plugins.js": 3842,
+    "browser/base/content/test/plugins/browser_pageInfo_plugins.js": 4949,
+    "browser/base/content/test/plugins/browser_pluginCrashCommentAndURL.js": 3975,
+    "browser/base/content/test/plugins/browser_plugin_infolink.js": 2392,
+    "browser/base/content/test/plugins/browser_pluginnotification.js": 10634,
+    "browser/base/content/test/plugins/browser_plugins_added_dynamically.js": 2310,
+    "browser/base/content/test/plugins/browser_private_clicktoplay.js": 7542,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_2.js": 4242,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_3.js": 3418,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_4.js": 2958,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_5.js": 3582,
+    "browser/base/content/test/popupNotifications/browser_popupNotification_no_anchors.js": 2846,
+    "browser/base/content/test/referrer/browser_referrer_middle_click.js": 17578,
+    "browser/base/content/test/referrer/browser_referrer_middle_click_in_container.js": 17296,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab.js": 4884,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab2.js": 4456,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab3.js": 4761,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_private.js": 7624,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_tab.js": 5245,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_window.js": 8155,
+    "browser/base/content/test/referrer/browser_referrer_open_link_in_window_in_container.js": 8389,
+    "browser/base/content/test/referrer/browser_referrer_simple_click.js": 13704,
+    "browser/base/content/test/social/browser_aboutHome_activation.js": 4928,
+    "browser/base/content/test/social/browser_blocklist.js": 3946,
+    "browser/base/content/test/social/browser_share.js": 9928,
+    "browser/base/content/test/social/browser_social_activation.js": 8652,
+    "browser/base/content/test/social/browser_social_chatwindow.js": 7424,
+    "browser/base/content/test/social/browser_social_chatwindow_resize.js": 4743,
+    "browser/base/content/test/social/browser_social_chatwindowfocus.js": 3147,
+    "browser/base/content/test/social/browser_social_contextmenu.js": 3014,
+    "browser/base/content/test/social/browser_social_errorPage.js": 5261,
+    "browser/base/content/test/social/browser_social_flyout.js": 2181,
+    "browser/base/content/test/social/browser_social_marks.js": 8438,
+    "browser/base/content/test/social/browser_social_marks_context.js": 5938,
+    "browser/base/content/test/social/browser_social_multiworker.js": 2746,
+    "browser/base/content/test/social/browser_social_perwindowPB.js": 5727,
+    "browser/base/content/test/social/browser_social_status.js": 4890,
+    "browser/base/content/test/social/browser_social_window.js": 19940,
+    "browser/base/content/test/tabs/browser_navigatePinnedTab.js": 3563,
+    "browser/base/content/test/tabs/browser_tabSwitchPrintPreview.js": 2163,
+    "browser/base/content/test/urlbar/browser_URLBarSetURI.js": 4770,
+    "browser/base/content/test/urlbar/browser_action_searchengine.js": 2122,
+    "browser/base/content/test/urlbar/browser_action_searchengine_alias.js": 1986,
+    "browser/base/content/test/urlbar/browser_autocomplete_a11y_label.js": 1965,
+    "browser/base/content/test/urlbar/browser_autocomplete_autoselect.js": 2100,
+    "browser/base/content/test/urlbar/browser_autocomplete_enter_race.js": 5982,
+    "browser/base/content/test/urlbar/browser_autocomplete_tag_star_visibility.js": 3463,
+    "browser/base/content/test/urlbar/browser_bug1025195_switchToTabHavingURI_aOpenParams.js": 8349,
+    "browser/base/content/test/urlbar/browser_bug1070778.js": 2199,
+    "browser/base/content/test/urlbar/browser_bug304198.js": 1925,
+    "browser/base/content/test/urlbar/browser_canonizeURL.js": 2985,
+    "browser/base/content/test/urlbar/browser_moz_action_link.js": 2323,
+    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar.js": 9636,
+    "browser/base/content/test/urlbar/browser_tabMatchesInAwesomebar_perwindowpb.js": 4170,
+    "browser/base/content/test/urlbar/browser_urlbarAboutHomeLoading.js": 9206,
+    "browser/base/content/test/urlbar/browser_urlbarDecode.js": 2299,
+    "browser/base/content/test/urlbar/browser_urlbarHashChangeProxyState.js": 2294,
+    "browser/base/content/test/urlbar/browser_urlbarKeepStateAcrossTabSwitches.js": 2583,
+    "browser/base/content/test/urlbar/browser_urlbarOneOffs.js": 6115,
+    "browser/base/content/test/urlbar/browser_urlbarRaceWithTabs.js": 2282,
+    "browser/base/content/test/urlbar/browser_urlbarSearchSingleWordNotification.js": 16819,
+    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestions.js": 2251,
+    "browser/base/content/test/urlbar/browser_urlbarSearchSuggestionsNotification.js": 10936,
+    "browser/base/content/test/urlbar/browser_urlbarSearchTelemetry.js": 5890,
+    "browser/base/content/test/urlbar/browser_urlbarStop.js": 2092,
+    "browser/base/content/test/urlbar/browser_urlbar_autoFill_backspaced.js": 7004,
+    "browser/base/content/test/urlbar/browser_urlbar_blanking.js": 3691,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media.js": 13978,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js": 5250,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_in_frame.js": 8327,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js": 6249,
+    "browser/base/content/test/webrtc/browser_devices_get_user_media_tear_off_tab.js": 3249,
+    "browser/components/contextualidentity/test/browser/browser_aboutURLs.js": 19159,
+    "browser/components/contextualidentity/test/browser/browser_broadcastchannel.js": 1991,
+    "browser/components/contextualidentity/test/browser/browser_eme.js": 2237,
+    "browser/components/contextualidentity/test/browser/browser_favicon.js": 9300,
+    "browser/components/contextualidentity/test/browser/browser_forgetAPI_EME_forgetThisSite.js": 5300,
+    "browser/components/contextualidentity/test/browser/browser_forgetAPI_quota_clearStoragesForPrincipal.js": 3675,
+    "browser/components/contextualidentity/test/browser/browser_forgetaboutsite.js": 13411,
+    "browser/components/contextualidentity/test/browser/browser_imageCache.js": 4815,
+    "browser/components/contextualidentity/test/browser/browser_newtabButton.js": 5498,
+    "browser/components/contextualidentity/test/browser/browser_serviceworkers.js": 2686,
+    "browser/components/contextualidentity/test/browser/browser_usercontext.js": 4116,
+    "browser/components/contextualidentity/test/browser/browser_usercontextid_tabdrop.js": 4974,
+    "browser/components/contextualidentity/test/browser/browser_windowOpen.js": 2486,
+    "browser/components/customizableui/test/browser_1003588_no_specials_in_panel.js": 3488,
+    "browser/components/customizableui/test/browser_1007336_lwthemes_in_customize_mode.js": 2654,
+    "browser/components/customizableui/test/browser_1008559_anchor_undo_restore.js": 8718,
+    "browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js": 3416,
+    "browser/components/customizableui/test/browser_876926_customize_mode_wrapping.js": 8648,
+    "browser/components/customizableui/test/browser_876944_customize_mode_create_destroy.js": 1987,
+    "browser/components/customizableui/test/browser_878452_drag_to_panel.js": 3304,
+    "browser/components/customizableui/test/browser_880164_customization_context_menus.js": 14163,
+    "browser/components/customizableui/test/browser_880382_drag_wide_widgets_in_panel.js": 8111,
+    "browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js": 2613,
+    "browser/components/customizableui/test/browser_885530_showInPrivateBrowsing.js": 10316,
+    "browser/components/customizableui/test/browser_889120_customize_tab_merging.js": 6271,
+    "browser/components/customizableui/test/browser_890140_orphaned_placeholders.js": 13730,
+    "browser/components/customizableui/test/browser_901207_searchbar_in_panel.js": 2327,
+    "browser/components/customizableui/test/browser_914863_disabled_help_quit_buttons.js": 2058,
+    "browser/components/customizableui/test/browser_918049_skipintoolbarset_dnd.js": 2438,
+    "browser/components/customizableui/test/browser_923857_customize_mode_event_wrapping_during_reset.js": 3920,
+    "browser/components/customizableui/test/browser_927717_customize_drag_empty_toolbar.js": 2338,
+    "browser/components/customizableui/test/browser_934951_zoom_in_toolbar.js": 1922,
+    "browser/components/customizableui/test/browser_938980_navbar_collapsed.js": 12517,
+    "browser/components/customizableui/test/browser_940946_removable_from_navbar_customizemode.js": 1994,
+    "browser/components/customizableui/test/browser_944887_destroyWidget_should_destroy_in_palette.js": 1960,
+    "browser/components/customizableui/test/browser_956602_remove_special_widget.js": 2334,
+    "browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js": 2399,
+    "browser/components/customizableui/test/browser_963639_customizing_attribute_non_customizable_toolbar.js": 2295,
+    "browser/components/customizableui/test/browser_967000_button_sync.js": 7471,
+    "browser/components/customizableui/test/browser_968565_insert_before_hidden_items.js": 2534,
+    "browser/components/customizableui/test/browser_969661_character_encoding_navbar_disabled.js": 2362,
+    "browser/components/customizableui/test/browser_970511_undo_restore_default.js": 14354,
+    "browser/components/customizableui/test/browser_973932_addonbar_currentset.js": 3456,
+    "browser/components/customizableui/test/browser_975719_customtoolbars_behaviour.js": 10607,
+    "browser/components/customizableui/test/browser_978084_dragEnd_after_move.js": 4609,
+    "browser/components/customizableui/test/browser_985815_propagate_setToolbarVisibility.js": 5794,
+    "browser/components/customizableui/test/browser_987640_charEncoding.js": 2372,
+    "browser/components/customizableui/test/browser_988072_sidebar_events.js": 4880,
+    "browser/components/customizableui/test/browser_993322_widget_notoolbar.js": 2224,
+    "browser/components/customizableui/test/browser_995164_registerArea_during_customize_mode.js": 8583,
+    "browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js": 8390,
+    "browser/components/customizableui/test/browser_check_tooltips_in_navbar.js": 2096,
+    "browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js": 2284,
+    "browser/components/customizableui/test/browser_switch_to_customize_mode.js": 5363,
+    "browser/components/downloads/test/browser/browser_confirm_unblock_download.js": 5417,
+    "browser/components/downloads/test/browser/browser_downloads_panel_block.js": 22516,
+    "browser/components/downloads/test/browser/browser_iframe_gone_mid_download.js": 7385,
+    "browser/components/downloads/test/browser/browser_indicatorDrop.js": 5075,
+    "browser/components/downloads/test/browser/browser_libraryDrop.js": 6251,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_context.js": 6063,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js": 13426,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon_permissions.js": 4447,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_popup.js": 13072,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js": 4825,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js": 11396,
+    "browser/components/extensions/test/browser/browser_ext_browserAction_simple.js": 2631,
+    "browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js": 3773,
+    "browser/components/extensions/test/browser/browser_ext_commands_onCommand.js": 4519,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus.js": 6844,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus_actionMenus.js": 2209,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus_checkboxes.js": 2087,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus_chrome.js": 2877,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus_onclick.js": 19241,
+    "browser/components/extensions/test/browser/browser_ext_contextMenus_radioGroups.js": 2043,
+    "browser/components/extensions/test/browser/browser_ext_currentWindow.js": 8998,
+    "browser/components/extensions/test/browser/browser_ext_getViews.js": 9544,
+    "browser/components/extensions/test/browser/browser_ext_incognito_popup.js": 5140,
+    "browser/components/extensions/test/browser/browser_ext_incognito_views.js": 4075,
+    "browser/components/extensions/test/browser/browser_ext_legacy_extension_context_contentscript.js": 2629,
+    "browser/components/extensions/test/browser/browser_ext_omnibox.js": 7971,
+    "browser/components/extensions/test/browser/browser_ext_optionsPage_privileges.js": 5073,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_context.js": 8016,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_popup.js": 5772,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js": 2346,
+    "browser/components/extensions/test/browser/browser_ext_pageAction_title.js": 9209,
+    "browser/components/extensions/test/browser/browser_ext_popup_api_injection.js": 3126,
+    "browser/components/extensions/test/browser/browser_ext_popup_background.js": 3195,
+    "browser/components/extensions/test/browser/browser_ext_popup_corners.js": 2673,
+    "browser/components/extensions/test/browser/browser_ext_popup_sendMessage.js": 2454,
+    "browser/components/extensions/test/browser/browser_ext_popup_shutdown.js": 3823,
+    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js": 24202,
+    "browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js": 4739,
+    "browser/components/extensions/test/browser/browser_ext_runtime_setUninstallURL.js": 3413,
+    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed.js": 14654,
+    "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js": 4249,
+    "browser/components/extensions/test/browser/browser_ext_sessions_restore.js": 11395,
+    "browser/components/extensions/test/browser/browser_ext_tab_runtimeConnect.js": 2306,
+    "browser/components/extensions/test/browser/browser_ext_tabs_audio.js": 3006,
+    "browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js": 7471,
+    "browser/components/extensions/test/browser/browser_ext_tabs_cookieStoreId.js": 11426,
+    "browser/components/extensions/test/browser/browser_ext_tabs_create.js": 8814,
+    "browser/components/extensions/test/browser/browser_ext_tabs_detectLanguage.js": 3680,
+    "browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js": 7481,
+    "browser/components/extensions/test/browser/browser_ext_tabs_events.js": 11709,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js": 4252,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js": 7803,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js": 9378,
+    "browser/components/extensions/test/browser/browser_ext_tabs_executeScript_runAt.js": 2717,
+    "browser/components/extensions/test/browser/browser_ext_tabs_getCurrent.js": 2190,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move.js": 3728,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move_window.js": 7730,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_multiple.js": 6397,
+    "browser/components/extensions/test/browser/browser_ext_tabs_move_window_pinned.js": 4922,
+    "browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js": 3195,
+    "browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js": 16368,
+    "browser/components/extensions/test/browser/browser_ext_tabs_query.js": 9851,
+    "browser/components/extensions/test/browser/browser_ext_tabs_reload.js": 1956,
+    "browser/components/extensions/test/browser/browser_ext_tabs_reload_bypass_cache.js": 2218,
+    "browser/components/extensions/test/browser/browser_ext_tabs_removeCSS.js": 2097,
+    "browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js": 4951,
+    "browser/components/extensions/test/browser/browser_ext_tabs_update.js": 2279,
+    "browser/components/extensions/test/browser/browser_ext_tabs_update_url.js": 5491,
+    "browser/components/extensions/test/browser/browser_ext_tabs_zoom.js": 4946,
+    "browser/components/extensions/test/browser/browser_ext_webNavigation_getFrames.js": 2319,
+    "browser/components/extensions/test/browser/browser_ext_webNavigation_urlbar_transitions.js": 8373,
+    "browser/components/extensions/test/browser/browser_ext_webRequest.js": 5295,
+    "browser/components/extensions/test/browser/browser_ext_windows.js": 2319,
+    "browser/components/extensions/test/browser/browser_ext_windows_allowScriptsToClose.js": 6112,
+    "browser/components/extensions/test/browser/browser_ext_windows_create.js": 10089,
+    "browser/components/extensions/test/browser/browser_ext_windows_create_tabId.js": 10142,
+    "browser/components/extensions/test/browser/browser_ext_windows_create_url.js": 8076,
+    "browser/components/extensions/test/browser/browser_ext_windows_events.js": 4114,
+    "browser/components/extensions/test/browser/browser_ext_windows_size.js": 3006,
+    "browser/components/extensions/test/browser/browser_ext_windows_update.js": 7168,
+    "browser/components/newtab/tests/browser/browser_PreviewProvider.js": 2721,
+    "browser/components/newtab/tests/browser/browser_newtab_overrides.js": 5220,
+    "browser/components/newtab/tests/browser/browser_newtabwebchannel.js": 5901,
+    "browser/components/originattributes/test/browser/browser_blobURLIsolation.js": 11316,
+    "browser/components/originattributes/test/browser/browser_broadcastChannel.js": 9848,
+    "browser/components/originattributes/test/browser/browser_cache.js": 20014,
+    "browser/components/originattributes/test/browser/browser_cacheAPI.js": 13788,
+    "browser/components/originattributes/test/browser/browser_clientAuth.js": 14758,
+    "browser/components/originattributes/test/browser/browser_cookieIsolation.js": 8153,
+    "browser/components/originattributes/test/browser/browser_favicon_firstParty.js": 9326,
+    "browser/components/originattributes/test/browser/browser_favicon_userContextId.js": 6434,
+    "browser/components/originattributes/test/browser/browser_firstPartyIsolation.js": 15130,
+    "browser/components/originattributes/test/browser/browser_httpauth.js": 22525,
+    "browser/components/originattributes/test/browser/browser_imageCacheIsolation.js": 19571,
+    "browser/components/originattributes/test/browser/browser_localStorageIsolation.js": 7981,
+    "browser/components/originattributes/test/browser/browser_permissions.js": 31916,
+    "browser/components/originattributes/test/browser/browser_sanitize.js": 36498,
+    "browser/components/originattributes/test/browser/browser_sharedworker.js": 8933,
+    "browser/components/places/tests/browser/browser_0_library_left_pane_migration.js": 1932,
+    "browser/components/places/tests/browser/browser_410196_paste_into_tags.js": 2102,
+    "browser/components/places/tests/browser/browser_475045.js": 2023,
+    "browser/components/places/tests/browser/browser_bookmarkProperties_addKeywordForThisSearch.js": 5613,
+    "browser/components/places/tests/browser/browser_bookmarkProperties_editTagContainer.js": 2424,
+    "browser/components/places/tests/browser/browser_bookmarklet_windowOpen.js": 2011,
+    "browser/components/places/tests/browser/browser_bookmarksProperties.js": 4787,
+    "browser/components/places/tests/browser/browser_forgetthissite_single.js": 2492,
+    "browser/components/places/tests/browser/browser_library_batch_delete.js": 2138,
+    "browser/components/places/tests/browser/browser_library_commands.js": 5823,
+    "browser/components/places/tests/browser/browser_library_infoBox.js": 2070,
+    "browser/components/places/tests/browser/browser_library_middleclick.js": 4660,
+    "browser/components/places/tests/browser/browser_library_views_liveupdate.js": 9015,
+    "browser/components/places/tests/browser/browser_sort_in_library.js": 2706,
+    "browser/components/places/tests/browser/browser_views_liveupdate.js": 4275,
+    "browser/components/preferences/in-content/tests/browser_advanced_siteData.js": 4546,
+    "browser/components/preferences/in-content/tests/browser_advanced_update.js": 3765,
+    "browser/components/preferences/in-content/tests/browser_basic_rebuild_fonts_test.js": 2815,
+    "browser/components/preferences/in-content/tests/browser_bug1020245_openPreferences_to_paneContent.js": 7119,
+    "browser/components/preferences/in-content/tests/browser_bug1184989_prevent_scrolling_when_preferences_flipped.js": 3072,
+    "browser/components/preferences/in-content/tests/browser_bug731866.js": 3887,
+    "browser/components/preferences/in-content/tests/browser_connection.js": 2059,
+    "browser/components/preferences/in-content/tests/browser_connection_bug388287.js": 4792,
+    "browser/components/preferences/in-content/tests/browser_cookies_exceptions.js": 24898,
+    "browser/components/preferences/in-content/tests/browser_defaultbrowser_alwayscheck.js": 3312,
+    "browser/components/preferences/in-content/tests/browser_homepages_filter_aboutpreferences.js": 2566,
+    "browser/components/preferences/in-content/tests/browser_permissions_urlFieldHidden.js": 3240,
+    "browser/components/preferences/in-content/tests/browser_privacypane_1.js": 12582,
+    "browser/components/preferences/in-content/tests/browser_privacypane_3.js": 11813,
+    "browser/components/preferences/in-content/tests/browser_privacypane_4.js": 19735,
+    "browser/components/preferences/in-content/tests/browser_privacypane_5.js": 11639,
+    "browser/components/preferences/in-content/tests/browser_privacypane_8.js": 11650,
+    "browser/components/preferences/in-content/tests/browser_proxy_backup.js": 2184,
+    "browser/components/preferences/in-content/tests/browser_sanitizeOnShutdown_prefLocked.js": 3107,
+    "browser/components/preferences/in-content/tests/browser_searchsuggestions.js": 2438,
+    "browser/components/preferences/in-content/tests/browser_security.js": 11804,
+    "browser/components/preferences/in-content/tests/browser_subdialogs.js": 8790,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js": 6301,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js": 4713,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutHomeButtonAfterWindowClose.js": 3379,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutSessionRestore.js": 3345,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_blobUrl.js": 3606,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_cache.js": 2957,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_certexceptionsui.js": 2477,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_concurrent.js": 7935,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_context_and_chromeFlags.js": 3542,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_crh.js": 3685,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir.js": 4398,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js": 4479,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_toggle.js": 9423,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_favicon.js": 9058,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_geoprompt.js": 5966,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_lastpbcontextexited.js": 5888,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage.js": 3665,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_localStorage_before_after.js": 4699,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_newtab_from_popup.js": 4326,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_noSessionRestoreMenuOption.js": 3144,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_nonbrowser.js": 2557,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_opendir.js": 2563,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placesTitleNoUpdate.js": 3953,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_placestitle.js": 6580,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_popupblocker.js": 5971,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_protocolhandler.js": 5707,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js": 12408,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_ui.js": 3242,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_urlbarfocus.js": 3376,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_windowtitle.js": 25463,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoom.js": 3568,
+    "browser/components/privatebrowsing/test/browser/browser_privatebrowsing_zoomrestore.js": 3486,
+    "browser/components/safebrowsing/content/test/browser_bug400731.js": 1919,
+    "browser/components/safebrowsing/content/test/browser_bug415846.js": 1921,
+    "browser/components/search/test/browser_426329.js": 8841,
+    "browser/components/search/test/browser_aboutSearchReset.js": 4146,
+    "browser/components/search/test/browser_contextmenu.js": 2251,
+    "browser/components/search/test/browser_oneOffContextMenu.js": 1931,
+    "browser/components/search/test/browser_private_search_perwindowpb.js": 5217,
+    "browser/components/search/test/browser_searchbar_keyboard_navigation.js": 2679,
+    "browser/components/search/test/browser_searchbar_smallpanel_keyboard_navigation.js": 2229,
+    "browser/components/search/test/browser_webapi.js": 6207,
+    "browser/components/search/test/browser_yahoo_behavior.js": 2213,
+    "browser/components/sessionstore/test/browser_354894_perwindowpb.js": 31054,
+    "browser/components/sessionstore/test/browser_393716.js": 2257,
+    "browser/components/sessionstore/test/browser_394759_behavior.js": 18512,
+    "browser/components/sessionstore/test/browser_394759_perwindowpb.js": 6367,
+    "browser/components/sessionstore/test/browser_423132.js": 2267,
+    "browser/components/sessionstore/test/browser_463206.js": 2312,
+    "browser/components/sessionstore/test/browser_464199.js": 1996,
+    "browser/components/sessionstore/test/browser_465223.js": 1931,
+    "browser/components/sessionstore/test/browser_477657.js": 2209,
+    "browser/components/sessionstore/test/browser_480893.js": 2061,
+    "browser/components/sessionstore/test/browser_490040.js": 7018,
+    "browser/components/sessionstore/test/browser_491168.js": 2636,
+    "browser/components/sessionstore/test/browser_495495.js": 5815,
+    "browser/components/sessionstore/test/browser_500328.js": 2461,
+    "browser/components/sessionstore/test/browser_522545.js": 15600,
+    "browser/components/sessionstore/test/browser_524745.js": 2696,
+    "browser/components/sessionstore/test/browser_586068-apptabs.js": 4253,
+    "browser/components/sessionstore/test/browser_586068-apptabs_ondemand.js": 3099,
+    "browser/components/sessionstore/test/browser_586068-browser_state_interrupted.js": 7824,
+    "browser/components/sessionstore/test/browser_586068-cascade.js": 4403,
+    "browser/components/sessionstore/test/browser_586068-multi_window.js": 6783,
+    "browser/components/sessionstore/test/browser_586068-reload.js": 5703,
+    "browser/components/sessionstore/test/browser_586068-select.js": 5048,
+    "browser/components/sessionstore/test/browser_586068-window_state.js": 7307,
+    "browser/components/sessionstore/test/browser_586068-window_state_override.js": 5164,
+    "browser/components/sessionstore/test/browser_588426.js": 2657,
+    "browser/components/sessionstore/test/browser_590268.js": 8307,
+    "browser/components/sessionstore/test/browser_590563.js": 3125,
+    "browser/components/sessionstore/test/browser_595601-restore_hidden.js": 12818,
+    "browser/components/sessionstore/test/browser_599909.js": 2060,
+    "browser/components/sessionstore/test/browser_600545.js": 8725,
+    "browser/components/sessionstore/test/browser_601955.js": 5447,
+    "browser/components/sessionstore/test/browser_607016.js": 2705,
+    "browser/components/sessionstore/test/browser_615394-SSWindowState_events.js": 23104,
+    "browser/components/sessionstore/test/browser_625016.js": 2891,
+    "browser/components/sessionstore/test/browser_635418.js": 5002,
+    "browser/components/sessionstore/test/browser_636279.js": 2253,
+    "browser/components/sessionstore/test/browser_637020.js": 3577,
+    "browser/components/sessionstore/test/browser_644409-scratchpads.js": 4627,
+    "browser/components/sessionstore/test/browser_662743.js": 4474,
+    "browser/components/sessionstore/test/browser_701377.js": 2504,
+    "browser/components/sessionstore/test/browser_819510_perwindowpb.js": 23642,
+    "browser/components/sessionstore/test/browser_911547.js": 2187,
+    "browser/components/sessionstore/test/browser_aboutSessionRestore.js": 2603,
+    "browser/components/sessionstore/test/browser_async_duplicate_tab.js": 2606,
+    "browser/components/sessionstore/test/browser_async_window_flushing.js": 6549,
+    "browser/components/sessionstore/test/browser_backup_recovery.js": 11615,
+    "browser/components/sessionstore/test/browser_broadcast.js": 8420,
+    "browser/components/sessionstore/test/browser_cleaner.js": 9836,
+    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_tabs.js": 9435,
+    "browser/components/sessionstore/test/browser_closed_objects_changed_notifications_windows.js": 14452,
+    "browser/components/sessionstore/test/browser_cookies.js": 20675,
+    "browser/components/sessionstore/test/browser_docshell_uuid_consistency.js": 1991,
+    "browser/components/sessionstore/test/browser_dying_cache.js": 2972,
+    "browser/components/sessionstore/test/browser_forget_async_closings.js": 6728,
+    "browser/components/sessionstore/test/browser_formdata.js": 7492,
+    "browser/components/sessionstore/test/browser_formdata_cc.js": 29674,
+    "browser/components/sessionstore/test/browser_formdata_format.js": 10315,
+    "browser/components/sessionstore/test/browser_formdata_xpath.js": 2650,
+    "browser/components/sessionstore/test/browser_frame_history.js": 5986,
+    "browser/components/sessionstore/test/browser_frametree.js": 3151,
+    "browser/components/sessionstore/test/browser_history_persist.js": 2496,
+    "browser/components/sessionstore/test/browser_merge_closed_tabs.js": 2586,
+    "browser/components/sessionstore/test/browser_newtab_userTypedValue.js": 27350,
+    "browser/components/sessionstore/test/browser_pageStyle.js": 8178,
+    "browser/components/sessionstore/test/browser_privatetabs.js": 7866,
+    "browser/components/sessionstore/test/browser_purge_shistory.js": 2055,
+    "browser/components/sessionstore/test/browser_replace_load.js": 2189,
+    "browser/components/sessionstore/test/browser_restore_cookies_noOriginAttributes.js": 2962,
+    "browser/components/sessionstore/test/browser_restore_redirect.js": 2148,
+    "browser/components/sessionstore/test/browser_scrollPositions.js": 31762,
+    "browser/components/sessionstore/test/browser_scrollPositionsReaderMode.js": 9403,
+    "browser/components/sessionstore/test/browser_sessionHistory.js": 7939,
+    "browser/components/sessionstore/test/browser_sessionStorage.js": 7579,
+    "browser/components/sessionstore/test/browser_sessionStoreContainer.js": 12959,
+    "browser/components/sessionstore/test/browser_swapDocShells.js": 3819,
+    "browser/components/sessionstore/test/browser_undoCloseById.js": 5522,
+    "browser/components/sessionstore/test/browser_windowRestore_perwindowpb.js": 1935,
+    "browser/components/sessionstore/test/browser_windowStateContainer.js": 21687,
+    "browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js": 2649,
+    "browser/components/translation/test/browser_translation_bing.js": 2069,
+    "browser/components/translation/test/browser_translation_exceptions.js": 4586,
+    "browser/components/translation/test/browser_translation_telemetry.js": 9736,
+    "browser/components/translation/test/browser_translation_yandex.js": 3022,
+    "browser/components/uitour/test/browser_UITour.js": 5030,
+    "browser/components/uitour/test/browser_UITour2.js": 4854,
+    "browser/components/uitour/test/browser_UITour_annotation_size_attributes.js": 2220,
+    "browser/components/uitour/test/browser_UITour_availableTargets.js": 2331,
+    "browser/components/uitour/test/browser_UITour_detach_tab.js": 3068,
+    "browser/components/uitour/test/browser_UITour_heartbeat.js": 29548,
+    "browser/components/uitour/test/browser_UITour_observe.js": 4010,
+    "browser/components/uitour/test/browser_UITour_registerPageID.js": 2595,
+    "browser/components/uitour/test/browser_UITour_sync.js": 17053,
+    "browser/components/uitour/test/browser_backgroundTab.js": 7438,
+    "browser/components/uitour/test/browser_openPreferences.js": 6317,
+    "browser/components/uitour/test/browser_showMenu_controlCenter.js": 2779,
+    "browser/components/uitour/test/browser_trackingProtection.js": 3564,
+    "browser/components/uitour/test/browser_trackingProtection_tour.js": 4568,
+    "browser/extensions/loop/chrome/test/mochitest/browser_LoopRooms_channel.js": 3910,
+    "browser/extensions/loop/chrome/test/mochitest/browser_fxa_login.js": 11542,
+    "browser/extensions/loop/chrome/test/mochitest/browser_mozLoop_chat.js": 5094,
+    "browser/extensions/loop/chrome/test/mochitest/browser_mozLoop_sharingListeners.js": 2227,
+    "browser/extensions/loop/chrome/test/mochitest/browser_toolbarbutton.js": 3852,
+    "browser/extensions/pdfjs/test/browser_pdfjs_main.js": 6113,
+    "browser/extensions/pdfjs/test/browser_pdfjs_navigation.js": 8730,
+    "browser/extensions/pdfjs/test/browser_pdfjs_views.js": 5372,
+    "browser/extensions/pdfjs/test/browser_pdfjs_zoom.js": 9760,
+    "browser/extensions/pocket/test/browser_pocket_ui_check.js": 2012,
+    "browser/extensions/shield-recipe-client/test/browser_Heartbeat.js": 7131,
+    "browser/modules/test/browser_BrowserUITelemetry_buckets.js": 4374,
+    "browser/modules/test/browser_CaptivePortalWatcher.js": 13616,
+    "browser/modules/test/browser_ContentSearch.js": 5221,
+    "browser/modules/test/browser_NetworkPrioritizer.js": 4842,
+    "browser/modules/test/browser_PermissionUI.js": 4839,
+    "browser/modules/test/browser_SelfSupportBackend.js": 5724,
+    "browser/modules/test/browser_UnsubmittedCrashHandler.js": 3442,
+    "browser/modules/test/browser_UsageTelemetry.js": 12643,
+    "browser/modules/test/browser_UsageTelemetry_content.js": 3285,
+    "browser/modules/test/browser_UsageTelemetry_content_aboutHome.js": 2240,
+    "browser/modules/test/browser_UsageTelemetry_private_and_restore.js": 2664,
+    "browser/modules/test/browser_UsageTelemetry_searchbar.js": 4280,
+    "browser/modules/test/browser_UsageTelemetry_urlbar.js": 6533,
+    "docshell/test/browser/browser_bug388121-2.js": 2635,
+    "docshell/test/browser/browser_bug422543.js": 2484,
+    "docshell/test/browser/browser_bug852909.js": 1992,
+    "docshell/test/browser/browser_onbeforeunload_navigation.js": 4636,
+    "docshell/test/browser/browser_timelineMarkers-03.js": 6194,
+    "docshell/test/browser/browser_uriFixupIntegration.js": 2103,
+    "docshell/test/navigation/browser_bug343515.js": 3292,
+    "docshell/test/navigation/browser_test-content-chromeflags.js": 1978,
+    "dom/base/test/browser_bug1058164.js": 2748,
+    "dom/base/test/browser_bug1307747.js": 2805,
+    "dom/base/test/browser_use_counters.js": 23404,
+    "dom/broadcastchannel/tests/browser_private_browsing.js": 4978,
+    "dom/html/test/browser_bug1108547.js": 13316,
+    "dom/html/test/browser_fullscreen-contextmenu-esc.js": 2445,
+    "dom/indexedDB/test/browser_forgetThisSite.js": 4885,
+    "dom/indexedDB/test/browser_permissionsPromptAllow.js": 1920,
+    "dom/indexedDB/test/browser_permissionsPromptDeny.js": 3954,
+    "dom/indexedDB/test/browser_permissionsPromptWorker.js": 2071,
+    "dom/indexedDB/test/browser_perwindow_privateBrowsing.js": 2972,
+    "dom/ipc/tests/browser_domainPolicy.js": 9706,
+    "dom/manifest/test/browser_ManifestFinder_browserHasManifestLink.js": 2363,
+    "dom/manifest/test/browser_ManifestObtainer_obtain.js": 18836,
+    "dom/media/webaudio/test/browser_bug1181073.js": 4083,
+    "dom/notification/test/browser/browser_permission_dismiss.js": 2250,
+    "dom/power/test/browser_wakelocks.js": 4354,
+    "dom/security/test/contentverifier/browser_verify_content_about_newtab.js": 12181,
+    "dom/security/test/contentverifier/browser_verify_content_about_newtab2.js": 10284,
+    "dom/security/test/csp/browser_manifest-src-override-default-src.js": 1939,
+    "dom/security/test/csp/browser_test_web_manifest.js": 5639,
+    "dom/security/test/hsts/browser_hsts-priming_allow_active.js": 2280,
+    "dom/security/test/hsts/browser_hsts-priming_allow_display.js": 1974,
+    "dom/security/test/hsts/browser_hsts-priming_block_active.js": 2803,
+    "dom/security/test/hsts/browser_hsts-priming_block_active_with_redir_same.js": 2682,
+    "dom/security/test/hsts/browser_hsts-priming_cache-timeout.js": 3110,
+    "dom/security/test/hsts/browser_hsts-priming_hsts_after_mixed.js": 2328,
+    "dom/security/test/hsts/browser_hsts-priming_no-duplicates.js": 2831,
+    "dom/security/test/hsts/browser_hsts-priming_timeout.js": 3798,
+    "dom/tests/browser/browser_ConsoleAPITests.js": 3520,
+    "dom/tests/browser/browser_ConsoleStoragePBTest_perwindowpb.js": 2914,
+    "dom/tests/browser/browser_bug396843.js": 6050,
+    "dom/tests/browser/browser_focus_steal_from_chrome.js": 24015,
+    "dom/tests/browser/browser_localStorage_privatestorageevent.js": 4393,
+    "dom/tests/browser/browser_test_new_window_from_content.js": 31428,
+    "dom/tests/browser/browser_test_toolbars_visibility.js": 7831,
+    "dom/workers/test/serviceworkers/browser_download.js": 2556,
+    "editor/libeditor/tests/browser_bug527935.js": 2560,
+    "embedding/components/windowwatcher/test/browser_new_content_window_chromeflags.js": 3909,
+    "embedding/components/windowwatcher/test/browser_new_content_window_from_chrome_principal.js": 2168,
+    "embedding/components/windowwatcher/test/browser_new_sized_window.js": 4285,
+    "embedding/test/browser_bug1204626.js": 5652,
+    "layout/base/tests/browser_bug617076.js": 2453,
+    "layout/base/tests/browser_disableDialogs_onbeforeunload.js": 2230,
+    "layout/base/tests/browser_onbeforeunload_only_after_interaction.js": 2284,
+    "layout/base/tests/browser_onbeforeunload_only_after_interaction_in_frame.js": 2441,
+    "netwerk/cookie/test/browser/browser_originattributes.js": 5489,
+    "netwerk/test/browser/browser_child_resource.js": 2440,
+    "security/manager/ssl/tests/mochitest/browser/browser_bug627234_perwindowpb.js": 4724,
+    "security/manager/ssl/tests/mochitest/browser/browser_certViewer.js": 6507,
+    "security/manager/ssl/tests/mochitest/browser/browser_clientAuth_connection.js": 3321,
+    "security/manager/ssl/tests/mochitest/browser/browser_deleteCert_ui.js": 2969,
+    "testing/mochitest/tests/browser/browser_async.js": 10083,
+    "testing/mochitest/tests/browser/browser_browserLoaded_content_loaded.js": 2864,
+    "testing/mochitest/tests/browser/browser_waitForFocus.js": 2067,
+    "toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js": 8669,
+    "toolkit/components/addoncompat/tests/browser/browser_addonShims.js": 6424,
+    "toolkit/components/narrate/test/browser_narrate.js": 3896,
+    "toolkit/components/narrate/test/browser_narrate_disable.js": 2528,
+    "toolkit/components/narrate/test/browser_narrate_language.js": 2241,
+    "toolkit/components/narrate/test/browser_voiceselect.js": 3199,
+    "toolkit/components/narrate/test/browser_word_highlight.js": 3436,
+    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger.js": 30201,
+    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_httpsUpgrade.js": 5048,
+    "toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_window_open.js": 9295,
+    "toolkit/components/passwordmgr/test/browser/browser_context_menu.js": 14753,
+    "toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js": 5973,
+    "toolkit/components/passwordmgr/test/browser/browser_hasInsecureLoginForms.js": 2667,
+    "toolkit/components/passwordmgr/test/browser/browser_http_autofill.js": 4404,
+    "toolkit/components/passwordmgr/test/browser/browser_insecurePasswordWarning.js": 9300,
+    "toolkit/components/passwordmgr/test/browser/browser_notifications.js": 3980,
+    "toolkit/components/passwordmgr/test/browser/browser_notifications_password.js": 4966,
+    "toolkit/components/passwordmgr/test/browser/browser_notifications_username.js": 7874,
+    "toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js": 8504,
+    "toolkit/components/passwordmgr/test/browser/browser_username_select_dialog.js": 3380,
+    "toolkit/components/perfmonitoring/tests/browser/browser_AddonWatcher.js": 2539,
+    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts.js": 23826,
+    "toolkit/components/perfmonitoring/tests/browser/browser_addonPerformanceAlerts_2.js": 5789,
+    "toolkit/components/perfmonitoring/tests/browser/browser_compartments.js": 5699,
+    "toolkit/components/perfmonitoring/tests/browser/browser_webpagePerformanceAlerts.js": 35101,
+    "toolkit/components/places/tests/browser/browser_bug248970.js": 6353,
+    "toolkit/components/places/tests/browser/browser_bug399606.js": 8916,
+    "toolkit/components/places/tests/browser/browser_bug461710.js": 4239,
+    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage.js": 5677,
+    "toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage_failures.js": 10364,
+    "toolkit/components/places/tests/browser/browser_visituri_privatebrowsing_perwindowpb.js": 3319,
+    "toolkit/components/reader/test/browser_bug1124271_readerModePinnedTab.js": 2067,
+    "toolkit/components/reader/test/browser_readerMode.js": 5178,
+    "toolkit/components/reader/test/browser_readerMode_readingTime.js": 2362,
+    "toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js": 4898,
+    "toolkit/components/social/test/browser/browser_SocialProvider.js": 2324,
+    "toolkit/components/social/test/browser/browser_frameworker.js": 5888,
+    "toolkit/components/social/test/browser/browser_frameworker_sandbox.js": 5738,
+    "toolkit/components/social/test/browser/browser_workerAPI.js": 2483,
+    "toolkit/components/startup/tests/browser/browser_bug511456.js": 2803,
+    "toolkit/components/startup/tests/browser/browser_crash_detection.js": 35076,
+    "toolkit/components/thumbnails/test/browser_thumbnails_bg_bad_url.js": 2260,
+    "toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js": 2281,
+    "toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js": 2113,
+    "toolkit/components/thumbnails/test/browser_thumbnails_bg_destroy_browser.js": 4497,
+    "toolkit/components/thumbnails/test/browser_thumbnails_privacy.js": 7688,
+    "toolkit/components/thumbnails/test/browser_thumbnails_storage.js": 4654,
+    "toolkit/components/thumbnails/test/browser_thumbnails_update.js": 4615,
+    "toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js": 4764,
+    "toolkit/components/viewsource/test/browser/browser_bug464222.js": 2589,
+    "toolkit/components/viewsource/test/browser/browser_bug713810.js": 2305,
+    "toolkit/components/viewsource/test/browser/browser_contextmenu.js": 3464,
+    "toolkit/components/viewsource/test/browser/browser_gotoline.js": 2177,
+    "toolkit/components/viewsource/test/browser/browser_viewsourceprefs.js": 3124,
+    "toolkit/content/tests/browser/browser_audioCompeting.js": 3484,
+    "toolkit/content/tests/browser/browser_bug1170531.js": 2083,
+    "toolkit/content/tests/browser/browser_bug295977_autoscroll_overflow.js": 7223,
+    "toolkit/content/tests/browser/browser_f7_caret_browsing.js": 4806,
+    "toolkit/content/tests/browser/browser_findbar.js": 9522,
+    "toolkit/content/tests/browser/browser_label_textlink.js": 2560,
+    "toolkit/content/tests/browser/browser_mediaPlayback.js": 6217,
+    "toolkit/content/tests/browser/browser_mediaPlayback_mute.js": 9273,
+    "toolkit/content/tests/browser/browser_mediaPlayback_suspended.js": 4139,
+    "toolkit/content/tests/browser/browser_mediaPlayback_suspended_multipleAudio.js": 8178,
+    "toolkit/content/tests/browser/browser_quickfind_editable.js": 3343,
+    "toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js": 2527,
+    "toolkit/modules/tests/browser/browser_RemotePageManager.js": 7969,
+    "toolkit/modules/tests/browser/browser_WebRequest.js": 4238,
+    "toolkit/mozapps/extensions/test/browser/browser_CTP_plugins.js": 11117,
+    "toolkit/mozapps/extensions/test/browser/browser_bug557943.js": 2060,
+    "toolkit/mozapps/extensions/test/browser/browser_bug557956.js": 30339,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562797.js": 52689,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562854.js": 5473,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562890.js": 2183,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562899.js": 3720,
+    "toolkit/mozapps/extensions/test/browser/browser_bug562992.js": 2158,
+    "toolkit/mozapps/extensions/test/browser/browser_bug567127.js": 2149,
+    "toolkit/mozapps/extensions/test/browser/browser_bug567137.js": 5681,
+    "toolkit/mozapps/extensions/test/browser/browser_bug572561.js": 4890,
+    "toolkit/mozapps/extensions/test/browser/browser_bug573062.js": 2049,
+    "toolkit/mozapps/extensions/test/browser/browser_bug577990.js": 12990,
+    "toolkit/mozapps/extensions/test/browser/browser_bug580298.js": 3033,
+    "toolkit/mozapps/extensions/test/browser/browser_bug581076.js": 9096,
+    "toolkit/mozapps/extensions/test/browser/browser_bug586574.js": 3052,
+    "toolkit/mozapps/extensions/test/browser/browser_bug587970.js": 2401,
+    "toolkit/mozapps/extensions/test/browser/browser_bug590347.js": 2933,
+    "toolkit/mozapps/extensions/test/browser/browser_bug591465.js": 6457,
+    "toolkit/mozapps/extensions/test/browser/browser_bug591663.js": 4259,
+    "toolkit/mozapps/extensions/test/browser/browser_bug596336.js": 6496,
+    "toolkit/mozapps/extensions/test/browser/browser_bug608316.js": 2414,
+    "toolkit/mozapps/extensions/test/browser/browser_bug610764.js": 2823,
+    "toolkit/mozapps/extensions/test/browser/browser_bug618502.js": 2623,
+    "toolkit/mozapps/extensions/test/browser/browser_bug679604.js": 2893,
+    "toolkit/mozapps/extensions/test/browser/browser_bug714593.js": 2617,
+    "toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js": 20447,
+    "toolkit/mozapps/extensions/test/browser/browser_debug_button.js": 6544,
+    "toolkit/mozapps/extensions/test/browser/browser_details.js": 38493,
+    "toolkit/mozapps/extensions/test/browser/browser_discovery.js": 47540,
+    "toolkit/mozapps/extensions/test/browser/browser_discovery_install.js": 13023,
+    "toolkit/mozapps/extensions/test/browser/browser_dragdrop.js": 5732,
+    "toolkit/mozapps/extensions/test/browser/browser_eula.js": 3411,
+    "toolkit/mozapps/extensions/test/browser/browser_experiments.js": 10751,
+    "toolkit/mozapps/extensions/test/browser/browser_globalinformations.js": 3474,
+    "toolkit/mozapps/extensions/test/browser/browser_globalwarnings.js": 3905,
+    "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js": 46765,
+    "toolkit/mozapps/extensions/test/browser/browser_hotfix.js": 3851,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings.js": 9334,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_browser.js": 7072,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_custom.js": 3215,
+    "toolkit/mozapps/extensions/test/browser/browser_inlinesettings_info.js": 9210,
+    "toolkit/mozapps/extensions/test/browser/browser_install.js": 16713,
+    "toolkit/mozapps/extensions/test/browser/browser_installssl.js": 14037,
+    "toolkit/mozapps/extensions/test/browser/browser_list.js": 13804,
+    "toolkit/mozapps/extensions/test/browser/browser_manualupdates.js": 5553,
+    "toolkit/mozapps/extensions/test/browser/browser_newaddon.js": 3395,
+    "toolkit/mozapps/extensions/test/browser/browser_openDialog.js": 2435,
+    "toolkit/mozapps/extensions/test/browser/browser_plugin_enabled_state_locked.js": 3727,
+    "toolkit/mozapps/extensions/test/browser/browser_pluginprefs.js": 2051,
+    "toolkit/mozapps/extensions/test/browser/browser_purchase.js": 4428,
+    "toolkit/mozapps/extensions/test/browser/browser_recentupdates.js": 7583,
+    "toolkit/mozapps/extensions/test/browser/browser_searching.js": 21947,
+    "toolkit/mozapps/extensions/test/browser/browser_select_compatoverrides.js": 2440,
+    "toolkit/mozapps/extensions/test/browser/browser_select_confirm.js": 2470,
+    "toolkit/mozapps/extensions/test/browser/browser_select_selection.js": 2535,
+    "toolkit/mozapps/extensions/test/browser/browser_select_update.js": 2276,
+    "toolkit/mozapps/extensions/test/browser/browser_sorting.js": 6235,
+    "toolkit/mozapps/extensions/test/browser/browser_sorting_plugins.js": 2582,
+    "toolkit/mozapps/extensions/test/browser/browser_tabsettings.js": 2334,
+    "toolkit/mozapps/extensions/test/browser/browser_types.js": 27100,
+    "toolkit/mozapps/extensions/test/browser/browser_uninstalling.js": 19569,
+    "toolkit/mozapps/extensions/test/browser/browser_updateid.js": 2102,
+    "toolkit/mozapps/extensions/test/browser/browser_updatessl.js": 20828,
+    "toolkit/mozapps/extensions/test/browser/browser_webapi_access.js": 7026,
+    "toolkit/mozapps/extensions/test/browser/browser_webapi_addon_listener.js": 4087,
+    "toolkit/mozapps/extensions/test/browser/browser_webapi_install.js": 8577,
+    "toolkit/mozapps/extensions/test/browser/browser_webext_options.js": 6565,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_CTP_plugins.js": 11673,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug557943.js": 2147,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562797.js": 31447,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562854.js": 5682,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562890.js": 2120,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562899.js": 4089,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug562992.js": 2199,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug567127.js": 2082,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug567137.js": 6395,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug572561.js": 5249,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug573062.js": 1997,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug577990.js": 13657,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug580298.js": 2852,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug581076.js": 9272,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug586574.js": 2970,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug587970.js": 2399,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug590347.js": 2813,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591465.js": 6131,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug591663.js": 4516,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug596336.js": 6574,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug608316.js": 2469,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug610764.js": 2979,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug618502.js": 2773,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug679604.js": 3002,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_bug714593.js": 2619,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_debug_button.js": 7434,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_details.js": 39353,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_discovery.js": 46972,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_dragdrop.js": 4499,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_eula.js": 3261,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_experiments.js": 8135,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_globalinformations.js": 3232,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_globalwarnings.js": 3836,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings.js": 8986,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_browser.js": 7042,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_custom.js": 3359,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_inlinesettings_info.js": 9014,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_install.js": 17201,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_list.js": 14575,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_manualupdates.js": 5677,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_openDialog.js": 2587,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_plugin_enabled_state_locked.js": 3670,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_pluginprefs.js": 2519,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_purchase.js": 4643,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_recentupdates.js": 7785,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_searching.js": 21951,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting.js": 6477,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_sorting_plugins.js": 3129,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_tabsettings.js": 2300,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_types.js": 28129,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_uninstalling.js": 18998,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_updateid.js": 2226,
+    "toolkit/mozapps/extensions/test/browser/test-window/browser_webext_options.js": 6669,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_amosigned_trigger.js": 2568,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_auth.js": 2405,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_auth4.js": 2193,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js": 2663,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_concurrent_installs.js": 2840,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_httphash5.js": 1977,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_httphash6.js": 2262,
+    "toolkit/mozapps/extensions/test/xpinstall/browser_signed_multiple.js": 2368,
     "uriloader/exthandler/tests/mochitest/browser_web_protocol_handlers.js": 4136
   }
 }
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -146,17 +146,17 @@ function getMainWindow() {
  * This is essentially "get the browser chrome window" with the added check
  * that the supposed browser chrome window is capable of opening a preferences
  * pane.
  *
  * This may return null if we can't find the browser chrome window.
  */
 function getMainWindowWithPreferencesPane() {
   let mainWindow = getMainWindow();
-  if (mainWindow && "openAdvancedPreferences" in mainWindow) {
+  if (mainWindow && "openPreferences" in mainWindow) {
     return mainWindow;
   }
   return null;
 }
 
 /**
  * Remove all child nodes of a document node.
  */
@@ -236,23 +236,17 @@ var Settings = {
           Cu.import("resource://gre/modules/Messaging.jsm");
           EventDispatcher.instance.sendRequest({
             type: "Settings:Show",
             resource: "preferences_privacy",
           });
         } else {
           // Show the data choices preferences on desktop.
           let mainWindow = getMainWindowWithPreferencesPane();
-          // The advanced subpanes are only supported in the old organization,
-          // which will be removed by bug 1349689.
-          if (Preferences.get("browser.preferences.useOldOrganization")) {
-            mainWindow.openAdvancedPreferences("dataChoicesTab", {origin: "aboutTelemetry"});
-          } else {
-            mainWindow.openPreferences("privacy-reports", {origin: "aboutTelemetry"});
-          }
+          mainWindow.openPreferences("privacy-reports", { origin: "aboutTelemetry" });
         }
       });
     }
   },
 
   detachObservers() {
     for (let setting of this.SETTINGS) {
       Preferences.ignore(setting.pref, this.render, this);
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -340,17 +340,17 @@ function getBrowserElement() {
  * This is essentially "get the browser chrome window" with the added check
  * that the supposed browser chrome window is capable of opening a preferences
  * pane.
  *
  * This may return null if we can't find the browser chrome window.
  */
 function getMainWindowWithPreferencesPane() {
   let mainWindow = getMainWindow();
-  if (mainWindow && "openAdvancedPreferences" in mainWindow) {
+  if (mainWindow && "openPreferences" in mainWindow) {
     return mainWindow;
   }
   return null;
 }
 
 /**
  * A wrapper around the HTML5 session history service that allows the browser
  * back/forward controls to work within the manager
@@ -1507,23 +1507,17 @@ var gViewController = {
     },
 
     cmd_experimentsOpenTelemetryPreferences: {
       isEnabled() {
         return !!getMainWindowWithPreferencesPane();
       },
       doCommand() {
         let mainWindow = getMainWindowWithPreferencesPane();
-        // The advanced subpanes are only supported in the old organization, which will
-        // be removed by bug 1349689.
-        if (Preferences.get("browser.preferences.useOldOrganization")) {
-          mainWindow.openAdvancedPreferences("dataChoicesTab", {origin: "experimentsOpenPref"});
-        } else {
-          mainWindow.openPreferences("privacy-reports", {origin: "experimentsOpenPref"});
-        }
+        mainWindow.openPreferences("privacy-reports", { origin: "experimentsOpenPref" });
       },
     },
 
     cmd_showUnsignedExtensions: {
       isEnabled() {
         return true;
       },
       doCommand() {
--- a/toolkit/mozapps/extensions/test/browser/browser_experiments.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_experiments.js
@@ -157,18 +157,16 @@ add_task(async function testExperimentLe
   EventUtils.synthesizeMouseAtCenter(btn, {}, gManagerWindow);
   await loadPromise;
 
   Services.prefs.clearUserPref("toolkit.telemetry.infoURL");
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function testOpenPreferences() {
-  var useOldPrefs = Services.prefs.getBoolPref("browser.preferences.useOldOrganization");
-
   await gCategoryUtilities.openType("experiment");
   let btn = gManagerWindow.document.getElementById("experiments-change-telemetry");
 
   is_element_visible(btn, "Change telemetry button visible in in-content UI.");
 
   let deferred = Promise.defer();
 
   function ensureElementIsVisible(preferencesPane, visibleElement) {
@@ -185,21 +183,17 @@ add_task(async function testOpenPreferen
         prefWin.close();
         info("Closed preferences pane.");
 
         deferred.resolve();
       });
     }, preferencesPane + "-pane-loaded");
   }
 
-  if (useOldPrefs) {
-    ensureElementIsVisible("advanced", "header-advanced");
-  } else {
-    ensureElementIsVisible("privacy", "dataCollectionGroup");
-  }
+  ensureElementIsVisible("privacy", "dataCollectionGroup");
 
   info("Loading preferences pane.");
   // We need to focus before synthesizing the mouse event (bug 1240052) as
   // synthesizeMouseAtCenter currently only synthesizes the mouse in the child process.
   // This can cause some subtle differences if the child isn't focused.
   await SimpleTest.promiseFocus();
   await BrowserTestUtils.synthesizeMouseAtCenter("#experiments-change-telemetry", {},
                                                  gBrowser.selectedBrowser);