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

Issue 835964 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

document.activeElement gets stuck after calling focus() on an iframe

Reported by k...@airtable.com, Apr 23 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce the problem:
1. Open the test page.
2. Click "Focus frame A" button, which calls focus() on the first iframe
3. Click on the second iframe.

What is the expected behavior?
Clicking on the second iframe should change the parent page's document.activeElement to be the second iframe. Note that after clicking on the second iframe, the second iframe does have focus, since Cmd+A will select all the text in the second iframe.

Firefox behaves correctly. Safari has the same issue as Chromium.

What went wrong?
After calling focus() on an iframe element, clicking into other iframes doesn't change the parent page's document.activeElement value.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 66.0.3359.117  Channel: stable
OS Version: OS X 10.13.4
Flash Version:
 
iframe.html
720 bytes View Download
Labels: Needs-Triage-M66
Components: Blink>HTML>IFrame
Labels: M-68 Triaged-ET FoundIn-68 Target-68 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on reported version 66.0.3359.117 and latest canary 68.0.3404.0 using Windows 10, Mac 10.12.6 and Ubuntu 14.04. As this issue is seen from M-60(60.0.3112.0). Hence considering this issue as Non-Regression and marking as Untriaged.

Thanks!

Comment 3 by tkent@chromium.org, May 1 2018

Cc: kochi@chromium.org
Components: Blink>HTML>Focus
Labels: -M-68 -Target-68 -Needs-Triage-M66
Status: Available (was: Untriaged)

Sign in to add a comment