Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js |
similarity index 79% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js |
index 17913063583a8276675adcc65a66e843d83a303f..290a4a9b3e9d9263645b4154eae151e2b06b3eae 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js |
@@ -1,10 +1,10 @@ |
self.onmessage = function(e) { |
- e.waitUntil(self.clients.matchAll().then(function(clients) { |
+ self.clients.matchAll().then(function(clients) { |
clients.forEach(function(client) { |
client.postMessage('Sending message via clients'); |
if (!Array.isArray(clients)) |
client.postMessage('clients is not an array'); |
client.postMessage('quit'); |
}); |
- })); |
+ }); |
}; |