| Index: Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
|
| index 2d4a0ef08b396d868e2e0bf722e9535f81311bf3..735216b1343fbe61644ed13d929c068e5111c1bc 100644
|
| --- a/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -206,7 +206,9 @@ void WebSharedWorkerImpl::initializeLoader(const WebURL& url)
|
| CString content("");
|
| int length = static_cast<int>(content.length());
|
| RefPtr<SharedBuffer> buffer(SharedBuffer::create(content.data(), length));
|
| - webFrame->frame()->loader().load(FrameLoadRequest(0, ResourceRequest(url), SubstituteData(buffer, "text/html", "UTF-8", KURL())));
|
| + ResourceRequest request = ResourceRequest(url);
|
| + request.initializeForMainResource(!webFrame->parent());
|
| + webFrame->frame()->loader().load(FrameLoadRequest(0, request, SubstituteData(buffer, "text/html", "UTF-8", KURL())));
|
| }
|
|
|
| WebApplicationCacheHost* WebSharedWorkerImpl::createApplicationCacheHost(WebLocalFrame*, WebApplicationCacheHostClient* appcacheHostClient)
|
|
|