| Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/cascade/cross-origin-window-open.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/cascade/cross-origin-window-open.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/cascade/cross-origin-window-open.html
|
| index d46d826ff22e1431c8708afeccf8d74558d1a5e9..25ce1fddbeb309410f851e1e5ab0c94895e9b3bc 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/cascade/cross-origin-window-open.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/cascade/cross-origin-window-open.html
|
| @@ -18,12 +18,14 @@
|
| t.done();
|
| }));
|
|
|
| - window.open("data:text/html,<script>" +
|
| - " var i = document.createElement('img');" +
|
| - " i.onload = _ => opener.postMessage('loaded', '*');" +
|
| - " i.onerror = _ => opener.postMessage('blocked', '*');" +
|
| - " i.src = 'http://example.test:8000/resources/square.png?data-frame'" +
|
| - "</scr" + "ipt>");
|
| + var win = window.open("about:blank");
|
| + win.document.write(
|
| + "<script>" +
|
| + " var i = document.createElement('img');" +
|
| + " i.onload = _ => opener.postMessage('loaded', '*');" +
|
| + " i.onerror = _ => opener.postMessage('blocked', '*');" +
|
| + " i.src = 'http://example.test:8000/resources/square.png?data-frame'" +
|
| + "</scr" + "ipt>");
|
| }, "Image loaded via data: window blocked.");
|
| </script>
|
| </body>
|
|
|