Index: LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
diff --git a/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html b/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
index 0080cb49dc43dd5223ce7051f1e96b63d46b60f5..c1c16811194ff9705a8777e943fbc2dfebad5d4b 100644 |
--- a/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
+++ b/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html |
@@ -14,7 +14,9 @@ promise_test(function(t) { |
var frame; |
service_worker_unregister_and_register(t, worker, scope) |
- .then(function(reg) { return wait_for_activated(t, reg); }) |
+ .then(function(reg) { |
+ return wait_for_state(t, reg.installing, 'activated'); |
+ }) |
.then(function() { return with_iframe(scope); }) |
.then(function(f) { |
frame = f; |
@@ -40,7 +42,9 @@ promise_test(function(t) { |
var frame; |
service_worker_unregister_and_register(t, worker, scope) |
- .then(function(reg) { return wait_for_activated(t, reg); }) |
+ .then(function(reg) { |
+ return wait_for_state(t, reg.installing, 'activated'); |
+ }) |
.then(function() { return with_iframe(scope); }) |
.then(function(f) { |
frame = f; |