Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Autofill] Add parameter for relaxed version of shared-autofill.
This CL adds a parameter relax_shared_autofill to the AutofillSharedAutofill feature that relaxes the policy for filling across iframes: Before this CL, or if relax_shared_autofill is false, (1) certain field types may be filled if (a) the target field has the main origin and (b) the target field's frame has shared-autofill enabled; (2) *all* field types may be filled if (a) the source field has the main origin and (b) the target field's frame has shared-autofill enabled. Setting relax_shared_autofill to true lifts condition (2.a). As a consequence, more fields can be filled, and reasoning about which fields can be filled becomes easier. Consider the below example and suppose Autofill is triggered on the cc-number field. <form> <!-- origin https://a.com --> <input autocomplete=cc-name> <iframe allow=shared-autofill src=https://b.com> <input autocomplete=cc-number> </iframe> <input autocomplete=cc-exp> <iframe allow=shared-autofill src=https://c.com> <input autocomplete=cc-cvc> </iframe> </form> With relax_shared_autofill = false, Autofill only fills cc-name. It does not fill cc-exp (because it's not among the field types to which (1) applies) and cc-cvc (because of (2.a)). With relax_shared_autofill = true, Autofill fills all fields. Bug: 1187842, 1201849 Change-Id: I22710e5be74e6e1bfb48759943cce864ab1bef23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3500623 Reviewed-by: Dominic Battré <battre@chromium.org> Commit-Queue: Christoph Schwering <schwering@google.com> Cr-Commit-Position: refs/heads/main@{#985546}
- Loading branch information
Showing
5 changed files
with
85 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters