Issue metadata
Sign in to add a comment
|
MacViews: Text input for password textfield does not work. |
||||||||||||||||||||
Issue descriptionVersion: 53.0.2775.0 OS: Mac What steps will reproduce the problem? (1) Enable MacViews. (2) Open http auth dialog. (3) Move focus to password field. (4) Enter some text. What is the expected output? Text is entered as password in textfield. What do you see instead? No text is entered. This possibly regressed in crrev.com/2033433006. Since for password textfields, input context is nil, insertText is called. Since instead of sending the input to the text input client, a KeyDownEvent is generated, no text is input.
,
Jun 30 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/25492d28991f4cd464c8d8ab728e548ae735b8a2 commit 25492d28991f4cd464c8d8ab728e548ae735b8a2 Author: karandeepb <karandeepb@chromium.org> Date: Thu Jun 30 08:06:50 2016 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. Review-Url: https://codereview.chromium.org/2096363002 Cr-Commit-Position: refs/heads/master@{#403117} [modify] https://crrev.com/25492d28991f4cd464c8d8ab728e548ae735b8a2/ui/views/cocoa/bridged_content_view.mm [modify] https://crrev.com/25492d28991f4cd464c8d8ab728e548ae735b8a2/ui/views/controls/textfield/textfield_unittest.cc
,
Jun 30 2016
,
Jul 7 2016
Verified the fix as per the test steps in C#2 on chrome version: 53.0.2785.8 on Mac OS 10.11.5. Text entered in the password field is entered as password. Attached is the screenshot of the same. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by bugdroid1@chromium.org
, Jun 30 2016