| Index: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
|
| index 8b205949a163b43cf132ad0b23a3d7e43b30b009..a465b94e7e7dd27823e6f14d542d74d323401a39 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
|
| @@ -1,12 +1,14 @@
|
| <script>
|
| +function report(message) {
|
| + window.opener.postMessage(message, '*');
|
| +}
|
| +
|
| var xhr = new XMLHttpRequest();
|
| -xhr.onload = function()
|
| -{
|
| - window.opener.postMessage('FAIL: XHR succeeded unexpectedly', '*');
|
| -};
|
| -xhr.onerror = function()
|
| -{
|
| - window.opener.postMessage('DONE', '*');
|
| +xhr.onload = function() {
|
| + report('FAIL: XHR succeeded unexpectedly');
|
| +}
|
| +xhr.onerror = function() {
|
| + report('DONE');
|
| };
|
| xhr.open("POST", "http://127.0.0.1:8000/xmlhttprequest/resources/access-control-allow-lists.php?origin=*", true);
|
| xhr.send("foo");
|
|
|