Closed Bug 304411 Opened 19 years ago Closed 19 years ago

LiveConnect crashes when Java is disabled [@ init_netscape_java_classes]

Categories

(Core Graveyard :: Java: Live Connect, defect)

x86
Windows 98
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sync2d, Unassigned)

Details

(Keywords: crash)

Crash Data

Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b4) Gecko/20050811 Firefox/1.0+
TB8304825W

When Java is disabled, a first attempt to use Java object in JavaScript
(e.g. "alert(java.lang.String)") silently terminates the execution of
the running script without any exceptions. And a second attpemt to
use Java object in the same page crashes the browser.

Steps:
1. make sure Java is disbaled.
   (uncheck [Tools->Options...->Content->Enable Java])
2. restart the browser.
3. javascript: s="java.lang.String"; setTimeout(s,0); setTimeout(s,1000); void 0;
Incident ID: 8304825
Stack Signature	init_netscape_java_classes 8f0a5df9
Product ID	FirefoxTrunk
Build ID	2005081106
Trigger Time	2005-08-12 01:40:32.0
Platform	Win32
Operating System	Windows 98 4.10 build 67766222
Module	FIREFOX.EXE + (004b5d70)
URL visited	javascript: s="java.lang.String"; setTimeout(s,0);
setTimeout(s,1000); void 0;
User Comments	
Since Last Crash	780 sec
Total Uptime	5087 sec
Trigger Reason	Access violation
Source File, Line No.
c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/liveconnect/jsj.c,
line 358
Stack Trace 	
init_netscape_java_classes 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/liveconnect/jsj.c,
line 358]
jsj_EnterJava 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/liveconnect/jsj_utils.c,
line 464]
JavaPackage_resolve 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/liveconnect/jsj_JavaPackage.c,
line 172]
js_LookupPropertyWithFlags 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/jsobj.c, line 2627]
js_LookupProperty 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/jsobj.c, line 2485]
js_GetProperty 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/jsobj.c, line 2770]
js_Interpret 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 3290]
js_Execute 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1404]
JS_EvaluateUCScriptForPrincipals 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/js/src/jsapi.c, line 3854]
nsJSContext::EvaluateString 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp,
line 1064]
nsGlobalWindow::RunTimeout 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp,
line 5797]
nsGlobalWindow::TimerCallback 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp,
line 6182]
nsAppStartup::Run 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/toolkit/components/startup/src/nsAppStartup.cpp,
line 146]
main 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/browser/app/nsBrowserApp.cpp,
line 61]
KERNEL32.DLL + 0x1b6be (0xbff8b6be)
KERNEL32.DLL + 0x1b570 (0xbff8b570)
KERNEL32.DLL + 0x19f33 (0xbff89f33)
Keywords: crash
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050821
Firefox/1.0+

I hit a similar crash, TB8632273H, after typing "java" into
http://www.squarefree.com/shell/shell.html and clicking "props" twice.  Like
shutdown@, I have Java disabled.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.9a1) Gecko/20051028 Firefox/1.6a1

The bug is no longer reproducible.
Bug 298202 fixed the frontend and bug 312946 fixed the backend.
Resolving as WORKSFORME since this can't be linked to a single checkin.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
Crash Signature: [@ init_netscape_java_classes]
You need to log in before you can comment on or make changes to this bug.