Chromium Code Reviews| Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
| index 52ee4f1a7678400ca8010c421f8f26f3ead63d81..965b5aaa305fc7bd75db1ce42a095e41be24f046 100644 |
| --- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
| +++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
| @@ -177,8 +177,12 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() |
| void FrameLoaderClientImpl::documentElementAvailable() |
| { |
| - if (m_webFrame->client()) |
| + if (m_webFrame->client()) { |
| + RefPtrWillBeRawPtr<WebLocalFrameImpl> protector(m_webFrame.get()); |
| m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
|
esprehn
2016/02/09 00:37:09
Woah what, there's script down here??
Can we inst
robwu
2016/02/09 00:53:46
That could mean that a lot of DOM is generated, ri
|
| + if (!m_webFrame->client()) |
| + return; |
| + } |
| if (m_webFrame->parent()) |
| return; |