Open Bug 112296 Opened 23 years ago Updated 5 months ago

window.onfocus JS event goes in a loop

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect

Tracking

()

People

(Reporter: madhur, Unassigned)

References

Details

(Keywords: spec-needed, Whiteboard: domcore-bugbash-triaged)

Attachments

(1 file)

NS6.2 : 2001-10-22-0.9.4 branch build NS6.2.1 : 2001-11-26-6.2.1 rtm build window.onfocus JS event f=goes in a loop. see attached testcase.
Attached file testcase
*** This bug has been marked as a duplicate of 77271 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Please explain how this bug is a duplicate of bug 77271.
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
That's not a duplicate. Happens also on build: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a4pre) Gecko/2007040204 Minefield/3.0a4pre Please reopen this bug.
Reopening. This is still an issue. Tested on Win2k. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a4pre) Gecko/20070410 Minefield/3.0a4pre
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee: joki → events
Status: REOPENED → NEW
QA Contact: trix → ian
Assignee: events → nobody
QA Contact: ian → events
Component: Event Handling → User events and focus handling
Severity: normal → S3

Hi Simon, do you know what the expected behavior here?
:afarre pointed out that this doesn't seem to be specified explicitly per https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#simple-dialogs

Flags: needinfo?(zcorpan)
Whiteboard: domcore-bugbash-triaged

Right the spec doesn't say so much what alert does for focus, but it seems Firefox, Chrome and Safari agree to blur the tab and then fire focus when the dialog is closed. (In Chrome you need to switch to another tab and back in the test case to get the first focus event.)

Keeping NI to file a spec issue.

Flags: needinfo?(zcorpan)
Keywords: spec-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: