Bug 1244122 P3 Execute browser_download.js service worker in separate scope. r=ehsan

This commit is contained in:
Ben Kelly 2016-02-02 10:03:20 -08:00
parent 0feba6afbb
commit cfdb816455
4 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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;

View File

@ -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