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

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

Issue 2398733004: Do not SendPasswordForms when LocalFrame is being detached (Closed)
Patch Set: Rename to isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() 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.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 3c1b9143e3451afbc46ed08417c2ac5e6f288838..ab73c8dda7ed93f60157a699565aa8694df1cca2 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -218,6 +218,10 @@ class CORE_EXPORT LocalFrame final : public Frame,
PluginData* pluginData() const;
+ bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() const {
+ return m_detached || !client();
+ }
+
private:
friend class FrameNavigationDisabler;
@@ -257,6 +261,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
float m_textZoomFactor;
bool m_inViewSourceMode;
+ bool m_detached = false;
Member<InstrumentingAgents> m_instrumentingAgents;
« no previous file with comments | « components/autofill/content/renderer/password_autofill_agent.cc ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698