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

Side by Side Diff: LayoutTests/http/tests/serviceworker/chromium/resources/stashed-port-worker.js

Issue 1063533002: Initial implementation of stashed message ports, layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@stashed-ports
Patch Set: Created 5 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
scheib 2015/05/06 22:36:18 It would help to have more unique / descriptive na
Marijn Kruisselbrink 2015/05/13 02:46:02 Done.
2 self.onmessage = function(e) {
3 var port = self.ports.add(e.data.name, e.data.port);
4 };
5
6 self.ports.onmessage = function(e) {
7 e.source.postMessage({name: e.source.name, data: e.data});
8 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698