Autofill - don't respect autocomplete="off" for mac address book or
scan credit card suggestions. BUG=450680 Review URL: https://codereview.chromium.org/864873002 Cr-Commit-Position: refs/heads/master@{#312566}
This commit is contained in:
components/autofill/core/browser
@ -1108,7 +1108,7 @@ bool AutofillManager::GetCachedFormAndField(const FormData& form,
|
|||||||
|
|
||||||
AutofillField* AutofillManager::GetAutofillField(const FormData& form,
|
AutofillField* AutofillManager::GetAutofillField(const FormData& form,
|
||||||
const FormFieldData& field) {
|
const FormFieldData& field) {
|
||||||
if (!personal_data_ || !field.should_autocomplete)
|
if (!personal_data_)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
FormStructure* form_structure = NULL;
|
FormStructure* form_structure = NULL;
|
||||||
|
@ -2826,7 +2826,7 @@ TEST_F(AutofillManagerTest, AccessAddressBookPrompt) {
|
|||||||
autofill_manager_->ShouldShowAccessAddressBookSuggestion(form, field));
|
autofill_manager_->ShouldShowAccessAddressBookSuggestion(form, field));
|
||||||
|
|
||||||
field.should_autocomplete = false;
|
field.should_autocomplete = false;
|
||||||
EXPECT_FALSE(
|
EXPECT_TRUE(
|
||||||
autofill_manager_->ShouldShowAccessAddressBookSuggestion(form, field));
|
autofill_manager_->ShouldShowAccessAddressBookSuggestion(form, field));
|
||||||
}
|
}
|
||||||
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
||||||
|
Reference in New Issue
Block a user