Closed Bug 245975 Opened 20 years ago Closed 20 years ago

window.close() of javascript is not closing the browsers

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 183697

People

(Reporter: jaffar, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514

A page containing a button "Close" close the window, which was opened by the
user. When i click on the "Close" button, it is not closing the window. it shows
a  warning in the Javascript Console as "Scripts may not close the windows that
are not opened by the script".



Reproducible: Couldn't Reproduce
Steps to Reproduce:
1.Create a page with a button
2.add "Javascript:window.close()" script to that button

Actual Results:  
window is not closed

Expected Results:  
Window to be close
Just like the error says.  If the window wasn't opened by a Javascript, then
window.close is not allowed to close it.

This is the correct behavior and by design.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: window.close() of javascript is not closing the browsers → window.close() of javascript is not closing the browsers
Product: Browser → Seamonkey
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 183697 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.