Add ability to select tabs like Firefox’s default tab bar
Add ability to select tabs, just like Firefox’s default tab bar.
- Introduce a new state for selected but not active tabs
- Handle selecting and deselecting tabs
- Handle context menu when several tabs are selected
- Handle when several (possibly pinned and unpinned) tabs are being moved
Issues to follow on Mozilla’s side: [WebExtensions] Allow to get and set the selected state of tabs.
Edit: Apparently, highlighting a tab means to select it/add it to the current selection. I added information on several pages of MDN so that nobody will be be mislead again on the purpose of tabs.highlight()
and tabs.Tab.highlighted
.