New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 701530 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Oct 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Focus in two place at the same time

Reported by kang...@gmail.com, Mar 14 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
Reproduced here: https://jsfiddle.net/5w3Ly5pc/2/
Follow the steps on the right.

What is the expected behavior?
Focus should only be on the button.

What went wrong?
Focus is on the button but subsequent keypress gets directed to the input element.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.87  Channel: n/a
OS Version: 6.3
Flash Version: 

This is a resubmission of an existing report, but the old report has been archived as "unconfirmed" and it does not appear that it will be looked at again. The linked JSFiddle should confirm the issue.
 
Labels: Needs-Milestone

Comment 2 by hdodda@chromium.org, Mar 15 2017

Cc: hdodda@chromium.org
Labels: -Needs-Milestone M-59 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Tested on windows 7 , 10 & 8.1 , mac os 10.12.2 , ubuntu 14.04 using latest chrome  stable M57 #57.0.2987.98 and chrome canary M59 #59.0.3041.0 and issue is reproduced.

Attached screencast for reference.

Issue is seen from M40 #40.0.2172.0 and is a non-regression issue.

Marking it as untraiged for further inputs on this.

Thanks!
701530.mp4
2.7 MB View Download

Comment 3 by kochi@chromium.org, Mar 16 2017

Components: Blink>Editing>Selection
Status: Available (was: Untriaged)
Here's a copy from the instruction in the linked jsfiddle:

1 First select the text in input element[1].
2 Then click the button[3] below the "box" (which is an iframe). The click handler transfers focus programatically to button in iFrame[2].
3 Press space bar or enter key to trigger click handler for the button in the iFrame[2].
4 Note that the target element for the keydown event captured at document level is BUTTON[2].
5 This confirms the focus is actually on the button.
6 However, Issue #1: The text in the input element[1] is selected with a blue background not gray.
7 Type a letter.  Issue #2 : Notice that it appeared appear in the input element[1]!
8 Also notice that the blue focus highlighting on the button is now gone but...
9 The target element for the keydown event is still BUTTON[2]!
10 Type another letter. It also appears in the input element but now the target element for the keydown event is (correctly) the input element[1].
11 Pressing space bar / enter key no longer triggers the button[2] click confirming it no longer has focus.

There are 2 issues reported in this (in item 6 and 7).

- Issue #1: The text in the input element[1] is selected with a blue background not gray.
-  Issue #2 : Notice that it appeared in the input element[1]

I tried M57 on Linux, and confirmed #1, but not #2.
The video on comment #2 seems only tested #1.

On windows with M56, I could reproduce #2.
I retried with M57 and #2 was not reproducible.

From these above I conclude #1 is the only problem and #2 was fixed during
M57 development.  kang...@, if you could confirm the  issue #2  is fixed
once you get your Chrome updated to M57, it's much appreciated.

Thanks for the report!

Comment 4 by kang...@gmail.com, Mar 16 2017

Confirmed  issue #2  is fixed with M57.
Thank you!
Components: Blink>HTML>Focus
Components: -Blink>Focus

Comment 7 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 8 by sheriffbot@chromium.org, Oct 4

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Fixed (was: Untriaged)
Mark fixed per #c4 and confirmed with M69.

Sign in to add a comment