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
Apply suggestions from review
Co-authored-by: Rob Wu <rob@robwu.nl>
  • Loading branch information
rebloor and Rob--W authored May 8, 2025
commit da4620687776074eab86b92a139361c0c404ed4c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To use this API, an extension must request the `"tabGroups"` [permission](/en-US
- {{WebExtAPIRef("tabGroups.move()")}}
- : Moves a tab group within or to another window.
- {{WebExtAPIRef("tabGroups.query()")}}
- : Returns all grups or finds tab groups with certain properties.
- : Returns all tab groups or finds tab groups with certain properties.
- {{WebExtAPIRef("tabGroups.update()")}}
- : Modifies the state of a tab group.

Expand All @@ -56,3 +56,9 @@ To use this API, an extension must request the `"tabGroups"` [permission](/en-US
## Browser compatibility

{{Compat}}

## See also
- {{WebExtAPIRef("tabs.group()")}}
- {{WebExtAPIRef("tabs.ungroup()")}}
- {{WebExtAPIRef("tabs.query()")}}
- {{WebExtAPIRef("tabs.Tab")}}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Listen for and log tab group creation:

```js
function tabGroupCreated(group) {
console.log(`Tab with ID ${group.id} was created.`);
console.log(`Tab group with ID ${group.id} was created in window ${group.windowId}.`);
}

browser.tabGroups.onCreated.addListener(tabGroupCreated);
Expand Down
Loading