顯示下列標籤的問題: 顯示所有問題

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 於 6 天前 詢問

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… (閱讀更多)

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

michael.sez 於 4 天前 詢問

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… (閱讀更多)

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.

coreywolfhart 於 1 天前 詢問

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… (閱讀更多)

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

matkoniecz 於 1 天前 詢問

Having more details of the inspected element in the tool-tip

Hi there, thanks for your attention I'm a web developer and new to using firefox. I was using chrome for years and now just because firefox on android let's us install ad… (閱讀更多)

Hi there, thanks for your attention I'm a web developer and new to using firefox. I was using chrome for years and now just because firefox on android let's us install add-on like it's desktop version I'm switching to firefox. as a developer I need to learn about the features firefox offers to developers or ask for any features that are missing right now, so my current issue is about the pictures I will attach. I want to have more information about the element that I'm inspecting right in the tool-tip over it for example it's active font-family or things like that. It took me sometime to figure out how to find the active font of the target element thanks to This post. but in chrome it's showed in the tool-tip.

Matty 於 10 小時前 詢問