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
source share