| Index: Source/modules/websockets/WebSocket.cpp
|
| diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
|
| index 3868acfda51786aa6abfc36ff912a3b16115476c..38a5443f08eab6441186f9d9e563b46dc46cdc19 100644
|
| --- a/Source/modules/websockets/WebSocket.cpp
|
| +++ b/Source/modules/websockets/WebSocket.cpp
|
| @@ -224,7 +224,7 @@ void WebSocket::connect(const String& url, const Vector<String>& protocols, Exce
|
| bool shouldBypassMainWorldContentSecurityPolicy = false;
|
| if (executionContext()->isDocument()) {
|
| Document* document = toDocument(executionContext());
|
| - shouldBypassMainWorldContentSecurityPolicy = document->frame()->script()->shouldBypassMainWorldContentSecurityPolicy();
|
| + shouldBypassMainWorldContentSecurityPolicy = document->frame()->script().shouldBypassMainWorldContentSecurityPolicy();
|
| }
|
| if (!shouldBypassMainWorldContentSecurityPolicy && !executionContext()->contentSecurityPolicy()->allowConnectToSource(m_url)) {
|
| m_state = CLOSED;
|
|
|