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