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

Issue 2096363002: MacViews: Fix text input for password textfields. (Closed)

Created:
4 years, 5 months ago by karandeepb
Modified:
4 years, 5 months ago
Reviewers:
tapted, msw
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@password_text_fix
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Fix text input for password textfields. crrev.com/2033433006 modified insertText handlers on BridgedContentView to correctly handle space key events and simplify menu dispatch. However this broke text input for password textfields. This CL fixes the issue by introducing a new private method insertTextInternal: on BridgedContentView, which is used by both insertText: and insertTextReplacementRange:. Furhter, another private method activeMenuController: is added to retreive the currently active menu controller. A textfield test is also added which fails on MacViews for the current master. This CL is dependent on http://crrev.com/2095283002. BUG=623036 TEST=Enable Macviews. Open an http auth dialog (Go to httpwatch.com/httpgallery/authentication/ and click on Display Image button). Move focus to password textfield and ensure text input works correctly. Committed: https://crrev.com/25492d28991f4cd464c8d8ab728e548ae735b8a2 Cr-Commit-Position: refs/heads/master@{#403117}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Rebase. #

Patch Set 4 : Address review comments. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -36 lines) Patch
M ui/views/cocoa/bridged_content_view.mm View 1 9 chunks +61 lines, -36 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (10 generated)
karandeepb
PTAL Trent.
4 years, 5 months ago (2016-06-29 01:44:10 UTC) #6
tapted
lgtm https://codereview.chromium.org/2096363002/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2096363002/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode241 ui/views/cocoa/bridged_content_view.mm:241: // Helper method which forwards |text| to active ...
4 years, 5 months ago (2016-06-29 07:29:34 UTC) #7
karandeepb
https://codereview.chromium.org/2096363002/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2096363002/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode241 ui/views/cocoa/bridged_content_view.mm:241: // Helper method which forwards |text| to active menu ...
4 years, 5 months ago (2016-06-29 08:00:09 UTC) #8
karandeepb
+msw for ui/views/controls/textfield/textfield_unittest.cc review.
4 years, 5 months ago (2016-06-29 08:01:01 UTC) #10
msw
lgtm with minor comment. https://codereview.chromium.org/2096363002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/2096363002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode961 ui/views/controls/textfield/textfield_unittest.cc:961: SendKeyEvent('a'); Use ui::VKEY_A here, etc. ...
4 years, 5 months ago (2016-06-29 17:26:40 UTC) #11
karandeepb
https://codereview.chromium.org/2096363002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/2096363002/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode961 ui/views/controls/textfield/textfield_unittest.cc:961: SendKeyEvent('a'); On 2016/06/29 17:26:40, msw wrote: > Use ui::VKEY_A ...
4 years, 5 months ago (2016-06-30 06:03:24 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/2096363002/120001
4 years, 5 months ago (2016-06-30 07:22:30 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-06-30 08:07:24 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 08:07:26 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 08:10:16 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/25492d28991f4cd464c8d8ab728e548ae735b8a2
Cr-Commit-Position: refs/heads/master@{#403117}

Powered by Google App Engine
This is Rietveld 408576698