Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 67539

Summary: [Webapp] script error following Eclipse Javadoc links to JDK 1.4 javadoc
Product: [Eclipse Project] Platform Reporter: Jim des Rivieres <jeem>
Component: User AssistanceAssignee: platform-ua-inbox <platform-ua-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: hiroyuki.inaba, hudsonr, steven.wasleski
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Jim des Rivieres CLA 2004-06-16 17:00:46 EDT
Build 3.0RC2
IE 6.0.2800.1106.xpsp2.030422-1633

1. In the Platform Plug-in Developer Guide, navigate to Reference / API 
Reference.
2. Select link to package org.eclipse.core.runtime
3. Select link to class Platform
4. Select link to Object

Observe: The correct page is shown. However, I'm consistently getting an error 
dialog:
"An error has occurred in the script on this page.
Line: 26
Char: 5
Error: Access is denied
Code: 0
URL: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html
"

The script it's referring to is:
<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="Object (Java 2 Platform SE v1.4.2)";
}
</SCRIPT>

The problem does not show up in Eclipse 2.1.2, where the link is to the JDK 
1.3 Javadoc which does seems to not have <SCRIPT> elements.
Comment 1 Konrad Kolosowski CLA 2004-06-16 19:41:09 EDT
There is no easy way to fix it in Eclipse, other than show Sun's Javadoc 
(only) in its own browser (which is also not easy).
The code parent.document.title="Object (Java 2 Platform SE v1.4.2)";
in Sun's Javadoc is incorrect.  The Sun's Javadoc is loaded in its own frame, 
and there is no access between help frames and this document since they are 
from different domains.  The problem is within Sun's Javadoc, with this code 
their documentation cannot be displayed in foreign frameset without error.

This can be reproduced without help system:
Right click some plug-in project, choose export, chose javadoc, click next, in 
the list of referenced archvies select "rt.jar - 
http://java.sun.com/j2se/1.4.2/docs/api" item, click next, make sure "Open 
generated index file in browser" is selected, click finish.
In the browser opened, pick some class, then a parameter or superclass that is 
part of JRE (Object for example).  Result - document loads with the same error 
dialog as Jim saw.
Comment 2 Randy Hudson CLA 2004-08-09 10:11:50 EDT
*** Bug 71648 has been marked as a duplicate of this bug. ***
Comment 3 Hiroyuki Inaba CLA 2007-12-12 01:06:43 EST
A similar problem occurred in Eclipse 3.3. 

Step:
1. Open Help Window
2. Expand "JDT Plag-in Developer Guide"
   > Reference > APT API Reference
3. Click com.sun.mirror.apt
4. Click "FRAMES" in the right javadoc page

It doesn't adjust to JavaScript on the frame page of javadoc made 
with Sun's JDK 5. 

<FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()">
<FRAMESET rows="30%,70%" title="" onLoad="top.loadFrames()">
<FRAME src="overview-frame.html" name="packageListFrame" title="All Packages">
  :
  :

There is no loadFrames function in the top object in Eclipse Help Window. 

The problem that I detected by describing the loadFrames function
in index.jsp of org.eclipse.help.webapp plug-in will be able to be evaded.
Comment 4 Eclipse Genie CLA 2018-10-13 13:38:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Lars Vogel CLA 2019-09-02 15:01:46 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.
Comment 6 Lars Vogel CLA 2019-09-02 15:13:38 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.