javascript-to-java callbacks not working

RESOLVED INCOMPLETE

Status

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

People

(Reporter: Mikael Magnusson, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

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:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

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:  
FAIL


Expected Results:  
PASS


Java Version 1.5.0 (build 1.5.0_06-b05)
(Reporter)

Comment 1

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

Updated

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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All

Updated

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:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2.

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: https://jdk6.dev.java.net/6uNea.html . 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 libnpjp2.so 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:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

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:1.8.1.11) Gecko/20071127
> Firefox/2.0.0.11
> 
> 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 https://jdk6.dev.java.net/testPlugIn.html .

Updated

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".
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.