I think this is a question for the Chrome team but I'm open to any suggestions.
My extension is a tabs/bookmarks/session manager. It allows tabs and bookmarks to be grouped into named 'topics'. When a bookmarked item is opened in a tab my extension puts that tab into a tab group with the name of the associated topic.
A recent Chrome update allows (and defaults to) displaying and pinning tab groups to the bookmarks bar and saving them so they can be closed and re-opened.
My main problem is as follows. When using my extension if a user opens a saved item, say from the topic 'Project-X', I will open the item in a tab, call tabs.group and name the newly created group 'Project-X'. If the user subsequently closes the group I get a tabs.onRemoved event and mark the item, and group, as closed. But 'Project-X' will still show saved on the bookmark bar. On subsequent re-opening, the same process will be followed and so the user will see two tab groups called 'Project-X' in the bookmark bar.
There is no API access to saved tab groups. I don't see any way my extension can know that a group named 'Project-X' already exists, and a quick experiment shows that the tabgroup ID is not preserved across closing and re-opening.
Showing a persistent representation of tab groups in the browsers UI but not exposing any API access seems like a big gap. (Not to mention a major usability issue for my specific extension.)
Are there any plans to update the API in line with the UI? Any suggestions on how I can work-around in the meantime?
Thanks.
Tony