Closed Bug 192564 Opened 22 years ago Closed 22 years ago

the javascript: close does not close the window of the enlarged photo

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: koc, Assigned: jst)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.1) Gecko/20020826 Build Identifier: Mozilla 1.2.1 Javascript methods embedded on web pages should work. They do not. Reproducible: Always Steps to Reproduce: 1. Open a web page that has a simple javascript method such as <a href="javascript:self.close();">Close</a> on it. 2. Click Close Actual Results: Nothing Expected Results: Window should close. Javascript console constantly reports errors even on a page that has no javascript, rendering it useless.
wfm with win2k build 20030210.. why should this block Mozilla development ? -> normal
Severity: blocker → normal
WFM 1.3b/OS X [2003021017]
Is the window that calls window.close() opened by the web site, or by the user?
This is per design: Scripts may not close windows that were not opened by script. This can be permitted in a given profile by setting |user_pref("dom.allow_scripts_to_close_windows", true);| in prefs. js, but you must shut down the browser before editing that file, or the changes will be overwritten.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
*** Bug 276662 has been marked as a duplicate of this bug. ***
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.