| Index: Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
|
| index 3528c27c36079272c8e562effd1b767eb353dbd3..08b40a725ce7f97847065cb4e8df980b46136238 100644
|
| --- a/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -231,8 +231,7 @@ void WebSharedWorkerImpl::loadShadowPage()
|
| // Construct substitute data source for the 'shadow page'. We only need it
|
| // to have same origin as the worker so the loading checks work correctly.
|
| CString content("");
|
| - int length = static_cast<int>(content.length());
|
| - RefPtr<SharedBuffer> buffer(SharedBuffer::create(content.data(), length));
|
| + RefPtr<SharedBuffer> buffer(SharedBuffer::create(content.data(), content.length()));
|
| webFrame->frame()->loader().load(FrameLoadRequest(0, ResourceRequest(m_url), SubstituteData(buffer, "text/html", "UTF-8", KURL())));
|
| }
|
|
|
|
|