commit | f69d6349c5e6be22df72d21b1f9f883ac9350870 | [log] [tgz] |
---|---|---|
author | Vadym Doroshenko <dvadym@chromium.org> | Mon Jan 08 09:20:37 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jan 08 10:26:51 2018 |
tree | 03b3dc7f13c5e7445fd86a80b798bab4ae775e0f | |
parent | 300d8f307e5d29fb1bffcb568438ade5623453dc [diff] |
Do not reveal username value till user gesture. Passwords are not available for a page till user gesture. But for usernames it was not implemented. This patch implements this: use SetSuggestedValue for username and register username_element to gatekeeper, which manages revealing the input suggested value to JS after user action. Along the way, a small improvement was implemented, setting the username value only in one place which simplifies the code. Bug: 798492 Change-Id: Ib37637dd861f44b94674c6d0060ebc91dfd73cff Reviewed-on: https://chromium-review.googlesource.com/850394 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by: Dominic Battré <battre@chromium.org> Cr-Commit-Position: refs/heads/master@{#527598}
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 .