Index: LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-sandbox-in-secure-page.html |
diff --git a/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-sandbox-in-secure-page.html b/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-sandbox-in-secure-page.html |
index d895efeeb75b4b47c07b48232d7c93b263b4281d..083f082886d714e5ce1b97907a16a9054792d7b4 100644 |
--- a/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-sandbox-in-secure-page.html |
+++ b/LayoutTests/http/tests/security/mixedContent/websocket/insecure-websocket-in-sandbox-in-secure-page.html |
@@ -11,6 +11,8 @@ if (window.testRunner) { |
// Disallow insecure WebSockets. |
testRunner.overridePreference("WebKitAllowRunningInsecureContent", false); |
} |
+if (window.internals) |
+ internals.settings.setLaxMixedContentCheckingEnabled(false); |
var test = async_test("Test that when a HTTPS window that creates an insecure WebSocket connection is opened, the mixed content callback is triggered because the main frame in the window is HTTPS but is trying connecting to an insecure WebSocket server."); |