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

Unified Diff: Source/modules/websockets/DocumentWebSocketChannel.cpp

Issue 842783002: Mixed Content: Add a static check for WebSockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@lax
Patch Set: Rebase. Created 5 years, 11 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: Source/modules/websockets/DocumentWebSocketChannel.cpp
diff --git a/Source/modules/websockets/DocumentWebSocketChannel.cpp b/Source/modules/websockets/DocumentWebSocketChannel.cpp
index ff920bf40c0765c5c175d9caa0b2f8ab9147a8e5..458b4f6e771ce1586da64d69a38ec622f9f476f2 100644
--- a/Source/modules/websockets/DocumentWebSocketChannel.cpp
+++ b/Source/modules/websockets/DocumentWebSocketChannel.cpp
@@ -137,7 +137,7 @@ bool DocumentWebSocketChannel::connect(const KURL& url, const String& protocol)
return false;
if (executionContext()->isDocument() && document()->frame()) {
- if (!document()->frame()->loader().mixedContentChecker()->canConnectInsecureWebSocket(document()->securityOrigin(), url))
+ if (MixedContentChecker::shouldBlockConnection(document()->frame(), url))
return false;
}
if (MixedContentChecker::isMixedContent(document()->securityOrigin(), url)) {

Powered by Google App Engine
This is Rietveld 408576698