Chromium Code Reviews| 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..c2e47aa944d6e60a598b39051083e8ae4eb4aa18 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 = |
| + ((KURL)m_url).protocolIsData() ? AllowCrossOriginRequests |
|
jochen (gone - plz use gerrit)
2017/02/10 09:57:37
please use c++ style cases (static_cast<KURL>) - s
andypaicu2
2017/02/13 11:38:45
Done
|
| + : DenyCrossOriginRequests; |
| + |
| m_mainScriptLoader->loadAsynchronously( |
| - *m_loadingDocument.get(), m_url, DenyCrossOriginRequests, |
| + *m_loadingDocument.get(), m_url, crossOriginRequestPolicy, |
| m_creationAddressSpace, |
| bind(&WebSharedWorkerImpl::didReceiveScriptLoaderResponse, |
| WTF::unretained(this)), |