Closed Bug 163763 Opened 22 years ago Closed 22 years ago

onFocus event occurrence on window object is not consistent.

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 164686

People

(Reporter: desale, Assigned: joki)

Details

(Keywords: regression)

Attachments

(1 file)

onFocus event occurance on window object is not consistent. 

This one is regression. This was not happening on 2002-08-19-08-1.0

BUILDS IT STARTED OCCURING: 2002-08-20-08-1.0

STEPS TO REPRODUCE
1] Launch testcase I'm going to attach.
2] Click on this browser window [If it does not have focus by default]

EXPECTED RESULTS
We should see alert showing message "onfocus event triggered for new window"

ACTUAL RESULTS
Nothing happens.

####What do I mean by "onFocus event occurance on window object is not
consistent." ? ####

When you launch testcase, onFocus does NOT occur. If you play around with
browser window, giving focus to other window, then giving focus back to test
window, maximising, minimising, resizing the test window, at one point onFocus
Event will occur.
Attached file Testcase
changing QA contact
QA Contact: rakeshmishra → desale
If testcase I attached Works for you, then try testcase at 
http://bubblegum/browser/standards/events/JSevents_testcases/window_onfocus.html

Those are same testcases but show very unconsistant results. one or another fails.

Keywords: regression
The testcase I attached is working fine, but same testcase from 
http://bubblegum/browser/standards/events/JSevents_testcases/window_onfocus.html

is not working. Dont know why.
The attached testcase and the testcase on bubblegum (comment 4) work for me.
However in playing with this I did manage to find a set of reproducible
circumstances where focus and blur events are both lost. Closing in favour of
the reproducible bug.

*** This bug has been marked as a duplicate of 164686 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Summary: onFocus event occurance on window object is not consistent. → onFocus event occurrence on window object is not consistent.
Veriied Dupe
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: