Chromium Code Reviews| Index: LayoutTests/http/tests/xmlhttprequest/workers/resources/frame-with-insecure-xhr.html |
| diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/resources/frame-with-insecure-xhr.html b/LayoutTests/http/tests/xmlhttprequest/workers/resources/frame-with-insecure-xhr.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7048e2c2c26fb44c2fd4fec770d906dd3bc9ae11 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/xmlhttprequest/workers/resources/frame-with-insecure-xhr.html |
| @@ -0,0 +1,8 @@ |
| +<!DOCTYPE html> |
| +<script> |
| +var w = new Worker("/xmlhttprequest/resources/insecure-xhr.js"); |
| +w.onmessage = function (e) { |
| + if (window.opener) |
| + window.opener.postMessage(e.data, '*'); |
| +}; |
| +</script> |