DescriptionAutofillDriverFactory manages information about user gestures
When a password field is autofilled, the value is not accessible to JavaScript
until the user clicks or types in the page. To keep track of this, the frames
report such user gestures, and ChromeAutofillClient distributes such a signal
to all other frames in the same WebContent, via their common
AutofillDriverFactory.
This does not work when a new frame is added later, because the browser process
does not keep track whether the user gestures were seen already. Newly added
frames never learn about the user already having clicked in the page.
This CL fixes that by modifying AutofillDriverFactory to remember the
user gestures and notify also drivers added later. The flag is reset on main
page navigation.
The CL also makes parts of the AutofillDriverFactory API public, as long as they
do not modify the drivers map. This results in a slight reordering of methods.
BUG=669045
Review-Url: https://codereview.chromium.org/2603623002
Cr-Commit-Position: refs/heads/master@{#453245}
Committed: https://chromium.googlesource.com/chromium/src/+/ce7eba36c420dabb86b57f1851d5c86115d7d13c
Patch Set 1 #Patch Set 2 : Just rebased #Patch Set 3 : Just rebased #Patch Set 4 : Use AutofillDriverFactory #Patch Set 5 : Self review #Patch Set 6 : Make safe API public #
Total comments: 2
Patch Set 7 : Remove braces #
Total comments: 2
Patch Set 8 : Fix typo #
Messages
Total messages: 37 (29 generated)
|