Closed
Bug 212348
Opened 23 years ago
Closed 17 years ago
JSP - close.window no longer works from JSP
Categories
(Core :: Security, defect)
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>
Comment 1•23 years ago
|
||
must be a security enhancement, see JavaScript console:
"Scripts may not close windows that were not opened by script."
Comment 2•23 years ago
|
||
over to security
Assignee: saari → security-bugs
Component: DOM Events → Security: General
QA Contact: desale → carosendahl
Comment 3•20 years ago
|
||
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/
| Reporter | ||
Comment 4•20 years ago
|
||
A javascript W3C standards thing.
Scripts may not close windows that were not opened by script.
Updated•19 years ago
|
Assignee: security-bugs → dveditz
QA Contact: carosendahl → toolkit
Updated•17 years ago
|
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.
Description
•