Hi,
If a user uses Firefox Container addon, she already has the means to open or create new container tabs. I got a feature request to expose different settings to different container tabs provided by Firefox Container addon. I don’t want my addon to provide the means to create new containers etc, just wish to detect the container name of current tab and adjust settings. (or detect the list of containers, and adjust variables in background script for different containers, so to provide different experience inside different containers)
I have read the contexualidentities documentation in MDN,but I am not able to find how one extension can query the current tab’s container name. I have tried contextual identities query({}) API and as expected it returns all the container names but I don’t see how to find the current tab’s container from this list.
Can you please advice or suggest how to do this or provide example if possible?
Thanks.