DescriptionMac: Autofill should not immediately request access to address book.
If the browser does not yet have permission to access the user's contacts, one
of the Autofill suggestions has the text "Enable Autofill using Contacts". If
the user selects that suggestion, the browser will prompt the user for access
to the user's address book.
The act of clicking the permissions dialog causes Blink to lose its focus on
the text field, which also dismisses the Autofill popup. If the user has
granted Chrome access to the address book, the autofill popup will be presented
again, and filled in.
This CL does not include the image asset, nor does it include the logic to
display the image asset on the left of the autofill entry.
BUG=139154
TEST=Run the command `tccutil reset AddressBook` to reset AddressBook
permissions for all applications. Clear the default Chromium profile:
`rm -rf ~/Library/Application\ Support/Chromium/Default/`. Launch Chromium by
double clicking on it from Finder. Navigate to
`https://www.mycontactform.com/samples/change_address.php`. Double click the
"First Name" field. There should not be a prompt to access your "Contacts".
There should be exactly 1 autofill entry: "Enable Autofill using Contacts...".
Clicking that autofill entry should open a system prompt that asks for Contacts
permissions for Chromium.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274040
Patch Set 1 : More cleanup. #
Total comments: 17
Patch Set 2 : isherman comments. #Patch Set 3 : Don't assume personal_data_ is not NULL. #
Total comments: 21
Patch Set 4 : Address second round of comments from isherman. #
Total comments: 15
Patch Set 5 : Respond to comments from isherman. #
Total comments: 5
Patch Set 6 : Comments from isherman. #Patch Set 7 : Add IPCs. #
Total comments: 12
Patch Set 8 : Comments from isherman. #
Total comments: 2
Patch Set 9 : Rebase against top of tree. #Patch Set 10 : Comment from isherman. #Patch Set 11 : Add !defined(OS_IOS) to all #ifdefs. #Patch Set 12 : Add a missing abstract method override to a test class. #Messages
Total messages: 30 (0 generated)
|