Closed
Bug 262957
Opened 20 years ago
Closed 20 years ago
Popup window appears when window/tab is closed
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 259117
People
(Reporter: u4664, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
At http://www.waffer.com/t.php, a JavaScript is run when the window (or tab)
containing that page is closed. This script causes a window to pop up.
Unfortunately, Firefox's popup blocker doesn't block this popup, although it
blocks another popup when the page is loaded.
Here's the <body> tag:
<body OnLoad="popup()" OnUnload="init()">
i.e. popup() is blocked, but not init().
I've included the JavaScript in the additional information/attachment.
Reproducible: Always
Steps to Reproduce:
1. Ensure that the popup window blocker is enabled in preferences.
2. Go to http://www.waffer.com/t.php in a new window or tab.
3. Close the window (or tab).
Actual Results:
A popup window appears when the window/tab is closed when the popup blocker is
enabled.
Expected Results:
The popup window blocker should prevent the window from popping up when the
parent window/tab is closed.
function popup() {
window.open("/fullpop.php?rurl=%2Fexitpage%2FGeneral.php", "exit",
"Height=1,Width=1" +
",left=1000,top=1000,scrollbars=yes,status=yes,toolbar=yes," +
"directories=yes,menubar=yes,location=yes,resizable=yes");
window.focus();
return true;
}
function init() {
window.focus();
window.open("/popup/popup.php?cat=", "",
"Height=400,Width=500");
window.focus();
}
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 259117 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•