Commit Graph

3662 Commits

Author SHA1 Message Date
Jonathan Sudiaman
b15a6918fd Bug 1908019 - Store sidebar UI state in a pref that acts as a fallback r=sidebar-reviewers,sessionstore-reviewers,sfoster
Refactor sidebar state persistence logic outside of SessionStore and into SidebarController and SidebarManager. Expose an API for session store to update state. If session store data is not available, use the backup state instead. Works for both "Never remember history" and "Use custom settings for history".

Differential Revision: https://phabricator.services.mozilla.com/D225220
2024-10-21 14:52:00 +00:00
Dão Gottwald
f049ccd8d8 Bug 1925842 - Rename _numPinnedTabs to pinnedTabCount. r=tabbrowser-reviewers,jswinarton,dwalker
Also move getDuplicateTabsToClose and getAllDuplicateTabsToClose away from essentials at the top, closer to related methods.

Differential Revision: https://phabricator.services.mozilla.com/D226279
2024-10-21 14:35:06 +00:00
Dale Harvey
41a278d88a Bug 1923212 - Skip tests that fail with ScotchBonnet enabled. r=mak,settings-reviewers,sessionstore-reviewers,urlbar-reviewers,dao,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D224633
2024-10-20 08:35:05 +00:00
Dão Gottwald
6e233e4b97 Bug 1925516 - Convert TabStateInternal to a modern JS class. r=sthompson
Differential Revision: https://phabricator.services.mozilla.com/D226140
2024-10-19 06:40:58 +00:00
Norisz Fay
3e0a85be12 Backed out changeset 214c931a0501 (bug 1908019) for causing bc failure on browser_keyboard_tests.js 2024-10-19 02:25:01 +03:00
Jonathan Sudiaman
59eeb5c1d8 Bug 1908019 - Store sidebar UI state in a pref that acts as a fallback r=sidebar-reviewers,sessionstore-reviewers,sfoster
Refactor sidebar state persistence logic outside of SessionStore and into SidebarController and SidebarManager. Expose an API for session store to update state. If session store data is not available, use the backup state instead. Works for both "Never remember history" and "Use custom settings for history".

Differential Revision: https://phabricator.services.mozilla.com/D225220
2024-10-18 19:45:30 +00:00
Norisz Fay
1917d598d3 Backed out changeset 4ef6f0f9300d (bug 1923212) for causing bc failures on browser_searchModeSwitcher_basic.js CLOSED TREE 2024-10-18 20:41:04 +03:00
Dale Harvey
9ce57913c3 Bug 1923212 - Skip tests that fail with ScotchBonnet enabled. r=mak,settings-reviewers,sessionstore-reviewers,urlbar-reviewers,dao,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D224633
2024-10-18 13:25:17 +00:00
Sandor Molnar
e3731da318 Backed out changeset 47f93788c763 (bug 1908019) for causing perma bc failures @ browser_sidebar_keys.js CLOSED TREE 2024-10-17 21:46:35 +03:00
Jonathan Sudiaman
80c7c66253 Bug 1908019 - Store sidebar UI state in a pref that acts as a fallback r=sidebar-reviewers,sessionstore-reviewers,sfoster
Refactor sidebar state persistence logic outside of SessionStore and into SidebarController and SidebarManager. Expose an API for session store to update state. If session store data is not available, use the backup state instead. Works for both "Never remember history" and "Use custom settings for history".

Differential Revision: https://phabricator.services.mozilla.com/D225220
2024-10-17 17:45:07 +00:00
Paul Zuehlcke
dbbdb0518d Bug 1914585 - Remove legacy method ForgetAboutThisSite.removeDataFromDomain. r=hsohaney,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D225544
2024-10-16 15:52:28 +00:00
Jeremy Swinarton
14e420aa55 Bug 1908423: Add savedGroups to SessionRestore for tab groups r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225072
2024-10-16 15:13:11 +00:00
Stephen Thompson
aa11e82763 Bug 1924566 - fix window leaks in tab group session store tests r=dao,jswinarton,sessionstore-reviewers
In 1908418 and 1915172 I attempted to make tab group sessionstore tests create new windows so that anything they did would be cleaned up. However, it looks like calling SessionStoreTestUtils.init on the newly created windows ended up having SessionStoreTestUtils holding onto a reference to the window. This patch creates and closes windows inside of each test.

Differential Revision: https://phabricator.services.mozilla.com/D225721
2024-10-16 14:35:14 +00:00
Stanca Serban
9706735a82 Backed out changeset 62d15031a31d (bug 1908423) for causing mochitests failures browser_tab_groups_saved.js. 2024-10-15 22:44:05 +03:00
Jeremy Swinarton
d2f74552bc Bug 1908423: Add savedGroups to SessionRestore for tab groups r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225072
2024-10-15 18:09:40 +00:00
DJ
d43a8cef11 Bug 1923865 - revise call signature for addTabGroup. r=jswinarton,sessionstore-reviewers,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D225386
2024-10-15 14:10:39 +00:00
Sandor Molnar
c15c0c8311 Backed out changeset a7a3ec0f3d35 (bug 1908019) for causing multiple failures. 2024-10-15 17:22:17 +03:00
Jonathan Sudiaman
8808ec1a11 Bug 1908019 - Store sidebar UI state in a pref that acts as a fallback r=sidebar-reviewers,sessionstore-reviewers,sfoster
Refactor sidebar state persistence logic outside of SessionStore and into SidebarController and SidebarManager. Expose an API for session store to update state. If session store data is not available, use the backup state instead. Works for both "Never remember history" and "Use custom settings for history".

Differential Revision: https://phabricator.services.mozilla.com/D225220
2024-10-15 13:14:26 +00:00
Stephen Thompson
5a16e0d7c5 Bug 1915172 - Restore open tab groups r=dao,jswinarton,sessionstore-reviewers,tabbrowser-reviewers
1908418 added tab groups and their tab relationships to each window. This patch will restore tab groups and the tabs within them.

Differential Revision: https://phabricator.services.mozilla.com/D224955
2024-10-14 15:31:29 +00:00
Dão Gottwald
b6f07a6c23 Bug 1924036 - Remove obsolete showOnlyTheseTabs API and reimplement in BrowserTestUtils. r=tabbrowser-reviewers,dwalker
Differential Revision: https://phabricator.services.mozilla.com/D225323
2024-10-11 14:25:13 +00:00
Stephen Thompson
6acef20ad0 Bug 1908418 - Add open tab groups to session store r=jswinarton,dao,sessionstore-reviewers
This adds tab groups and their state data to the session store. For any tabs that are in tab groups, this patch adds the group ID into the tab state.

This change has a number of limitations that will be addressed in future bugs. Most notably, tab groups will not be restored from session state -- this change just records the tab group state data. Another important limitation is that when users remove tab groups, they will no longer appear in the session store.

This patch is only intended to lay the initial groundwork for storing tab group data in the session store.

Differential Revision: https://phabricator.services.mozilla.com/D224348
2024-10-09 13:58:03 +00:00
Chris H-C
724b00c304 Bug 1920562 - Remove JS uses of Services.telemetry.setEventRecordingEnabled r=florian,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,sfoster,nchevobbe,valentin,Gijs,dimi,lina,mconley,pdahiya,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D223833
2024-10-08 20:14:42 +00:00
Sandor Molnar
92076e16a7 Backed out 5 changesets (bug 1920562) for causing xpc assertion failures. CLOSED TREE
Backed out changeset 8f085ab589a8 (bug 1920562)
Backed out changeset 4405387ae770 (bug 1920562)
Backed out changeset a68fd13a33ae (bug 1920562)
Backed out changeset cd3672fc08ed (bug 1920562)
Backed out changeset 62ab18879eea (bug 1920562)
2024-10-08 00:16:13 +03:00
Sandor Molnar
6026c4b9a7 Backed out changeset 0ded63123e6c (bug 1908418) for causing multiple perma failures. 2024-10-08 00:10:34 +03:00
Stephen Thompson
a576093f19 Bug 1908418 - Add open tab groups to session store r=jswinarton,dao,sessionstore-reviewers
This adds tab groups and their state data to the session store. For any tabs that are in tab groups, this patch adds the group ID into the tab state.

This change has a number of limitations that will be addressed in future bugs. Most notably, tab groups will not be restored from session state -- this change just records the tab group state data. Another important limitation is that when users remove tab groups, they will no longer appear in the session store.

This patch is only intended to lay the initial groundwork for storing tab group data in the session store.

Differential Revision: https://phabricator.services.mozilla.com/D224348
2024-10-07 18:35:41 +00:00
Chris H-C
e944bfe7a2 Bug 1920562 - Remove JS uses of Services.telemetry.setEventRecordingEnabled r=florian,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,sfoster,nchevobbe,valentin,Gijs,dimi,lina,mconley,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D223833
2024-10-07 17:29:57 +00:00
Claas Augner
dca14fc71e Bug 1868452 - [sessionstore] Fix recently closed tab menu entry key r=sclements,sessionstore-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D223949
2024-09-30 11:55:07 +00:00
Florian Quèze
c2a0d4dda6 Bug 1918702 - Migrate telemetry events to use Glean APIs in browser/components/sessionstore, r=chutten,sessionstore-reviewers,dao.
Differential Revision: https://phabricator.services.mozilla.com/D222127
2024-09-20 13:58:13 +00:00
Joel Maher
1217ef421e Bug 1919776 - part 1, adjust browser/base and browser/components osx skip-if conditions to be more specific. r=sessionstore-reviewers,tabbrowser-reviewers,places-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D222841
2024-09-20 13:15:23 +00:00
Joel Maher
04cf186cea Bug 1917223 - re-enable many tests on browser/components/[pri*-urlbar]/**/browser.toml. r=aryx,sessionstore-reviewers,tabbrowser-reviewers,translations-reviewers,omc-reviewers,urlbar-reviewers,dao,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D221309
2024-09-18 23:37:52 +00:00
Sandor Molnar
f37cf58005 Bug 1836198 - Disable browser_closed_tabs_windows.js on Linux !debug for frequent failures. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D222397
2024-09-18 17:55:37 +00:00
Emilio Cobos Álvarez
5e05eb6892 Bug 1918659 - Remove nsIClearDataService.CLEAR_SESSION_HISTORY. r=smaug,pbz,sessionstore-reviewers,sfoster
Other than in one test, we don't use it separate from CLEAR_HISTORY.

They are two different bits because in the past one bit could only have
one cleaner associated to it, but that is no longer an issue.

Differential Revision: https://phabricator.services.mozilla.com/D222107
2024-09-16 14:12:21 +00:00
Sarah Clements
5e0ea4a4f0 Bug 1916188 - Fix issue with selected pinned tab reordering for vertical tabs r=mconley
* Add a condition in createTabsForSessionRestore to account for pinned tabs that are selected and update test

Differential Revision: https://phabricator.services.mozilla.com/D221324
2024-09-13 13:44:59 +00:00
Emilio Cobos Álvarez
3e676b7e1d Bug 1915230 - Make animation and duration configurable. r=#sidebar-reviewers CLOSED TREE
And tweak the default duration as per UX feedback.

Differential Revision: https://phabricator.services.mozilla.com/D221718

Depends on D221351
2024-09-12 19:14:23 +00:00
Joel Maher
3c323306ab Bug 1917158 - move some skip-if -> run-if for browser/components/**/browser.toml. r=sessionstore-reviewers,tabbrowser-reviewers,urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D221286
2024-09-06 10:08:18 +00:00
Peter Van der Beken
8d210b04b5 Bug 1916492 - Remove some unused leftover code from GroupedSHistory. r=sessionstore-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D220987
2024-09-05 13:10:18 +00:00
Kelly Cochrane
9600083d6c Bug 1898251 - Add animations for sidebar 'launcher' in 'Always show' mode r=desktop-theme-reviewers,reusable-components-reviewers,sidebar-reviewers,dao,hjones,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D215520
2024-08-26 19:16:07 +00:00
Nikki Sharpley
52f1cd691f Bug 1914455 - Remove "order" from sidebar SessionStore data r=sidebar-reviewers,sessionstore-reviewers,dao,kcochrane
We can rely on the global pref for this. `setPosition` in `browswer-sidebar.js` looks
at the pref `sidebar-position_start` to determine "order" on `init` and on `reversePosition`

Differential Revision: https://phabricator.services.mozilla.com/D219906
2024-08-26 15:05:15 +00:00
Tamas Szentpeteri
db26c1b7f0 Backed out changeset 4270bbbfb92d (bug 1898251) for causing frequent marionette failures on test_restore_sidebar.py. CLOSED TREE 2024-08-24 00:24:39 +03:00
Kelly Cochrane
9c271bfe95 Bug 1898251 - Add animations for sidebar 'launcher' in 'Always show' mode r=desktop-theme-reviewers,reusable-components-reviewers,sidebar-reviewers,dao,hjones,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D215520
2024-08-23 15:56:40 +00:00
Florian Quèze
180dc5f37e Bug 1913624 - Remove expired telemetry histogram FX_SESSION_RESTORE_PRIVACY_LEVEL, r=sessionstore-reviewers,TravisLong,dao.
Depends on D219483

Differential Revision: https://phabricator.services.mozilla.com/D219484
2024-08-21 09:14:32 +00:00
Nikki Sharpley
b8a620c625 Bug 1908908 - Preserve sidebar width on close in session store. r=sidebar-reviewers,sessionstore-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D219238
2024-08-20 15:10:16 +00:00
Norisz Fay
fe5c1d2b6e Backed out changeset 3d3e86a6d3fc (bug 1908908) for causing multiple failures CLOSED TREE 2024-08-20 01:50:37 +03:00
Nikki Sharpley
875fb65856 Bug 1908908 - Preserve sidebar width on close in session store. r=sidebar-reviewers,sessionstore-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D219238
2024-08-19 20:53:47 +00:00
Sam Foster
f64b68c78d Bug 1899580 - Exclude collapsed vertical tabs from indicator-replaces-favicon behavior. r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,sessionstore-reviewers,sclements
- Ensure everything that sets .expanded on sidebar-main uses the toggleExpanded method

Differential Revision: https://phabricator.services.mozilla.com/D217507
2024-08-07 18:51:26 +00:00
Noemi Erli
add41c1a33 Backed out changeset 81c607ae7fa3 (bug 1906140) for causing mochitest failures CLOSED TREE 2024-08-03 04:30:26 +03:00
Kelly Cochrane
95e61eaaba Bug 1906140 - Update the labs UI toml file for sidebar and vertical tabs r=settings-reviewers,fluent-reviewers,sidebar-reviewers,jsudiaman,sessionstore-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D217504
2024-08-03 00:04:27 +00:00
Noemi Erli
ea6ddac0d7 Backed out changeset f14b6d618dee (bug 1906140) for causing mochitest failures 2024-08-03 00:48:34 +03:00
Kelly Cochrane
0e25ff4d26 Bug 1906140 - Update the labs UI toml file for sidebar and vertical tabs r=settings-reviewers,fluent-reviewers,sidebar-reviewers,jsudiaman,sessionstore-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D217504
2024-08-02 21:07:57 +00:00
Noemi Erli
9526f13a15 Backed out changeset a5aa68704532 (bug 1906140) for causing failures in browser_view_sidebar_menu.js CLOSED TREE 2024-08-03 00:03:13 +03:00