| Index: Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
|
| index ac6d7069f343c3175685570f64621c55804083a7..a4edda4f2c0b1c09c4e9b89acb03ed28c4ba2cc5 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::createMainResourceRequest(
|
| + url, !webFrame->parent());
|
| + webFrame->frame()->loader().load(FrameLoadRequest(0, request, SubstituteData(buffer, "text/html", "UTF-8", KURL())));
|
| }
|
|
|
| WebApplicationCacheHost* WebSharedWorkerImpl::createApplicationCacheHost(WebLocalFrame*, WebApplicationCacheHostClient* appcacheHostClient)
|
|
|