| Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| index 04764e4f21eabb11fce26ed234387d0050fec89a..dfc21de6f498c90ef51048b6a6e16ff80f800a86 100644
|
| --- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -178,8 +178,13 @@ void WebSharedWorkerImpl::didFinishDocumentLoad(WebLocalFrame* frame) {
|
| m_mainScriptLoader->setRequestContext(
|
| WebURLRequest::RequestContextSharedWorker);
|
| m_loadingDocument = toWebLocalFrameImpl(frame)->frame()->document();
|
| +
|
| + CrossOriginRequestPolicy crossOriginRequestPolicy =
|
| + (static_cast<KURL>(m_url)).protocolIsData() ? AllowCrossOriginRequests
|
| + : DenyCrossOriginRequests;
|
| +
|
| m_mainScriptLoader->loadAsynchronously(
|
| - *m_loadingDocument.get(), m_url, DenyCrossOriginRequests,
|
| + *m_loadingDocument.get(), m_url, crossOriginRequestPolicy,
|
| m_creationAddressSpace,
|
| bind(&WebSharedWorkerImpl::didReceiveScriptLoaderResponse,
|
| WTF::unretained(this)),
|
|
|