Commit graph

39767 commits

Author SHA1 Message Date
Tarik Eshaq
612f797c4f Bug 1887739: Removes force_auth fxa path and uses connect path instead.r=markh,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208783
2024-05-17 18:00:06 +00:00
kpatenio
a39846bf34 Bug 1893277 - build initial UI for turning on scheduled backups. r=backup-reviewers,firefox-desktop-core-reviewers ,fluent-reviewers,mconley
backup-settings changes:
- adds a new button in the Backup section of about:preferences / about:settings
- shows the turn on dialog after pressing the button

Turn on dialog behaviour (implemented):
- pressing the cancel will close the dialog
- pressing the confirm button will set the pref browser.backup.scheduled.enabled=true and close the dialog
- pressing the passwords checkbox will show more options

Turn on dialog behaviour (not implemented):
- requiring a password for the backup (see Bug 1895981)
- modifying the save location and showing a file picker (see Bug 1895943)

Other changes:
- tests for backup-settings and the turn on dialog
- Storybook template for the turn on dialog

Lo-fi Figma designs: https://www.figma.com/design/vNbX4c0ws0L1qr0mxpKvsW/Fx-Backup?node-id=147-4558&t=PYLY0QMN1n8GR9vW-0

Differential Revision: https://phabricator.services.mozilla.com/D209769
2024-05-17 17:36:33 +00:00
Kelly Cochrane
d2c8a86ba1 Bug 1892012 - Add toolbar entry point for the sidebar as a default setting r=sidebar-reviewers,Gijs,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D209978
2024-05-17 16:37:16 +00:00
Nathan Barrett
eeb290a3c3 Bug 1896004 - Add wallpaper telemetry r=thecount,home-newtab-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D210101
2024-05-17 14:51:43 +00:00
Yazan Al Macki
9dfafed6f4 Bug 1885897 - Remove browser.urlbar.update2.emptySearchBehavior pref, and test cases where it is set to non-default value. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D210081
2024-05-17 14:36:43 +00:00
Dale Harvey
e1a1349681 Bug 1860753 - Disable topsites suggestions during recentsearches test. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D210484
2024-05-17 13:36:56 +00:00
Dão Gottwald
2f419065da Bug 1837575 - Move Tabbed Browser related files to browser/components/tabbrowser/. r=mconley,desktop-theme-reviewers,zeid,tabbrowser-reviewers,frontend-codestyle-reviewers,Itiel
This is a start, there are more modules and scripts we can/should move, as well as tests.

Differential Revision: https://phabricator.services.mozilla.com/D210676
2024-05-17 13:25:23 +00:00
Emilio Cobos Álvarez
7cf3e74f62 Bug 1897330 - Reset places tree styles that were previously reset by the plain class. r=aminomancer,desktop-theme-reviewers,places-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D210774
2024-05-17 10:14:03 +00:00
Erik Nordin
9d77fc9c1e Bug 1894575 - Ensure panel cannot be resized off screen r=translations-reviewers,gregtatum
Adds logic that ensures that the SelectTranslationsPanel
cannot be resized off the bottom edge of the screen when
click-and-dragging the vertical textarea resizer within
the panel.

Depends on D209396

Differential Revision: https://phabricator.services.mozilla.com/D209178
2024-05-16 21:03:06 +00:00
Erik Nordin
706cc9f6f7 Bug 1894935 - Disable textarea resize based on popuppositioned r=translations-reviewers,desktop-theme-reviewers,gregtatum,emilio
Determines if the SelectTranslationsPanel was positioned before
opening such that the bottom corner of the panel is the anchor
point. This causes the text-area resizer to grow the panel
upward even though the user is dragging downward, so we should
disable resizing in this case.

Differential Revision: https://phabricator.services.mozilla.com/D209396
2024-05-16 21:03:05 +00:00
Robin Steuber
c288841e23 Bug 1875502 - Fix tests broken by the previous patch stack that standardizes update initialization r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D204129
2024-05-16 20:01:55 +00:00
Robin Steuber
c9a19be7fa Bug 1875502 - Update UpdateServiceStub consumers r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
The earlier patches in this stack (a) made it possible to await on the stub to complete and (b) ensured that the update system initiates properly regardless of when and if the update service stub is invoked. This allows us to remove explict stub invocations in some cases and to have the await on the results in others.

Differential Revision: https://phabricator.services.mozilla.com/D209129
2024-05-16 20:01:54 +00:00
Robin Steuber
2ef30b1bbb Bug 1875502 - Add UpdateManager.updateInstalledAtStartup r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209127
2024-05-16 20:01:54 +00:00
Robin Steuber
b785a583f3 Bug 1875502 - Create standardized update init flow r=nalexander,settings-reviewers,application-update-reviewers
A number of changes are made as part of this patch:
 - A consistent way of initializing update is created. This is automatically run when methods that need it are invoked.
 - The "post-update-processing" notification has been removed. Post update processing is now done through the new `nsIApplicationUpdateService.init` or `nsIApplicationUpdateService.internal.postUpdateProcessing`.
 - Post update processing no longer waits for the sessionstore-windows-restored observer service notification
 - Post update processing is no longer invoked only when the `update.status` file exists. It is now run unconditionally.
 - Explicitly initialize before we potentially clean up updates from the update UI.

Note that the update service stub and a few consumers of it ought to be able to wait for post update processing to be done but they currently do not. That will be done later in this patch stack when we rework the stub.

Differential Revision: https://phabricator.services.mozilla.com/D209126
2024-05-16 20:01:53 +00:00
Robin Steuber
f44f8ef955 Bug 1875502 - Pre: Update tests to accomodate async downloadingUpdate r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209118
2024-05-16 20:01:50 +00:00
Robin Steuber
0d911fbc65 Bug 1875502 - Pre: Update tests to accomodate async readyUpdate r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209116
2024-05-16 20:01:49 +00:00
Robin Steuber
f2176ce163 Bug 1875502 - Pre: Make AUS's readyUpdate async r=nalexander,settings-reviewers,application-update-reviewers
Aside from tests (which will be in the next patch in the stack), this specifically leaves two instances of readyUpdate unchanged - the one in BrowserContentHandler's `getArgs` and the one in UpdatePing's `_getActiveUpdate`. In both of these cases what is actually wanted is the update that was just installed. It's only because of the (fairly arbitrary) order that things are started up in that `readyUpdate` still happens to contain this value when these things run. Later in this patch stack we will add something more appropriate for this. But in the meantime, it doesn't make sense to convert functions to be asynchronous that will not ultimately need to be asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D209115
2024-05-16 20:01:49 +00:00
Robin Steuber
f6bbdc46ce Bug 1875502 - Pre: Make UpdateManager's history functions async r=nalexander,settings-reviewers,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209113
2024-05-16 20:01:48 +00:00
Robin Steuber
0d82fdb97c Bug 1875502 - Pre: Make update cleanup functions async r=nalexander,settings-reviewers,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209111
2024-05-16 20:01:47 +00:00
Robin Steuber
025dc7710c Bug 1875502 - Pre: Make AUS._checkForBackgroundUpdates async r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
I want the initialization function that I'm going to add later in the patch stack to be asynchronous, so the update entry points should be asynchronous functions.

Differential Revision: https://phabricator.services.mozilla.com/D209109
2024-05-16 20:01:47 +00:00
Robin Steuber
6fbd565f7c Bug 1875502 - Pre: Move update manager reload functionality into nsIUpdateManagerInternal r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209107
2024-05-16 20:01:47 +00:00
Sam Foster
562487ee21 Bug 1896791 - Fix logging typo for the createTabsForSessionRestore return value. r=sessionstore-reviewers,nsharpley,sclements
Differential Revision: https://phabricator.services.mozilla.com/D210391
2024-05-16 17:58:14 +00:00
Barret Rennie
972e870f9a Bug 1790428 - Remove ExperimentFakes.enrollWithRollout r=chumphreys
enrollWithRollout skipped all enrollment logic in ExperimentManager.enroll by
calling ExperimentStore.addEnrollment directly. This prevents prefs being set
by Nimbus correctly when enrolling. enrollWithFeatureConfig already supports
enrolling as a rollout, so all uses of enrollWithRollout have been replaced.

Differential Revision: https://phabricator.services.mozilla.com/D209936
2024-05-16 17:15:58 +00:00
Simon Friedberger
1f46481d6c Bug 1897127 - Disable HTTPS-First for browser_url_formatted_correctly_on_load.js, r=freddyb,mak
Differential Revision: https://phabricator.services.mozilla.com/D210644
2024-05-16 15:26:42 +00:00
Nicholas Rishel
fde52c0d43 Bug 1896030 - Don't open new window on -os-autostart if the application has already started. r=nalexander,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D210253
2024-05-16 00:42:53 +00:00
Daisuke Akatsuka
4ac50f3930 Bug 1894821: Throw NS_ERROR_FILE_TOO_BIG if the favicon data size is over than MAX_FAVICON_BUFFER_SIZE r=places-reviewers,mak,migration-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D210261
2024-05-15 21:42:59 +00:00
Nathan Barrett
d06779086a Bug 1893945 - fix wallpaper attribution after wallpaper selection r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D210560
2024-05-15 20:55:33 +00:00
Niklas Baumgardner
da75251680 Bug 1890721 - Prevent events from reaching the content page. r=sfoster,smaug
Differential Revision: https://phabricator.services.mozilla.com/D207749
2024-05-15 20:17:21 +00:00
Sandor Molnar
592ca16351 Backed out changeset c9a936171ae4 (bug 1790428) for causing bc failures @ browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_nimbus_impressions.js CLOSED TREE 2024-05-16 01:29:10 +03:00
Kelly Cochrane
4321fc77c7 Bug 1896658 - Add bookmarks to sidebar customization panel r=sidebar-reviewers,fluent-reviewers,nsharpley,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D210378
2024-05-15 19:48:00 +00:00
Barret Rennie
d7ad02fc32 Bug 1790428 - Remove ExperimentFakes.enrollWithRollout r=chumphreys
enrollWithRollout skipped all enrollment logic in ExperimentManager.enroll by
calling ExperimentStore.addEnrollment directly. This prevents prefs being set
by Nimbus correctly when enrolling. enrollWithFeatureConfig already supports
enrolling as a rollout, so all uses of enrollWithRollout have been replaced.

Differential Revision: https://phabricator.services.mozilla.com/D209936
2024-05-15 19:19:29 +00:00
Sandor Molnar
d2115d8eec Backed out 23 changesets (bug 1887980, bug 1875502) for causing xpc failures @ toolkit/components/extensions/test/xpcshell/test_ext_storage_idb_data_migration.js CLOSED TREE
Backed out changeset fb53b5f266e2 (bug 1875502)
Backed out changeset 9157c611617d (bug 1875502)
Backed out changeset 924b7230a45e (bug 1875502)
Backed out changeset d83fa2a0c858 (bug 1887980)
Backed out changeset c538de825468 (bug 1875502)
Backed out changeset a6c1ee51eadb (bug 1875502)
Backed out changeset 47bc52e77563 (bug 1875502)
Backed out changeset 54d53947927a (bug 1875502)
Backed out changeset 6bc2601a69bd (bug 1875502)
Backed out changeset 917a4aed3b4b (bug 1875502)
Backed out changeset afa0353ca6a2 (bug 1875502)
Backed out changeset 42ad3c8fe41e (bug 1875502)
Backed out changeset b5f4c67a548b (bug 1875502)
Backed out changeset d47c42d117e3 (bug 1875502)
Backed out changeset a33c98ac118c (bug 1875502)
Backed out changeset b57983b426ba (bug 1875502)
Backed out changeset a013811a156b (bug 1875502)
Backed out changeset 05b53ed47055 (bug 1875502)
Backed out changeset aa0eee306544 (bug 1875502)
Backed out changeset 5736dca8c05b (bug 1875502)
Backed out changeset 6e60ddb35c98 (bug 1875502)
Backed out changeset fcb327ff8717 (bug 1875502)
Backed out changeset 1950b330d253 (bug 1875502)
2024-05-16 00:21:12 +03:00
Robin Steuber
722546fd39 Bug 1875502 - Fix tests broken by the previous patch stack that standardizes update initialization r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D204129
2024-05-15 17:06:19 +00:00
Robin Steuber
b72418029b Bug 1875502 - Update UpdateServiceStub consumers r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
The earlier patches in this stack (a) made it possible to await on the stub to complete and (b) ensured that the update system initiates properly regardless of when and if the update service stub is invoked. This allows us to remove explict stub invocations in some cases and to have the await on the results in others.

Differential Revision: https://phabricator.services.mozilla.com/D209129
2024-05-15 17:06:18 +00:00
Robin Steuber
66a91679d0 Bug 1875502 - Add UpdateManager.updateInstalledAtStartup r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209127
2024-05-15 17:06:18 +00:00
Robin Steuber
6ef1322d6e Bug 1875502 - Create standardized update init flow r=nalexander,settings-reviewers,application-update-reviewers
A number of changes are made as part of this patch:
 - A consistent way of initializing update is created. This is automatically run when methods that need it are invoked.
 - The "post-update-processing" notification has been removed. Post update processing is now done through the new `nsIApplicationUpdateService.init` or `nsIApplicationUpdateService.internal.postUpdateProcessing`.
 - Post update processing no longer waits for the sessionstore-windows-restored observer service notification
 - Post update processing is no longer invoked only when the `update.status` file exists. It is now run unconditionally.
 - Explicitly initialize before we potentially clean up updates from the update UI.

Note that the update service stub and a few consumers of it ought to be able to wait for post update processing to be done but they currently do not. That will be done later in this patch stack when we rework the stub.

Differential Revision: https://phabricator.services.mozilla.com/D209126
2024-05-15 17:06:17 +00:00
Robin Steuber
1699247a2d Bug 1875502 - Pre: Update tests to accomodate async downloadingUpdate r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209118
2024-05-15 17:06:14 +00:00
Robin Steuber
152c8a9726 Bug 1875502 - Pre: Update tests to accomodate async readyUpdate r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209116
2024-05-15 17:06:13 +00:00
Robin Steuber
941b8d256c Bug 1875502 - Pre: Make AUS's readyUpdate async r=nalexander,settings-reviewers,application-update-reviewers
Aside from tests (which will be in the next patch in the stack), this specifically leaves two instances of readyUpdate unchanged - the one in BrowserContentHandler's `getArgs` and the one in UpdatePing's `_getActiveUpdate`. In both of these cases what is actually wanted is the update that was just installed. It's only because of the (fairly arbitrary) order that things are started up in that `readyUpdate` still happens to contain this value when these things run. Later in this patch stack we will add something more appropriate for this. But in the meantime, it doesn't make sense to convert functions to be asynchronous that will not ultimately need to be asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D209115
2024-05-15 17:06:13 +00:00
Robin Steuber
fa183cf6fe Bug 1875502 - Pre: Make UpdateManager's history functions async r=nalexander,settings-reviewers,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209113
2024-05-15 17:06:12 +00:00
Robin Steuber
d45b40024c Bug 1875502 - Pre: Make update cleanup functions async r=nalexander,settings-reviewers,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209111
2024-05-15 17:06:11 +00:00
Robin Steuber
388cb24918 Bug 1875502 - Pre: Make AUS._checkForBackgroundUpdates async r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
I want the initialization function that I'm going to add later in the patch stack to be asynchronous, so the update entry points should be asynchronous functions.

Differential Revision: https://phabricator.services.mozilla.com/D209109
2024-05-15 17:06:11 +00:00
Robin Steuber
978e733033 Bug 1875502 - Pre: Move update manager reload functionality into nsIUpdateManagerInternal r=nalexander,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209107
2024-05-15 17:06:11 +00:00
Gijs Kruitbosch
6caf5c363c Bug 1895692 - turn off import/no-unassigned-import for storybook files, r=reusable-components-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D210475
2024-05-15 16:08:57 +00:00
Sandor Molnar
907f5bc3c9 Backed out changeset cc14c4f9f46e (bug 1890721) for causing bc failures @ browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js CLOSED TREE 2024-05-15 21:03:34 +03:00
Nipun Shukla
e5ec6b9171 Bug 1893341 - Change Firefox launch on login to use Windows StartupTask functions on MSIX r=nalexander,nrishel,settings-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D208567
2024-05-15 15:34:43 +00:00
Nipun Shukla
093cbb5c92 Bug 1895744 - Implemented WRL StartupTask for MSIX launch on login r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D209718
2024-05-15 15:34:42 +00:00
Nikki Sharpley
07f0b37e58 Bug 1893505 - Add custom right-click menu to sidebar extension r=sidebar-reviewers,fluent-reviewers,Gijs,sfoster
This patch creates a new context menu for the revamped sidebar, including existing
options for managing extensions. We should be able to build off the `onSidebarPopupShowing`
function to customize what we want to show based on what sidebar item we right click.

Differential Revision: https://phabricator.services.mozilla.com/D208951
2024-05-15 14:30:31 +00:00
Niklas Baumgardner
3a74a799bd Bug 1890721 - Prevent events from reaching the content page. r=sfoster,smaug
Differential Revision: https://phabricator.services.mozilla.com/D207749
2024-05-15 13:45:25 +00:00
Niklas Baumgardner
0fa91d7bb3 Bug 1896002 - Enable screenshots preview buttons if download fails. r=sfoster,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D209979
2024-05-15 13:44:24 +00:00