Questions tagged [web-ext]

Use only for Mozilla's web-ext utility, not for WebExtensions in general!

web-ext is a command line tool designed to speed up various parts of the extension development process, making development faster and easier. This article explains how to install and use web-ext: https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/

18 questions
3
votes
0 answers

Error using Dexie from browser extension content scripts

I'm facing an error when I run the Dexie Hello World from the content script of my firefox extension. The extension is: in typescript compiled using webpack + babbel runned using web-ext run. The previously linked example is declared in the…
3
votes
1 answer

Different development and build configuration with web-ext

I am working with a browser extension project and want to have a different URL used in background.js during development time and build time. I want to do this without having to remember to change the code between development and build. With a server…
Paul Watson
  • 732
  • 7
  • 17
3
votes
1 answer

Can Firefoxe's web-ext utility be made to open an extension page on start with -u?

As far as I understand, each time an extension is reloaded, it gets a new moz-extension:// URL with a new UUID. This makes it impossible to know the extension page URL I want to use with web-ext run -u in advance. This makes web-ext almost worthless…
Ivan
  • 5,803
  • 2
  • 29
  • 46
2
votes
0 answers

Firefox extension not working post messages

I have the following code: background.js let currentProxy = DEFAULT_PROXY; let pendingRequests = []; var ProxyManager = { Auth: function(requestDetails) { var authData = { username: currentProxy.username, …
ProUser
  • 31
  • 2
2
votes
1 answer

How to test web-ext in my current browser

I am using web-ext to create and test my extension. When I run web-ext run it will launch a debug Firefox with a new profile. How can I use web-ext to develop my extension using my current browser. One major reason I want to use one browser is to…
Michael Ozeryansky
  • 7,204
  • 4
  • 49
  • 61
2
votes
1 answer

building a webextension with parcel and web-ext, what is the correct content security policy

Parcel supports bundling webextensions: https://v2.parceljs.org/recipes/web-extension/ The command to set up a build server and watch for changes is: parcel src/manifest.json --host localhost --target webext-dev. This will bundle a webextension into…
1
vote
1 answer

web-ext connect ECONNREFUSED ::1:5037

I am creating firefox extension, and trying to test using official firefox documentation…
Priyanshu
  • 73
  • 6
1
vote
2 answers

Environment variables for web-ext

I'm using web-ext by mozilla to submit an extension to firefox addon store. The --help says this: --api-key API key (JWT issuer) from addons.mozilla.org [string] [required] …
Herman Starikov
  • 2,636
  • 15
  • 26
1
vote
1 answer

Sign Firefox extension without publishing on AMO

I have a Firefox extension that was published on AMO. Recently, Mozilla unlisted it because it did not met some of their guidelines (paid software required to use it). They suggested me to self-host the extension for distribution. So, for this I…
Prerak Sola
  • 9,517
  • 7
  • 36
  • 67
0
votes
0 answers

How to add a border around the badge in a browser extension

Is it possible to add a border around the extension badge for a web extension?. I have developed a web extension called Stack Me First, I want the extension badge to have a border around it which I want to customize based on the active tab of the…
Gangula
  • 5,193
  • 4
  • 30
  • 59
0
votes
0 answers

Firefox EXTENSION_ID_REQUIRED on manifest.json

I've recently built a script extension for Chrome using Manifest Version 3, and it's been working smoothly. Now, I'm attempting to create a Firefox version of the same extension. To do this, I'm using the web-ext tool, specifically version…
0
votes
0 answers

Firefox web-ext run failing after running profile

I am trying my hand at building a simple extension for Firefox, but got the following error when running web-ext run: Error: not found: firefox at F (/usr/local/lib/node_modules/web-ext/node_modules/fx-runner/node_modules/which/which.js:63:19) …
Knuffle98
  • 11
  • 2
0
votes
0 answers

Chrome DevTools fails to load a WebExtension's source map with ERR_BLOCKED_BY_CLIENT (but I'm not using an ad blocker)

I'm developing a browser extension, and for some reason Chrome will not load the source map for the extension's script. This is the specific error: DevTools failed to load source map: Could not load content for…
0
votes
1 answer

How to use web-ext sign with a release notes

I use web-ext sign to upload and sign my addon and wanted to add the release notes to avoid having to add it manually afterward. So I use the --use-submission-api and --amo-metadata parameters to indicate the following metadata file: { …
Jérémie Bertrand
  • 3,025
  • 3
  • 44
  • 53
0
votes
1 answer

REDUX: Dispatch is not update the store

I am working on a project that produces a chrome extension. I am trying to dispatch function in popup.tsx. However not dispatching. My store does not update. The same code works in background page. What can I do that? What could be the problem? Here…
1
2