Closed Bug 263271 Opened 20 years ago Closed 20 years ago

Pop-Up blocking does not work for the onbeforeunload event

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 260385

People

(Reporter: wranlon, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

On the example page
http://www.whitefrost.com/reference/2004/10/06/window_test.html the
onbeforeunload event is set to invoke a function that will open a new window. 
Clicking the example link, entering a new URL, or closing the window if it was
opened in a tab will result in a new window being opened to www.mozilla.org

Reproducible: Always
Steps to Reproduce:
1. create an event handler for window.onbeforeunload
2. in the event handler, open a new window
3. navigate away from the example page, or closing the tab (at least one tab
must be open)

Actual Results:  
The window opens.

Expected Results:  
Blocked the window.

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