commit | edbec47aaaa06561b562f3fa8985c00c0e2d9f51 | [log] [tgz] |
---|---|---|
author | Vadym Doroshenko <dvadym@chromium.org> | Wed Jan 23 17:24:06 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 23 17:24:06 2019 |
tree | 9ceba2b7f9f5194722ac0912d7c4d45bf65fb1fd | |
parent | 170fba4c060fedabf9e23394d851e180a7163dfa [diff] |
Create missing NewPasswordFormManager during provisionally saving. The normal flow: 1.A form is loaded on a page, NewPasswordFormManager is created. 2.The form is submitted (by the user or by JavaScript) 3.The submitted data are saved provisionally in the corresponding NewPasswordFormManager 4.The form is disappeared from the page (that's considered as submission success criteria), the proviosionally saved data are used for offering saving. But in principle, step 1 might be missing, for example when JavaScript creates a dummy form, copies user typed credentials to the form and submits the form. This CL ensures, that we will save even in that case, by creating NewPasswordFormManager in step 2, if it is not created yet. Bug: 831123 Change-Id: I17b9d42d6ed4bb2daf2f052e84b376490f556bc8 Reviewed-on: https://chromium-review.googlesource.com/c/1392088 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by: Maxim Kolosovskiy <kolos@chromium.org> Cr-Commit-Position: refs/heads/master@{#625244}
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 .