Showing questions tagged: Show all questions

userchrome.js: how to get notified when tabs open and close?

I've recently started using the Tree Style Tab extension, and I'm finding it useful, but I'd like it if the list of tabs could be automatically hidden when only one tab i… (read more)

I've recently started using the Tree Style Tab extension, and I'm finding it useful, but I'd like it if the list of tabs could be automatically hidden when only one tab is open (and automatically shown when more than one tab is open).

I hoped to write an extension to do this, but opening the sidebar from an extension requires a user gesture, so I suspect I'll have to use a userchrome.js script.

From a "userchrome.js"-like environment (i.e. unsandboxed AutoConfig), I can hide and show the sidebar with `SidebarUI.hide()` and `SidebarUI.show("treestyletab_piro_sakura_ne_jp-sidebar-action")`, and I can examine the tabs open in the current window via `gBrowser.tabs`, but I can't see how to get notified when the number of tabs changes (replacing `gBrowser.tabs` with a proxy doesn't work, for example). I suppose I could just check every few seconds? That feels like a bit of a cop-out, though, and gets more and more inefficient the more windows are open.

There's an API for extensions to receive events when tabs open and close, so clearly this is possible. Where should I be looking for this functionality?

(I also don't know how I would go about unregistering an event listener (or cancelling a setInterval call!) when the window closes, assuming that's necessary to avoid leaking resources – is there an event like `chrome-document-global-created` I could listen for, but that fires during teardown of the window rather than when one is created?)

Asked by ash 5 days ago

Credit card autofill stopped working.

Recently firefox stopped filling in my credit card information. 1. On a website asking for a credit card click on the credit card number box. 2. Choose the car from the… (read more)

Recently firefox stopped filling in my credit card information. 1. On a website asking for a credit card click on the credit card number box. 2. Choose the car from the popup. 3. Popup disappears but nothing is filled in on the website form. 4. Use Google Pay or PayPal to purchase.

This used to work.

Firefox version 125.0b9 (64-bit) Ubuntu 22.04 Firefox installed from the Mozilla PPA - ppa:mozillateam/firefox-next

Asked by michael.sez 3 days ago

Firefox DoH fails on Linux Mint XFCE and Fedora Kinoite

Hello, By default, DoH fails on Max Protection in the latest OS versions listed above. The workaround I've discovered is using https://1.1.1.1/dns-query, but I would rath… (read more)

Hello, By default, DoH fails on Max Protection in the latest OS versions listed above. The workaround I've discovered is using https://1.1.1.1/dns-query, but I would rather use the default settings.

Asked by coreywolfhart 18 hours ago

How default new page sites are selected?

How default new page sites are selected? Is it possible to propose a new one? I thought that featuring https://www.openstreetmap.org/ may be interesting (it is a Wikiped… (read more)

How default new page sites are selected? Is it possible to propose a new one?

I thought that featuring https://www.openstreetmap.org/ may be interesting (it is a Wikipedia of maps - with open data dataset contributed by various people, that anyone can edit and is already quite useful).

I think that it may be of interest for Firefox users.

Disclaimer: I am significantly active in OSM community

Asked by matkoniecz 11 hours ago

launching firefox in safemode just attaches to existing process instead of launching a new instance in safemode

Howdy, Workflow: I have a firefox instance already running. I want to launch a new firefox in safe-mode to test something without disrupting my existing firefox. Probl… (read more)

Howdy,

Workflow: I have a firefox instance already running. I want to launch a new firefox in safe-mode to test something without disrupting my existing firefox.

Problem: I try to launch a new firefox in safe mode using `firefox --safe-mode`, but firefox just opens a new window NOT in safe mode.

I think it may because firefox in safe-mode requires launching launching from a new instance rather than attaching to existing instance.

`firefox --help` shows a flag I can use:

--new-instance Open new instance, not a new window in running instance. --safe-mode Disables extensions and themes for this session.

So I run `firefox --safe-mode --new-instance`

now I get error popup with message:

"Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile."

Now I think what is the point of the flag "new-instance" if Firefox doesn't support multiple instances?

Regardless, how can I launch firefox in safe-mode without disrupting my existing firefox instance and without relying on creating a profile just for this?

Asked by furkansahin824 32 minutes ago