JDK-6716935 : XPCOM Service Manager leak in new Java Plug-In
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2008-06-19
  • Updated: 2012-01-13
  • Resolved: 2012-01-13
Related Reports
Duplicate :  
Description
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.

Comments
EVALUATION We've removed XPCOM dependencies for cookie/proxy services via 7111062.
13-01-2012