Closed Bug 253522 Opened 20 years ago Closed 20 years ago

window.close() should close tab

Categories

(Firefox :: Tabbed Browser, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 190752

People

(Reporter: dragoran, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7) Gecko/20040626 Firefox/0.9.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7) Gecko/20040626 Firefox/0.9.1

When Firefox is running in single window mode a webpage cannot close the tab
using window.close() ex: when it trys to close a screenshot that should be
opened in a new window.

Reproducible: Always
Steps to Reproduce:
1. Write a html page with with a window.close() or self.close() link
2. open it in a tab
3. click on the link 
4. .....

Actual Results:  
nothing

Expected Results:  
tab should be closed

N/A
Only windows opened with Javascript can be closed, check the javascript console
and  you will see a message when you try to close a window not opened by javascript.

*** This bug has been marked as a duplicate of 190752 ***
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.