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

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

Title:
  chrome plugin crashes when calling javascript function

Status in Iced Tea:
  Invalid
Status in “chromium-browser” package in Ubuntu:
  Confirmed
Status in “icedtea-web” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: icedtea6-plugin

  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);
      }    
   

  
  The problem looks like it was with OpenJDK.
       sudo aptitude remove icedtea6-plugin
       sudo aptitude install sun-java6-plugin
  Fixed the problem.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to