Bug 1714966: Update PBM portion of test toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context.js to work with https-first enabled r=robwu

Differential Revision: https://phabricator.services.mozilla.com/D116988
This commit is contained in:
Christoph Kerschbaumer 2021-06-10 15:25:57 +00:00
parent 5e34ec9b9e
commit 1240423ca8

View file

@ -135,6 +135,11 @@ add_task(async function test_contentscript_context_incognito_not_allowed() {
},
});
// Bug 1715801: Re-enable pbm portion on GeckoView
if (AppConstants.platform == "android") {
Services.prefs.setBoolPref("dom.security.https_first_pbm", false);
}
await extension.startup();
await extension.awaitMessage("background-ready");
@ -158,6 +163,11 @@ add_task(async function test_contentscript_context_incognito_not_allowed() {
await contentPage.close();
await extension.unload();
// Bug 1715801: Re-enable pbm portion on GeckoView
if (AppConstants.platform == "android") {
Services.prefs.clearUserPref("dom.security.https_first_pbm");
}
});
add_task(async function test_contentscript_context_unload_while_in_bfcache() {