зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1723496: Update tests within caps/ to work with https-first enabled r=nika
Differential Revision: https://phabricator.services.mozilla.com/D121529
This commit is contained in:
Родитель
57e3894d7d
Коммит
9018e2e41f
|
@ -293,6 +293,13 @@ function testURL(
|
|||
}
|
||||
|
||||
add_task(async function() {
|
||||
// In this test we want to verify both http and https load
|
||||
// restrictions, hence we explicitly switch off the https-first
|
||||
// upgrading mechanism.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.security.https_first", false]],
|
||||
});
|
||||
|
||||
await kAboutPagesRegistered;
|
||||
let baseFlags = ssm.STANDARD | ssm.DONT_REPORT_ERRORS;
|
||||
for (let [sourceString, targetsAndExpectations] of URLs) {
|
||||
|
|
|
@ -95,6 +95,9 @@ server.registerPathHandler("/client_replace", (request, response) => {
|
|||
});
|
||||
|
||||
add_task(async function sandboxed_precursor() {
|
||||
// Bug 1725345: Make XPCShellContentUtils.createHttpServer support https
|
||||
Services.prefs.setBoolPref("dom.security.https_first", false);
|
||||
|
||||
let extension = await ExtensionTestUtils.loadExtension({
|
||||
manifest: {
|
||||
permissions: ["webRequest", "webRequestBlocking", "<all_urls>"],
|
||||
|
@ -253,4 +256,5 @@ add_task(async function sandboxed_precursor() {
|
|||
|
||||
await page.close();
|
||||
}
|
||||
Services.prefs.clearUserPref("dom.security.https_first");
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче