| Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| index b165a2e788363496aed321df4557f0904602bf14..c090baac93f7f594cbfb6e7638b502b0a912b1e1 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| @@ -1378,7 +1378,10 @@ void FrameLoader::startLoad(FrameLoadRequest& frameLoadRequest, FrameLoadType ty
|
| return;
|
|
|
| m_frame->document()->cancelParsing();
|
| - detachDocumentLoader(m_provisionalDocumentLoader);
|
| + if (m_provisionalDocumentLoader) {
|
| + FrameNavigationDisabler navigationDisabler(*m_frame);
|
| + detachDocumentLoader(m_provisionalDocumentLoader);
|
| + }
|
|
|
| // beforeunload fired above, and detaching a DocumentLoader can fire
|
| // events, which can detach this frame.
|
|
|