Closed
Bug 260581
Opened 21 years ago
Closed 21 years ago
Don't block popup window while unload the page
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 260385
People
(Reporter: avava, Assigned: bugzilla)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
452 bytes,
text/html
|
Details |
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
Comment 1•21 years ago
|
||
Firefox fails in blocking the popup. Using 20040920 branch build that has the
fix in bug 259117.
*** This bug has been marked as a duplicate of 260385 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•