javascript-to-java callbacks not working



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


(Reporter: Mikael Magnusson, Unassigned)


Firefox Tracking Flags

(Not tracked)




(2 attachments)



12 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1 ; en-US; rv: Gecko/20060426 Firefox/

The URL above contains a Javascript function that tries to call a object function using java reflection api. This works on Linux, but not on Windows.

Reproducible: Always

Steps to Reproduce:
1. Load the html file
2. Click on "Start"
3. PASS or FAIL is displayed in an alert depending on outcome of the test.

Actual Results:  

Expected Results:  

Java Version 1.5.0 (build 1.5.0_06-b05)

Comment 1

12 years ago
Created attachment 222974 [details]
Test case (java_scripting.html)


12 years ago
Attachment #222974 - Attachment description: Test case → Test case (java_scripting.html)
Assignee: nobody → live-connect
Component: General → Java: Live Connect
Product: Firefox → Core
QA Contact: general → pschwartau
Version: unspecified → Trunk

Comment 2

12 years ago
The test case can crash the Ubuntu Firefox 2.0 with Java 1.5.0_08. And the popup window shows "FAIL" on Solaris with Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1) Gecko/20061009 Firefox/2.0 and Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9a1) Gecko/20061129 Minefield/3.0a1 for Java 1.6.0.

OS => all and confirm.
Ever confirmed: true
OS: Windows XP → All


12 years ago
Summary: javascript-to-java callbacks not working on Windows → javascript-to-java callbacks not working

Comment 3

12 years ago
The test case "FAIL" also here: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20070219 Firefox/

Comment 4

11 years ago
Created attachment 290636 [details]
Revised test case with bug fixes

Comment 5

11 years ago
Good test case. However, it had a couple of errors that prevented it from working as expected (using the "new" operator incorrectly against the result of Array.newInstance()). A revised test case has been attached above. Note that the new test case passes with the new NPRuntime-based Java Plug-In which will be present in the "6uN" release: . The new plug-in will be first present in b08 and can be enabled either via the Java Control Panel (on Windows) or symlinking to as your Java Plug-In on Unix platforms.

Comment 6

11 years ago
The test case shows "FAIL" here. 

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20071127 Firefox/

Java Plug-in 1.6.0_03

Comment 7

11 years ago
(In reply to comment #6)
> The test case shows "FAIL" here. 
> Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20071127
> Firefox/
> Java Plug-in 1.6.0_03

I can not vouch for the correctness of the old Java Plug-In. The new Java Plug-In is available for testing now. See .


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

Comment 8

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.