Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html |
index c27fbd597eaaf5e8bbfcec80d9437cce645bd811..f911041ef224730f8a1978e469c537deac77cdd5 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html |
@@ -16,13 +16,13 @@ promise_test(function(t) { |
return with_iframe(scope); |
}) |
.then(function(frame) { |
+ add_completion_callback(function() { frame.remove(); }); |
var channel = new MessageChannel(); |
var saw_message = new Promise(function(resolve) { |
channel.port1.onmessage = function(e) { resolve(e.data); } |
}); |
var worker = frame.contentWindow.navigator.serviceWorker.controller; |
- frame.remove(); |
nhiroki
2016/03/01 09:28:29
fyi: This frame should be removed after posting a
|
worker.postMessage({port: channel.port2}, [channel.port2]); |
return saw_message; |
}) |