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 752cb52349
commit da497dc10f
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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