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

Unified Diff: LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked.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/insecure-async-post-xhr-blocked.html
diff --git a/LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked.html b/LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked.html
new file mode 100644
index 0000000000000000000000000000000000000000..8ee95fd9d868d72926a4618812db11e05c5a019b
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="/js-test-resources/testharness.js"></script>
+<script src="/js-test-resources/testharnessreport.js"></script>
+<script>
+if (window.testRunner) {
+ testRunner.overridePreference("WebKitAllowRunningInsecureContent", false);
+}
+
+var test = async_test("Opens a HTTPS window that loads insecure data via XHR. We should trigger a mixed content callback and block the load.");
+
+window.addEventListener("message", function (e) {
+ test.done();
+}, false);
+window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-async-xhr-post.html");
+</script>

Powered by Google App Engine
This is Rietveld 408576698