Closed Bug 440639 Opened 16 years ago Closed 16 years ago

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

Categories

(Firefox :: Tabbed Browser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: inbelief, Unassigned)

References

()

Details

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
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.