| 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 7cecaa06c56bb0041edb6e5c4e82cb79e0b88453..750adf7e21f513178d2338562f0526b8f06b6619 100644
|
| --- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -173,6 +173,16 @@ void WebSharedWorkerImpl::LoadShadowPage() {
|
| SubstituteData(buffer, "text/html", "UTF-8", KURL())));
|
| }
|
|
|
| +void WebSharedWorkerImpl::FrameDetached(WebLocalFrame* frame, DetachType type) {
|
| + if (type == DetachType::kRemove && frame->Parent())
|
| + frame->Parent()->RemoveChild(frame);
|
| +
|
| + if (frame->FrameWidget())
|
| + frame->FrameWidget()->Close();
|
| +
|
| + frame->Close();
|
| +}
|
| +
|
| void WebSharedWorkerImpl::DidFinishDocumentLoad() {
|
| DCHECK(IsMainThread());
|
| DCHECK(!loading_document_);
|
|
|