The tab page response nothing after click the button "close window".

RESOLVED INVALID

Status

()

RESOLVED INVALID
11 years ago
10 years ago

People

(Reporter: inbelief, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0

The javascript:window.close()can't close a tab page.

Reproducible: Always

Steps to Reproduce:
1. Visit www.amazon.com, select any product
2. Right click the product picture, and select "open link in new tab".
3. Then the page is opened in a new tab.
4. Click button "close button", nothing happens.
Actual Results:  
No response after click the button.

Expected Results:  
Close the tab page or promote user to decide whether to close whole window or the tab.
Only pages opened by javascript can be closed with javascript, that's the current security policy as i understand it.

see http://developer.mozilla.org/en/docs/DOM:window.close

(you should also see an error in the console saying as much).
->INVALID per comment 1
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.