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

Issue 2746033004: Add password form search using blink::WebNode reference comparison. (Closed)

Created:
3 years, 9 months ago by sense (YandexTeam)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add password form search using blink::WebNode reference comparison. After an XHR is completed, PasswordAutofillAgent tries to check if the form is still visible (i.e. if the user has successfuly logged in or still sees the form) by searching the form with the same action URL. This works until the form has action URL. If it doesn't, the search is performed using field matching. This will fail if the form is modified by the website right before the XHR has completed. This CL adds support for the form search using blink::WebFormElement and blink::WebInputElement (for unowned forms) reference comparison. BUG=700862 R=dvadym@chromium.org Review-Url: https://codereview.chromium.org/2746033004 Cr-Commit-Position: refs/heads/master@{#458032} Committed: https://chromium.googlesource.com/chromium/src/+/531d81feacb5306300387558824ee4ce11e98b89

Patch Set 1 #

Total comments: 12

Patch Set 2 : Optimize reference checking, fix comments. #

Patch Set 3 : Rename ProvisionallySavedForm to ProvisionallySavedPasswordForm. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -46 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.h View 1 chunk +5 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 chunks +10 lines, -7 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 10 chunks +40 lines, -36 lines 0 comments Download
A components/autofill/content/renderer/provisionally_saved_password_form.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A components/autofill/content/renderer/provisionally_saved_password_form.cc View 1 2 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
sense (YandexTeam)
3 years, 9 months ago (2017-03-14 08:49:00 UTC) #2
dvadym
Thanks for fixing this! Overall looks good, I like approach with a separate class ProvisionallySavedForm. ...
3 years, 9 months ago (2017-03-14 17:11:11 UTC) #7
sense (YandexTeam)
https://codereview.chromium.org/2746033004/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2746033004/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode2218 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:2218: LoadHTMLWithUrlOverride(kHTMLWithHiddenField, "https://www.example.com"); On 2017/03/14 17:11:10, dvadym wrote: > Why ...
3 years, 9 months ago (2017-03-15 04:51:24 UTC) #8
dvadym
LGTM I just now realized, could you please rename ProvisionallySavedForm -> ProvisionallySavedPasswordForm (there are files ...
3 years, 9 months ago (2017-03-15 14:27:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2746033004/60001
3 years, 9 months ago (2017-03-16 01:12:46 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/386725)
3 years, 9 months ago (2017-03-16 01:21:34 UTC) #18
sense (YandexTeam)
sebsg@ please take a look.
3 years, 9 months ago (2017-03-16 01:39:08 UTC) #20
sense (YandexTeam)
sebsg@ kindly ping. components/autofill/content/renderer/BUILD.gn components/autofill/content/renderer/form_autofill_util.cc components/autofill/content/renderer/form_autofill_util.h gcasto@ please take a look at: chrome/renderer/autofill/password_autofill_agent_browsertest.cc
3 years, 9 months ago (2017-03-20 04:30:00 UTC) #22
vabr (Chromium)
chrome/renderer/autofill/password_autofill_agent_browsertest.cc LGTM Thanks! Vaclav
3 years, 9 months ago (2017-03-20 09:02:55 UTC) #24
vabr (Chromium)
The whole CL LGTM, feel free to land. Thanks! Vaclav
3 years, 9 months ago (2017-03-20 09:06:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2746033004/60001
3 years, 9 months ago (2017-03-20 09:14:14 UTC) #27
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 10:12:57 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/531d81feacb5306300387558824e...

Powered by Google App Engine
This is Rietveld 408576698