diff --git 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 index e6c3776a20e7..82f16fa56611 100644 --- 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 @@ -1,6 +1,14 @@ /* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ +Services.prefs.setBoolPref("browser.preferences.inContent", true); +Services.prefs.setBoolPref("browser.preferences.instantApply", true); + +registerCleanupFunction(function() { + Services.prefs.clearUserPref("browser.preferences.inContent"); + Services.prefs.clearUserPref("browser.preferences.instantApply"); +}); + add_task(function() { let prefs = yield openPreferencesViaOpenPreferencesAPI("paneContent"); is(prefs.selectedPane, "paneContent", "Content pane was selected");