| Index: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-owner.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-owner.js b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-owner.js
|
| index 90672715c9a1097a2f4a5f604e570c6a0c2ad49f..9522e0eda3583d47ddb1f0f9772f7454b90f8fc5 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-owner.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-owner.js
|
| @@ -1,6 +1,18 @@
|
| +// Dedicated workers.
|
| onmessage = function () {
|
| postMessage({
|
| "origin": self.location.origin,
|
| "addressSpace": self.addressSpace
|
| });
|
| }
|
| +
|
| +// Shared workers.
|
| +onconnect = function (e) {
|
| + var port = e.ports[0];
|
| + port.onmessage = function () {
|
| + port.postMessage({
|
| + "origin": self.location.origin,
|
| + "addressSpace": self.addressSpace
|
| + });
|
| + }
|
| +}
|
|
|