commit | abceec3a7429ced8bab04bec10fa7fb9ceac3d0d | [log] [tgz] |
---|---|---|
author | Vaclav Brozek <vabr@chromium.org> | Wed May 30 15:44:13 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed May 30 15:44:13 2018 |
tree | 3081f95833b3dd6f7bd6033ea2749b362e9c9f4c | |
parent | a47261537da72552194819a7cfa32957b0d1e157 [diff] |
Convert GetPasswordForm to work with FormData GetPasswordForm parses web forms into PasswordForms. So far, it takes as input the DOM elements directly. This makes it necessary to run the parsing in renderer. In the future, parsing should be run in browser, for various reasons. The browser process can only work with an abstraction of the DOM elements, captured in FormData and FormFieldData. This abstraction is already computed at the time GetPasswordForm is run, and contains enough information to replace the direct access to DOM elements. The only exception is the HTML-based username detector, which may require richer information in the future and should thus stay in the renderer process. Therefore this CL translates the code of GetPasswordForm to deal with FormData instead of DOM elements, with the notable exception of the HTML-based username detector. Bug: 833838 Change-Id: I75c1dcc932511539d84559d6813ef53f4ee210c2 Reviewed-on: https://chromium-review.googlesource.com/1032789 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by: Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#562846}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .