Firefox gBrowser.selectedBrowser ID

I am working on developing a Firefox extension. In my extension, I use an array to store certain data depending on the tabs.

I used:

gBrowser.getBrowserIndexForDocument(gBrowser.contentDocument); 

To get the TabID.

I found that TabID can exist more than once if I open Firefox more than once. I would need something like gBrowser.selectedBrowser BrowserID.

thanks

+4
source share
1 answer

You can store your data as a property in a tab / browser element or in a content document.

0
source

Source: https://habr.com/ru/post/1347274/


All Articles