Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js

Issue 2875383002: Upstream service worker `postMessage` tests to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 self.onmessage = function(e) {
2 e.waitUntil(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 }));
10 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698