Hello, I am stuck on the browser close problem.
I don't know what method to use to free the resources from plugin dll.
The solution with Process Detach in DllMain is not good since
I need to release MSCOM objects and the OLE seems to be already Uninitilized at that
time.
So I wrote a nsIShutdownListener and registered it with this line:
nsServiceManager::GetService(
"@mozilla.org/docloaderservice;1",
NS_GET_IID(nsIDocumentLoader),
(nsISupports**) &docl,
shutdownListener
);
But the OnShutdown method is never called even if the browser is successfully closed.
I have tried other services, those does not work too.
What can be wrong?
Are the ShutdownListeners going to be deprecated??