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()); |
esprehn
2016/02/17 01:43:47
protect(
not protector
|
m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
+ if (!m_webFrame->client()) |
+ return; |
+ } |
if (m_webFrame->parent()) |
return; |