Closed Bug 224657 Opened 22 years ago Closed 22 years ago

errors in pref-advanced.xul when @mozilla.org/oji/jvm-config-mgr;1 or @mozilla.org/system-preference-service;1 are unavailable

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(2 files)

chrome://communicator/content/pref/pref-advanced.xul line 197: Components.classes['@mozilla.org/oji/jvm-config-mgr;1'] has no properties chrome://communicator/content/pref/pref-advanced.xul line 140: reference to undefined property Components.classes['@mozilla.org/system-preference-service;1']
chrome://communicator/content/pref/pref-advanced.xul line 222: reference to undefined property navigator.mimeTypes['application/x-java-vm']
Status: NEW → ASSIGNED
Attachment #134748 - Flags: superreview?
Attachment #134748 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 134748 [details] [diff] [review] look before you leap @@ -137,15 +137,14 @@ >+ frame.setAttribute("hidden", "false"); I'm not a fan of copying and pasting someone else's errors; 1. We don't set hidden="false" 2. We've got a property we can use, instead of an attribute 3. Unhidden is the default for this frame @@ -189,31 +188,30 @@ >+ var jvmConfigMgr; Hmm... this is only used by getJVMConfigList... @@ -221,17 +219,17 @@ >+ var result = ""; Move this to the start of the function, and return it at the end?
jvmConfigMgr is used by some other functions...
Attachment #134748 - Attachment is obsolete: true
Attachment #134748 - Attachment is obsolete: false
Attachment #134748 - Flags: superreview?
Attachment #134748 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #134792 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 134792 [details] [diff] [review] look before you leap with style Tested on linux and mingw.
Attachment #134792 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #134792 - Flags: superreview?(roc)
Attachment #134792 - Flags: superreview?(roc) → superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment on attachment 134792 [details] [diff] [review] look before you leap with style >+ if ("application/x-java-vm" in navigator.mimeTypes) This line will always be false even there is a java-vm mime type. Who know why? Because of this problem, the JVM config list is broken when lookup current JVm selection. Can we remove this line?
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: