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

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 1164883002: Ignore attempts to navigate once a provisional commit has gotten too far along. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index 0423b399f1d33ee284269ad560df5c9967e7d455..49584c6f88c0f054933d3a95f0d8067681a3448e 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -978,8 +978,10 @@ void FrameLoader::commitProvisionalLoad()
// we need to abandon the current load.
if (pdl != m_provisionalDocumentLoader)
return;
- if (m_documentLoader)
+ if (m_documentLoader) {
+ FrameNavigationDisabler navigationDisabler(m_frame);
m_documentLoader->detachFromFrame();
+ }
// detachFromFrame() will abort XHRs that haven't completed, which can
// trigger event listeners for 'abort'. These event listeners might detach
// the frame.

Powered by Google App Engine
This is Rietveld 408576698