Closed
Bug 297020
Opened 20 years ago
Closed 20 years ago
window.close() should close its tab when multiple tabs open
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 183697
People
(Reporter: wallfur+mozbugz, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
when i have multiple tabs open, pages that have buttons, links, etc. that invoke
the javascript window.close() function, the tabbed window that contains that
function should close but it does nothing. (presumably to stop one tab from
closing many others without confirmation.)
Reproducible: Always
Steps to Reproduce:
1. open a page in one tab.
2. in the same firefox window, open a new tab with a page that has a button/link
that invokes window.close()
3. click that button/link.
Actual Results:
nothing happens.
Expected Results:
current tab should close bringing focus to next tab.
Comment 1•20 years ago
|
||
Javascript is not permitted to close windows it didn't open.
*** This bug has been marked as a duplicate of 183697 ***
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.
Description
•