Closed Bug 258467 Opened 21 years ago Closed 20 years ago

Applet - AppletContext.showDocument("http://") fails

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED EXPIRED

People

(Reporter: physci, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 /** This Applet should open the specified web-page. Note that it fails on Mozilla versions 1.3 and 1.7.2, with no messages in either the Java or Javascript consoles. This might seem to relate to the following bug.. http://bugzilla.mozilla.org/show_bug.cgi?id=209652 but that bug was resolved by not using the 'file:' URL protocol, whereas this example uses a conventional web URL. */ import java.awt.Label; import java.net.*; public class MozillaShowDocBug extends java.applet.Applet { public void init() { add( new Label("Hi!") ); try { URL url = new URL("http://www.physci.org/codes"); getAppletContext().showDocument( url ); add( new Label("Bye!") ); } catch(MalformedURLException murle) { murle.printStackTrace(); } } } Note that this was tested in the 1.7.2 build mentioned above using Java 1.5.0 beta, as well as Mozilla 1.3 using both Java 1.4.2 and 1.5.0 beta. This works fine on IE 6 using Sun Java 1.5.0 beta/1.4.2 and the MSVM This works fine on Opera using Sun Java 1.5.0 beta/1.4.2 This works fine on Netscape Navigator 4.80 using Symantec 1.1.5 VM I understand that the showDocument(URL, 'target') method is free to be ignored by browsers, but the JavaDocs imply that browsers (as opposed to applet viewer for instance) *should* implement showDocument(URL) I also looked though the preferences of Mozilla to see if I could spot any arcane setting that might override this default behaviour (such as disallowing autumatic page transtions/redirects). Nada. Reproducible: Always Steps to Reproduce: 1. Compile the code 2. Call it from a web page. Actual Results: The labels "Hi!" and "Bye!" appeared. Nothing else happens. Expected Results: The second Label, "Bye!", should only have appeared briefly, if at all. The page should have changed to the URL specified in the code.
Product: Browser → Seamonkey
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/
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.