Re-directing this question to the .plugins group

Pradeep wrote:

> Hi,
> 
> I need the plugin to be reinstalled / refreshed under certain conditions
> (some COM objects missing). In the plugin code if the COM object cannot be
> created (CoCreateInstance fails. ) I need to reinstall plugin or call
> document.location.reload() which will perform necessary native install to
> register and make available the necessary COM object.
> 
> I have tried
> 
> NPN_ReloadPlugins(true);
> nsIPluginManager::ReloadPlugins(true);
> 
> and wasn't able to get them to work. Is the constructor of the XPCom plugin
> instance an appropriate place to make these calls? Can I get hold of the
> QMozillaContainer object that the plugin is currently in ? Can I use the
> nsIDOMLocation interface somehow? Or can I use JS_CallFunctionName to call
> "document.location.reload" ?
> 
> Please Help
> 
> Thanks
> Pradeep
> 
> 
> 
> 
> 
> 


Reply via email to