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

Side by Side Diff: LayoutTests/http/tests/navigatorconnect/resources/echo-worker.js

Issue 812853002: Basic tests for sending messages over a navigator.connect initiated channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@navigator-connect_connect-tests
Patch Set: fix Created 6 years 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 var client;
2 self.addEventListener('crossoriginconnect', function(event) {
3 client = event.client;
4 event.acceptConnection(true);
5 });
6
7
8 self.addEventListener('crossoriginmessage', function(event) {
9 client.postMessage(event.data, event.ports);
10 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698