Index: LayoutTests/http/tests/serviceworker/fetch-request-no-freshness-headers.html |
diff --git a/LayoutTests/http/tests/serviceworker/fetch-request-no-freshness-headers.html b/LayoutTests/http/tests/serviceworker/fetch-request-no-freshness-headers.html |
index 7372c08a21d359c3df95a638e9d85f7466121ad2..068a380807bc21a46f5b94d46411844d800da2bf 100644 |
--- a/LayoutTests/http/tests/serviceworker/fetch-request-no-freshness-headers.html |
+++ b/LayoutTests/http/tests/serviceworker/fetch-request-no-freshness-headers.html |
@@ -10,11 +10,8 @@ async_test(function(t) { |
var worker; |
service_worker_unregister_and_register(t, SCRIPT, SCOPE) |
.then(function(registration) { |
- return wait_for_update(t, registration); |
- }) |
- .then(function(sw) { |
- worker = sw; |
- return wait_for_state(t, sw, 'activated'); |
+ worker = registration.installing; |
+ return wait_for_state(t, worker, 'activated'); |
}) |
.then(function() { return with_iframe(SCOPE); }) |
.then(function(frame) { |