mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1244122 P3 Execute browser_download.js service worker in separate scope. r=ehsan
This commit is contained in:
parent
752cb52349
commit
da497dc10f
@ -2,8 +2,8 @@
|
||||
support-files =
|
||||
browser_base_force_refresh.html
|
||||
browser_cached_force_refresh.html
|
||||
download_window.html
|
||||
download_worker.js
|
||||
download/window.html
|
||||
download/worker.js
|
||||
force_refresh_browser_worker.js
|
||||
|
||||
[browser_force_refresh.js]
|
||||
|
@ -48,7 +48,7 @@ function test() {
|
||||
['dom.serviceWorkers.testing.enabled', true],
|
||||
['dom.serviceWorkers.interception.enabled', true]]},
|
||||
function() {
|
||||
var url = gTestRoot + 'download_window.html';
|
||||
var url = gTestRoot + 'download/window.html';
|
||||
var tab = gBrowser.addTab();
|
||||
gBrowser.selectedTab = tab;
|
||||
|
||||
|
@ -24,7 +24,7 @@ function wait_until_controlled() {
|
||||
}
|
||||
addEventListener('load', function(event) {
|
||||
var registration;
|
||||
navigator.serviceWorker.register('download_worker.js').then(function(swr) {
|
||||
navigator.serviceWorker.register('worker.js').then(function(swr) {
|
||||
registration = swr;
|
||||
|
||||
// While the iframe below is a navigation, we still wait until we are
|
Loading…
Reference in New Issue
Block a user