Index: LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html |
diff --git a/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html b/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html |
index fbe52730e394986e710a6a263c3447aca353f3f3..ab1cbdc618510a2edb99f712e34b57a9ec1c24d5 100644 |
--- a/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html |
+++ b/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html |
@@ -9,6 +9,9 @@ async_test(function(t) { |
var SCRIPT = 'resources/fetch-rewrite-worker.js'; |
var host_info = get_host_info(); |
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'); |
}) |