New issue
Advanced search Search tips

Issue 847843 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 666205
Owner: ----
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

window.alert mess up focus status

Reported by jeromin....@gmail.com, May 30 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3438.3 Safari/537.36

Steps to reproduce the problem:
1. load test case (optionally open dev tools)
2. focus input
3. switch via alt-tab to another window

What is the expected behavior?
The Javascript has on 'blur' a call to window.alert(). 

After clicking 'OK' the input state should still be blurred.

What went wrong?
Clicking 'OK' the input gets an 'focus' event again, followed by another 'blur' event. This second blur triggers an alert and we have an endless loop.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 68.0.3438.3  Channel: dev
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
bug_focus.html
422 bytes View Download
Components: Blink>HTML>Focus

Comment 2 by phistuck@gmail.com, May 30 2018

Probably another instance of  issue 666205 .
In short, stop using alert...
Labels: Needs-Triage-M68

Comment 4 by tkent@chromium.org, May 31 2018

Mergedinto: 666205
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment