Commit Graph

147 Commits

Author SHA1 Message Date
Dave Townsend
d3a9a8ee2e Bug 1934218: Always flush the profile data to disk when changing the selector state or switching windows. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D232623
2025-01-07 14:06:31 +00:00
Niklas Baumgardner
0f7ec7d1ef Bug 1919600 - Update window title to include profile name. r=jhirsch,mossop,fluent-reviewers,tabbrowser-reviewers,bolsson,dao
Differential Revision: https://phabricator.services.mozilla.com/D230958
2024-12-19 20:46:00 +00:00
Goloman Adrian
8893c682ad Backed out changeset b732fa6b4026 (bug 1919600) for causing bc failures @browser_preferences_usage.js. CLOSED TREE 2024-12-19 19:47:31 +02:00
Niklas Baumgardner
99881abf10 Bug 1919600 - Update window title to include profile name. r=jhirsch,mossop,fluent-reviewers,tabbrowser-reviewers,bolsson,dao
Differential Revision: https://phabricator.services.mozilla.com/D230958
2024-12-19 16:07:05 +00:00
Jared Hirsch
2c96f01523 Bug 1918813 - Record an event when we update the default profile in a group. r=niklas,chutten
Differential Revision: https://phabricator.services.mozilla.com/D228127
2024-12-19 01:31:14 +00:00
Jared Hirsch
545de6bdb9 Bug 1931110 - Update async flush behavior to flush the group profile, not the current profile. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D228922
2024-12-18 22:31:28 +00:00
Jared Hirsch
640c9c9605 Bug 1933911 - Show the profile selector window on first restart after creating multiple profiles. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D232015
2024-12-18 22:30:41 +00:00
Dave Townsend
b30ec04bcb Bug 1933756: Keep a strong reference to the taskbar icon controller as long as the window is alive. r=jhirsch
A window's icon controller is only held weakly by the widget code and once it is destroyed it
appears to completely remove the taskbar entry for that window. This maintains a strong reference
the the icon controller once created until the window that owns it is destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D231089
2024-12-05 09:35:46 +00:00
Dave Townsend
68cdb43963 Bug 1931982: Fix the startup profile UI to correctly signal back to nsAppRunner what profile needs to launch. r=jhirsch
When displaying the profile selector on startup we cannot use the normal method of launching a
selected profile by simply launching an new instance of Firefox. This would lose all state from
the original process including any passed command line arguments. Instead we must signal back to
nsAppRunner what profile it should launch. We also need to properly shut down the sqlite database
before shutdown begins as our normal hook isn't in place and the process crashes if the database
hasn't been shut down correctly.

Differential Revision: https://phabricator.services.mozilla.com/D229921
2024-11-27 09:18:52 +00:00
Butkovits Atila
3441807fa1 Backed out changeset e4a8608d96d5 (bug 1931982) for causing failures at test_first_startup.py. CLOSED TREE 2024-11-26 15:54:00 +02:00
Dave Townsend
fc5276df54 Bug 1931982: Fix the startup profile UI to correctly signal back to nsAppRunner what profile needs to launch. r=jhirsch
When displaying the profile selector on startup we cannot use the normal method of launching a
selected profile by simply launching an new instance of Firefox. This would lose all state from
the original process including any passed command line arguments. Instead we must signal back to
nsAppRunner what profile it should launch. We also need to properly shut down the sqlite database
before shutdown begins as our normal hook isn't in place and the process crashes if the database
hasn't been shut down correctly.

Differential Revision: https://phabricator.services.mozilla.com/D229921
2024-11-26 09:21:46 +00:00
Niklas Baumgardner
b339a1b405 Bug 1927572 - Set favicon for profiles pages. r=jhirsch,dao,desktop-theme-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228374
2024-11-21 14:55:51 +00:00
Dave Townsend
98d3aef0de Bug 1924827: Open "manage profiles" in dialog not tab. r=niklas,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D228384
2024-11-18 11:13:52 +00:00
Butkovits Atila
4360b44af9 Backed out changeset d4dbcbf90396 (bug 1924827) for causing failures at browser_test_profile_selector.js. CLOSED TREE 2024-11-14 00:49:30 +02:00
Dave Townsend
fc84eba9be Bug 1924827: Open "manage profiles" in dialog not tab. r=niklas,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D228384
2024-11-13 21:21:26 +00:00
Dave Townsend
cc2ef1acd0 Bug 1926507: Badge the taskbar/dock with the profile avatar. r=niklas,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D228439
2024-11-13 10:36:05 +00:00
Dave Townsend
5528131bd3 Bug 1929307: Import prefs from SharedPrefs at startup rather than clobbering them. r=jhirsch,niklas
This also stops sharing browser.profiles.enabled and toolkit.profiles.storeID. In the first case
I want to minimise any risk of this preference getting set to false by accident because then a
user loses all of their profiles. In the latter case there is no point storing it in the database,
we already have a backup mechanism for it and if we have lost the storeID we can't load the database
anyway.

Differential Revision: https://phabricator.services.mozilla.com/D228174
2024-11-13 10:36:04 +00:00
Norisz Fay
bb0e3d5b06 Backed out 2 changesets (bug 1929307, bug 1926507) for causing xpcshell failures on test_selectable_profiles_lifecycle.js CLOSED TREE
Backed out changeset afc3edd5dbb1 (bug 1926507)
Backed out changeset 1f900c8a06e0 (bug 1929307)
2024-11-12 21:03:11 +02:00
Dave Townsend
28dd1a2275 Bug 1926507: Badge the taskbar/dock with the profile avatar. r=niklas,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D228439
2024-11-12 15:16:46 +00:00
Dave Townsend
511fbaa6f8 Bug 1929307: Import prefs from SharedPrefs at startup rather than clobbering them. r=jhirsch,niklas
This also stops sharing browser.profiles.enabled and toolkit.profiles.storeID. In the first case
I want to minimise any risk of this preference getting set to false by accident because then a
user loses all of their profiles. In the latter case there is no point storing it in the database,
we already have a backup mechanism for it and if we have lost the storeID we can't load the database
anyway.

Differential Revision: https://phabricator.services.mozilla.com/D228174
2024-11-12 15:16:46 +00:00
Jared Hirsch
a88a8a7c29 Bug 1928738: Change the localized name of the default profile. r=niklas,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D227759
2024-11-09 03:02:38 +00:00
Dave Townsend
5f09e48599 Bug 1927576: Clicking on another profile in the menu should switch app focus, not open a new window. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D228154
2024-11-08 10:58:41 +00:00
Dave Townsend
fa4eabb690 Bug 1929287: Ignore errors from unregistering observer notification. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D227980
2024-11-07 15:10:22 +00:00
Niklas Baumgardner
66f7bd8a4d Bug 1926946 - Add special case for setting theme to system deault in SelectableProfileService. r=jhirsch,emilio
Differential Revision: https://phabricator.services.mozilla.com/D226818
2024-11-06 20:14:04 +00:00
Niklas Baumgardner
57ef5b5f32 Bug 1926593 - Store themeId in profiles db instead of themeL10nId. r=jhirsch,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226954
2024-11-06 20:14:04 +00:00
Niklas Baumgardner
acfacc68d8 Bug 1927617 - Sort profiles by name. r=jhirsch,mossop
Differential Revision: https://phabricator.services.mozilla.com/D227724
2024-11-06 17:25:23 +00:00
Sandor Molnar
5d5bb57a0d Backed out 2 changesets (bug 1926946, bug 1926593) for causing bc failures @ browser_notify_changes.js CLOSED TREE
Backed out changeset 84377da985ab (bug 1926946)
Backed out changeset f646318d64fe (bug 1926593)
2024-11-06 05:47:44 +02:00
Niklas Baumgardner
d6635a4c64 Bug 1926946 - Add special case for setting theme to system deault in SelectableProfileService. r=jhirsch,emilio
Differential Revision: https://phabricator.services.mozilla.com/D226818
2024-11-05 23:34:11 +00:00
Niklas Baumgardner
a2b813b3f7 Bug 1926593 - Store themeId in profiles db instead of themeL10nId. r=jhirsch,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226954
2024-11-05 23:34:11 +00:00
Dave Townsend
4ea798a326 Bug 1894239: Enable MOZ_SELECTABLE_PROFILES by default. r=jhirsch,omc-reviewers,niklas,emcminn,mconley
This also removes some tests of `MOZ_SELECTABLE_PROFILES` from `browser/components/profiles` files
where the test is pointless because that test is excluded from the build if `MOZ_SELECTABLE_PROFILES`
is unset.

Differential Revision: https://phabricator.services.mozilla.com/D227372
2024-11-05 12:59:04 +00:00
Stanca Serban
7bfaea64ba Backed out changeset 101063793364 (bug 1894239) for causing mochitests failures in browser_sentence_case_strings.js. CLOSED TREE 2024-11-04 20:39:11 +02:00
Dave Townsend
09c0a011d8 Bug 1894239: Enable MOZ_SELECTABLE_PROFILES by default. r=jhirsch,omc-reviewers,niklas,emcminn,mconley
This also removes some tests of `MOZ_SELECTABLE_PROFILES` from `browser/components/profiles` files
where the test is pointless because that test is excluded from the build if `MOZ_SELECTABLE_PROFILES`
is unset.

Differential Revision: https://phabricator.services.mozilla.com/D227372
2024-11-04 16:20:41 +00:00
Goloman Adrian
43172c6f10 Backed out changeset 4aeabb1fca7f (bug 1894239) for causing bc failures @browser_parsable_css.js. CLOSED TREE 2024-11-04 17:11:24 +02:00
Dave Townsend
658587a8e9 Bug 1894239: Enable MOZ_SELECTABLE_PROFILES by default. r=jhirsch,omc-reviewers,niklas,emcminn,mconley
This also removes some tests of `MOZ_SELECTABLE_PROFILES` from `browser/components/profiles` files
where the test is pointless because that test is excluded from the build if `MOZ_SELECTABLE_PROFILES`
is unset.

Differential Revision: https://phabricator.services.mozilla.com/D227372
2024-11-04 13:19:59 +00:00
Goloman Adrian
a536e48199 Backed out changeset 07b4dffd9109 (bug 1894239) for causing bc failures @browser_all_files_referenced.js. CLOSED TREE 2024-11-04 14:50:12 +02:00
Dave Townsend
d23817862a Bug 1894239: Enable MOZ_SELECTABLE_PROFILES by default. r=jhirsch,omc-reviewers,niklas,emcminn,mconley
This also removes some tests of `MOZ_SELECTABLE_PROFILES` from `browser/components/profiles` files
where the test is pointless because that test is excluded from the build if `MOZ_SELECTABLE_PROFILES`
is unset.

Differential Revision: https://phabricator.services.mozilla.com/D227372
2024-11-04 11:15:32 +00:00
Goloman Adrian
8d0a2fbb16 Backed out changeset 6539a7d0d9ca (bug 1894239) for causing xpcshell failures at test_selectable_profile_launch.js. CLOSED TREE 2024-11-01 20:43:36 +02:00
Dave Townsend
0085ce80d2 Bug 1894239: Enable MOZ_SELECTABLE_PROFILES by default. r=jhirsch,omc-reviewers,niklas,emcminn,mconley
This also removes some tests of `MOZ_SELECTABLE_PROFILES` from `browser/components/profiles` files
where the test is pointless because that test is excluded from the build if `MOZ_SELECTABLE_PROFILES`
is unset.

Differential Revision: https://phabricator.services.mozilla.com/D227372
2024-11-01 17:08:27 +00:00
Cristian Tuns
8f3ca1449e Backed out changeset 7df0f0dd73a1 (bug 1894239) for causing bc failures in /browser_appmenu.js CLOSED TREE 2024-11-01 12:48:39 -04:00
Dave Townsend
52f716131a Bug 1894239: Enable MOZ_SELECTABLE_PROFILES by default. r=jhirsch,omc-reviewers,niklas,emcminn,mconley
This also removes some tests of `MOZ_SELECTABLE_PROFILES` from `browser/components/profiles` files
where the test is pointless because that test is excluded from the build if `MOZ_SELECTABLE_PROFILES`
is unset.

Differential Revision: https://phabricator.services.mozilla.com/D227372
2024-11-01 14:38:45 +00:00
Dave Townsend
767fda8356 Bug 1918523: Implement background task to delete profile. r=nalexander,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D222058
2024-11-01 10:24:33 +00:00
Dave Townsend
6928b89ed0 Bug 1893692: Notify concurrent profiles via remoting service. r=jhirsch,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D227026
2024-11-01 10:11:24 +00:00
Niklas Baumgardner
b6803bbf09 Bug 1927937 - Make sure relative path is correct on Windows. r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D227380
2024-10-31 13:49:55 +00:00
Tamas Szentpeteri
67ace56df2 Bug 1928074 - Fix lint failure @ SelectableProfileService.sys.mjs r=fix CLOSED TREE 2024-10-31 12:13:21 +02:00
Dave Townsend
6e48806cb9 Bug 1928074: Fix testing recovery from pre-67 profiles.ini and the case where there is no toolkit profile. r=jhirsch"
Differential Revision: https://phabricator.services.mozilla.com/D227340
2024-10-31 09:20:53 +00:00
Dave Townsend
400c310063 Bug 1927722: Fix test root permissions and bustage from bug 1925513. r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D227177
2024-10-30 09:49:55 +00:00
Niklas Baumgardner
0a60633a45 Bug 1927741 - currentProfile should not be null in SelectableProfileService. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D227195
2024-10-29 20:56:40 +00:00
Niklas Baumgardner
c8062bcc6b Bug 1924607 - Expose profiles.ftl to localization. r=jhirsch,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226854
2024-10-29 17:21:45 +00:00
Dave Townsend
38e9faea9d Bug 1893722: Recover StoreID from prefs in the event of a profiles.ini reset. r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D226806
2024-10-28 09:56:36 +00:00
Dave Townsend
ae31cacf36 Bug 1926867: Keep on ignoring the unused function that will be required for bug 1926507. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D226927
2024-10-25 15:49:50 +00:00