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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2398733004: Do not SendPasswordForms when LocalFrame is being detached (Closed)
Patch Set: isInStopAllLoaders -> isDetached Created 4 years, 2 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/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 31dccf7ce79d4712ffe1406454109bdc41eb5dda..38269f0f9930117de9489404270140c54eed9224 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -379,6 +379,8 @@ void LocalFrame::reload(FrameLoadType loadType,
}
void LocalFrame::detach(FrameDetachType type) {
+ m_detached = true;
+
PluginScriptForbiddenScope forbidPluginDestructorScripting;
m_loader.stopAllLoaders();
// Don't allow any new child frames to load in this frame: attaching a new

Powered by Google App Engine
This is Rietveld 408576698