-
Bug
-
Resolution: Duplicate
-
P2
-
5.0
-
x86
-
windows_2000
FULL PRODUCT VERSION :
1.5.0
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
The following line of script (or similar) is contained in every html document generated by Javadoc which is loaded into the standard frameset:
parent.document.title="Object (Java 2 Platform SE 5.0)";
This is true, for example, for documentation found on
http://java.sun.com/j2se/1.5.0/docs/api
When the frameset and all frame documents are from the same server, this is no problem.
But when the -link or -linkoffline options have been used to link to another server this causes a permission problem, which the browser reports as an error.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
(1) Create an API documentation which uses the -link option to link to
http://java.sun.com/j2se/1.5.0/docs/api.
(2) Load index.html and navigate to any class documentation.
(3) Follow the link to the Object class.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The API documentation of the Object class should show up in the frameset.
ACTUAL -
The browser (Internet Explorer) shows a popup error message:
Permission denied.
[ Please make sure that you have scripting error messages enabled in the browser! ]
ERROR MESSAGES/STACK TRACES THAT OCCUR :
see above
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
not applicable
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
The doclet should generate the following SCRIPT code (for example):
try {
parent.document.title="Object (Java 2 Platform SE 5.0)";
}
catch(e) { /* do nothing */ }
###@###.### 2005-04-21 23:57:04 GMT
1.5.0
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
The following line of script (or similar) is contained in every html document generated by Javadoc which is loaded into the standard frameset:
parent.document.title="Object (Java 2 Platform SE 5.0)";
This is true, for example, for documentation found on
http://java.sun.com/j2se/1.5.0/docs/api
When the frameset and all frame documents are from the same server, this is no problem.
But when the -link or -linkoffline options have been used to link to another server this causes a permission problem, which the browser reports as an error.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
(1) Create an API documentation which uses the -link option to link to
http://java.sun.com/j2se/1.5.0/docs/api.
(2) Load index.html and navigate to any class documentation.
(3) Follow the link to the Object class.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The API documentation of the Object class should show up in the frameset.
ACTUAL -
The browser (Internet Explorer) shows a popup error message:
Permission denied.
[ Please make sure that you have scripting error messages enabled in the browser! ]
ERROR MESSAGES/STACK TRACES THAT OCCUR :
see above
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
not applicable
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
The doclet should generate the following SCRIPT code (for example):
try {
parent.document.title="Object (Java 2 Platform SE 5.0)";
}
catch(e) { /* do nothing */ }
###@###.### 2005-04-21 23:57:04 GMT
- duplicates
-
JDK-4855876 JavaScript error (bug 4645058) still exists in IE 6
- Resolved