Bug 1597793 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

We should support `tabs.onActivated` maybe asking embedders to tell us which one is the current active tab with an API on `WebExtensionController.setActiveTab(GeckoSession session)` or something like that.

This is used by some extensions to update the browser action popup.

The code today waits for a Fennec event which is never fired: https://searchfox.org/mozilla-central/rev/652014ca1183c56bc5f04daf01af180d4e50a91c/mobile/android/components/extensions/ext-tabs.js#117-130

mdn: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/onActivated
We should support `tabs.onActivated` maybe asking embedders to tell us which one is the current active tab with a new API like `WebExtensionController.setActiveTab(GeckoSession session)` or something like that.

This is used by some extensions to update the browser action popup.

The code today waits for a Fennec event which is never fired: https://searchfox.org/mozilla-central/rev/652014ca1183c56bc5f04daf01af180d4e50a91c/mobile/android/components/extensions/ext-tabs.js#117-130

mdn: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/onActivated

Back to Bug 1597793 Comment 0