mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
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:
parent
5e34ec9b9e
commit
1240423ca8
1 changed files with 10 additions and 0 deletions
|
|
@ -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.startup();
|
||||||
await extension.awaitMessage("background-ready");
|
await extension.awaitMessage("background-ready");
|
||||||
|
|
||||||
|
|
@ -158,6 +163,11 @@ add_task(async function test_contentscript_context_incognito_not_allowed() {
|
||||||
|
|
||||||
await contentPage.close();
|
await contentPage.close();
|
||||||
await extension.unload();
|
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() {
|
add_task(async function test_contentscript_context_unload_while_in_bfcache() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue