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

Issue 2865233003: Use an MutationObserver to check when a password form disappears after XHR (Closed)

Created:
3 years, 7 months ago by jochen (gone - plz use gerrit)
Modified:
3 years, 7 months ago
Reviewers:
dvadym, Mike West, dglazkov
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, estade+watch_chromium.org, gcasto+watchlist_chromium.org, jam, kinuko+watch, mathp+autofillwatch_chromium.org, mlamouri+watch-content_chromium.org, rwlbuis, rogerm+autofillwatch_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, sof, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use an MutationObserver to check when a password form disappears after XHR Right now, we consider a password submitted if the filled form is gone after an successful XHR or fetch operation. However, if the website didn't synchronously remove the password form in the event handler, we will not consider the password submitted. In that case, we now use a MutationObserver to be notified about future changes to the form, and if it disappears, we'd still consider the password submission successful. BUG=589533 R=dvadym@chromium.org, dglazkov@chromium.org Review-Url: https://codereview.chromium.org/2865233003 Cr-Commit-Position: refs/heads/master@{#471421} Committed: https://chromium.googlesource.com/chromium/src/+/fcf91a8eaacdeaedb0de1eba39ff4c24fab34323

Patch Set 1 #

Patch Set 2 : fix deps #

Patch Set 3 : updates #

Patch Set 4 : tests #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : updates #

Patch Set 7 : updates #

Total comments: 2

Patch Set 8 : updates #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -30 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 9 chunks +159 lines, -7 lines 0 comments Download
M components/autofill/content/DEPS View 1 1 chunk +0 lines, -3 lines 0 comments Download
M components/autofill/content/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types.mojom View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -1 line 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 chunks +68 lines, -17 lines 0 comments Download
M components/autofill/content/renderer/provisionally_saved_password_form.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/autofill/core/common/password_form.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/password_form.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/WebFormElementObserverImpl.h View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/WebFormElementObserverImpl.cpp View 1 2 3 4 5 6 7 1 chunk +150 lines, -0 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/public/web/modules/password_manager/OWNERS View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 3 comments Download
A third_party/WebKit/public/web/modules/password_manager/WebFormElementObserver.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/public/web/modules/password_manager/WebFormElementObserverCallback.h View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (42 generated)
jochen (gone - plz use gerrit)
PTAL, Vadym: everything Dimitri: blink part https://codereview.chromium.org/2865233003/diff/60001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (left): https://codereview.chromium.org/2865233003/diff/60001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#oldcode1678 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1678: password_element_.SetAttribute("style", "display:none;"); These ...
3 years, 7 months ago (2017-05-10 11:45:42 UTC) #17
dvadym
Thanks Jochen! It looks great, I was playing around a little bit with patch locally. ...
3 years, 7 months ago (2017-05-10 16:42:52 UTC) #26
jochen (gone - plz use gerrit)
On 2017/05/10 at 16:42:52, dvadym wrote: > Thanks Jochen! It looks great, I was playing ...
3 years, 7 months ago (2017-05-11 07:25:54 UTC) #31
jochen (gone - plz use gerrit)
+mkwst for components/autofill/content/common/* (IPC review)
3 years, 7 months ago (2017-05-11 10:21:26 UTC) #38
dvadym
Thanks! Password part LGTM
3 years, 7 months ago (2017-05-11 11:09:56 UTC) #39
dglazkov
My concerns are mostly around layering... https://codereview.chromium.org/2865233003/diff/120001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2865233003/diff/120001/third_party/WebKit/Source/core/dom/Document.h#newcode1694 third_party/WebKit/Source/core/dom/Document.h:1694: Member<FormElementObserver> form_element_observer_; Does ...
3 years, 7 months ago (2017-05-11 21:09:05 UTC) #40
jochen (gone - plz use gerrit)
ptal. We don't have many modules that depend on web/ (only serviceworker), and it has ...
3 years, 7 months ago (2017-05-12 11:38:41 UTC) #43
Mike West
mojo LGTM. I only skimmed the rest. https://codereview.chromium.org/2865233003/diff/140001/third_party/WebKit/public/web/modules/password_manager/OWNERS File third_party/WebKit/public/web/modules/password_manager/OWNERS (right): https://codereview.chromium.org/2865233003/diff/140001/third_party/WebKit/public/web/modules/password_manager/OWNERS#newcode1 third_party/WebKit/public/web/modules/password_manager/OWNERS:1: jochen@chromium.org Nit: ...
3 years, 7 months ago (2017-05-12 11:46:28 UTC) #44
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2865233003/diff/140001/third_party/WebKit/public/web/modules/password_manager/OWNERS File third_party/WebKit/public/web/modules/password_manager/OWNERS (right): https://codereview.chromium.org/2865233003/diff/140001/third_party/WebKit/public/web/modules/password_manager/OWNERS#newcode1 third_party/WebKit/public/web/modules/password_manager/OWNERS:1: jochen@chromium.org On 2017/05/12 at 11:46:28, Mike West wrote: > ...
3 years, 7 months ago (2017-05-12 11:48:32 UTC) #45
dglazkov
lgtm
3 years, 7 months ago (2017-05-12 19:42:01 UTC) #48
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/2865233003/140001
3 years, 7 months ago (2017-05-12 19:51:58 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/fcf91a8eaacdeaedb0de1eba39ff4c24fab34323
3 years, 7 months ago (2017-05-12 20:05:04 UTC) #54
dvadym
3 years, 7 months ago (2017-05-16 10:17:46 UTC) #55
Message was sent while issue was closed.
https://codereview.chromium.org/2865233003/diff/140001/third_party/WebKit/pub...
File third_party/WebKit/public/web/modules/password_manager/OWNERS (right):

https://codereview.chromium.org/2865233003/diff/140001/third_party/WebKit/pub...
third_party/WebKit/public/web/modules/password_manager/OWNERS:1:
jochen@chromium.org
On 2017/05/12 11:48:32, jochen wrote:
> On 2017/05/12 at 11:46:28, Mike West wrote:
> > Nit: Perhaps someone from the password manager team wants to help out with
the
> blink side of their feature?
> 
> Vadym, any proposals who that could be?

Sure. I think me, vabr and kolos are good candidates. I'll create a CL for
adding us as owners for this directory.

Powered by Google App Engine
This is Rietveld 408576698