New issue
Advanced search Search tips

Issue 610802 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Focus doesn't stay in the Omnibox URL upon selecting the chrome menu to copy/cut

Project Member Reported by pucchakayala@chromium.org, May 10 2016

Issue description

Chrome Version --> Version 52.0.2730.0 canary (64-bit)
OS: Windows & Cros

What steps will reproduce the problem?
1. Launch Chrome and navigate to any website.
2. Place the cursor in the omnibox and select the entire URL.
3. Try clicking on Chrome menu to select Cut/Copy/Paste to cut or copy the URL from the omnibox.
4. Verify

What is the expected output?
The URL should be still selected allowing user to select the Cut/Copy option from the chrome menu.

What do you see instead?
Selected URL focus is lost from the Omnibox.
User cannot either select copy or Cut from the chrome menu.

Please find the attached screen shots.



Please use labels and text to provide additional information.

 
Focus lost in Omnibox Actual.png
48.4 KB View Download
Focus in Omnibox Expected.png
150 KB View Download
Labels: Needs-Bisect ReleaseBlock-Beta
Good Build --> Version 52.0.2721.0
Bad Build --> Version 52.0.2727.0

Will provide the bisect details soon.
Labels: -Needs-Bisect
Owner: karandeepb@chromium.org
Status: Assigned (was: Untriaged)
Please find the bisect information below:

You are probably looking for a change made after 391737 (known good), but no lat
er than 391748 (first known bad).
CHANGELOG URL:
https://chromium.googlesource.com/chromium/src/+log/8a350376c9d1d5d00fe1e8d810d0d5167f374c1d..f00e71eb761f55d65e770fcf3dec1c7a28c0ec3f

Suspecting the following:
https://chromium.googlesource.com/chromium/src/+/24c156252c11425af51d646cd0d405f018c70bb8

@karandeep, can you please take a look at this issue ?
Labels: OS-Linux
Status: Started (was: Assigned)
Have confirmed my CL is the cause. A fix is under review - https://codereview.chromium.org/1963563002/
Project Member

Comment 4 by bugdroid1@chromium.org, May 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8c6b2ee186d786623f0e4cb6d05c08c934c0ff9b

commit 8c6b2ee186d786623f0e4cb6d05c08c934c0ff9b
Author: karandeepb <karandeepb@chromium.org>
Date: Mon May 16 01:14:44 2016

Views: Change View::RequestFocus to respect keyboard accessibility.

This CL fixes some regressions introduced in http://crrev.com/1894383002/. These
regression are caused due to the change in View::RequestFocus() from
IsFocusable() to IsAccessibilityFocusable().

On a mouse click on a CustomButton, CustomButton::MousePressed() requests focus
on the button, if it has request_focus_on_press_ set to true. It turns out that
most button subclasses, do not explicitly set request_focus_on_press_ to false,
which has a default value of true. These custom buttons which are accessibility
focusable, can now gain focus on a mouse press, hence the bug.

This CL changes View::RequestFocus to use IsFocusable when keyboard
accessibility is off (i.e on Non-Mac platforms), hence fixing bugs  609701 ,
610186, 610235, 610740, 610802, 610664. This is how View::RequestFocus behaved
before crrev.com/1894383002 on Non-Mac platforms. Also, on Mac, since
View::RequestFocus now respects keyboard accessibility,  bug 611280  is also
fixed.

BUG= 609701 ,  610186 ,  610235 ,  610740 ,  610802 ,  610664 ,  564912 ,  611280 

Review-Url: https://codereview.chromium.org/1973073003
Cr-Commit-Position: refs/heads/master@{#393781}

[modify] https://crrev.com/8c6b2ee186d786623f0e4cb6d05c08c934c0ff9b/chrome/browser/ui/views/tabs/tab_unittest.cc
[modify] https://crrev.com/8c6b2ee186d786623f0e4cb6d05c08c934c0ff9b/ui/views/focus/focus_manager.cc
[modify] https://crrev.com/8c6b2ee186d786623f0e4cb6d05c08c934c0ff9b/ui/views/focus/focus_manager_unittest.cc
[modify] https://crrev.com/8c6b2ee186d786623f0e4cb6d05c08c934c0ff9b/ui/views/view.cc

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Chrome:52.0.2739.0/OS:8350.0.0

Sign in to add a comment