From 8b20ed232818f7f4304bb8310510b0996fc4136a Mon Sep 17 00:00:00 2001 From: Jared Wein Date: Sun, 4 May 2014 15:54:29 -0500 Subject: [PATCH] Bug 738797 - Enable the in-content preferences by default. r=Unfocused --- browser/app/profile/firefox.js | 6 +---- .../browser_offlineQuotaNotification.js | 24 +++++++++---------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index 048a42c02ff..999ac9d4736 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -811,11 +811,7 @@ pref("plugin.state.f5 sam inspection host plugin", 2); // display door hanger if flash not installed pref("plugins.notifyMissingFlash", true); -#ifdef XP_WIN -pref("browser.preferences.instantApply", false); -#else pref("browser.preferences.instantApply", true); -#endif #ifdef XP_MACOSX pref("browser.preferences.animateFadeIn", true); #else @@ -823,7 +819,7 @@ pref("browser.preferences.animateFadeIn", false); #endif // Toggles between the two Preferences implementations, pop-up window and in-content -pref("browser.preferences.inContent", false); +pref("browser.preferences.inContent", true); pref("browser.download.show_plugins_in_list", true); pref("browser.download.hide_plugins_without_extensions", true); diff --git a/browser/base/content/test/general/browser_offlineQuotaNotification.js b/browser/base/content/test/general/browser_offlineQuotaNotification.js index 080adb81007..e5298d0a5b1 100644 --- a/browser/base/content/test/general/browser_offlineQuotaNotification.js +++ b/browser/base/content/test/general/browser_offlineQuotaNotification.js @@ -38,6 +38,11 @@ function checkPreferences(prefsWin) { } function test() { + if (Services.prefs.getBoolPref("browser.preferences.inContent")) { + // Bug 881576 - ensure this works with inContent prefs. + todo(false, "Bug 881576 - this test needs to be updated for inContent prefs"); + return; + } waitForExplicitFinish(); gBrowser.selectedBrowser.addEventListener("load", function onload() { gBrowser.selectedBrowser.removeEventListener("load", onload, true); @@ -50,18 +55,13 @@ function test() { // window to open - which we track either via a window watcher (for // the window-based prefs) or via an "Initialized" event (for // in-content prefs.) - if (Services.prefs.getBoolPref("browser.preferences.inContent")) { - // Bug 881576 - ensure this works with inContent prefs. - todo(false, "Bug 881576 - this test needs to be updated for inContent prefs"); - } else { - Services.ww.registerNotification(function wwobserver(aSubject, aTopic, aData) { - if (aTopic != "domwindowopened") - return; - Services.ww.unregisterNotification(wwobserver); - checkPreferences(aSubject); - }); - PopupNotifications.panel.firstElementChild.button.click(); - } + Services.ww.registerNotification(function wwobserver(aSubject, aTopic, aData) { + if (aTopic != "domwindowopened") + return; + Services.ww.unregisterNotification(wwobserver); + checkPreferences(aSubject); + }); + PopupNotifications.panel.firstElementChild.button.click(); }); }; Services.prefs.setIntPref("offline-apps.quota.warn", 1);