Closed Bug 265886 Opened 20 years ago Closed 20 years ago

window.open skips popup manager if opened from onBeforeUnload

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 260385

People

(Reporter: lester, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

This was annoying, closing a window opened a new one, even though I have popups
blocked.

Tracked the problem to:
<body style="margin: 0px; text-align: center;" onload="init ();"
onbeforeunload="open_woo();">

with open_woo being:
function open_woo () { window.open ('http://www.wanadoo.es', 'woo', ''); }

I don't know if this is how it should work, but nonetheless it's annoying.  In
fact it's the first unwanted window I've ever seen in a very long time.

Please check this.  I know there will be no way to know if the window was
blocked, but we could use an alert or something.  If everybody knew about this,
the popup blocker function wouldn't work at all.

Reproducible: Always
Steps to Reproduce:
1. Go to http://html.rincondelvago.com/citologia_2.html
2. Close the window


Actual Results:  
A new window opened (a popup if you want to look it that way)

Expected Results:  
It should have closed the window and nothing else.
this will be fixed in the next firefox release

*** This bug has been marked as a duplicate of 260385 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.