Skip to content

Commit

Permalink
131 tab updates (#35383)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebloor authored Sep 20, 2024
1 parent d82c19f commit a3a52b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Events have three functions:
- "hidden"
- "isArticle"
- "mutedInfo"
- "openerTabId"
- "pinned"
- "status"
- "title"
Expand Down Expand Up @@ -101,6 +102,8 @@ Lists the changes to the state of the tab that is updated. To learn more about t
- : `boolean`. True if the tab is an article and is therefore eligible for display in [Reader Mode](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/toggleReaderMode).
- `mutedInfo` {{optional_inline}}
- : {{WebExtAPIRef('tabs.MutedInfo')}}. The tab's new muted state and the reason for the change.
- `openerTabId` {{optional_inline}}
- : `integer`. The ID of the tab that opened this tab, if any. This property is only present if the opener tab exists and is in the same window.
- `pinned` {{optional_inline}}
- : `boolean`. The tab's new pinned state.
- `status` {{optional_inline}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let updating = browser.tabs.update(
- `muted` {{optional_inline}}
- : `boolean`. Whether the tab should be muted.
- `openerTabId` {{optional_inline}}
- : `integer`. The ID of the tab that opened this tab. If specified, the opener tab must be in the same window as this tab.
- : `integer`. The ID of the tab that opened this tab. If specified, the opener tab must be in the same window as this tab. Set to `-1` to clear the set `openerTabId`.
- `pinned` {{optional_inline}}
- : `boolean`. Whether the tab should be pinned.
- `selected` {{deprecated_inline}} {{optional_inline}}
Expand Down
3 changes: 3 additions & 0 deletions files/en-us/mozilla/firefox/releases/131/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ This article provides information about the changes in Firefox 131 that affect d

## Changes for add-on developers

- {{WebExtAPIRef("tabs.onUpdated")}} is now triggered when `openerTabId` is changed through `tabs.update()` ([Firefox bug 1409262](https://bugzil.la/1409262)).
- {{WebExtAPIRef("tabs.update")}} now accepts `openerTabId` set to `-1` to clear `openerTabId` ([Firefox bug 1409262](https://bugzil.la/1409262)).

### Removals

### Other
Expand Down

0 comments on commit a3a52b0

Please sign in to comment.