Index: LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html |
diff --git a/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html b/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html |
index d294d9b89ffd1fe11e18520b89ff031002e5d4e3..e1726bbe313f5380c171df77e7c7fcf9ab0ccaef 100644 |
--- a/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html |
+++ b/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html |
@@ -15,7 +15,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('ping'); |
}) |
.catch(unreached_rejection(t)); |