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

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 2012-04-11T09:09:17+00:00 Matthias Klose wrote:

reported for icedtea-web-1.2, forwarded from
https://launchpad.net/bugs/755036

Working with chrome on ubuntu, have a basic java applet and javascript
interaction. The javascript to java goes fine, but when I try having the
java fire a javascript method, the chrome java plugin crashes. This all
works fine in Fire Fox.

The Error:

    The following plug-in has crashed: icedTea NPR Web Broweser Plugin
(using IcedTea6 1.9.7 (6b20-1.9.7-0ubuntu1~10.04.1))

The HTML:

    <object height='300' id='thisappletawesome' 
name='thisappletawesome'type='application/x-java-applet' width='550'>
        <param name='classid' value='java:JSHelloWorld.class'>
        <param name='codebase' value='/java/'>
    </object>

The Javascript:

    function updateWebPage(){
        alert("java is touching me");
        document.thisappletawesome.setText("hihihi")
    }

The Java:

    import java.applet.*;
    import java.awt.*;
    import netscape.javascript.*;
    import javax.swing.*;

    public class JSHelloWorld extends JApplet {
    JTextArea txt = new JTextArea(100,100);

    public void init(){
     JSObject jso = JSObject.getWindow(this);
     try {
      jso.call("updateWebPage", new String[] {"Hihi"});
        }
        catch (Exception ex) {
           ex.printStackTrace();
        }
    }

    public JSHelloWorld() {
        txt.setText("Hello World");
        getContentPane().add(txt);
    }

    public void setText(String s)
    {
        txt.setText(s);
    }
}

Reply at: https://bugs.launchpad.net/icedtea/+bug/755036/comments/3


** Changed in: icedtea
       Status: Unknown => Confirmed

** Changed in: icedtea
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/755036

Title:
  chrome plugin crashes when calling javascript function

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to