Chrome plugin removal
Posted
by kambamsu
on Stack Overflow
See other posts from Stack Overflow
or by kambamsu
Published on 2010-03-24T02:35:18Z
Indexed on
2010/03/24
2:43 UTC
Read the original article
Hit count: 382
Hi, I'm writing an NPAPI plugin. In every webpage that the browser goes to, I inject my plugin with an object tag. Something like:
<object id="myplugin" type="plugin-mime-type" >
In some pages where i dont want it, after injection i remove it by finding the element using the id and doing a document.removeChild. From my logging i found that in firefox and opera, doing this automatically calls the plugin destroy method NPP_Destroy (NPAPI). But in chrome, it doesnt seem to call it. Is there any special way that i should remove a plugin in chrome that i am missing??
Any help would be appreciated.
Thanks
© Stack Overflow or respective owner