I'm using Execute JS to write and test Javascript code within Firefox. I want to open a new tab/window and write something to it and I tried  var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.i...
I'm trying to install hotmail to my mailto handlers:    This is accomplished with this code from webpage scope:  navigator.registerProtocolHandler('mailto','http://mail.live.com/secure/start?action=compose&to=%s','Live Mai...
I'd like to write a XPCOM component that gets exposed as a javascript object in a web page.  Something like Google Gears is what I'm seeking.  That is, after installing the Google Gears Firefox extension, the javascript object 'google.gea...
I have a Firefox Extension that I would like to populate the About box with the version within install.rdf.  I know that FUEL's extIExtension allows one to see the version for an extension but I did not create the extension using FUEL (and the do...
A noob at firefox extension development here. Is there a way to find Tab object from a given nsIDOMWindow?  let wm = Cc['@mozilla.org/appshell/window-mediator;1'].getService(Ci.nsIWindowMediator);  var windowListener = {   onOpenWindow: funct...
I am using XPCOM to read/write file(s) on my hard drive (since Java is no longer supported on FF16,17,18,+ I have to use this). I use it in my FireFox extension(s) (I use iMacros). On this document click  I found this example.  var string = '\u59...
What is the XULRunner equivalent of the following button handler?  function launch_page() {     var win = Components.classes['@mozilla.org/appshell/window-mediator;1']         .getService(Components.interfaces.nsIWindowMediator)         .getM...
I'm creating an XPCOM component using a tutorial as a reference. However, when I run the following command it completes successfully but doesn't produce any .h file:  xpidl -m header -I [XUL_RUNNER SDK\IDL] myfile.idl   Why is that? Is XPCOM...
I've been banging my head a against this particular brick wall now for more than two days.  I am attempting to create an XPCOM service for use in a Firefox extension but am unable to initialise the component with the following error displayed in...
I'm trying to develop a FF extension that calls nsIX509CertDB.nsIX509CertDB. When calling this function from a xpcshell I alwas receive a error 0x80004005 (NS_ERROR_FAILURE). I suspect it to be failing since in a xpcshell environment I can not be...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.