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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/foreign-fetch-helper-iframe.html

Issue 2676733002: Upstream foreign fetch tests. (Closed)
Patch Set: rebase 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <script src="foreign-fetch-helper-script.js"></script> 3 <script src="foreign-fetch-helper-script.js"></script>
4 <script> 4 <script>
5 self.onmessage = e => { 5 self.onmessage = e => {
6 if (e.data.worker == 'dedicated') { 6 if (e.data.worker == 'dedicated') {
7 let worker = new Worker('foreign-fetch-helper-script.js'); 7 let worker = new Worker('foreign-fetch-helper-script.js');
8 worker.postMessage(e.data, e.ports); 8 worker.postMessage(e.data, e.ports);
9 } else if (e.data.worker == 'shared') { 9 } else if (e.data.worker == 'shared') {
10 let worker = new SharedWorker('foreign-fetch-helper-script.js'); 10 let worker = new SharedWorker('foreign-fetch-helper-script.js');
11 worker.port.postMessage(e.data, e.ports); 11 worker.port.postMessage(e.data, e.ports);
12 } else { 12 } else {
13 handle_message(e); 13 handle_message(e);
14 } 14 }
15 }; 15 };
16 if (self.opener) self.opener.postMessage('ready', '*');
16 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698