diff --git a/dom/workers/test/serviceworkers/controller/index.html b/dom/workers/test/serviceworkers/controller/index.html index 07a7f326c8ed..452adeecb886 100644 --- a/dom/workers/test/serviceworkers/controller/index.html +++ b/dom/workers/test/serviceworkers/controller/index.html @@ -17,11 +17,11 @@ // Make sure to use good, unique messages, since the actual expression will not show up in test results. function my_ok(result, msg) { - parent.postMessage({status: "ok", result: result, message: msg}, "*"); + window.opener.postMessage({status: "ok", result: result, message: msg}, "*"); } function finish() { - parent.postMessage({status: "done"}, "*"); + window.opener.postMessage({status: "done"}, "*"); } navigator.serviceWorker.ready.then(function(swr) { diff --git a/dom/workers/test/serviceworkers/test_controller.html b/dom/workers/test/serviceworkers/test_controller.html index 07ecc16b92cf..b766bbfcc30f 100644 --- a/dom/workers/test/serviceworkers/test_controller.html +++ b/dom/workers/test/serviceworkers/test_controller.html @@ -15,9 +15,6 @@