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

JSObject reference counting problem

    Details

    • Subcomponent:
    • Introduced In Build:
      b08
    • Introduced In Version:
    • Resolved In Build:
      b11
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      User jasuha1 on the java.net forums has reported a problem with the scoping of JSObjects. The attached test case loads the same web page three times in separate iframes. Each applet instance fetches the JSObject associated with the surrounding window. One of the iframes is then destroyed. The JSObjects associated with the other applet instances have then been invalidated.

      This is a regression compared to the old Java Plug-In.

      There is clearly a problem in the distributed reference counting scheme used by the shared LiveConnect code.

      Links to associated forum threads:
      http://forums.java.net/jive/thread.jspa?threadID=34807&tstart=0
      http://forums.java.net/jive/thread.jspa?threadID=34805&tstart=0
      The attached test case also crashes the Firefox 3 port of the new Java Plug-In if it is the first applet launched in the browser session. This must also be investigated.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: