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

Unified Diff: LayoutTests/http/tests/security/mixedContent/insecure-xhr-in-main-frame.html

Issue 356843006: Add "lax mixed content checking" runtime flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 years, 6 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-xhr-in-main-frame.html
diff --git a/LayoutTests/http/tests/security/mixedContent/insecure-xhr-in-main-frame.html b/LayoutTests/http/tests/security/mixedContent/insecure-xhr-in-main-frame.html
index be882fcc2f79798b870a4853d47a9f53451472b1..7973503abc732fdeb26efeadb35b82b87be6f788 100644
--- a/LayoutTests/http/tests/security/mixedContent/insecure-xhr-in-main-frame.html
+++ b/LayoutTests/http/tests/security/mixedContent/insecure-xhr-in-main-frame.html
@@ -8,6 +8,9 @@ if (window.testRunner) {
testRunner.setCloseRemainingWindowsWhenComplete(true);
testRunner.overridePreference("WebKitAllowRunningInsecureContent", true);
}
+if (window.internals)
+ internals.settings.setLaxMixedContentCheckingEnabled(false);
+
window.addEventListener("message", function (e) {
if (window.testRunner)

Powered by Google App Engine
This is Rietveld 408576698