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

XPCOM Service Manager leak in new Java Plug-In

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u10
    • deploy
    • generic
    • generic

      The new Java Plug-In has a few remaining OJI dependencies for fetching cookie, proxy, and browser authentication information. To make these queries it fetches the nsIServiceManager and AddRefs it once at the beginning of time. The new Java Plug-In doesn't support being unloaded from the browser, but the one AddRef without any Release call causes assertion failures upon browser shutdown in debug builds. We should consider fetching the service manager on a per-MozPluginInstance basis and always releasing it upon shutdown of the plugin instance.

      If Mozilla provides NPAPI entry points for this functionality, it would be even better to simply move to those APIs and remove the remaining nsIServiceManager and OJI dependencies altogether.

            ccheung Calvin Cheung
            kbr Kenneth Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: