Closed Bug 260581 Opened 21 years ago Closed 21 years ago

Don't block popup window while unload the page

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 260385

People

(Reporter: avava, Assigned: bugzilla)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040911 Firefox/0.10 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040911 Firefox/0.10 If there are a onbeforeunload property in <body> tag that use a javascript to open a new window so this new window is opened right after the tab closing (or user move to new link). I think it is a kind of pop-up window and should be blocked. Reproducible: Always Steps to Reproduce: 1. Create a page with code <body onbeforeunload =" myPopUp();"> <script language=JavaScript> function myPopUp() {myWindow=window.open('http://www.mozilla.org/','windowName');} </script> </body> 2. Open this page in Firefox 3. Go to some another link Actual Results: New window with www.mozilla.org is opened Expected Results: No new window appeared
Attached file Reporters testcase
Firefox fails in blocking the popup. Using 20040920 branch build that has the fix in bug 259117.
Keywords: testcase
*** This bug has been marked as a duplicate of 260385 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Verified duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: