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

Side by Side Diff: LayoutTests/http/tests/serviceworker/chromium/resources/stashed-ports-echo-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: address comments 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/stashed-ports-after-terminate.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/stashed-ports-after-terminate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698