Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Issue 2358463002: Views::Textfield: Prevent revealing password text. (Closed)

Created:
4 years, 3 months ago by karandeepb
Modified:
4 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/27bac7b1a96717471167acd71d9d8aa5624fa904 Cr-Commit-Position: refs/heads/master@{#419977}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address review comments. #

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -8 lines) Patch
M ui/views/controls/textfield/textfield.h View 3 chunks +6 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.cc View 1 3 chunks +9 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 2 chunks +54 lines, -1 line 0 comments Download

Messages

Total messages: 26 (16 generated)
karandeepb
PTAL pkasting@. Thanks.
4 years, 3 months ago (2016-09-20 07:32:18 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_model.cc#newcode352 ui/views/controls/textfield/textfield_model.cc:352: // |add_to_kill_buffer| should never be true for an ...
4 years, 3 months ago (2016-09-20 17:29:30 UTC) #11
karandeepb
https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_model.cc#newcode352 ui/views/controls/textfield/textfield_model.cc:352: // |add_to_kill_buffer| should never be true for an obscured ...
4 years, 3 months ago (2016-09-21 03:36:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2358463002/80001
4 years, 3 months ago (2016-09-21 03:37:30 UTC) #15
Peter Kasting
https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode2085 ui/views/controls/textfield/textfield_unittest.cc:2085: textfield2->SetTextInputType(ui::TEXT_INPUT_TYPE_PASSWORD); On 2016/09/21 03:36:12, karandeepb wrote: > On 2016/09/20 ...
4 years, 3 months ago (2016-09-21 04:12:30 UTC) #16
karandeepb
On 2016/09/21 04:12:30, Peter Kasting wrote: > https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc > File ui/views/controls/textfield/textfield_unittest.cc (right): > > https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode2085 ...
4 years, 3 months ago (2016-09-21 04:19:10 UTC) #18
karandeepb
https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/2358463002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode2085 ui/views/controls/textfield/textfield_unittest.cc:2085: textfield2->SetTextInputType(ui::TEXT_INPUT_TYPE_PASSWORD); On 2016/09/21 04:12:30, Peter Kasting wrote: > On ...
4 years, 3 months ago (2016-09-21 04:27:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2358463002/100001
4 years, 3 months ago (2016-09-21 04:28:00 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 3 months ago (2016-09-21 05:14:59 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 05:16:46 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/27bac7b1a96717471167acd71d9d8aa5624fa904
Cr-Commit-Position: refs/heads/master@{#419977}

Powered by Google App Engine
This is Rietveld 408576698