| Index: third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| diff --git a/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp b/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| index 93689ad3fd9dd778e6516c34e93c91c9ee278a94..8a008b845029155eff9d61c4cc38b02ebac3e705 100644
|
| --- a/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| +++ b/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp
|
| @@ -55,6 +55,7 @@
|
| #include "platform/weborigin/KnownPorts.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/WebInsecureRequestPolicy.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/HashSet.h"
|
| #include "wtf/PassOwnPtr.h"
|
| @@ -284,7 +285,7 @@ void DOMWebSocket::connect(const String& url, const Vector<String>& protocols, E
|
| WTF_LOG(Network, "WebSocket %p connect() url='%s'", this, url.utf8().data());
|
| m_url = KURL(KURL(), url);
|
|
|
| - if (getExecutionContext()->securityContext().getInsecureRequestsPolicy() == SecurityContext::InsecureRequestsUpgrade && m_url.protocol() == "ws") {
|
| + if (getExecutionContext()->securityContext().getInsecureRequestPolicy() & kUpgradeInsecureRequests && m_url.protocol() == "ws") {
|
| UseCounter::count(getExecutionContext(), UseCounter::UpgradeInsecureRequestsUpgradedRequest);
|
| m_url.setProtocol("wss");
|
| if (m_url.port() == 80)
|
|
|