Index: third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-blob-url.js |
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-blob-url.js b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-blob-url.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4ad700bcce464611b3c3f07e8555b4c6ccb6cfd6 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-blob-url.js |
@@ -0,0 +1,8 @@ |
+onconnect = e => { |
+ let port = e.ports[0]; |
+ port.onmessage = (e) => { |
+ fetch(e.data) |
+ .then(response => response.text()) |
+ .then(text => port.postMessage('Worker reply:' + text)); |
+ }; |
+} |