Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6577865

Liveconnect: JSObject.call is not working as expected on Firefox under some scenarios

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows

      Description

      Tested JREs : 6u2, 1.4.2_15 and 1.5.0_12
      OS : Windows XP
      Problem description:
      On firefox/mozilla call to javascript "eval" using JSObject.call is not working as expected and this call is even crashing FF2 browser. Though mozill and earlier version of FF are not crashing but results are not as expected. It works fine with IE6 and IE7 browsers.

      Steps to reproduce:
      ------------------
      1)Load the following applet inside the IE7 or IE6 browser
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ojiliveconnect/src/JSObjectCallTest.html
      Applet is doing following actions
      - calling Javascript function "helloFromApplet" using JSObject.call
          - Alert pop-up should be there if this call succeeds
      - calling Javascript function "helloFromApplet" using eval which is called using JSObject.call
          - Alert pop-up should be there if this call succeeds
      - calling Javascript function "alert" using eval which is called using JSObject.call
          - Alert pop-up should be there if this call succeeds
      - calling Javascript function "eval" using JSObject.call which is evaluating expression "1 + 1"
         - 2 should be returned if this call succeeds
      Everything behaves correctly on IE6 and IE7 browser

      2)Try loading the above mentioned applet inside FF or mozilla browser
        - FF2 will crash while calling "eval" using JSObject.call
        - Earlier versions of FF and mozilla will return the evaluating expression as it is.
         e.g. eval("1 + 1") instead of returning 2 will return "1 + 1"

        Attachments

          Activity

            People

            Assignee:
            kbr Kenneth Russell (Inactive)
            Reporter:
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: