| Index: Source/core/page/EventSource.cpp
|
| diff --git a/Source/core/page/EventSource.cpp b/Source/core/page/EventSource.cpp
|
| index d616ad031e5ba9b8f85d7bf761589793a453ba13..061c4d5d64ccbaa7c9693d62d554114a4796413e 100644
|
| --- a/Source/core/page/EventSource.cpp
|
| +++ b/Source/core/page/EventSource.cpp
|
| @@ -89,7 +89,7 @@ PassRefPtr<EventSource> EventSource::create(ExecutionContext* context, const Str
|
| bool shouldBypassMainWorldContentSecurityPolicy = false;
|
| if (context->isDocument()) {
|
| Document* document = toDocument(context);
|
| - shouldBypassMainWorldContentSecurityPolicy = document->frame()->script()->shouldBypassMainWorldContentSecurityPolicy();
|
| + shouldBypassMainWorldContentSecurityPolicy = document->frame()->script().shouldBypassMainWorldContentSecurityPolicy();
|
| }
|
| if (!shouldBypassMainWorldContentSecurityPolicy && !context->contentSecurityPolicy()->allowConnectToSource(fullURL)) {
|
| // We can safely expose the URL to JavaScript, as this exception is generate synchronously before any redirects take place.
|
|
|