Skip to content

Addition of the webextensions.api.tabGroups documentation #39370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tabs API with reference to tabGroups.TAB_GROUP_ID_NONE
  • Loading branch information
rebloor committed May 2, 2025
commit e14dcfba6bac5e2e74ad7fd980a616e6871437a8
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let grouping = browser.tabs.group(
- : `integer`. The window of the new group. Defaults to the [current window](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/getCurrent).

- `groupId` {{optional_inline}}
- : `integer`. The ID of the group to add the tabs to. If not specified, a new group is created.
- : `integer`. The ID of the group to add the tabs to. If not specified, a group is created.
- `tabIds`
- : `integer` or `array` of `integer`. The tab ID or list of tab IDs to add to the group. Must contain at least one tab ID.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Lists the changes to the state of the tab that is updated. To learn more about t
- `favIconUrl` {{optional_inline}}
- : `string`. The tab's new favicon URL. Not included when a tab loses its favicon (navigating from a page with a favicon to a page without one). Check `favIconUrl` in [tab](#tab) instead.
- `groupId` {{optional_inline}}
- : `integer`. The ID of the group the tabs are in or `-1` for ungrouped tabs.
- : `integer`. The ID of the group the tabs are in or {{WebExtAPIRef("tabGroups.TAB_GROUP_ID_NONE")}} for ungrouped tabs.
- `hidden` {{optional_inline}}
- : `boolean`. True if the tab is {{WebExtAPIRef("tabs.hide()", "hidden")}}.
- `isArticle` {{optional_inline}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let querying = browser.tabs.query(queryInfo)
- `discarded` {{optional_inline}}
- : `boolean`. Whether the tabs are discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content gets reloaded the next time it's activated.
- `groupId` {{optional_inline}}
- : `integer`. The ID of the tab group the tabs are in or `-1` for ungrouped tabs.
- : `integer`. The ID of the tab group the tabs are in or {{WebExtAPIRef("tabGroups.TAB_GROUP_ID_NONE")}} for ungrouped tabs.
- `hidden` {{optional_inline}}
- : `boolean`. Whether the tabs are hidden.
- `highlighted` {{optional_inline}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Values of this type are objects. They contain the following properties:
- `favIconUrl` {{optional_inline}}
- : `string`. The URL of the tab's favicon. Only present if the extension has the `"tabs"` [permission](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions) or [host permissions](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#host_permissions). It may also be `undefined` if the page has no favicon, or an empty string if the tab is loading.
- `groupId` {{optional_inline}}
- : `integer`. The ID of the tab group the tab belongs to. Set to `-1` if the tab doesn't belong to a tab group. See {{WebExtAPIRef("tabs.group")}}.
- : `integer`. The ID of the tab group the tab belongs to. Set to {{WebExtAPIRef("tabGroups.TAB_GROUP_ID_NONE")}} if the tab doesn't belong to a tab group. See {{WebExtAPIRef("tabs.group")}}.
- `height` {{optional_inline}}
- : `integer`. The height of the tab in pixels.
- `hidden`
Expand Down
Loading