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

Issue 2048603002: [Password Generation] Handle DidFinishLoad event in PasswordGenerationAgent as well (Closed)

Created:
4 years, 6 months ago by kolos1
Modified:
4 years, 6 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Generation] Handle not only DidFinishDocumentLoad in PasswordGenerationAgent, but also DidFinishLoad DidFinishDocumentLoad event happens too early, i.e. some forms might be still unavailable. For example, if some Javascript stuff is involved. See https://cs.chromium.org/chromium/src/third_party/WebKit/public/web/WebFrameClient.h. DidFinishDocumentLoad is triggered before Javascript work. The solution is to handle DidFinishLoad that is triggered after Javascript work. This bug (crbug.com/452741) points that the processing DidFinishDocumentLoad is also necessary. So, this CL introduces handling both events (DidFinishDocumentLoad and DidFinishLoad) There are no tests for the given change, because it is very hard to catch the difference between DidFinishDocumentLoad and DidFinishLoad. Even if it is possible, the test will be probably flaky. BUG=617893 Committed: https://crrev.com/c2fd8ecef7c96e060d601ef71894846164581c9a Cr-Commit-Position: refs/heads/master@{#398509}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Added a comment on the method replacement #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

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

Messages

Total messages: 15 (10 generated)
kolos1
Hi Vaclav, Please review this CL on improving form detection for Password Generation. Regards, Maxim
4 years, 6 months ago (2016-06-08 07:18:38 UTC) #7
vabr (Chromium)
LGTM, this seems reasonable. Thanks! Vaclav
4 years, 6 months ago (2016-06-08 07:54:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2048603002/120001
4 years, 6 months ago (2016-06-08 08:09:05 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 6 months ago (2016-06-08 09:39:58 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 09:40:56 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c2fd8ecef7c96e060d601ef71894846164581c9a
Cr-Commit-Position: refs/heads/master@{#398509}

Powered by Google App Engine
This is Rietveld 408576698