Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Up to #50: ExtensionFrameHelper callbacks, comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698