Open Bug 544923 Opened 11 years ago Updated 3 years ago
.close() should work for browser windows created from the command line
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/20100104 SeaMonkey/2.0.2 Build Identifier: In windows not opened by scripts, calling window.close() leads to this error: Scripts may not close windows that were not opened by script. There should be an exception to this rule for windows created by invoking the browser from the command line, perhaps with a command-line switch. This will assist development of programs which use the browser as their GUI. Reproducible: Always Steps to Reproduce: 1. run "firefox myfile.html" 2. myfile.html contains: <button onClick="window.close()">Close</button> 3. click button Actual Results: JS Error: Scripts may not close windows that were not opened by script. Expected Results: Window closes
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.