Re: How to Call Javscript functions (page scripts or content scripts) from JS-XPCOM

2014-07-30 Thread Bobby Holley
On Wed, Jul 30, 2014 at 9:27 AM, Shanmugham Sundaram wrote: >doSomething: function(gdomwindow, siteId, bPage, > bIsGreater) { > > > //win.wrappedJSObject.injectedJSFunctioninWebPage(gdomwindow, siteId, > bPage, bIsGreater); > >//How to call the injected or page

Re: How to Call Javscript functions (page scripts or content scripts) from JS-XPCOM

2014-07-30 Thread Shanmugham Sundaram
Bholley, Thanks for your quick response. Sorry for being naive and I am a newbee in this area. After modifying the IDL and jsXPCOM as below, my question now is "How to call the injected or page java scripts by using nsIDOMWindow"? 1 - My modified IDL #include "nsISupports.idl"

Re: How to Call Javscript functions (page scripts or content scripts) from JS-XPCOM

2014-07-30 Thread Bobby Holley
On Wed, Jul 30, 2014 at 8:56 AM, Shanmugham Sundaram wrote: > 1 - My IDL is as follows >#include "nsISupports.idl" >[scriptable, uuid(f22e7808-17a7-11e4-9620-58fc1d5d46b0)] >interface nsIJSSupport: nsISupports >{ > b