Closed Bug 878532 Opened 13 years ago Closed 13 years ago

JavaScript unable to access Java Applet in Firefox 22 on OSX, Works on Windows

Categories

(Core Graveyard :: Plug-ins, defect)

21 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 872969

People

(Reporter: umlungu, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36 Steps to reproduce: Accessing a Java Applet's public methods via JavaScript does not work in FF 21 on OSX with Java 7, update 21 installed. This works in FF 20 and Safari on the same system with the same Java plugin. FF 21 on Windows works. Actual results: Accessing a public method of an Applet returns a JavaScript error similar to: "TypeError: myApplet.myMethod is not a function". Expected results: Accessing the public method "myMethod" in the above example should have returned the result of the call inside the applet. This could have been a boolean, a string, an int or any other return type.
Thanks for reporting this. Could you provide a url or a testcase for testing this, it could help to better understand?
Flags: needinfo?(umlungu)
Keywords: testcase-wanted
This is a test case that fails in FF21 but passes in FF20 with the specs described in the defect. Please note that on some machines with identical configurations this test case fails 100% of the time while other machines the test case will pass 1 in 10 times if the user reloads the test case repeatedly.
Flags: needinfo?(umlungu)
Summary: JavaScript unable to access Java Applet in Firefox 21 on OSX, Works on Windows → JavaScript unable to access Java Applet in Firefox 22 on OSX, Works on Windows
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:22.0) Gecko/20100101 Firefox/22.0 buildID : 20130618035212 I've tried with the current Firefox release and I've tested it with the latest java update available and I've never experienced that error. The popup has always showed me "Test Passed" in more than 10 test. Try update to Java 7, update 25 installed.
Thank for the feedback. I have tried FF22 with Java 7 Update 25 with the same result. I have included an attachment showing the result.
Attached image FF22 Java 7 Update 25
I am also seeing this problem. Mac OS 10.8.4 FF 22 Java 7 u25 calling applet.someFunc() from javascript results in applet.someFunc is not a function.
I'm also affected by this bug, also since a recent update; an applet that was previously working fine stopped working. Also 10.8.4 / 22.0 / 7u25. I did what Tiziana requested above (safe mode and fresh profile), with potentially interesting results: Normally (no safe mode, no fresh profile), I get Fehler: TypeError: stringTest.beginTest is not a function Quelldatei: http://home.arcor.de/joriki/StringTest.html Zeile: 4 Both in safe mode and with a fresh profile, I instead get Fehler: uncaught exception: java.lang.reflect.InvocationTargetException (whereas when I deny execution of the applet in the security popup, I get the "not a function" error again)
Component: Untriaged → General
Keywords: testcase
Product: Firefox → Core
Same result as above (Comment 8) with the current nightly build, 25.0a1 (2013-08-02).
Same result also for the test at https://jdk6.java.net/nonav/plugin2/liveconnect/MethodInvocation.html : noArgMethod is not a function, and the page only shows "See Java Console for Java output and below for JavaScript output:", with no JavaScript output.
Component: General → Plug-ins
This is bug 872969. Short recap: Depending on timing and bug 823559, Java may give the brower an invalid scriptable object. Bug with Oracle logged per bug 872969, comment 110.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: