Closed Bug 370338 Opened 18 years ago Closed 18 years ago

2 popups when popup launched from onblur

Categories

(SeaMonkey :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 58440

People

(Reporter: csthomas, Unassigned)

References

()

Details

Attachments

(3 files)

The testcase in the URL field results in 2 popups. I thought it only worked if you don't force new windows into tabs, but asrail says that's not needed. Steps to reproduce: Load the testcase in a tab. Click somewhere in the page. Focus something else (for example, switch to another tab).
I have some strange behaviour from this bug. Testing on SM1.1, with a clean profile, I don't reproduce it with that data URI. I only can reproduce when setting dom.disable_open_during_load to false. I can reproduce it when viewing a web-page with that code and the host is allowed.
This is the stack from the second window opening. The first window opening seems to trigger another event that results in the second window. The first ::OpenWindowJS call is at frame 59
The bug also occurs with a less exciting event handler. This is the stack for the first call to SetInnerHTML data:text/html,<body id="body" onblur="document.getElementById('body').innerHTML+='asdf<br>';">asdf<br></body>
And the second stack for innerHTML. The primary difference is that ::PreHandleEvent has advanced to line 1120. http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/content/events/src/nsEventStateManager.cpp&rev=1.690&mark=1114,1119#1111
old bug, apparently
Status: NEW → RESOLVED
Closed: 18 years ago
OS: Windows XP → All
Resolution: --- → DUPLICATE
Version: 1.8 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: