| Index: Source/modules/websockets/DOMWebSocket.cpp
|
| diff --git a/Source/modules/websockets/DOMWebSocket.cpp b/Source/modules/websockets/DOMWebSocket.cpp
|
| index e821d6ac98266584b11026ea1270b66770bbe9a2..428f9f6a8c3ef540c9c14976f90e699a4e978ecc 100644
|
| --- a/Source/modules/websockets/DOMWebSocket.cpp
|
| +++ b/Source/modules/websockets/DOMWebSocket.cpp
|
| @@ -281,7 +281,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 (executionContext()->securityContext().insecureContentPolicy() == SecurityContext::InsecureContentUpgrade && m_url.protocol() == "ws") {
|
| + if (executionContext()->securityContext().insecureRequestsPolicy() == SecurityContext::InsecureRequestsUpgrade && m_url.protocol() == "ws") {
|
| m_url.setProtocol("wss");
|
| if (m_url.port() == 80)
|
| m_url.setPort(443);
|
|
|