Home » Android » android – Getting a GeckoSession's tab id?-Exceptionshub

android – Getting a GeckoSession's tab id?-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I am trying to create 2 GeckoSessions to represent two tabs.

I have a web extension with a background script. I want to send a separate message to each tab’s content script, but for that I need to know the tab id (I don’t want to send the messages to all tabs because each tab can have the same page loaded).

What would be the best way to get the tab id of each GeckoSession object?

How to&Answers: