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… (читать ещё)

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?)

Задан ash 4 часа назад

Website not workin

I use Lightfolio.com for my website hosting. My computer does not let me login or load the website using Firefox. I've deleted the cookies, and played with the settings, … (читать ещё)

I use Lightfolio.com for my website hosting. My computer does not let me login or load the website using Firefox. I've deleted the cookies, and played with the settings, and it still doesn't work. I'm really needing help as this is dampering my business.

Задан shannonharrisphotography 4 часа назад

Getting my OLD Firefox Configuration back

Dear People --- FIRST: I apologize for taking so ling. I had physical probs, that kept me from coming back. SECOND: I'm afraid that I can't solve this problem with the a… (читать ещё)

Dear People --- FIRST: I apologize for taking so ling. I had physical probs, that kept me from coming back. SECOND: I'm afraid that I can't solve this problem with the advice provided. There was a file mentioned [which slips my mind, and I can't look for it with out leaving this screen] that is supposed to be on my desk top. I couldn't find it, so things stopped there.

SO..... I'm reiterating my problem: I loaded an "update" to Firefox that was supposed to get around the obnoxious "THIS BROWSER IS NO LONGER SUPPORTED" message I'd get on certain web-sites [such as the Milwaukee Journal]. I never understood that, as I am careful to update programs, when the updates are available. SO: While I was on the Milwaukee Journal Site, I clicked on the "Firefox Update" that the Journal's site recommended. What happened was I got the Current Version, and LOST all of my add-ons. After problems I can't go into here, "The Cat's Back." Please advise whether I can get things back after this much time.

N.B.: I'm running Windows 10.

THANKX! C M The Gray Cat

Задан The Gray Cat 4 часа назад

Memory Leak help

Need help figuring out why Firefox has a memory leak after an extended use of Firefox browsing. Don't know if its the result of an extension having this issue, or if its … (читать ещё)

Need help figuring out why Firefox has a memory leak after an extended use of Firefox browsing. Don't know if its the result of an extension having this issue, or if its a Firefox bug. I have also provided my troubleshooting information, and a link to my memory usage is listed below for download: https://1drv.ms/u/s!ArspaZQCMwZ-iLU_CckOfLkl9DlETQ?e=MuIqsO Thanks in advance!

Задан PrimisRulz 3 часа назад

Password reset

Thunderbird is asking for my password. I have forgot the one I used several years when starting to use the product please help!

Задан Brandon 2 часа назад

Unable To Install Firefox on Zebra Scanner TC8000 Running Android 5.1.1

I have two Zebra TC8000 hand scanners running Android OS 5.1.1 that I've reset to factory defaults. I need to download and install Firefox but each installation attempt … (читать ещё)

I have two Zebra TC8000 hand scanners running Android OS 5.1.1 that I've reset to factory defaults. I need to download and install Firefox but each installation attempt fails either at the download or at installation. No real detail is given as to what the issue is. I just get a message "Queueing" or "X App not installed."

I've attempted to install our regular APK that has historically worked fine. The download location is... https://download.moziilla.org/?product=fennec-latest&os=android&lang=multi The APK from this site no long downloads. The download status just shows "QUEUEING" for 5-7 minutes then fails.

I switched to browsing directly to the Mozilla FTP page and attempted to download several versions of Firefox for Android. The latest version 125.0 at... https://ftp.mozilla.org/pub/fenix/releases/125.0/android/ Here, I tried installing each of the three APKs offered here and receive the message "X App not installed" with each attempt. I am, at least, able to successfully download the APK and launch the install but I can't get the install to work.

Any clue on what could be wrong?

Задан vernon.heard 2 часа назад

Yahoo email

When we log into our Yahoo email, there's a small triangle (see screen shot) next to the padlock on the address bar that says "connection not secure". Not sure what to … (читать ещё)

When we log into our Yahoo email, there's a small triangle (see screen shot) next to the padlock on the address bar that says "connection not secure".

Not sure what to do to get rid of it.

Задан pbcb8835 43 минуты назад

Boldfaced "S" does not print

When I view my bank statement in Firefox, everything appears fine, but when I print the statement, all occurrences of boldfce "S" on the printout are blank. This problem… (читать ещё)

When I view my bank statement in Firefox, everything appears fine, but when I print the statement, all occurrences of boldfce "S" on the printout are blank. This problem does not occur with Google. Running macOS Catalina, all maintenance applied, Firefox is at 125.0.3.

Задан TheOld Crab 43 минуты назад

Extremely High Ram Usage

Hello Support, 5-1-2024 First Time in a decade I've had to contact support. Please TELL me why there are 13 instances of firefox running at the same time. It is take so… (читать ещё)

Hello Support, 5-1-2024 First Time in a decade I've had to contact support. Please TELL me why there are 13 instances of firefox running at the same time. It is take so much memory up and really slowing my machine down on the internet also. Tell me how to fix otherwise I will have to switch to a different web browser. I realy love firefox and have been using since It was released. I really Don't want to switch Browers but this is to much any more. It has become much worse than a Year ago. I do Not have any addons or extension installed now, I don't use them enough to install. Thank you for your help in this BIG HOG memory problem.

Задан customhitcher 30 минут назад