Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| index 562818bc489268d2705db002be931d20c22c1dc0..0a4ceda489c9b0e47a28bb33ca225f326f62837d 100644 |
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| @@ -391,6 +391,9 @@ void LocalFrame::detach(FrameDetachType type) { |
| // DCHECK(!m_isDetaching) here. |
| m_isDetaching = true; |
| + if (!tree().parent() || !tree().parent()->isLocalFrame()) |
|
caseq
2016/12/01 02:45:30
Why not just check for isLocalRoot()?
|
| + m_performanceMonitor->shutdown(); |
| + |
| PluginScriptForbiddenScope forbidPluginDestructorScripting; |
| m_loader.stopAllLoaders(); |
| // Don't allow any new child frames to load in this frame: attaching a new |