Bug 1723080: Update worker tests within dom/ to work with https-first enabled r=baku

Differential Revision: https://phabricator.services.mozilla.com/D121340
This commit is contained in:
Christoph Kerschbaumer 2021-08-09 14:26:37 +00:00
parent 850850f338
commit 0ad84a48dd
5 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@ const FILE_URL = (() => {
return Services.io.newFileURI(file).spec;
})();
const CROSS_ORIGIN = "http://example.com";
const CROSS_ORIGIN = "https://example.com";
const CROSS_ORIGIN_URL = SW_REGISTER_PAGE_URL.replace(ORIGIN, CROSS_ORIGIN);
const CROSS_ORIGIN_REDIRECT_URL = `${TEST_ROOT}redirect.sjs?${CROSS_ORIGIN_URL}`;

View File

@ -49,6 +49,7 @@
["dom.serviceWorkers.enabled", true],
["dom.serviceWorkers.testing.enabled", true],
["dom.caches.enabled", true],
["dom.security.https_first", false],
]}, runTest);
};
</script>

View File

@ -49,6 +49,7 @@
["dom.serviceWorkers.enabled", true],
["dom.serviceWorkers.testing.enabled", true],
["dom.caches.enabled", true],
["dom.security.https_first", false],
]}, runTest);
};
</script>

View File

@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const EXAMPLE_URL = "https://example.com/browser/dom/workers/test/";
const TAB_URL = EXAMPLE_URL + "bug1047663_tab.html";
const WORKER_URL = EXAMPLE_URL + "bug1047663_worker.sjs";

View File

@ -3,8 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const EXAMPLE_URL = "http://example.com/browser/dom/workers/test/";
/**
* Add a tab with given `url`. Returns a promise
* that will be resolved when the tab finished loading.