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
0feba6afbb
commit
cfdb816455
@ -2,8 +2,8 @@
|
|||||||
support-files =
|
support-files =
|
||||||
browser_base_force_refresh.html
|
browser_base_force_refresh.html
|
||||||
browser_cached_force_refresh.html
|
browser_cached_force_refresh.html
|
||||||
download_window.html
|
download/window.html
|
||||||
download_worker.js
|
download/worker.js
|
||||||
force_refresh_browser_worker.js
|
force_refresh_browser_worker.js
|
||||||
|
|
||||||
[browser_force_refresh.js]
|
[browser_force_refresh.js]
|
||||||
|
@ -48,7 +48,7 @@ function test() {
|
|||||||
['dom.serviceWorkers.testing.enabled', true],
|
['dom.serviceWorkers.testing.enabled', true],
|
||||||
['dom.serviceWorkers.interception.enabled', true]]},
|
['dom.serviceWorkers.interception.enabled', true]]},
|
||||||
function() {
|
function() {
|
||||||
var url = gTestRoot + 'download_window.html';
|
var url = gTestRoot + 'download/window.html';
|
||||||
var tab = gBrowser.addTab();
|
var tab = gBrowser.addTab();
|
||||||
gBrowser.selectedTab = tab;
|
gBrowser.selectedTab = tab;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ function wait_until_controlled() {
|
|||||||
}
|
}
|
||||||
addEventListener('load', function(event) {
|
addEventListener('load', function(event) {
|
||||||
var registration;
|
var registration;
|
||||||
navigator.serviceWorker.register('download_worker.js').then(function(swr) {
|
navigator.serviceWorker.register('worker.js').then(function(swr) {
|
||||||
registration = swr;
|
registration = swr;
|
||||||
|
|
||||||
// While the iframe below is a navigation, we still wait until we are
|
// While the iframe below is a navigation, we still wait until we are
|
Loading…
Reference in New Issue
Block a user