Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-from-worker.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-from-worker.html b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-from-worker.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..43681d2a217b5e259dcc00a042aeca27a27259e0 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-from-worker.html |
| @@ -0,0 +1,7 @@ |
| +<script> |
| + var w = new Worker("/security/cors-rfc1918/resources/post-addressspace-to-owner.js"); |
| + w.onmessage = function (e) { |
| + window.parent.postMessage(e.data, "*"); |
| + } |
| + w.postMessage("go"); |
|
philipj_slow
2016/03/04 04:35:08
Why this little indirection? Timing problem?
Mike West
2016/03/04 05:53:54
I wasn't sure if the handler would catch a `postMe
philipj_slow
2016/03/04 10:42:12
Oh, I misread this. I thought the "go" message wou
|
| +</script> |