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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6d78fa2ec75541281675f60e0ec43b72218f6e53 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html |
@@ -0,0 +1,13 @@ |
+<script> |
+var xhr = new XMLHttpRequest(); |
+xhr.onload = function() |
+{ |
+ window.opener.postMessage('FAIL: XHR succeeded unexpectedly', '*'); |
+} |
hiroshige
2016/01/26 08:44:50
Please add ';'.
tyoshino (SeeGerritForStatus)
2016/01/29 12:36:52
Done.
|
+xhr.onerror = function() |
+{ |
+ window.opener.postMessage('DONE', '*'); |
+}; |
+xhr.open("POST", "http://127.0.0.1:8000/xmlhttprequest/resources/access-control-allow-lists.php?origin=*", true); |
+xhr.send("foo"); |
+</script> |