# Development

**URL:** https://discourse.mozilla.org/c/add-ons/development/108.md?page=3

[Latest](https://discourse.mozilla.org/latest.md) · [Categories](https://discourse.mozilla.org/categories.md) · [Tags](https://discourse.mozilla.org/tags.md)

**Page:** 4

---

## [File input doesn't trigger "change" event in options UI on Android](https://discourse.mozilla.org/t/file-input-doesnt-trigger-change-event-in-options-ui-on-android/142779)

<div class="topic-metadata">

**Author:** [@duncan.lang](https://discourse.mozilla.org/u/duncan.lang)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 6:14pm UTC](https://discourse.mozilla.org/t/file-input-doesnt-trigger-change-event-in-options-ui-on-android/142779 "2025-04-30T18:14:06Z")

</div>

In my options\_ui page for my add-on, I have a file input: \<input type="file" accept="application/json" id="importpicker"\> And in the JavaScript I have an event listener for “change”: document.addEventListener('change'…

---

## [How do you debug issues related to going idle? (mv3)](https://discourse.mozilla.org/t/how-do-you-debug-issues-related-to-going-idle-mv3/142758)

<div class="topic-metadata">

**Author:** [@bod](https://discourse.mozilla.org/u/bod)\
**Replies:** 4\
**Last updated:** [April 30, 2025, 6:11pm UTC](https://discourse.mozilla.org/t/how-do-you-debug-issues-related-to-going-idle-mv3/142758 "2025-04-30T18:11:33Z")

</div>

Hi! My extension (which uses manifest v3) goes idle, which I understand is expected, but things go awry and I’m trying to understand exactly what, by adding lots of logs. But, alas, when the Developer Tools are open in…

---

## [Suggested alarms / linux suspend workarounds?](https://discourse.mozilla.org/t/suggested-alarms-linux-suspend-workarounds/142730)

<div class="topic-metadata">

**Author:** [@sheridan-brendan](https://discourse.mozilla.org/u/sheridan-brendan)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 5:49pm UTC](https://discourse.mozilla.org/t/suggested-alarms-linux-suspend-workarounds/142730 "2025-04-30T17:49:46Z")

</div>

Hi, I have a lightweight add-on that launches a tab at an absolute daily time using alarms. Unfortunately, I use it on a laptop that suspends frequently and the alarm is delayed by time spent suspended. From what I can g…

---

## [Loading and displaying remote HTTP images in an extension](https://discourse.mozilla.org/t/loading-and-displaying-remote-http-images-in-an-extension/142801)

<div class="topic-metadata">

**Author:** [@monyxie](https://discourse.mozilla.org/u/monyxie)\
**Replies:** 2\
**Last updated:** [April 29, 2025, 11:09am UTC](https://discourse.mozilla.org/t/loading-and-displaying-remote-http-images-in-an-extension/142801 "2025-04-29T11:09:46Z")

</div>

Hello everyone. My extension QR Lite has a feature where the user opens the context menu on an image and choose “Scan QR code in Image”, the extension will load the target image via its URL in a popup window, read the i…

---

## [Options\_ui open\_in\_tab removes Options tab in about:addons?](https://discourse.mozilla.org/t/options-ui-open-in-tab-removes-options-tab-in-about-addons/142802)

<div class="topic-metadata">

**Author:** [@duncan.lang](https://discourse.mozilla.org/u/duncan.lang)\
**Replies:** 0\
**Last updated:** [April 28, 2025, 3:38am UTC](https://discourse.mozilla.org/t/options-ui-open-in-tab-removes-options-tab-in-about-addons/142802 "2025-04-28T03:38:57Z")

</div>

Why does setting "open\_in\_tab": true remove the options tab for the add-on in about:addons? I feel that the tab should still be there, but just act as a button to open the options page. As it is now, it’s incredib…

---

## [If, on Android, "chrome\_settings\_overrides" is not supported, there is no way to add a custom search engine?](https://discourse.mozilla.org/t/if-on-android-chrome-settings-overrides-is-not-supported-there-is-no-way-to-add-a-custom-search-engine/58465)

<div class="topic-metadata">

**Author:** [@loserdev](https://discourse.mozilla.org/u/loserdev)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 11:10pm UTC](https://discourse.mozilla.org/t/if-on-android-chrome-settings-overrides-is-not-supported-there-is-no-way-to-add-a-custom-search-engine/58465 "2020-04-22T23:10:25Z")

</div>

I had uploaded an OpenSearch XML, and it worked on both the destkop and Android FireFox. Now that that is obsolete, I created a new extension using chrome\_settings\_overrides, uploaded it to the official site, and had it …

---

## [An addon to colour every tab individually](https://discourse.mozilla.org/t/an-addon-to-colour-every-tab-individually/142616)

<div class="topic-metadata">

**Author:** [@moamar](https://discourse.mozilla.org/u/moamar)\
**Replies:** 1\
**Last updated:** [April 22, 2025, 9:20pm UTC](https://discourse.mozilla.org/t/an-addon-to-colour-every-tab-individually/142616 "2025-04-22T21:20:33Z")

</div>

Hello Firefox You are very good I use Firefox since a long time I wish that Firefox create an addon to enable us to colour every tab in a session where that colour of the tab can be saved for this single tab and we can…

---

## [Test and debug extension on Android](https://discourse.mozilla.org/t/test-and-debug-extension-on-android/142489)

<div class="topic-metadata">

**Author:** [@b1n4ry](https://discourse.mozilla.org/u/b1n4ry)\
**Replies:** 1\
**Last updated:** [April 21, 2025, 7:20am UTC](https://discourse.mozilla.org/t/test-and-debug-extension-on-android/142489 "2025-04-21T07:20:05Z")

</div>

Hello, I used the usb connection to transfer my extension to my Android smartphone (for testing and debugging) and install it directly using the file installation method. However, at some point - I’m not exactly sure wh…

---

## [Search function for buying products from Non-Profits/Charities](https://discourse.mozilla.org/t/search-function-for-buying-products-from-non-profits-charities/142471)

<div class="topic-metadata">

**Author:** [@g8228g](https://discourse.mozilla.org/u/g8228g)\
**Replies:** 1\
**Last updated:** [April 19, 2025, 6:52am UTC](https://discourse.mozilla.org/t/search-function-for-buying-products-from-non-profits-charities/142471 "2025-04-19T06:52:41Z")

</div>

Hi everyone! looking for some advice. Is there a way to create an add-on that provides alternatives to Amazon, Walmart, etc. when searching for products? Potentially providing a list of companies or nonprofits that have…

---

## [Search.query() practically doesn't work, presumably due to CSP when sending POST request](https://discourse.mozilla.org/t/search-query-practically-doesnt-work-presumably-due-to-csp-when-sending-post-request/142418)

<div class="topic-metadata">

**Author:** [@lhr](https://discourse.mozilla.org/u/lhr)\
**Replies:** 4\
**Last updated:** [April 18, 2025, 10:19am UTC](https://discourse.mozilla.org/t/search-query-practically-doesnt-work-presumably-due-to-csp-when-sending-post-request/142418 "2025-04-18T10:19:17Z")

</div>

I am very much not a developer, so please excuse and point out any silly stuff :slight\_smile: I use the HTML variant of DuckDuckGo available at https://html.duckduckgo.com/html/. I added the search engine by going to th…

---

## [awaiting review for addon](https://discourse.mozilla.org/t/awaiting-review-for-addon/142273)

<div class="topic-metadata">

**Author:** [@oditynet](https://discourse.mozilla.org/u/oditynet)\
**Replies:** 3\
**Last updated:** [April 14, 2025, 3:00pm UTC](https://discourse.mozilla.org/t/awaiting-review-for-addon/142273 "2025-04-14T15:00:44Z")

</div>

Hello, my add-on seetoprice UUID {51c0848e-9d21-4587-9f88-c14eacd5ff9a} has been awaiting review for 4 days. Could you please provide an update? It is my first addon. Please, help me. Thank you!"

---

## [Change specific cursor with addon](https://discourse.mozilla.org/t/change-specific-cursor-with-addon/142165)

<div class="topic-metadata">

**Author:** [@mobly](https://discourse.mozilla.org/u/mobly)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 5:28pm UTC](https://discourse.mozilla.org/t/change-specific-cursor-with-addon/142165 "2025-04-07T17:28:29Z")

</div>

Trying to change the grab and grabbing cursors to 2 png files in my addon folder. How do i target these specific cursors, hide them then render the png files there?

---

## [Modifying/Removing CSP header V3](https://discourse.mozilla.org/t/modifying-removing-csp-header-v3/141837)

<div class="topic-metadata">

**Author:** [@M\_Knut](https://discourse.mozilla.org/u/M_Knut)\
**Replies:** 3\
**Last updated:** [April 2, 2025, 9:22pm UTC](https://discourse.mozilla.org/t/modifying-removing-csp-header-v3/141837 "2025-04-02T21:22:48Z")

</div>

I’d like to modify the CSP header in browser.webRequest.onHeadersReceived in my v3 add-on. For example, I’d like to turn a CSP value of “connect-src ‘self’” into “connect-src localhost:1234 ‘self’” so that I can interac…

---

## [\<all\_urls\> doesn't grant access to all urls upon installation](https://discourse.mozilla.org/t/all-urls-doesnt-grant-access-to-all-urls-upon-installation/141730)

<div class="topic-metadata">

**Author:** [@monyxie](https://discourse.mozilla.org/u/monyxie)\
**Replies:** 5\
**Last updated:** [April 2, 2025, 8:57pm UTC](https://discourse.mozilla.org/t/all-urls-doesnt-grant-access-to-all-urls-upon-installation/141730 "2025-04-02T20:57:36Z")

</div>

Hi everyone. I’m facing some obstacles trying to fix a bug for my extension QR Lite. Would really appreciate some help. The related functionality works like this: upon invoking the context menu on an image and choosing …

---

## [Content Encoding Error](https://discourse.mozilla.org/t/content-encoding-error/141850)

<div class="topic-metadata">

**Author:** [@American\_Citizen](https://discourse.mozilla.org/u/American_Citizen)\
**Replies:** 0\
**Last updated:** [March 26, 2025, 1:31am UTC](https://discourse.mozilla.org/t/content-encoding-error/141850 "2025-03-26T01:31:27Z")

</div>

In trying to download the check sum for the latest GNU MPFR version 4.2.2 gzipped tarball, a “Content Encoding Error” is thrown for the webpage https://www.mpfr.org/mpfr-current/mpfr-4.2.2.tar.gz.asc. This should NOT be …

---

## [onBeforeRequest Blocking & Redirecting](https://discourse.mozilla.org/t/onbeforerequest-blocking-redirecting/141848)

<div class="topic-metadata">

**Author:** [@viyok](https://discourse.mozilla.org/u/viyok)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 11:25pm UTC](https://discourse.mozilla.org/t/onbeforerequest-blocking-redirecting/141848 "2025-03-25T23:25:30Z")

</div>

Hi. I’m trying to use onBeforeRequest to block an incoming request, and when debugging it works (sometimes). This is the manifest file { "manifest\_version": 2, "name": "WBlist", "version": "0.1", "permissions"…

---

## [Menu context "page\_action" in an MV3 extension](https://discourse.mozilla.org/t/menu-context-page-action-in-an-mv3-extension/141750)

<div class="topic-metadata">

**Author:** [@aecreations](https://discourse.mozilla.org/u/aecreations)\
**Replies:** 1\
**Last updated:** [March 23, 2025, 7:19am UTC](https://discourse.mozilla.org/t/menu-context-page-action-in-an-mv3-extension/141750 "2025-03-23T07:19:37Z")

</div>

I’m converting one of my extensions to Manifest V3, and I’m noticing that a call to browser.menus.create() is now returning an error. This particular call is supposed to set up the context menu items for the page action …

---

## [Feedback gathering: Firefox Devloper Tools for Add-ons](https://discourse.mozilla.org/t/feedback-gathering-firefox-devloper-tools-for-add-ons/141518)

<div class="topic-metadata">

**Author:** [@dotproto](https://discourse.mozilla.org/u/dotproto)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 6:34pm UTC](https://discourse.mozilla.org/t/feedback-gathering-firefox-devloper-tools-for-add-ons/141518 "2025-03-18T18:34:16Z")

</div>

Hey devs! Over the past few months the Developer Tools engineers have been improving the debugging experience for extensions. For example, they recently fixed a bug where source files in the Debugger tab weren’t updating…

---

## [People never trust mozilla or slimbrowser again!](https://discourse.mozilla.org/t/people-never-trust-mozilla-or-slimbrowser-again/141426)

<div class="topic-metadata">

**Author:** [@markel\_Turku](https://discourse.mozilla.org/u/markel_Turku)\
**Replies:** 3\
**Last updated:** [March 16, 2025, 7:50pm UTC](https://discourse.mozilla.org/t/people-never-trust-mozilla-or-slimbrowser-again/141426 "2025-03-16T19:50:39Z")

</div>

i m using win 10 my laptop is very good and your slimbrowser was working good last years but 2 days ago slimbrowser needs update. its updated itself but now notting works with you! the new updated slimbrowser became 18.0…

---

## [Race condition when updating addon overriding New tab page](https://discourse.mozilla.org/t/race-condition-when-updating-addon-overriding-new-tab-page/140836)

<div class="topic-metadata">

**Author:** [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Replies:** 9\
**Last updated:** [March 13, 2025, 10:51am UTC](https://discourse.mozilla.org/t/race-condition-when-updating-addon-overriding-new-tab-page/140836 "2025-03-13T10:51:25Z")

</div>

During addon update, Firefox will close all tabs of that addon. And if user has only one tab opened - with that addon - this will close Firefox. This can easily happen for addons overriding New tab page, because if you…

---

## [Absolute/relative position of FF UI urlbar](https://discourse.mozilla.org/t/absolute-relative-position-of-ff-ui-urlbar/141302)

<div class="topic-metadata">

**Author:** [@Kein](https://discourse.mozilla.org/u/Kein)\
**Replies:** 0\
**Last updated:** [March 12, 2025, 6:18pm UTC](https://discourse.mozilla.org/t/absolute-relative-position-of-ff-ui-urlbar/141302 "2025-03-12T18:18:21Z")

</div>

I’m a bit puzzled by some weird behavior I’ve encountered on Firefox 136 when using custom UI css rules (via userChrome.css). This (making urlbar toggleable and in “overlay” mode) used to work just fine in FF 132: tool…

---

## [Why is getting started SUCH a chaotic mess?](https://discourse.mozilla.org/t/why-is-getting-started-such-a-chaotic-mess/141112)

<div class="topic-metadata">

**Author:** [@njz](https://discourse.mozilla.org/u/njz)\
**Replies:** 3\
**Last updated:** [March 12, 2025, 12:33am UTC](https://discourse.mozilla.org/t/why-is-getting-started-such-a-chaotic-mess/141112 "2025-03-12T00:33:28Z")

</div>

I just looked up how to code a Firefox add-on for the very first time, and the first thing one ends up with after a web search is this utterly useless page: (After coming from Entwickler-Zentrum :: Add-ons für Firefox …

---

## [Allowing strict\_min\_version value of 115.13](https://discourse.mozilla.org/t/allowing-strict-min-version-value-of-115-13/141082)

<div class="topic-metadata">

**Author:** [@aecreations](https://discourse.mozilla.org/u/aecreations)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 7:59pm UTC](https://discourse.mozilla.org/t/allowing-strict-min-version-value-of-115-13/141082 "2025-03-08T19:59:54Z")

</div>

Due to the upcoming expiration of the root certificate in Firefox, I want to set the minimum supported Firefox in my extension to 115.13 to match the minimum ESR version as described in the above linked Mozilla Support a…

---

## [Picture in Picture API?](https://discourse.mozilla.org/t/picture-in-picture-api/140852)

<div class="topic-metadata">

**Author:** [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Replies:** 3\
**Last updated:** [March 5, 2025, 6:52pm UTC](https://discourse.mozilla.org/t/picture-in-picture-api/140852 "2025-03-05T18:52:36Z")

</div>

As addon developer I have to say I really miss the PiP API. For example, I would love to see a minimize button (or some “shrink” button), and some predefined resize buttons (like “Resize to 1920x1080”). And all we need…

---

## [Rerun addon's script on URL dynamic change](https://discourse.mozilla.org/t/rerun-addons-script-on-url-dynamic-change/86430)

<div class="topic-metadata">

**Author:** [@marcellusdrum](https://discourse.mozilla.org/u/marcellusdrum)\
**Replies:** 4\
**Last updated:** [March 1, 2025, 1:22am UTC](https://discourse.mozilla.org/t/rerun-addons-script-on-url-dynamic-change/86430 "2025-03-01T01:22:05Z")

</div>

To simplify the scenario, lets say I’m working on an extension that just contains: alert("Hello") whenever you load a page in example.com. Relevant manifest.json part: "content\_scripts": \[ { …

---

## [Accessing navigator.getBattery from extension context](https://discourse.mozilla.org/t/accessing-navigator-getbattery-from-extension-context/140592)

<div class="topic-metadata">

**Author:** [@hyperstown](https://discourse.mozilla.org/u/hyperstown)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 8:36pm UTC](https://discourse.mozilla.org/t/accessing-navigator-getbattery-from-extension-context/140592 "2025-02-25T20:36:38Z")

</div>

Hello, I want to build an extension that shows battery status in one way or another. I know that Firefox removed this feature long time ago but in original discussions about removing this API it was said to limit it to…

---

## [I can't put my organization's policies in the background script](https://discourse.mozilla.org/t/i-cant-put-my-organizations-policies-in-the-background-script/140219)

<div class="topic-metadata">

**Author:** [@desenv.magma3](https://discourse.mozilla.org/u/desenv.magma3)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 5:10pm UTC](https://discourse.mozilla.org/t/i-cant-put-my-organizations-policies-in-the-background-script/140219 "2025-02-21T17:10:07Z")

</div>

I have a corporate extension that needs to be hosted on mozilla addons. So I’m adapting my background script but I’m not able to get the group policies through the extension. I used this code, what did I do wrong? asyn…

---

## [Actually setting a new folder color and color coding of emails](https://discourse.mozilla.org/t/actually-setting-a-new-folder-color-and-color-coding-of-emails/140185)

<div class="topic-metadata">

**Author:** [@BallisticsMan](https://discourse.mozilla.org/u/BallisticsMan)\
**Replies:** 1\
**Last updated:** [February 18, 2025, 8:36am UTC](https://discourse.mozilla.org/t/actually-setting-a-new-folder-color-and-color-coding-of-emails/140185 "2025-02-18T08:36:48Z")

</div>

To begin, I am no coder. I am looking for an add-on that will allow me to change the actual color of the folders under my Inbox and have any emails associated with that folder match the folders color REGARDLESS of how it…

---

## [Problem Accessing GLTF Asset in Production Firefox Add-on with browser.runtime.getURL](https://discourse.mozilla.org/t/problem-accessing-gltf-asset-in-production-firefox-add-on-with-browser-runtime-geturl/140082)

<div class="topic-metadata">

**Author:** [@mattbcool](https://discourse.mozilla.org/u/mattbcool)\
**Replies:** 3\
**Last updated:** [February 12, 2025, 10:04pm UTC](https://discourse.mozilla.org/t/problem-accessing-gltf-asset-in-production-firefox-add-on-with-browser-runtime-geturl/140082 "2025-02-12T22:04:26Z")

</div>

I’m having trouble loading a GLTF asset in my Firefox add-on production build. In my code, I’m trying to construct the URL for the asset using browser.runtime.getURL , but it seems that the fallback is always used, so th…

---

## [Hyperlinks on Options page don't respond to middle-click](https://discourse.mozilla.org/t/hyperlinks-on-options-page-dont-respond-to-middle-click/139979)

<div class="topic-metadata">

**Author:** [@pmarks](https://discourse.mozilla.org/u/pmarks)\
**Replies:** 4\
**Last updated:** [February 11, 2025, 12:55am UTC](https://discourse.mozilla.org/t/hyperlinks-on-options-page-dont-respond-to-middle-click/139979 "2025-02-11T00:55:20Z")

</div>

For IPvFoo v2.20, I added some plain old \<a href\> links to my extension’s Options page. When running in Chrome, I’m able to open those links in a background tab using middle-click or ctrl-click, but in Firefox only left…

[Previous page](https://discourse.mozilla.org/c/add-ons/development/108.md?page=2)

[Next page](https://discourse.mozilla.org/c/add-ons/development/108.md?page=4)
