firefox-addon

Dependency Injection in XPCOM

Hi, One of my XPCOM components make use of other XPCOM components. As I was testing it, I found it cumbersome cos of the dependencies. Then I thought of using Dependency Injection to pass in the other components in my constructor. I wasn't successful. Is it possible to pass in references of other components into your constructor? var ...

Call page function from firefox extension

DUPLICATE: how-do-i-execute-a-page-defined-javascript-function-from-a-firefox-extension I'm really need call page-defined JS function from my FF extension. But i'm take error "function * is no defined" ...

How long does it take for a Firefox extension to be reviewed for public release?

About 2 weeks ago I nominated a Firefox Extension I made for public release. It seemed stable enough and received a number of positive reviews, so the time felt right. I haven't heard anything from Mozilla yet; how long should I expect to be waiting before things progress? Thanks! ...

How to get tab in TabOpen event with Firefox FUEL?

I'm writing a firefox extension and really need to listen on TabOpen events and get some details about tab that was opened. But I can't figure out how do I get an actual tab from event object that my callback receives. Is it somewhere in event.data? Is there a way to inspect this object? Some code that I have tried so far but it doesn't...

Firefox extension for total page size?

Does anybody know a good Firefox extension to monitor the total page size, including all supplementary files. I know there is one that monitors the viewstate size in the bottom bar and that's invaluable as an ASP.Net developer, but I wonder it there's one that monitors the entire size--sort of like the Net tab of Firebug. ...

Trouble accessing Java classes from Firefox extension's Javascript

I'm going to develop a Firefox extension which uses some Java classes. The extension gets the value of <input type="file"> fields, using Javascript. The Java class I'm going to create is the following: public class Firefox { public static String inFileName; public static void main(String[] args) throws IOException { in...

Javascript firefox extension to get the text around the link

Hi, Is it possible for me waiting for a user to click a link, and upon clicking the link the link's text would be obtained? Maybe by using onClick? ...

change url of tab javascript firefox extension

I am trying to change the url of a currently open tab in javascript firefox extension Any pointers please? ...

Calling a WebService from javascript

Hi, I'm developing a Firefox addon that needs to interact with an external WebService The WebSerivce is build using ASP.NET (.asmx page) I cannot use ajax because it's an addon and not a web site. Does anyone knows how to do it? ...

Flash 10 Debugger flashlog.txt

Hi, I have installed the Adobe Flash Player 10 debugger for Firefox 3 and I am unable to locate the flashlog.txt file or use the debugger features online, other than to show redraw regions. I have installed the FireFox extension "Flash Tracer" which in theory is compatible with my firefox version, and am now trying to make it work. I ca...

How can I see how much bandwidth my website uses?

I'm looking for a Firefox addon which will track how much bandwidth a page is using. This could be a regular HTML page or GMail with the chat feature using Javascript. Is there anything that will help me optimize my page like this? ...

SVN Firefox Plugin

Is there a firefox plugin which functions as an SVN client? I have checked on the official addon website. I really do not wish to go to the trouble of installing a standalone client, so is there currently a firefox plugin or some easy way I or someone else could make one? This would be very useful to me. ...

How to make a Firefox addon listen to xmlhttprequests from a page?

Background I have an existing extension designed to accompany a browser-based game (The extension is mine, the game is not). The extension had been scraping the pages as they came in for the data it needed and making ajax requests for taking any actions. Problem The game developers recently changed a number of actions on the site to use...

How to run a external Program and get the return-code in a Firefox-Addon

Hy, I'm trying to launch a external process from a mozilla firefox addon (so only js-code allowed). This is easly possible using NSIProcess, but I need the return-code of the executed program. As the NSIProcess doesnt offer a possibility to get the return-code, I'm searching for a alternative possibility. Im trying to avoid to write my ...

Javascript - write links to new tabs

Hi, Using Javascript in a firefox extension, I have opened a new tab. I am unaware of how I can write a link to www.google.com and other links (a whole list) in this tab, where the user can click a link and this page will open. Thank you for your help so far I had typed in : var newTabBrowser2 = gBrowser.getBrowserForTab(gBrowser.sel...

Firefox extension to display an inline css class or id definition?

I use Firebug and Web Developer Firefox extensions. One feature I am looking for and which I am not sure if they exist in these extensions is when I am looking at a webpage source, I want to click on a class or id name and somewhere it displays the definition of that class or id. Not the css inheritance hierarchy. Just the particular cla...

Firefox Web Developer Toolbar: JS does not work after an "on the fly" HTML edit

I'm getting used to this toolbar, it is so cool to edit the page on the fly and see what I'm changing... THe only problem is that my JavaScript stops to work after (or while) i'm editing, and I need to save an refresh the page... Did I miss any option? Is there any other tool that does this? ...

Firefox extension opening a page on install

I noticed some Firefox extensions when installed will open up a page once you restart the browser, for example the StumbleUpon toolbar. This is useful to show update notes and give the user some tutorial type information. How do you go about opening a new page in a Firefox add-on the first time the user restarts the browser after insta...

Can we access the webpage's javascript from the firefox extension.?

I am in the process of creating my first firefox extension and I got to call a javascript function defined in the webpage where my extension will work. Can I access it from my firefox extension? any sample example would be appreciated.. Thanks in advance. ...

Get Selected Node Id

Hello, I'm developing a Firefox extension, where the user selects a text, then that text goes to a REST webservice and brings some results back. My problem with text selection, I've used this method to get the selected text: var selectedText = window.getSelection(); I got the result in selectedText variable and send it to the server...