Hi Boris, Thanks, it worked.
I have one more issue, I want to intercept mouse events inside my embedded browser view. I have implemented nsIDOMMouseListener, but somehow I am not able to register the listener. That's is reason my event handlers are not getting hit. Will you please tell me how to go ahead. Thanks again. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Boris Zbarsky Sent: Wednesday, June 10, 2009 8:04 PM To: [email protected] Subject: Re: Disabling Plugins controls programatically ranga wrote: > I have embedded mozilla browser inside my application. When the > browser is actually rendering a webpage, I want to disable plugins > rendering programatically. > > I have access to nsIDOMWindow and nsIDOMDocument objects. > > Can anyone tell me how disable plugins programatically ? You have the nsIWebBrowser too, no? See http://mxr.mozilla.org/mozilla-central/source/embedding/browser/webBrowser/nsIWebBrowserSetup.idl#59 -Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
