Closed
Bug 338905
Opened 18 years ago
Closed 13 years ago
javascript-to-java callbacks not working
Categories
(Core Graveyard :: Java: Live Connect, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: mikma, Unassigned)
References
()
Details
Attachments
(2 files)
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•18 years ago
|
||
Reporter | ||
Updated•18 years ago
|
Attachment #222974 -
Attachment description: Test case → Test case (java_scripting.html)
Updated•18 years ago
|
Assignee: nobody → live-connect
Component: General → Java: Live Connect
Product: Firefox → Core
QA Contact: general → pschwartau
Version: unspecified → Trunk
Comment 2•18 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•18 years ago
|
Summary: javascript-to-java callbacks not working on Windows → javascript-to-java callbacks not working
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•17 years ago
|
||
Comment 5•17 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.
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•17 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 .
Comment 8•13 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
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•