Questions tagged [firefox-addon]

Commonly, you should use this tag IN ADDITION TO the tag for the specific type of add-on which you are asking about. At this point, the most common is firefox-addon-webextensions for WebExtensions based add-ons. A Firefox add-on is a way of adding to or modifying the Firefox web browser. Most commonly, questions in this tag are about Firefox extensions, which add new functionality to the browser, although "add-on" may also refer to themes or plugins.

A Firefox add-on is a way of adding to or modifying the Firefox web browser. Most commonly, questions in this tag are about Firefox extensions, which add new functionality to the browser, although "add-on" may also refer to themes or browser plug-ins.

7386 questions
2
votes
3 answers

How do I communicate between threads in JavaScript?

I created an XPCOM object in C++ for a FireFox extension. I'm using a worker thread to listen for an event and when it happens, I need to do stuff on the main thread. Obviously, I can't just sit and wait in JavaScript on the main thread because you…
Paul
  • 397
  • 1
  • 11
2
votes
1 answer

Set Firefox >=3 to use a specific IP for all requests (NOT Proxy Server) | Used by Selenium|C#

I have a Windows 7 computer that hat more than one IP-Address. Now I want to set Firefox to always use a specific IP when using Profile A. And use a specific IP when using Profile B. How can I archieve that? I don't want to change or set a proxy…
Chris
  • 4,325
  • 11
  • 51
  • 70
2
votes
2 answers

Mozilla "Jetpack" Add-On: Anchor Panel to Widget

I'm making a Jetpack extension in which a widget opens a panel. Clicking the widget opens the panel as expected (anchored in the lower-right corner to the widget). But if I call widget.panel.show() from my code, the panel opens detached from the…
Bosh
  • 8,138
  • 11
  • 51
  • 77
2
votes
1 answer

XUL: click on custom statusbar , how to isolate right and left

i've developed a firefox addon with a simple button on the status bar. Now i want to get the right and the left click. Mi code look like this below
alesdario
  • 1,873
  • 6
  • 25
  • 38
2
votes
0 answers

firefox 4.0 compatible dictionary

I have written a marathi dictionary that can be found here... https://addons.mozilla.org/en-US/firefox/addon/marathi-dictionary/ The code is exactly same as any dictionary that can be found…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
2
votes
1 answer

Setting up Mozilla JetPack "The system was unable to find the specified registry key or value"

I am getting the below error ... D:\Setups\Mozilla JetPack SDK\bin>activate.bat ERROR: The system was unable to find the specified registry key or value. Traceback (most recent call last): File "", line 1, in ImportError: No…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
2
votes
1 answer

Import() in React - fires error in the Chrome/Firefox extensions

I have a working react app that runs on the localhost. I am using import() method to get some pictures dynamically. It is a loop that gets the URL of the pictures and stores it in the state. The code is very basic: componentDidMount() { …
2
votes
0 answers

Make browser treat locally stored folder like a site root?

Is there a way, without setting up a web server, to make Firefox or Chrome treat a locally stored site's root as it would be if viewed on the web? So that when an HTML file is opened that contains URLs beginning with /
2
votes
1 answer

How to programmatically invoke a Firefox button/addon

For a given button inside Firefox 4, how do I discover the appropriate way to simulate a click using XPCom/JavaScript? I'd like to programmatically invoke a dialog which is currently only reachable by clicking a toolbar button. More info: I am…
Mike Repass
  • 6,825
  • 5
  • 38
  • 35
2
votes
1 answer

Javascript event for triggering page-defined javascript function for Firefox extension

I am writing a Firefox extension that needs to write and submit a form with a text type input box, which contains its own onsubmit function. The function is defined in the the target site, which I don't control, so I can't call it directly, and for…
James
  • 661
  • 7
  • 16
2
votes
3 answers

Read HTML elements

I'm building an Firefox Add-On That is suposed to read all in the HTML doc. My problem is: I Can't make my JS in XUL read the HTML elements inside the HTML document. I already tried content.document.getElementsByTagName('a') And…
2
votes
1 answer

Get a dom inside a frame

For a browser extension, I am trying to access an element that is inside a frame, but it seems like I can't find the frame. I tried the following var frame = parent.frames["Interface"]; var frame = window.frames["Interface"]; Both return undefined…
Itération 122442
  • 2,644
  • 2
  • 27
  • 73
2
votes
1 answer

Mozilla Add-on allow Ace Editor code validation

Ace Editor uses this thing called 'blob' to create the Worker (which finds errors in code) and I want to use it in my Firefox extension. The console log showed errors like: Content Security Policy: The page's settings blocked the loading of a …
James Douglas
  • 3,328
  • 2
  • 22
  • 43
2
votes
1 answer

How to create blob: url for local file with FF ext

I'm writing a FF ext which has the filepath to an existing file, and I simply want to create a blob: url for the file, without creating an
erikvold
  • 15,988
  • 11
  • 54
  • 98
2
votes
0 answers

Chrome & Firefox browser extensions CSS image urls in content scripts

how can I manage the background image URLs for both Chrome and Firefox browser extension content script in a single CSS file please? Firefox uses regular relative URL as: background-image: url('/images/my-photo.jpg'); Chrome uses messages extension…
1 2 3
99
100