bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Java-Javascript Communication Issue with Java Applets



Core Graveyard
Java: Live Connect
12 years ago
7 years ago


(Reporter: Dan, Unassigned)


1.8 Branch
Windows XP

Firefox Tracking Flags

(Not tracked)




12 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

There is an issue that comes up when mayscript=true in the <object/applet> tag. The applet itself loads correctly, but later Javascript calls do not execute properly. "Undefined is not an error" is also always thrown in the Error Console when the applet is loaded. The error isn't tied to any specific function call; it seems that all calls fail -- even simple alert()'s trigger an error.

Reproducible: Always

Steps to Reproduce:
1. Have a javascript function that works. Say, an alert(), or any js function that you've written that you know works. This function can either be called by the applet itself or just be a stand-alone function.
2. Set your code up so that this function is called after your java applet is loaded.
3. Set mayscript=true in the <object> tag for the java applet.
4. Load java applet. Make sure Error Console is open (you will notice an "undefined is not a function" error).
5. Notice that your javascript function fails to execute as expected, or throws an error.
Actual Results:  
JS function call fails!

Expected Results:  
JS function should work properly.

The applet in question works correctly in IE (tested in IE 6 and 7).
Assignee: nobody → live-connect
Severity: critical → major
Component: Error Console → Java: Live Connect
Product: Firefox → Core
QA Contact: javascript.console → pschwartau
Version: unspecified → 1.8 Branch


8 years ago
Component: Java: Live Connect → Java: Live Connect
Product: Core → Core Graveyard

Comment 1

7 years ago
Firefox code moved from custom Liveconnect code to the NPAPI/NPRuntime bridge a while back. Mass-closing the bugs in the liveconnect component which are likely invalid. If you believe that this bug is still relevant to modern versions of Firefox, please reopen it and move it the "Core" product, component "Plug-Ins".
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.