mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
850850f338
commit
0ad84a48dd
@ -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}`;
|
||||
|
||||
|
@ -49,6 +49,7 @@
|
||||
["dom.serviceWorkers.enabled", true],
|
||||
["dom.serviceWorkers.testing.enabled", true],
|
||||
["dom.caches.enabled", true],
|
||||
["dom.security.https_first", false],
|
||||
]}, runTest);
|
||||
};
|
||||
</script>
|
||||
|
@ -49,6 +49,7 @@
|
||||
["dom.serviceWorkers.enabled", true],
|
||||
["dom.serviceWorkers.testing.enabled", true],
|
||||
["dom.caches.enabled", true],
|
||||
["dom.security.https_first", false],
|
||||
]}, runTest);
|
||||
};
|
||||
</script>
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user