Commit Graph

164 Commits

Author SHA1 Message Date
Stanca Serban
9e9507fcbb Backed out changeset d448ac7b0d9e (bug 1921060) for causing mochitests failures in browser_audioTabIcon.js. 2025-01-13 21:35:03 +02:00
Kelly Cochrane
50f355f8ec Bug 1921060 - Implement full mute button spec r=desktop-theme-reviewers,tabbrowser-reviewers,dao,sessionstore-reviewers,sclements,sidebar-reviewers,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D231182
2025-01-13 17:55:32 +00:00
Dão Gottwald
2dcb43e95d Bug 1940231 - When restoring a session, prevent original startup tabs from moving into a restored tab group. r=tabbrowser-reviewers,jswinarton
Differential Revision: https://phabricator.services.mozilla.com/D234022
2025-01-13 15:59:48 +00:00
Dão Gottwald
f60b181b60 Bug 1940791 - When restoring a group, select it. r=jswinarton
Differential Revision: https://phabricator.services.mozilla.com/D233863
2025-01-10 16:14:38 +00:00
Jonathan Sudiaman
9372222c8c Bug 1935482 - Replace legacy properties with SidebarState properties r=sidebar-reviewers,sessionstore-reviewers,nsharpley,sfoster
- Move resize observer (setting max width) logic over to SidebarState.
- Add `command` property to SidebarState.
- Handle receiving legacy session restore data.
- Add unit tests along with mocking structures to get a better idea of state/controller coupling (which we should ultimately reduce).

Differential Revision: https://phabricator.services.mozilla.com/D232730
2025-01-08 23:06:42 +00:00
Jeremy Swinarton
cf0ea617df Bug 1939599: Tab groups can be restored by Ctrl+Shift+T r=dao,sthompson,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D233102
2025-01-08 22:33:13 +00:00
Dão Gottwald
899b3c4127 Bug 1939413 - Ensure _savedGroups isn't undefined. r=jswinarton,dwalker
Differential Revision: https://phabricator.services.mozilla.com/D233163
2025-01-03 16:51:08 +00:00
Jeremy Swinarton
4ded93c800 Bug 1927767: Closed tab groups from the last session appear correctly in history menus r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D232879
2024-12-30 14:56:50 +00:00
Luca Greco
775328ed67 Bug 1786601 - Tweak browser_ext_tabs_events.js to expect SessionStore onMoveToNewWindow uncaught rejection. r=dao,sessionstore-reviewers,robwu
This patch modifies SessionStoreInternal.onMoveToNewWindow to raise a more specific error message when
no TabState is found for the tab being moved, and then allows that more specific error message
as an uncaught rejection in browser_ext_tabs_events.js through PromiseTestUtils.allowMatchingRejectionsGlobally.

These changes don't address the underlying issue hit by SessionStoreInternal, but in the short term
it will allow to prevent the high frequency intermittent failure currently hit by the
browser_ext_tabs_events.js (and to keep the existing test coverage which would be lost if we
would instead skip the entire test file to workaround the intermittency).

An inline comment added right above the call to PromiseTestUtils.allowMatchingRejectionsGlobally
includes a mention to Bug 1938594 (a new bug filed under the "Firefox :: Session Restore" bugzilla
component to track additional investigations on the SessionStore/TabStateFlusher side) as a reminder
of the underlying issue (and to remove the workaround when it may not be necessary anymore).

Differential Revision: https://phabricator.services.mozilla.com/D230528
2024-12-22 18:06:56 +00:00
DJ
c5ab0e12ee Bug 1938589 - init savedGroups from session file. r=sthompson,dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D232747
2024-12-21 03:30:15 +00:00
Jeremy Swinarton
9561dbc00e Bug 1927768: Purging domain data handles tabs in closed groups r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D232228
2024-12-19 17:01:04 +00:00
Stephen Thompson
f8fd5db3b5 Bug 1933813 - "close other tabs" changes for tab groups r=dao,jswinarton,sessionstore-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D232430
2024-12-19 08:54:25 +00:00
Stanca Serban
30c8718405 Backed out changeset a2a3d6bf518f (bug 1921060) as requested for causing multiple regressions. 2024-12-18 20:51:04 +02:00
Stephen Thompson
d217c2630b Bug 1921802 - save open tab groups on window close r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D231892
2024-12-18 15:54:21 +00:00
Dão Gottwald
2ed2e383f6 Bug 1936831 - Allow searching for closed and saved tab groups in the address bar and display matching tab groups as actions. r=daleharvey,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D232336
2024-12-18 09:27:40 +00:00
Alexandru Marc
7078799556 Backed out changeset 2817415422a2 (bug 1921802) for causing bc failures @ browser_1933485_tab_groups_history.js CLOSED TREE 2024-12-18 11:34:39 +02:00
Stephen Thompson
387f34697e Bug 1921802 - save open tab groups on window close r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D231892
2024-12-18 07:58:00 +00:00
Stanca Serban
f41de5d39a Backed out changeset 415580659e75 (bug 1927768) for causing mochitests failures in browser_394759_purge.js. CLOSED TREE 2024-12-17 14:02:52 +02:00
Jeremy Swinarton
b77759e87b Bug 1927768: Purging domain data handles tabs in closed groups r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D232228
2024-12-17 10:03:49 +00:00
Jeremy Swinarton
cf23be9260 Bug 1933485: Ensure tab groups always appear in history menus r=dao,sthompson,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D230985
2024-12-12 14:36:08 +00:00
Kelly Cochrane
93e44d9499 Bug 1921060 - Implement full mute button spec r=desktop-theme-reviewers,tabbrowser-reviewers,dao,sessionstore-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D231182
2024-12-12 12:57:41 +00:00
Stephen Thompson
4b0b5070a8 Bug 1933574 - saved tab groups session schema change r=dao,sessionstore-reviewers,tabbrowser-reviewers
This patch makes saved tab groups use the "closed tabs" schema for storing tab data. This makes saved tab groups consistent with closed tabs and closed tab groups. The tab/tab group restoration code is built to work with the "closed tabs" schema, so this schema change allows saved tab groups to be restored correctly.

Bug 1933114 will add and improve the tests for restoring tab groups.

Differential Revision: https://phabricator.services.mozilla.com/D231818
2024-12-11 16:47:41 +00:00
Alexandru Marc
b15c866809 Backed out changeset 5b573c874645 (bug 1921060) for causing mda failures @ browser_mute_webAudio.js CLOSED TREE 2024-12-11 17:40:44 +02:00
Kelly Cochrane
bb2110744e Bug 1921060 - Implement full mute button spec r=desktop-theme-reviewers,tabbrowser-reviewers,dao,sessionstore-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D231182
2024-12-11 14:37:38 +00:00
Sandor Molnar
b34a0a7264 Backed out changeset e5ecd3645987 (bug 1933114) for causing bc failures @ browser_tab_groups_restore_closed_in_closed_window.js CLOSED TREE 2024-12-11 03:45:56 +02:00
Stephen Thompson
0630d8f7bc Bug 1933114 - tests and fixes for tab group restoration r=dao,sessionstore-reviewers,tabbrowser-reviewers
Also addresses bug 1933574 by changing the schema of saved tab groups so that they look the same as closed tab groups (that is, the saved tab groups' tabs list now has the same schema as the _closedTabs list).

Differential Revision: https://phabricator.services.mozilla.com/D230322
2024-12-10 16:37:36 +00:00
Jonathan Sudiaman
470e392758 Bug 1930199 - Create a state-based API to manage the multiple states of the sidebar launcher and sidebar panel. r=sidebar-reviewers,sessionstore-reviewers,kcochrane,sfoster,sclements
- Created a SidebarState API to manage reactive properties for the controller.
- Replaced usages of sidebarMain.hidden with state.launcherVisible.
- Replaced usages of sidebarMain.expanded with state.launcherExpanded.
- Removed toggleExpanded() and toggleHide(), replaced with equivalent state toggles.

Differential Revision: https://phabricator.services.mozilla.com/D229558
2024-12-06 16:00:29 +00:00
Alexandru Marc
820db0e701 Backed out changeset 4436a8f5e82d (bug 1933114) for causing bc failures @ browser_tab_groups_restore_closed_in_closed_window.js CLOSED TREE 2024-12-06 08:56:12 +02:00
Stephen Thompson
4c2d2eea70 Bug 1933114 - tests and fixes for tab group restoration r=dao,sessionstore-reviewers,tabbrowser-reviewers
Also addresses bug 1933574 by changing the schema of saved tab groups so that they look the same as closed tab groups (that is, the saved tab groups' tabs list now has the same schema as the _closedTabs list).

Differential Revision: https://phabricator.services.mozilla.com/D230322
2024-12-06 05:25:26 +00:00
Sandor Molnar
594e700d37 Backed out changeset ceeaeae381df (bug 1933114) for causing bc failures @ browser_tab_groups_restore_closed_in_closed_window.js CLOSED TREE 2024-12-05 20:22:04 +02:00
Stephen Thompson
e70b247934 Bug 1933114 - tests and fixes for tab group restoration r=dao,sessionstore-reviewers,tabbrowser-reviewers
Also addresses bug 1933574 by changing the schema of saved tab groups so that they look the same as closed tab groups (that is, the saved tab groups' tabs list now has the same schema as the _closedTabs list).

Differential Revision: https://phabricator.services.mozilla.com/D230322
2024-12-05 15:55:10 +00:00
Jeremy Swinarton
b9c19e288b Bug 1933744: Make undo close tab group API consistent with undoing closed tabs and windows r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D230409
2024-11-28 20:56:09 +00:00
Jeremy Swinarton
8e4b23af31 Bug 1933483: Reopen deleted tab group from history context menus r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D230294
2024-11-27 20:34:05 +00:00
Jonathan Sudiaman
b5e2a6a660 Bug 1892953 - Add ability to resize the sidebar with responsive layout r=sidebar-reviewers,desktop-theme-reviewers,sessionstore-reviewers,reusable-components-reviewers,sclements,kcochrane,mstriemer
- Add a splitter that can be used to resize the launcher by dragging.
- Add "snapping points" to allow dragging to expand or collapse the launcher.
- Total sidebar width (launcher + panel) cannot exceed 75vw.
- Styling updates to show ellipses if labels are cut off due to resizing.

Differential Revision: https://phabricator.services.mozilla.com/D228705
2024-11-26 19:49:05 +00:00
Goloman Adrian
19185332a9 Backed out changeset b9974670bc5c (bug 1892953) for causing bc failures @browser_vertical_tab.js. CLOSED TREE 2024-11-27 06:48:08 +02:00
Jonathan Sudiaman
1ad52ddf70 Bug 1892953 - Add ability to resize the sidebar with responsive layout r=sidebar-reviewers,desktop-theme-reviewers,sessionstore-reviewers,reusable-components-reviewers,sclements,kcochrane,mstriemer
- Add a splitter that can be used to resize the launcher by dragging.
- Add "snapping points" to allow dragging to expand or collapse the launcher.
- Total sidebar width (launcher + panel) cannot exceed 75vw.
- Styling updates to show ellipses if labels are cut off due to resizing.

Differential Revision: https://phabricator.services.mozilla.com/D228705
2024-11-26 19:49:05 +00:00
Jeremy Swinarton
fc4e710b51 Bug 1927774: Add closed tab groups to history menus r=dao,fluent-reviewers,sessionstore-reviewers,desktop-theme-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228843
2024-11-25 20:04:15 +00:00
Stephen Thompson
19712400f0 Bug 1932670: Add restore tab group API to session r=dao,sessionstore-reviewers,tabbrowser-reviewers
Adds `restoreTabGroup` to SessionStore, enabling a closed tab group or saved tab group to come back into the tab strip.

Includes more robust functionality for forgetting a saved tab group or closed tab group.

Differential Revision: https://phabricator.services.mozilla.com/D230011
2024-11-25 02:44:50 +00:00
DJ
7da91bc6c5 Bug 1923652 - enable save & close for tab groups. r=dao,sessionstore-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D229721
2024-11-22 16:46:19 +00:00
Stanca Serban
054cfea9cb Backed out changeset 25d954644545 (bug 1892953) for causing mochitests failures in browser_sidebar_move.js. CLOSED TREE 2024-11-19 23:52:07 +02:00
Jonathan Sudiaman
fe8b4cf59b Bug 1892953 - Add ability to resize the sidebar with responsive layout r=sidebar-reviewers,desktop-theme-reviewers,sessionstore-reviewers,reusable-components-reviewers,sclements,kcochrane,mstriemer
- Add a splitter that can be used to resize the launcher by dragging.
- Add "snapping points" to allow dragging to expand or collapse the launcher.
- Total sidebar width (launcher + panel) cannot exceed 75vw.
- Styling updates to show ellipses if labels are cut off due to resizing.

Differential Revision: https://phabricator.services.mozilla.com/D228705
2024-11-19 19:47:14 +00:00
Simon Friedberger
512a91cab5 Bug 1931330 - Special case for PBM detection when no window is open r=sessionstore-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D229348
2024-11-19 07:39:33 +00:00
Jeremy Swinarton
8a3c3e1e4c Bug 1908422: Add closedGroups to SessionRestore for tab groups r=dao,sthompson,sessionstore-reviewers,tabbrowser-reviewers
This patch adds a `closedGroups` array to the SessionRestore state, and
adds functionality that ensures closed tab groups end up in the closed
groups array and that closed tab counts respect closed groups.

This does not update `undoClosedTab` or any related methods. Attempting
to restore a closed tab group will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D226397
2024-11-12 16:34:19 +00:00
Butkovits Atila
85eb562171 Backed out changeset 307c830b0d2b (bug 1908422) for causing failures at browser_tab_groups.js. CLOSED TREE 2024-11-08 21:50:37 +02:00
Jeremy Swinarton
f5892027d4 Bug 1908422: Add closedGroups to SessionRestore for tab groups r=dao,sthompson,sessionstore-reviewers,tabbrowser-reviewers
This patch adds a `closedGroups` array to the SessionRestore state, and
adds functionality that ensures closed tab groups end up in the closed
groups array and that closed tab counts respect closed groups.

This does not update `undoClosedTab` or any related methods. Attempting
to restore a closed tab group will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D226397
2024-11-08 17:29:38 +00:00
Alexandru Marc
f7c8138cf9 Backed out changeset 9e5edf53c876 (bug 1908422) for causing bc failures @ browser_tab_groups_a11y.js 2024-11-08 16:57:36 +02:00
Jeremy Swinarton
62d713d116 Bug 1908422: Add closedGroups to SessionRestore for tab groups r=dao,sthompson,sessionstore-reviewers,tabbrowser-reviewers
This patch adds a `closedGroups` array to the SessionRestore state, and
adds functionality that ensures closed tab groups end up in the closed
groups array and that closed tab counts respect closed groups.

This does not update `undoClosedTab` or any related methods. Attempting
to restore a closed tab group will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D226397
2024-11-08 13:53:19 +00:00
Sam Foster
a712bf3840 Bug 1921836 - Consolidate the restoreSidebar implementations, and ensure the sidebar launcher gets un-hidden when a sidebar is shown. r=sidebar-reviewers,sessionstore-reviewers,jsudiaman,sclements
Differential Revision: https://phabricator.services.mozilla.com/D227420
2024-11-05 23:34:25 +00:00
Florian Quèze
72e00a824e Bug 1927093 - Migrate scalars to use Glean APIs for browser.engagement.* (excluding browser.engagement.navigation.*), r=chutten,sessionstore-reviewers,tabbrowser-reviewers,places-reviewers,sfoster.
Differential Revision: https://phabricator.services.mozilla.com/D226371
2024-11-05 13:22:58 +00:00
Stanca Serban
7bb12fdb44 Backed out changeset 1768e3e28918 (bug 1921836) for causing mochitests failures in browser_toolbar_sidebar_button.js. 2024-11-04 23:37:28 +02:00