gecko-dev/browser/components/extensions
Rob Wu 75d6e9caad Bug 1965343 - Adopt whole tab group at once in replaceGroupWithWindow r=tabbrowser-reviewers,sthompson
The `replaceGroupWithWindow` method currently adopts a tab group in
multiple steps, asynchronously. This can result in externally observable
inconsistencies past initial adoption (see bug).

To fix this, this patch changes the adoption logic by passing the tab
group as the initial item to adopt, and adopts the whole group at once
as needed. Now the logic is similar to drag and drop adoption as
implemented in bug 1908441.

Since tabToAdopt is no longer just a tab, but also a tab group (or even
a tab group label since bug 1908441), the logic in ext-browser.js needs
to be adjusted to make sure that it does not mistake non-tab elements
for tabs. Test coverage is in browser_ext_tabGroups_move_onMoved.js,
as not changing that caused the test to fail with:

> FAIL Tab did indeed move to the new window - {"oldWindowId":3,"oldPosition":"undefined"} deepEqual {"oldWindowId":3,"oldPosition":1} -

Differential Revision: https://phabricator.services.mozilla.com/D248537
2025-05-29 18:33:38 +00:00
..
child Bug 1881701 - Change new .eslintrc.mjs files to modules (browser/), and export as flat config. r=frontend-codestyle-reviewers,extension-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,places-reviewers,omc-reviewers,migration-reviewers,home-newtab-reviewers,urlbar-reviewers,aminomancer,daisuke,dimi,robwu,jteow,mconley 2025-05-24 17:11:02 +00:00
parent Bug 1965343 - Adopt whole tab group at once in replaceGroupWithWindow r=tabbrowser-reviewers,sthompson 2025-05-29 18:33:38 +00:00
schemas Bug 1965007 - Fire tabGroups.onRemoved when window is closing r=zombie 2025-05-14 21:19:29 +00:00
test Bug 1965343 - Adopt whole tab group at once in replaceGroupWithWindow r=tabbrowser-reviewers,sthompson 2025-05-29 18:33:38 +00:00
.eslintrc.mjs Bug 1881701 - Change new .eslintrc.mjs files to modules (browser/), and export as flat config. r=frontend-codestyle-reviewers,extension-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,places-reviewers,omc-reviewers,migration-reviewers,home-newtab-reviewers,urlbar-reviewers,aminomancer,daisuke,dimi,robwu,jteow,mconley 2025-05-24 17:11:02 +00:00
ext-browser.json Bug 1961539 - Introduce tabGroups, implement tabGroups.get r=robwu 2025-04-25 13:44:44 +00:00
extension-popup-panel.css
extension.css Bug 1606785 - Format Firefox CSS files with Prettier r=desktop-theme-reviewers,perftest-reviewers,places-reviewers,translations-reviewers,omc-reviewers,backup-reviewers,browser-installer-reviewers,sparky,dao,pdahiya,nrishel,kpatenio 2025-05-28 02:31:27 +00:00
ExtensionBrowsingData.sys.mjs
ExtensionControlledPopup.sys.mjs Bug 1966935 - Record telemetry when button is temporarily visible r=willdurand 2025-05-22 22:32:08 +00:00
ExtensionPopups.sys.mjs
extensions-browser.manifest
jar.mn Bug 1961539 - Introduce tabGroups, implement tabGroups.get r=robwu 2025-04-25 13:44:44 +00:00
metrics.yaml Bug 1966935 - Record telemetry when button is temporarily visible r=willdurand 2025-05-22 22:32:08 +00:00
moz.build