Improve visibility handling in FormData->PasswordForm parser
When the new FormData->PasswordForm parser looks for the username with its basic heuristics, it only considers the most likely fields the user would interact with (visible > with some value > the rest). This filter is on purpose not applied to server hints and autocomplete attribute analysis. But it should be applied to the local HTML classifier. This CL makes that happen by reordering the analysis steps to do basic heuristics before the HTML classifier, because the heuristics need to compute the bar for interactability. With that bar computed, the parser additionally runs the HTML classifier on fields meeting that bar. Bug: 851808 Change-Id: I0e54b6c1c6387b6130d297131b0dcb83fe52e265 Reviewed-on: https://chromium-review.googlesource.com/1141873 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#576063}
Showing
Please register or sign in to comment