Отображение вопросов с тегом: Показать все вопросы

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 20 часов назад

history

How to PROPERLY erase history? I mean, you erase HISTORY...click...there you go...?!?!?...but, what's happening? I erased HISTORY...ah, I erased it FROM the panel but, it… (читать ещё)

How to PROPERLY erase history? I mean, you erase HISTORY...click...there you go...?!?!?...but, what's happening? I erased HISTORY...ah, I erased it FROM the panel but, it WILL remained on the list that it shows on top of the icon (sic) ...someone suggested to go on the panel, select privacy, scroll to history, pass over "Never remember history...." (?) AND then you "click"... Clear...what is the point? clear means clear means clear from EVERYWHERE...sorry about the mess I wrote but I was frustrated

Задан minutes2go 14 часов назад

recaptcha

Today May 1, I noticed that any website that shows a recaptcha checkbox, including the google recaptcha demo (https://www.google.com/recaptcha/api2/demo) only shows an in… (читать ещё)

Today May 1, I noticed that any website that shows a recaptcha checkbox, including the google recaptcha demo (https://www.google.com/recaptcha/api2/demo) only shows an infinite spinner in firefox v125.0.3. I've tried the same sites in chrome and edge and the recaptcha works fine. In FF, I have cleared my cache, disabled tracking protection, disabled anti-virus and tried troubleshooting mode - still get the infinite spinner. Last week, I had no problems with recaptcha.

Задан bill340 13 часов назад

Sound continues to play after pressing the back button when watching videos

Windows 10 Home 22H2 Firefox 125.0.3 For quite awhile I have had an intermittent problem when watching YouTube videos. To watch a video I right click on it and sele… (читать ещё)

Windows 10 Home 22H2 Firefox 125.0.3

For quite awhile I have had an intermittent problem when watching YouTube videos. To watch a video I right click on it and select "open link in new window". If I just click on the video to watch it, the main page may reload when I click on the back arrow and some of the videos I was interested in are no longer displayed. Sometimes my touchpad doesn't recognize the right click and opens the video in the current window. After it starts playing, if I click the back arrow, the video returns to the previous page (which may be reloaded), and sometimes the audio from the video keeps playing, so I have audio for a video that is no longer visible. When this happens, if I click on another video, the audio from both are played. Today I had the same thing happen when I was streaming a TV program from the Spectrum website.

1. If I click on a YouTube video from the main page, should the main page be rebuilt when I click on the back arrow? 2. How do I resolve the audio continuing to play problem? i don't know if this is a Firefox problem but I have no idea where to start to fix it.

Задан taherte 12 часов назад

Firefox Update Popup Notifications on Mac?

Recently a popup notification came up when I opened firefox on my mac. Its been awhile since I opened it and without thinking I clicked : o ~ Now I worry if it'ss le… (читать ещё)

Recently a popup notification came up when I opened firefox on my mac. Its been awhile since I opened it and without thinking I clicked : o ~ Now I worry if it'ss ledgit? Does Firefox give a popup box in top right corner when it needs an update? I wasn't on any strange website or anything but I'm always concerned and dont remember seeing that before.

My firefox now says its up to date after it restarted ~ it's running 125.0.3

Any advise is appreciated.

Задан jason144 12 часов назад

Why is Firefox autofilling the address bar with URLS I've never visited?

Why is Firefox autofilling the address bar with URLS I've never visited? There is a question on this from 5 years ago, with lots of suggestions. My problem is that Firefo… (читать ещё)

Why is Firefox autofilling the address bar with URLS I've never visited? There is a question on this from 5 years ago, with lots of suggestions. My problem is that Firefox is autofilling with sites that contain confidential login information.

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

The pause button on the keyboard doesn't stop the video in Firefox.

When I press the pause button on my keyboard, it doesn't stop the YouTube video like it used to. I'm not sure why it stopped working. I've checked the key, and it works f… (читать ещё)

When I press the pause button on my keyboard, it doesn't stop the YouTube video like it used to. I'm not sure why it stopped working. I've checked the key, and it works fine in Chrome.

Задан Robert Clave 2 часа назад

Can I change the date format from „month, day, year“ to „day, month, year“?

In Firefox the date format is set at „month, day, year“, but I need „day, month, year“. I tried all the solutions, I even installed Firefox - English (British) version, … (читать ещё)

In Firefox the date format is set at „month, day, year“, but I need „day, month, year“.

I tried all the solutions, I even installed Firefox - English (British) version, but nothing changes.

Can you also implement an alternative, to be able to choose between the 2 options?

Thank you very much.

Задан Cristi Nefiru 2 часа назад

Audio interface input no longer shows in Google Meet.

My primary/default browser is Firefox on Sonoma 14.4.1, and recently I'm unable to use the inputs of my audio interface for google hangouts. The relevant output is correc… (читать ещё)

My primary/default browser is Firefox on Sonoma 14.4.1, and recently I'm unable to use the inputs of my audio interface for google hangouts. The relevant output is correct, and my system audio would be the same.

Задан Scott Simon 1 час назад

Firefox updates delete my exceptions for saved cookies

On every new release of an update for Firefox, the update process deletes all of my saved cookies that I have established an exception for. I do this so that I don't have… (читать ещё)

On every new release of an update for Firefox, the update process deletes all of my saved cookies that I have established an exception for. I do this so that I don't have to continually enter my user name and password for sites that I visit regularly. The developers must change the updates so that the exceptions carryover to the new version of Firefox.

Задан seasidesquirrel 1 час назад

Issues With Websites Loading/Re-Directing - Firefox Browser Only PC and Mac OS

When attempting to load a number of different web pages such as Quickbooks Online Apps, the page displays "Loading Apps..." with a spinning wheel, but never redirects to … (читать ещё)

When attempting to load a number of different web pages such as Quickbooks Online Apps, the page displays "Loading Apps..." with a spinning wheel, but never redirects to the Apps page; the site hangs forever. On other browsers there are no issues; it eventually switches to the correct page. In Firefox Browser I have tried adding exceptions in Settings --> Privacy & Security --> Manage Exceptions. No change. Thoughts?

Задан jransom18 44 минуты назад