Index: LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
index cf43755e92e4eebdf67dc8c7e00edb4e2becfe9c..bf5866c8c970baf6f2e1efcd11fd99e44169cb76 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
+++ b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html |
@@ -18,7 +18,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)); |