Chromium Code Reviews

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html

Issue 1130113006: ServiceWorker: Introduce ServiceWorkerMessageEvent to replace MessageEvent (3/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: make union type only on stack Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html b/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
index 9e30ccb77f91efbcea2a46f8efedeb98e110f4f4..6c718488b4af65bafd176817aa61679e90b8c08b 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
@@ -21,7 +21,7 @@ t.step(function() {
.then(function() { return with_iframe(scope); })
.then(function(frame) {
var w = frame.contentWindow;
- w.onmessage = t.step_func(onMessage);
+ w.navigator.serviceWorker.onmessage = t.step_func(onMessage);
w.navigator.serviceWorker.controller.postMessage('start');
})
.catch(unreached_rejection(t));

Powered by Google App Engine