I am working on a Addon again.
I use tabs.onActivated to monitore if the user changes the active tab.
If so, I want to send a message to the previous active tab.
How do I get the tabID? tabs.onActivated only gives me the ID of the tab that has become active. Do I have to log the previous tabID myself?
Notice that active tab is different than focused tab. Take into consideration that there could be more than one active tab because there could be more than one window. If you want to send a message to the previous focused tab, you will also need to listen to windows.onFocusChanged.
Thats a good point. I wanted to prevent to log it myself, because of all the special cases like moving a tab from one window to another. Or missing an event.
But I think I give it a try.