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 3 hours ago

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, … (read more)

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.

Asked by shannonharrisphotography 3 hours ago

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 … (read more)

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!

Asked by PrimisRulz 2 hours ago

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 … (read more)

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.

Asked by pbcb8835 20 minutes ago

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… (read more)

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.

Asked by TheOld Crab 19 minutes ago

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… (read more)

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.

Asked by customhitcher 7 minutes ago