I’m attempting to track the number of tabs in a closed tab group. (To avoid having to open the group just to see the number of tabs.) Problem is when doing “Add tab to group” > Closed group, there doesn’t seem to be any method to know which group the tab is being added to (closed groups don’t appear to have a groupId) or whether it is actually being totally closed rather than added to a closed group. Is it possible to access this through the sessions API or some other method? Any ideas?
The concept of a closed tab group is not exposed in the Tab Groups API. Since this is a cross-browser API other browsers support similar concepts, I’d encourage you to open a feature request on the WebExtensions Community Group’s issue tracker.
Ok, I’ll do that when I get a chance, thanks.