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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-blob-url.js

Issue 2695093003: Add LayoutTests to test Blob URL transfer to {Shared,Service}Workers (Closed)
Patch Set: . Created 3 years, 10 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 = e => {
2 if ('port' in e.data) {
3 let port = e.data.port;
4 port.onmessage = (e) => {
5 fetch(e.data)
6 .then(response => response.text())
7 .then(text => port.postMessage('Worker reply:' + text));
8 };
9 port.postMessage('Connected');
10 }
11 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698