← Back to team overview

openjdk team mailing list archive

[Bug 282762] Re: LiveConnect nyi (applet to JS communication does not work)

 

Launchpad has imported 16 comments from the remote bug at
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=217.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2008-10-13T16:24:09+00:00 Matthias Klose wrote:

JS to Applet communication work but applet to JS communication does not work. You can verify this with the apple liveconnect test at http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html
You'll see the color change when you click on the buttons but when you double click the applet there is no alert message.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/1

------------------------------------------------------------------------
On 2008-10-13T19:59:20+00:00 Dbhole wrote:

This is a bug in the applet page. Liveconnect specifications state that
MAYSCRIPT must be specified for Java->JS to work[1]. The
ColorBlockApplet does not set this.

1.
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/java_js.html#enabling

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/2

------------------------------------------------------------------------
On 2008-10-13T23:50:05+00:00 mkaz wrote:

(In reply to comment #1)
> This is a bug in the applet page. Liveconnect specifications state that
> MAYSCRIPT must be specified for Java->JS to work[1]. The ColorBlockApplet does
> not set this.
> 
> 1.
> http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/java_js.html#enabling
> 

I tested after adding MAYSCRIPT tag it still does not work. It cannot
find netscape.javascript.JSObject class.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/3

------------------------------------------------------------------------
On 2008-10-14T03:39:46+00:00 Dbhole wrote:

Did you try it it with the new plugin (IcedTeaPlugin.so, built with
--enable-liveconnect), or the old one? The old one (gcjwebplugin) is
expected to throw that exception...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/4

------------------------------------------------------------------------
On 2008-10-14T13:47:49+00:00 mkaz wrote:

Yes I can confirm that IcedTeaPlugin.so is used from Firefox3 in
about:plugins. I also looked at the output when firefox is launched from
command prompt. Can you tell me in which jar file netscape classes are
supposed to be packaged?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/5

------------------------------------------------------------------------
On 2008-10-14T14:47:36+00:00 Dbhole wrote:

Assuming you are using the tip, the classes should be in rt.jar


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/6

------------------------------------------------------------------------
On 2008-10-14T16:33:28+00:00 mkaz wrote:

I'm using ubuntu intrepid compiled package version 6b12-pre2-0ubuntu2 and the only Netscape class that is in rt.jar is sun.security.x509.NetscapeCertTypeExtention.
There are no netscape JS classes.


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/7

------------------------------------------------------------------------
On 2008-10-14T16:47:56+00:00 Dbhole wrote:

Hmm, AFAIK Ubuntu does not compile with liveconnect support. And if it
did, it should have had the classes in rt.jar.

Can you post the output of about:plugins?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/8

------------------------------------------------------------------------
On 2008-10-14T22:14:11+00:00 mkaz wrote:

Created attachment 116
Output of about:plugins

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/9

------------------------------------------------------------------------
On 2008-10-14T22:20:20+00:00 mkaz wrote:

Created attachment 117
Output of about:plugins

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/10

------------------------------------------------------------------------
On 2008-10-16T10:11:55+00:00 Matthias Klose wrote:

the current package in Ubuntu intrepid is configured with --enable-
liveconnect.

there seems to be a problem about adding the netscape/javascript classes
into the rt.jar, which is built in stage2. In the icedtea Makefile,
these files are only included in rt-closed.jar, but not in the rt.jar,
which is served at the end of the build.


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/13

------------------------------------------------------------------------
On 2008-10-17T07:53:14+00:00 Matthias Klose wrote:

tracked down the missing files to configuring with --with-alt-
jar=/usr/bin/fastjar. Didn't find yet the cause. The current Ubuntu
build does include these files.


--- rt-jar.list 2008-10-17 07:50:22.000000000 +0000
+++ rt-fastjar.list     2008-10-17 07:50:31.000000000 +0000
@@ -11008,11 +11008,6 @@
 net/sourceforge/jnlp/util/WeakList.class
 net/sourceforge/nanoxml/XMLElement.class
 net/sourceforge/nanoxml/XMLParseException.class
-netscape/javascript/JSException.class
-netscape/javascript/JSObject.class
-netscape/javascript/JSProxy.class
-netscape/javascript/JSRunnable.class
-netscape/javascript/JSUtil.class
 org/ietf/jgss/ChannelBinding.class
 org/ietf/jgss/GSSContext.class
 org/ietf/jgss/GSSCredential.class


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/14

------------------------------------------------------------------------
On 2008-10-17T07:55:49+00:00 Matthias Klose wrote:

In http://people.ubuntu.com/~doko/java/ColorBlockApplet.html
I added the MAYSCRIPT attribute, but I still cannot a reaction clicking on the applet area.


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/15

------------------------------------------------------------------------
On 2008-10-17T17:46:23+00:00 Dbhole wrote:

Fixed in tip --
http://people.ubuntu.com/~doko/java/ColorBlockApplet.html works for me
now. Can you please retry?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/16

------------------------------------------------------------------------
On 2008-10-18T14:41:33+00:00 Matthias Klose wrote:

fixed now.

there's one glitch. Clicking the first time on a button doesn't change
the color, only with the second click the color is changed (but then it
is changed two times).


Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/18

------------------------------------------------------------------------
On 2008-10-18T16:48:10+00:00 Dbhole wrote:

There is a 3-4 second delay for the first action to happen, as mozilla
builds a table of java objects initially.

How long did you wait after the first click? One way to verify that it
was slow (as opposed to not working) is to run with the
ICEDTEAPLUGIN_DEBUG variable set. This will slow things down a lot, but
if it's outputting after first click, it means that it is processing...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762/comments/19

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/282762

Title:
  LiveConnect nyi (applet to JS communication does not work)

Status in OpenJDK:
  Fix Released
Status in “cacao-oj6” package in Ubuntu:
  Fix Released
Status in “openjdk-6” package in Ubuntu:
  Fix Released
Status in “cacao-oj6” source package in Intrepid:
  Fix Released
Status in “openjdk-6” source package in Intrepid:
  Fix Released

Bug description:
  separate report for the second half of bug #207064

  JS to Applet communication work but applet to JS communication does not work. You can verify this with the apple liveconnect test at http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html
  You'll see the color change when you click on the buttons but when you double click the applet there is no alert message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openjdk/+bug/282762/+subscriptions


References