зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1723088: Update tests within dom/manifest to work with https-first enabled r=baku
Differential Revision: https://phabricator.services.mozilla.com/D121350
This commit is contained in:
Родитель
76f0dd702a
Коммит
e6f16600d2
|
@ -10,7 +10,7 @@ const { ManifestObtainer } = ChromeUtils.import(
|
|||
);
|
||||
|
||||
const defaultURL = new URL(
|
||||
"http://example.org/browser/dom/manifest/test/resource.sjs"
|
||||
"https://example.org/browser/dom/manifest/test/resource.sjs"
|
||||
);
|
||||
defaultURL.searchParams.set("Content-Type", "application/manifest+json");
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ const { ManifestObtainer } = ChromeUtils.import(
|
|||
// Don't send cookies
|
||||
add_task(async function() {
|
||||
const testPath = "/browser/dom/manifest/test/cookie_setter.html";
|
||||
const tabURL = `http://example.com:80${testPath}`;
|
||||
const tabURL = `https://example.com${testPath}`;
|
||||
const browser = BrowserTestUtils.addTab(gBrowser, tabURL).linkedBrowser;
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
const { short_name } = await ManifestObtainer.browserObtainManifest(browser);
|
||||
|
@ -22,7 +22,7 @@ add_task(async function() {
|
|||
add_task(async function() {
|
||||
const testPath =
|
||||
"/browser/dom/manifest/test/cookie_setter_with_credentials.html";
|
||||
const tabURL = `http://example.com:80${testPath}`;
|
||||
const tabURL = `https://example.com${testPath}`;
|
||||
const browser = BrowserTestUtils.addTab(gBrowser, tabURL).linkedBrowser;
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
const { short_name } = await ManifestObtainer.browserObtainManifest(browser);
|
||||
|
@ -35,7 +35,7 @@ add_task(async function() {
|
|||
add_task(async function() {
|
||||
const testPath =
|
||||
"/browser/dom/manifest/test/cookie_setter_with_credentials_cross_origin.html";
|
||||
const tabURL = `http://example.com:80${testPath}`;
|
||||
const tabURL = `https://example.com${testPath}`;
|
||||
const browser = BrowserTestUtils.addTab(gBrowser, tabURL).linkedBrowser;
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
const { short_name } = await ManifestObtainer.browserObtainManifest(browser);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
Services.prefs.setBoolPref("dom.manifest.enabled", true);
|
||||
Services.prefs.setBoolPref("dom.security.https_first", false);
|
||||
|
||||
const { ManifestObtainer } = ChromeUtils.import(
|
||||
"resource://gre/modules/ManifestObtainer.jsm"
|
||||
|
|
|
@ -10,5 +10,5 @@
|
|||
-->
|
||||
<link
|
||||
rel="manifest"
|
||||
href="http://example.org:80/browser/dom/manifest/test/cookie_checker.sjs"
|
||||
href="https://example.org/browser/dom/manifest/test/cookie_checker.sjs"
|
||||
crossorigin="use-credentials">
|
||||
|
|
Загрузка…
Ссылка в новой задаче