Views::Textfield: Prevent revealing password text.
Currently, the Yank command on Mac and the selection clipboard on Linux can reveal the text of an obscured/password Views::Textfield. This CL modifies Textfield::UpdateSelectionClipboard() to ensure that the selection clipboard is not modified for a password textfield. Textfield::ExecuteTextEditCommand(..) is also modified to only update the yank kill buffer for a non-password textfield. Unit tests which demonstrate the problem are also added. BUG=648511, 648509 Review-Url: https://codereview.chromium.org/2358463002 Cr-Commit-Position: refs/heads/master@{#419977}
Showing
Please register or sign in to comment