Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/clients-get-client-types-shared-worker.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/clients-get-client-types-shared-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/clients-get-client-types-shared-worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fadef970374bdb872062b28bcb5d1fd249ed2066 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/clients-get-client-types-shared-worker.js |
@@ -0,0 +1,10 @@ |
+onconnect = function(e) { |
+ var port = e.ports[0]; |
+ fetch('clientId') |
+ .then(function(response) { |
+ return response.text(); |
+ }) |
+ .then(function(text) { |
+ port.postMessage({clientId: text}); |
+ }); |
+}; |