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
1 answer

Firefox Extension - Filter & modify HTTP POST data using onBeforeRequest

Using browser.webRequest.onBeforeRequest.addListener() I am able to filter HTTP requests and modify the source of pages before they are returned. I need to intercept HTTP POST requests and modify the data submitted by a form before sending it to the…
2
votes
2 answers

Javascript scope / security concern in Firefox extension

I am developing a FireFox extension and have to store some values that I need to be secure and inaccessible from any other extension/page etc. I am using a setup for my extension code like seen here: if(!namesp) var…
offthat
  • 400
  • 2
  • 10
2
votes
1 answer

Alternative to MutationObserver for synchronous notifications

I need synchronous notifications of DOM changes a la MutationEvents for an extension capability. MutationEvents, however, are deprecated. MutationObserver is limited in usefulness because of the way it aggregates changes and delivers them after…
JQPx
  • 69
  • 1
  • 5
2
votes
1 answer

Firefox extension JSMs and namespace ettiquite

So in Firefox extensions it's encouraged for your extension's objects to live in sub-objects like com.contoso.myExtension . That way you have not put any objects in the global namespace and extensions generally stay out of each other's hair. (At…
RandomEngy
  • 14,931
  • 5
  • 70
  • 113
2
votes
1 answer

Automated Addon, Settings Installation for Firefox with Ansible

I am currently trying to install firefox addons with Ansible. I found a role for ansible on ansible galaxy, I fixed to work with the latest ansible version (minor python2/3 issue): Fixed version: https://github.com/cyborg-x1/ansible-firefox The…
2
votes
1 answer

How to white list firefox extension redirect_uri in google developer console

I am making Firefox extension and implementing google-authentication , problem is that Firefox extension (browser.identity.getRedirectURL()) redirect_uri is not allowed to white list in google developer console, so redirect_uri mismatch error is…
2
votes
0 answers

How can I monitor network usage per website in Firefox v69+?

I have Firefox v69 on Windows 10. Windows 10 network monitor only shows network usage and bandwidth for the past 30 seconds or so. I'd like to see, within Firefox preferably, which pages or domains use the most bandwidth for all time. Windows 10…
Bulrush
  • 548
  • 2
  • 4
  • 19
2
votes
0 answers

Can browser extension permission requests be cancelled?

You can easily request a permission with browser.permissions.request and the user can accept or decline it. Now the browser extension's UI (e.g. popup or options page) stays visible and usable for the user, however. Which leads to an UX…
2
votes
2 answers

Detect tabbox tab change in XUL

What's the best way to detect switching between tabs inside a tabbox? In particular, I need to detect when a certain tab is opened, and when the user leaves it (switches to another tab). I'm using onclick now but that feels hackish.
Andrei Sch.
  • 381
  • 1
  • 3
  • 10
2
votes
1 answer

How to dump and convert binary blob for an Indexed DB sqlite database from Firefox extension

I'm trying to dump all data stored by an Firefox extension using IndexedDB. Due to some problem of Firefox Indexed DB API (see buglist https://github.com/sienori/Tab-Session-Manager/issues/364), all my firefox tabs/windows stored using the extension…
reyman64
  • 523
  • 4
  • 34
  • 73
2
votes
1 answer

How to read profile preferences from Firefox add-on?

I'm doing this (Firefox 66.0.5, MacOS): var prefs = Components.classes['@mozilla.org/preferences-service;1'] .getService(Components.interfaces.nsIPrefBranch); var x = pref.getCharPref('extensions.foo.x'); I'm getting this: JavaScript error:…
yegor256
  • 102,010
  • 123
  • 446
  • 597
2
votes
1 answer

Cookies Not Being Sent via Firefox's Downloads API in Extension

I am attempting to write a Firefox extension which downloads files. The website that I'm trying to download the files from requires cookies to be passed to GET requests, otherwise a 403 is returned. I can visit the URL that I'm attempting to…
2
votes
1 answer

URL filtering with Firefox add-on

During the page load there are number of HTTP requests for document itself and its requisites. How do i hook them, retrieve target URL and prevent request from being sent if certain condition met? Plug-ins can also issue HTTP requests, i would like…
user422039
  • 1,447
  • 4
  • 13
  • 28
2
votes
1 answer

window.getSelection() is undefined in Firefox

I'm making an extension for Firefox (opens a highlighted word's definition on Wiktionary in a new tab). I got stuck with the text select part: the recommended window.getSelection().toString() doesn't work as window.getSelection() is…
Kotlopou
  • 415
  • 3
  • 13
2
votes
2 answers

How to use Google Analytics in a Firefox addon?

Possible Duplicate: Google Analytics to track FireFox extension use I tried injecting a script tag on the page with analytics code, but it is reporting 200+ absolute unique visitors from me alone... Is there a way to use the script that will…
BrunoLM
  • 97,872
  • 84
  • 296
  • 452