Closed Bug 212348 Opened 23 years ago Closed 17 years ago

JSP - close.window no longer works from JSP

Categories

(Core :: Security, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: howardw, Unassigned)

References

()

Details

(Whiteboard: invalid?)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 From Mozilla 1.4 and Netscape 7.1 close.window no longer works from a JSP. close.window appears to work fine from a general html doc. Netware 6 includes a product called Remote Manager, its exit button uses the same technique, it does not work anymore either. <% out.println("<a href=\"#\" onclick=\"window.close();\">Exit Corporate</a>"); %> In Mozilla 1.3 and Netscape 7.02 it would close the window, or tab if multiple tabs were open. Reproducible: Always Steps to Reproduce: 1. visit the included link 2. test included jsp 3. Actual Results: No response from Mozilla. It treated the window.close link as an empty link. Expected Results: The window or tab should have closed. JSP page: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Corporate Home Page </title> <link rel="stylesheet" type="text/css" href="/esgw/css/esgwCorp.css" media="screen" /> </head> <body text="#000000"> <br /><br /><center> <% out.println("<a href=\"#\" onclick=\"window.close();\">Exit Corporate</a>"); %> <br /><br /></center> </body> </html>
must be a security enhancement, see JavaScript console: "Scripts may not close windows that were not opened by script."
over to security
Assignee: saari → security-bugs
Component: DOM Events → Security: General
QA Contact: desale → carosendahl
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
A javascript W3C standards thing. Scripts may not close windows that were not opened by script.
Assignee: security-bugs → dveditz
QA Contact: carosendahl → toolkit
invalid?
Whiteboard: invalid?
Assignee: dveditz → nobody
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.