Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html

Issue 1253343002: [XHR] Tidy up files for testing XHR's error for mixed content check failure (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
diff --git a/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html b/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
new file mode 100644
index 0000000000000000000000000000000000000000..d618e4312cb9b1489c255b7b0fe4d6f33da1d507
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html
@@ -0,0 +1,9 @@
+<script>
+var xhr = new XMLHttpRequest();
+xhr.onerror = function()
+{
+ window.opener.postMessage('done', '*');
Mike West 2015/07/27 09:09:32 Can you add a success handler which postMessages s
tyoshino (SeeGerritForStatus) 2015/07/27 09:20:01 Added!
+};
+xhr.open("POST", "http://127.0.0.1:8000/xmlhttprequest/resources/access-control-allow-lists.php?origin=*", true);
+xhr.send("foo");
+</script>

Powered by Google App Engine
This is Rietveld 408576698