[Autofill] Better sectioning for hidden fields.
Sometimes we have multiple sections on a form, but only the first one is visible, and the next one will appear as the user is interacting with the page. Currently, as a general rule, we ignore hidden fields and never start a new section on one. This rule does not apply for this case. Example: A hidden billing address section after a shipping one which appears if the user has different addresses for billing and shipping. Solution: Change the general rule so that: If current field is a hidden one, start a new section if two following fields are seen in the previous section. Also, keep the status of the already seen visible fields. When back to the visible fields, assume that the hidden section never existed. Depending on the field types, decide if the visible field belongs to a new section or it belongs to the previous visible section. Tests adjusted, one test added/149. Fixes: backcountry.com, https://www.crutchfield.com/, https://www.eddiebauer.com/, etc. Bug: 803670 Change-Id: I96eb258cbdca3c96c31199552e4acfc2467a8647 Reviewed-on: https://chromium-review.googlesource.com/879233 Commit-Queue: Parastoo Geranmayeh <parastoog@google.com> Reviewed-by:Sebastien Seguin-Gagnon <sebsg@chromium.org> Cr-Commit-Position: refs/heads/master@{#531577}
Showing
This diff is collapsed.
Please register or sign in to comment