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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2398733004: Do not SendPasswordForms when LocalFrame is being detached (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index 0397c3b7ffd4a80fb39fcdb8b8133cfcfd24b1ff..521fd48258658bca126c1dc06153f356b19ffbbb 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -946,7 +946,10 @@ void PasswordAutofillAgent::SendPasswordForms(bool only_visible) {
logger->LogBoolean(Logger::STRING_ONLY_VISIBLE, only_visible);
}
- blink::WebFrame* frame = render_frame()->GetWebFrame();
+ blink::WebLocalFrame* frame = render_frame()->GetWebFrame();
esprehn 2016/10/07 06:55:23 Why do we get here when doing stopAllLoaders? I'd
kojii 2016/10/07 07:03:01 We seem to call didFinishLoad() even when close/ca
vabr (Chromium) 2016/10/07 11:00:48 Just to make sure I understand correctly -- it is
vabr (Chromium) 2016/10/07 11:00:48 +1 to esprehn's concern. The comment at WebFrameCl
kojii 2016/10/07 11:32:44 I'm not very familiar with code outside Blink, but
kojii 2016/10/07 11:45:08 Actually both tkent@ and I +1 too; cancel and clos
+ if (frame->isInStopAllLoaders())
+ return;
+
// Make sure that this security origin is allowed to use password manager.
blink::WebSecurityOrigin origin = frame->document().getSecurityOrigin();
if (logger) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698