Index: LayoutTests/http/tests/serviceworker/indexeddb.html |
diff --git a/LayoutTests/http/tests/serviceworker/indexeddb.html b/LayoutTests/http/tests/serviceworker/indexeddb.html |
index 718f814687775569923dadd03d9e1c43bbfecb00..aab7c901f2a09ad051beb53f8a872896f9359e8d 100644 |
--- a/LayoutTests/http/tests/serviceworker/indexeddb.html |
+++ b/LayoutTests/http/tests/serviceworker/indexeddb.html |
@@ -9,9 +9,7 @@ async_test(function(t) { |
service_worker_unregister_and_register( |
t, 'resources/indexeddb-worker.js', scope) |
.then(function(registration) { |
- return wait_for_update(t, registration); |
- }) |
- .then(function(sw) { |
+ var sw = registration.installing; |
var messageChannel = new MessageChannel(); |
messageChannel.port1.onmessage = t.step_func(onMessage); |
sw.postMessage({port: messageChannel.port2}, [messageChannel.port2]); |