Closed Bug 334117 Opened 18 years ago Closed 11 years ago

Hang on page with non-existent Java applet

Categories

(Core Graveyard :: Java: OJI, defect)

1.8 Branch
x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: luis.almeida, Assigned: yuanyi21)

References

Details

(Keywords: hang, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

Create a file with the following contents:

<html><head><title>Aliasing</title>


<applet name="testapplet" code="test/test1.htm" archive="test/test2.htm" height="290" width="400">
</applet>

Just a little text...

</body>
</html>

Open it in Firefox. Firefox may hang immediately. If it didn't hang, click the Reload button a few times. In my browser this always causes it to hang.

The code above refers to a non-existant applet. Apparently that is what causes Firefox to hang. I distilled this code after trying to browse a half-broken site where some applets were missing.

Reproducible: Always

Steps to Reproduce:
1.Create a file with the given code.
2.Open that file.
3.If Firefox didn't hang, hit the Reload button a few times.

Actual Results:  
Firefox hangs.

Expected Results:  
Should inform that the applet was not found, and shouldn't hang.
Attached file Testcase
Testcase WFM using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060413 Firefox/3.0a1 ID:2006041304

Is this a problem in 1.5.0.2 only?
I managed to fget it to hang in my own Minefield build: 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060415 F
The hang happened firefox/3.0a1, VC8 Express, (Build ID 2006041510) after several relods of the page
Assignee: nobody → yuanyi21
Component: General → Java: OJI
Keywords: hang, testcase
Product: Firefox → Core
QA Contact: general → zhayupeng
Summary: Very simple page that hangs Firefox → Hang on page with non-existent Java applet
Version: unspecified → 1.8 Branch
I tried the attachment from Comment #1, and it didn't hang my Firefox 1.5.0.2, even after several reloads. However, when opening a file stored in my computer, exactly with the same contents, it did hang after two reloads.

One difference that I noticed was that, when opening the attachment from #1, it showed the animated "Java - Sun Microsystems" logo before writing, in the status line, "Applet testapplet notinited". However, when opening from the local file, it didn't show the animated logo.
Reporducible on Solaris platform Firefoxo 1.5.0.4, Jdk1.6.0. 
Blocks: 353557
I can reliably reproduce this hang
* by hitting any-page-with-a-missing-applet
* using Minefield 20061006; JVM & Plug-in 1.6.0-beta2; Windows XPSP2 on AMD64-Dualcore.

UA=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061006 Minefield/3.0a1
PLUGIN=Java Plug-in 1.6.0-beta2
JVM=Using JRE version 1.6.0-beta2 Java HotSpot(TM) Client VM
OS=XPSP2 (with weekly patches).
HW=AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ 2.01 GHz, 2.00 GB of RAM Physical Address Extension

I suspect this is race condition at applet initialization time, which is exacerbated by an underutilized multi-processor... in effect a threading issue in the beta 1.6 JVM &/or Applet-plugin.

see my related sun forum post: 
http://forum.java.sun.com/thread.jspa?messageID=4411650&#4411650

see my comments on the open sun bug report:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6396012

see the ?related? closed sun bug report:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6348224

I would very much like Sun to fix this bug... or FF to work around it.
No longer blocks: 353557
Confirming based on dupe and comments.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Core → Core Graveyard
Mass-closing bugs in the "OJI" component: OJI plugin integration was replaced with npruntime long ago, and these bugs appear to be irrelevant now. If there is in fact a real bug that remains, please file it new in the "Core" product, component "Plug-ins".
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: