Closed Bug 192454 Opened 22 years ago Closed 22 years ago

Window is focused again if onClick='window.open' & href='#foo'(anchor)

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: harunaga, Assigned: aaronlev)

References

()

Details

Attachments

(1 file)

<a href="#foo" onClick="window.open();"> causes opening a new window and focusing the old window that opened the new window. <a href="http://foo" onClick="window.open();"> causes opening a new window and focusing the new window that was opened, like as before, like as IE/NN4. Steps: 1. open the URL. 2. click <a href="#anchor" onClick="window.open('http://www.mozilla.org/');">. Actual: Old window is focused again. Expected: New window (http://www.mozilla.org/) should be focused, like as before, like as IE/NN4. Confirming with 2003020323/FreeBSD. 2003010701/FreeBSD doesn't have this problem, 2003011500/FreeBSD and 2003012508/WinNT have. 2003013003-MachO/MacOSX has no problem This problem began to occur between Jan 6 and Jan 15 on PC. Regression.
This works in build 2003-01-06-21 on Linux. It's broken in 2003-01-07-21... Nothing in there looks suspicious; he closest thing is bryner's guievent checkin....
aaronl's keydead patch (bug 110718) might have some bearing on this bug; it was checked in a couple of hours before the build date, I don't know how accurate those build dates are.
This is a result of the change aaronl made to nsEventStateManager::FocusElementButNotDocument() for bug 110718. -> aaronl
Assignee: jst → aaronl
Attachment #115962 - Flags: review?(bryner)
Comment on attachment 115962 [details] [diff] [review] This fixes the bug and still contains the necessary zombie doc fix makes sense to me.
Attachment #115962 - Flags: review?(bryner) → review+
Attachment #115962 - Flags: superreview?(jst)
Comment on attachment 115962 [details] [diff] [review] This fixes the bug and still contains the necessary zombie doc fix sr=jst
Attachment #115962 - Flags: superreview?(jst) → superreview+
checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
*** Bug 197856 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: