Index: LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html |
index ee184f685f60ec8b77f0485cac56141ee7f8091a..7816ef746021b02831e0b3d83d35ecde68d6109e 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html |
+++ b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.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)); |