diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/browser/browser_discovery_install.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/browser/browser_discovery_install.js | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/toolkit/mozapps/extensions/test/browser/browser_discovery_install.js b/toolkit/mozapps/extensions/test/browser/browser_discovery_install.js index 63516bd53..bd7d194f2 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_discovery_install.js +++ b/toolkit/mozapps/extensions/test/browser/browser_discovery_install.js @@ -4,26 +4,23 @@ // Tests that the discovery view can install add-ons correctly -const MAIN_URL = "https://example.com/" + RELATIVE_DIR + "discovery_install.html"; -const GOOD_FRAMED_URL = "https://example.com/" + RELATIVE_DIR + "discovery_frame.html"; -const BAD_FRAMED_URL = "https://example.org/" + RELATIVE_DIR + "discovery_frame.html"; - -const PREF_INSTALL_REQUIREBUILTINCERTS = "extensions.install.requireBuiltInCerts"; +const MAIN_URL = "https://test1.example.com/" + RELATIVE_DIR + "discovery_install.html"; +const GOOD_FRAMED_URL = "https://test1.example.com/" + RELATIVE_DIR + "discovery_frame.html"; +const BAD_FRAMED_URL = "https://test2.example.com/" + RELATIVE_DIR + "discovery_frame.html"; // Temporarily enable caching Services.prefs.setBoolPref(PREF_GETADDONS_CACHE_ENABLED, true); // Allow SSL from non-built-in certs -Services.prefs.setBoolPref(PREF_INSTALL_REQUIREBUILTINCERTS, false); +Services.prefs.setBoolPref("extensions.install.requireBuiltInCerts", false); // Allow installs from the test site -Services.perms.add(NetUtil.newURI("https://example.com/"), "install", +Services.perms.add(NetUtil.newURI("https://test1.example.com/"), "install", Ci.nsIPermissionManager.ALLOW_ACTION); -Services.perms.add(NetUtil.newURI("https://example.org/"), "install", +Services.perms.add(NetUtil.newURI("https://test2.example.com/"), "install", Ci.nsIPermissionManager.ALLOW_ACTION); registerCleanupFunction(() => { - Services.perms.remove(NetUtil.newURI("https://example.com/"), "install"); - Services.perms.remove(NetUtil.newURI("https://example.org/"), "install"); - Services.prefs.clearUserPref(PREF_INSTALL_REQUIREBUILTINCERTS); + Services.perms.remove("test1.example.com", "install"); + Services.perms.remove("test2.example.com", "install"); }); function clickLink(frameLoader, id) { |