Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / postmessage-to-client-worker.js
blob290a4a9b3e9d9263645b4154eae151e2b06b3eae
1 self.onmessage = function(e) {
2   self.clients.matchAll().then(function(clients) {
3       clients.forEach(function(client) {
4           client.postMessage('Sending message via clients');
5           if (!Array.isArray(clients))
6             client.postMessage('clients is not an array');
7           client.postMessage('quit');
8         });
9     });