Closed
Bug 72473
Opened 24 years ago
Closed 24 years ago
GetURL does not work as expected
Categories
(Core Graveyard :: Java: OJI, defect)
Core Graveyard
Java: OJI
Tracking
(Not tracked)
People
(Reporter: steve.katz, Assigned: serhunt)
Details
Attachments
(1 file)
|
1.53 KB,
application/octet-stream
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; SunOS 5.8 sun4u; en-US; m18) Gecko/20001204
Netscape6/6.0
BuildID: Netscape 6
This bug was originally reported against the plugin in Sun's bug tracking system
(4420501). I am moving it here because I have confirmed that the appropriate
API call is being made with the appropriate paramaters. In other word, "It's a
Netscape problem"
Reproducible: Always
Steps to Reproduce:
/**********************showdoc.java************************************/
Code Example
------------
import java.applet.Applet;
import java.applet.AppletContext;
import java.io.PrintStream;
import java.net.URL;
import javax.swing.JApplet;
public class showdoc extends Applet
{
String code_base = null;
public showdoc()
{
}
public void init()
{
System.out.println("Go...");
try
{
System.out.println("codeBase: " + getCodeBase());
code_base = getCodeBase().toString();
System.out.println("codeBase: " + code_base);
getAppletContext().showDocument(
new URL(code_base + "/test1.html"), "Alpha");
getAppletContext().showDocument(
new URL(code_base + "/test2.html"), "Beta");
getAppletContext().showDocument(
new URL(code_base + "/test3.html"), "Delta");
getAppletContext().showDocument(
new URL(code_base + "/test4.html"), "Gamma");
}
catch(Exception e)
{
e.printStackTrace();
}
System.out.println("Done.");
}
}
/**********************end showdoc.java********************************/
/********************test.html*****************************************/
<HTML>
<HEAD>
<TITLE> ShowDocument Test</TITLE>
</HEAD>
<APPLET CODE = "showdoc.class"
WIDTH = 650
HEIGHT = 450 >
</APPLET>
</BODY>
</HTML>
/******************** end test.html*************************************/
/********************test1.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST1.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST1.HTML </H1>
</BODY>
</HTML>
/******************** end test1.html*************************************/
/********************test2.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST2.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST2.HTML </H1>
</BODY>
</HTML>
/******************** end test2.html*************************************/
/********************test3.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST3.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST3.HTML </H1>
</BODY>
</HTML>
/******************** end test3.html*************************************/
/********************test4.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST4.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST4.HTML </H1>
</BODY>
</HTML>
/******************** end test4.html*************************************/
To Reproduce
------------
1. Compile the above java program.
2. Put test files in same directory.
3. Lauch netscape 6 and point browser at the test.html file.
4. Only the window showing test4.html will be displayed.
5. Launch netscape 4.76 and point browser at the test.html file.
6. All four windows will be visible.
In last week's trunk Test1 and Test4 appear, but Test2 and Test3 do not.
Steve, excellent bug reporting. I appreciate the testcase.
av, I'm convinced this is a "target" related problem. Set a breakpoint in
nsPluginHostImpl::GetURLWithHeaders() and follow it from there.
Ed
Assignee: edburns → av
Status: ASSIGNED → NEW
Comment 5•24 years ago
|
||
This sound just like another bug (I can't find it now) that says there is a
problem with using consecutive GetURL() with targets. Only the last one is
displayed. I remember the other bug said something about a "batching"
problem.
Reporter: Try just one GetURL and see if it works.
Av/Shrir, do you remember the dup bug #?
Right, marking dup.
*** This bug has been marked as a duplicate of 48759 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Comment 7•24 years ago
|
||
SPAM: reassigning OJI bugs to new QA, pmac. (227 bugs)
QA Contact: shrir → pmac
You need to log in
before you can comment on or make changes to this bug.
Description
•