I have a ve开发者_如何学JAVAry limited experience with Firefox extensions development (read XUL School, written a couple of very simple extensions).
I\'m making an extension that on load of every page creates an instance of my xpcom component specifically for that page.
PLEASE READ THE UPDATE #2 BELOW IF YOU ARE INTERESTED IN THIS PROBLEM ;) Say I put this code into the JS of my extension.
I want to use my own console for my extension, where I would be printing out various debug info. I thought I would do that by doing
I write a Mozilla Jetpack based add-on that has to run whenever a document is loaded. For \"toplevel documents\" this mostly works using this code (OserverService = require(\'observer-service\')):
I\'ve created a Windows library with an implementation of nsIModule (and nsIProtocolHandler) a while ago. I\'ve only recently got round to debugging it some more, but FireFox doesn\'t run my library a
Google can\'t find much user documentation for XPCOM. Sure, it can find endless references to making new XPCOM components in C++, but that\'s utterly useless to anyone who needs to know how to use the
I need to be able to take a javascript string, compress it using any fast and available means and get back a binary string/blob.
since my extension\'s pageload is triggered 开发者_StackOverflow中文版even when I view css or js files, i want to add another check that triggers my extension only when the current page\'s content-typ
Hi i got to create.write,read a local file within the javascript using XPCom. For that i have included the below line at the beginning of javascript.