Index: LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html |
diff --git a/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html b/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html |
index c0adfe3075fbbc9c417c6ac65a6dc4ab2d1030fd..68e3e3be9fcb1ff4da0c8e30cfe6887d6f55d658 100644 |
--- a/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html |
+++ b/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html |
@@ -21,10 +21,7 @@ async_test(function(t) { |
return service_worker_unregister_and_register(t, SCRIPT, SCOPE); |
}) |
.then(function(registration) { |
- return wait_for_update(t, registration); |
- }) |
- .then(function(sw) { |
- return wait_for_state(t, sw, 'activated'); |
+ return wait_for_state(t, registration.installing, 'activated'); |
}) |
.then(function() { return with_iframe(SCOPE); }) |
.then(function(frame) { |