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

Issue 649583003: PasswordAutofillAgent: do not provisionally save forms in NULL frames (Closed)

Created:
6 years, 2 months ago by vabr (Chromium)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, jam, rouslan+autofillwatch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, mkwst+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PasswordAutofillAgent: do not provisionally save forms in NULL frames Based on a recent crash reports, there is a suspicion that PasswordAutofillAgent::provisionally_saved_forms_ gets NULL WebFrame pointers assigned as keys. That's likely happening in TextDidChangeInTextField(), when ProvisionallySavePassword() is called with element.document().frame(). That can be NULL, as the comment at blink::Document::frame() says. This CL makes sure that forms for which we don't know the frame are not provisionally saved. It is still unclear to me, how to reproduce this crash, so I have no idea how to reproduce it in tests. Therefore this CL does not add tests. There is a bug (400186) filed for making PasswordAutofillAgent observe frames directly, which should ultimately clean up this mess anyway. BUG=420519 Committed: https://crrev.com/ecf42baef5acafb27ab773f0b6d129b48d47f4a8 Cr-Commit-Position: refs/heads/master@{#299443}

Patch Set 1 #

Total comments: 4

Patch Set 2 : element_frame now local to the if statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M components/autofill/content/renderer/password_autofill_agent.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
vabr (Chromium)
Hi Garrett, PTAL. Note that although there is a DCHECK in PasswordAutofillAgent against the NULL ...
6 years, 2 months ago (2014-10-10 10:05:27 UTC) #2
Mike West
LGTM % questions. https://codereview.chromium.org/649583003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/649583003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode537 components/autofill/content/renderer/password_autofill_agent.cc:537: if (element_frame) { You can put ...
6 years, 2 months ago (2014-10-13 13:13:00 UTC) #4
vabr (Chromium)
Thanks, Mike. Comment addressed, question answered. Garrett, Please have a look if you can. Given ...
6 years, 2 months ago (2014-10-13 13:53:17 UTC) #5
Garrett Casto
LGTM If you wanted to TBR this, I'd be okay with it given the review ...
6 years, 2 months ago (2014-10-13 18:24:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/649583003/160001
6 years, 2 months ago (2014-10-14 07:15:46 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:160001)
6 years, 2 months ago (2014-10-14 07:27:05 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 08:15:17 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ecf42baef5acafb27ab773f0b6d129b48d47f4a8
Cr-Commit-Position: refs/heads/master@{#299443}

Powered by Google App Engine
This is Rietveld 408576698