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

FireFox on OS X returning HTMLAppletElement instead of expected Applet

XMLWordPrintable

        Problem description:
        Current implementation of Java Plugin expects the following order of plugin methods during initialization:
        NPP_New - create new plugin instance
        NPP_SetWindow - start an applet
        NPP_GetValue(NPPVpluginScriptableNPObject) - create and return applet scrip object to the browser

        Sometimes the invocations of NPP_SetWindow and NPP_GetValue may be swapped, (NPP_GetValue(NPPVpluginScriptableNPObject) is called before NPP_SetWindow). In this case Java Plugin creates 'namespace' script object instead of real applet object and returns it to the browser. As a result it is impossible to invoke applets methods via Java Script, since incorrect script object is used by the browser.

              dmarkov Dmitry Markov
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: