Version: 3.2.0 (using KDE 3.2.90 (CVS >= 20040117), compiled sources) Compiler: gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-3mdk) OS: Linux (i686) release 2.6.1-1mdk If the document in a URL from the command line tries to execute window.close(), the window would immidietly close with out a confirmation dialog. IMO this should work exactly as if the user opened a browser window and then typed the URL in the location bar - in which case a confirmation dialog "do you want to close this window" will popup.
Just a note: might this be related to Bug 76104 ?
any chance of a testcase?
Test case: <script> window.close() </script>
Apparently if you open a page from command line, and from that page navigate (using links) to another page which attempts to close the browser - the notification dialog does show up. I'm pretty sure it was done on purpose, but I don't understand that purpose. For reference, try to load http://www.geek.co.il/test1.html from the command line, and then try to load http://www.geek.co.il/test2.html directly.
Created attachment 17302 [details] Navigate to the next page
Created attachment 17303 [details] close the window
Bug fixed on 3.5.9 AND 4.1 (trunk r802881)