| Index: Source/core/page/EventSource.cpp
|
| diff --git a/Source/core/page/EventSource.cpp b/Source/core/page/EventSource.cpp
|
| index 493e36043b803c147bd473a88bed0b5a65fad898..f3c0a3d5e5abe5ffe08275c2a3971b09b7bd6272 100644
|
| --- a/Source/core/page/EventSource.cpp
|
| +++ b/Source/core/page/EventSource.cpp
|
| @@ -137,16 +137,17 @@ void EventSource::connect()
|
| SecurityOrigin* origin = executionContext.securityOrigin();
|
|
|
| ThreadableLoaderOptions options;
|
| - options.sniffContent = DoNotSniffContent;
|
| - options.allowCredentials = (origin->canRequest(m_url) || m_withCredentials) ? AllowStoredCredentials : DoNotAllowStoredCredentials;
|
| - options.credentialsRequested = m_withCredentials ? ClientRequestedCredentials : ClientDidNotRequestCredentials;
|
| options.preflightPolicy = PreventPreflight;
|
| options.crossOriginRequestPolicy = UseAccessControl;
|
| - options.dataBufferingPolicy = DoNotBufferData;
|
| - options.securityOrigin = origin;
|
| options.contentSecurityPolicyEnforcement = ContentSecurityPolicy::shouldBypassMainWorld(&executionContext) ? DoNotEnforceContentSecurityPolicy : EnforceConnectSrcDirective;
|
|
|
| - m_loader = ThreadableLoader::create(executionContext, this, request, options);
|
| + ResourceLoaderOptions resourceLoaderOptions;
|
| + resourceLoaderOptions.allowCredentials = (origin->canRequest(m_url) || m_withCredentials) ? AllowStoredCredentials : DoNotAllowStoredCredentials;
|
| + resourceLoaderOptions.credentialsRequested = m_withCredentials ? ClientRequestedCredentials : ClientDidNotRequestCredentials;
|
| + resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
|
| + resourceLoaderOptions.securityOrigin = origin;
|
| +
|
| + m_loader = ThreadableLoader::create(executionContext, this, request, options, resourceLoaderOptions);
|
|
|
| if (m_loader)
|
| m_requestInFlight = true;
|
|
|