Commit Graph

513 Commits

Author SHA1 Message Date
William Wen
63dd1f440d Bug 1956556 - Add consent manager prefs to ETP strict settings. r=timhuang,settings-reviewers,firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D243127
2025-04-01 20:02:42 +00:00
Tom Schuster
a7fe44620b Bug 1883387 - Suppress NS_ERROR_NOT_IMPLEMENTED from nsIAppStartup.secondsSinceLastOSRestart. r=firefox-desktop-core-reviewers ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D243669
2025-03-31 14:23:49 +00:00
Ted Campbell
8728df611b Bug 1956093 - DAPVisitCounter should track Nimbus feature r=simonf,beth,firefox-desktop-core-reviewers ,mconley
Register Nimbus callback on startup, and ensure we unregister hooks when not
enrolled in experiment.

Differential Revision: https://phabricator.services.mozilla.com/D243248
2025-03-27 19:44:09 +00:00
Ted Campbell
1639b734e1 Bug 1956093 - Make DAPTelemetrySender toggle without restart r=simonf,firefox-desktop-core-reviewers ,mconley,chutten
Move the data upload pref check into each `sendReport` call instead of checking
only at startup. Also fixup various things in test_dap.js.

Differential Revision: https://phabricator.services.mozilla.com/D243247
2025-03-27 19:44:09 +00:00
Fred Chasen
8fa2242721 Bug 1938392 - Add integratedSidebar pref to Nimbus. r=shopping-reviewers,firefox-desktop-core-reviewers ,sidebar-reviewers,mossop,Gijs,rking
Adds the integratedSidebar pref to the `shopping2023` Nimbus feature and separates the enabling prefs for the migrated Review Checker in the main sidebar and the Shopping sidebar.

- Updates `browser.shopping.experience2023.integratedSidebar` to be the only enabling pref for the migrated Review Checker sidebar.
- Prevents `browser.shopping.experience2023.enabled` from disabling the migrate sidebar and uses it as the pref for the ShoppingSidebar actors.
- Removes the `browser.shopping.experience2023.shoppingSidebar` pref as it is no longer needed.
- Updates any tests the used these prefs to the new use.
- Init's the two sidebar differently in `ShoppingUtils` based on the Nimbus prefs.
- Unset the `SidebarController._state.command` when a sidebar tool pref sets it to `visible=false` otherwise it will try to re-open when the sidebar is opened again.

Differential Revision: https://phabricator.services.mozilla.com/D242053
2025-03-27 00:05:15 +00:00
Sarah Clements
3435c4b131 Bug 1947997 - Make sidebar.main.tools user customized r=sidebar-reviewers,firefox-desktop-core-reviewers ,mossop
* Update sidebar.main.tools default values and include a migration
* Modify updateDefaultTools in SidebarManager
* Update tests

Differential Revision: https://phabricator.services.mozilla.com/D240903
2025-03-24 18:32:29 +00:00
Gijs Kruitbosch
e9de12e4df Bug 1954435 - switch uitour to use moz-src, r=omc-reviewers,firefox-desktop-core-reviewers ,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D241795
2025-03-17 22:26:21 +00:00
Gijs Kruitbosch
f536d37c73 Bug 1954435 - tidy up UITour pref handling and remove requireSecure pref (enforce https), r=firefox-desktop-core-reviewers ,omc-reviewers,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D241794
2025-03-17 22:26:20 +00:00
Tooru Fujisawa
eba211428c Bug 1952714 - Stop using defineLazyPreferenceGetter in actors. r=mossop,firefox-desktop-core-reviewers ,mconley
There's no need to use weak reference while relying on something to keep the
prefs object alive.
Use plain prefs API with strong references.

Differential Revision: https://phabricator.services.mozilla.com/D240792
2025-03-12 02:24:44 +00:00
Beth Rennie
91d6531c40 Bug 1942694 - Remove toolkit/components/featuregates r=settings-reviewers,firefox-desktop-core-reviewers ,frontend-codestyle-reviewers,Gijs,android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D239672
2025-03-11 18:16:50 +00:00
Gijs Kruitbosch
b80542ddf9 Bug 1946121 - avoid needing primary password to collect OS auth telemetry, r=mtigley,firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D240899
2025-03-11 17:25:47 +00:00
Tim Xia
736aabff21 Bug 1952011 - Implement fetch for Link Preview - r=Mardak,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,mconley
- add fetch in child process
- DOM parsing only once
- check content-type to be text/html before fetching content
- add custom request header x-firefox-ai so publisher has option to allow/disallow the fetch request
- more fetch safeguards(max content-length) may come in the near future

Differential Revision: https://phabricator.services.mozilla.com/D240654
2025-03-11 05:15:02 +00:00
Luca Greco
9b62e7c434 Bug 1948364 - part 3: Adjust BrowserGlue _monitorScreenshotsPref. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D238315
2025-03-06 16:24:02 +00:00
Mark Banner
878a5d5415 Bug 1951652 - Convert browser/components/search/ modules to use moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D240333
2025-03-05 09:24:37 +00:00
Julien Wajsberg
279bcb34e5 Bug 1950884 - Clean up calls with unused parameters r=canaltinova,profiler-reviewers,firefox-desktop-core-reviewers ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D239600
2025-03-04 17:36:01 +00:00
Goloman Adrian
ace44e54c1 Backed out 4 changesets (bug 1950884, bug 1562082) for causing bc failures @browser_914138_widget_API_overflowable_toolbar.js. CLOSED TREE
Backed out changeset 7eb738540ace (bug 1562082)
Backed out changeset 9249743a9e0e (bug 1950884)
Backed out changeset 5531e172434d (bug 1950884)
Backed out changeset 2177f7ba56e3 (bug 1950884)
2025-03-04 16:06:35 +02:00
Andrea Marchesini
1c4205a4eb Bug 1938155 - System to BuiltIn addons - part 2 - Cleanup the search-detection addon startup, r=rpl,firefox-desktop-core-reviewers ,mconley
Differential Revision: https://phabricator.services.mozilla.com/D236225
2025-03-04 12:19:55 +00:00
Julien Wajsberg
fa1b916d18 Bug 1950884 - Clean up calls with unused parameters r=canaltinova,profiler-reviewers,firefox-desktop-core-reviewers ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D239600
2025-03-04 12:19:47 +00:00
James Teow
a57f4fb053 Bug 1949294 - Part 2: Un-init SERP categorization and telemetry with category manager - r=Gijs,firefox-desktop-core-reviewers
Depends on D240039

Differential Revision: https://phabricator.services.mozilla.com/D240040
2025-03-04 04:05:42 +00:00
Gijs Kruitbosch
eef8b4a6fb Bug 1949898 - Use the category manager for before-ui-startup invocations. r=Gijs,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D237227
2025-03-03 18:23:07 +00:00
Gijs Kruitbosch
ffd04c90fd Bug 1916469 - Move AboutHomeStartupCache into its own file. r=perftest-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,mossop,afinder,reemhamz
Differential Revision: https://phabricator.services.mozilla.com/D237226
2025-03-03 18:23:07 +00:00
Sandor Molnar
69afb1df24 Backed out 5 changesets (bug 1938155) for causing bc failures @ test_docl10n_removeResourceIds.html CLOSED TREE
Backed out changeset 3a07ac797a6b (bug 1938155)
Backed out changeset 75b3ab804c41 (bug 1938155)
Backed out changeset 33212a164d8d (bug 1938155)
Backed out changeset 773ffa5505a1 (bug 1938155)
Backed out changeset 1ef8c3ce26bf (bug 1938155)
2025-03-03 19:32:19 +02:00
Andrea Marchesini
391211adbf Bug 1938155 - System to BuiltIn addons - part 2 - Cleanup the search-detection addon startup, r=rpl,firefox-desktop-core-reviewers ,mconley
Differential Revision: https://phabricator.services.mozilla.com/D236225
2025-03-03 15:36:40 +00:00
kpatenio
484c791c0a Bug 1945646 - implement notification card for migrated Review Checker for existing opted-in users. r=desktop-theme-reviewers,firefox-desktop-core-reviewers ,fluent-reviewers,shopping-reviewers,bolsson,jhirsch
**Summary**
Adds a card for migrated Review Checker notifying users can move the sidebar to the left or the right side. Visibility is controlled by two factors:
- browser.shopping.experience2023.newPositionCard.hasSeen - if true, the user already saw the card and we don't have to show it again. If false (default), make sure to show the card once we're able to.
- browser.shopping.experience2023.integratedSidebar - must be true, since this enables Review Checker in the sidebar and allows us to use ReviewChecker actors

There's also three actors in play:

**ReviewCheckerManager**
- Responsible for the sidebar's visibility and auto-open behaviour. We only show the notification card on auto-open and a PDP, so we check if we can render the notification card in this file.
- It also handles behaviour for moving the sidebar position, or showing the sidebar settings panel.
- However, because ReviewCheckerManager is instantiated before the ReviewChecker parent and child pair actors, we have to wait for RC parent to be created before RC manager can communicate with it.

**ReviewCheckerParent**
- Once created, it communicates with ReviewCheckerManager, so that we know if we should render the notification card or not.
- If it receives a response back from RC manager, it will send a message to its RC child counterpart.
- Otherwise, if it receives a message from RC child to move the sidebar position or show the sidebar settings panel, communicate with RC manager again to do the appropriate action.

**ReviewCheckerChild**
- It receives a message from ReviewCheckerParent to know if we should show the notification card. If yes, then send an event to the content (shopping-container)
- It also listens for and handles events from content (shopping-container), like if a user presses the move position buttons, or wants to see the sidebar settings panel. Once an event is detected for either action from content, send a message to ReviewCheckerParent, and then RC manager by extension, to make the appropriate action.

**Follow-up work**
There's another patch https://phabricator.services.mozilla.com/D239083 that updates how the notification card and keep closed message behave, ensuring they don't visually conflict with each other.

Differential Revision: https://phabricator.services.mozilla.com/D238089
2025-02-27 06:48:10 +00:00
Sandor Molnar
06e45f7e1d Backed out 2 changesets (bug 1948124, bug 1945646) for causing bc failures @ browser_reviewchecker_new_position_notification_card.js CLOSED TREE
Backed out changeset f07865e10f31 (bug 1948124)
Backed out changeset 2320815849b3 (bug 1945646)
2025-02-26 13:32:38 +02:00
kpatenio
abc3d2c04b Bug 1945646 - implement notification card for migrated Review Checker for existing opted-in users. r=desktop-theme-reviewers,firefox-desktop-core-reviewers ,fluent-reviewers,shopping-reviewers,bolsson,jhirsch
**Summary**
Adds a card for migrated Review Checker notifying users can move the sidebar to the left or the right side. Visibility is controlled by two factors:
- browser.shopping.experience2023.newPositionCard.hasSeen - if true, the user already saw the card and we don't have to show it again. If false (default), make sure to show the card once we're able to.
- browser.shopping.experience2023.integratedSidebar - must be true, since this enables Review Checker in the sidebar and allows us to use ReviewChecker actors

There's also three actors in play:

**ReviewCheckerManager**
- Responsible for the sidebar's visibility and auto-open behaviour. We only show the notification card on auto-open and a PDP, so we check if we can render the notification card in this file.
- It also handles behaviour for moving the sidebar position, or showing the sidebar settings panel.
- However, because ReviewCheckerManager is instantiated before the ReviewChecker parent and child pair actors, we have to wait for RC parent to be created before RC manager can communicate with it.

**ReviewCheckerParent**
- Once created, it communicates with ReviewCheckerManager, so that we know if we should render the notification card or not.
- If it receives a response back from RC manager, it will send a message to its RC child counterpart.
- Otherwise, if it receives a message from RC child to move the sidebar position or show the sidebar settings panel, communicate with RC manager again to do the appropriate action.

**ReviewCheckerChild**
- It receives a message from ReviewCheckerParent to know if we should show the notification card. If yes, then send an event to the content (shopping-container)
- It also listens for and handles events from content (shopping-container), like if a user presses the move position buttons, or wants to see the sidebar settings panel. Once an event is detected for either action from content, send a message to ReviewCheckerParent, and then RC manager by extension, to make the appropriate action.

**Follow-up work**
There's another patch https://phabricator.services.mozilla.com/D239083 that updates how the notification card and keep closed message behave, ensuring they don't visually conflict with each other.

Differential Revision: https://phabricator.services.mozilla.com/D238089
2025-02-26 09:01:57 +00:00
Sandor Molnar
5e7a857d85 Backed out 3 changesets (bug 1949647, bug 1945646, bug 1948124) for causing bc failures @ browser_reviewchecker_show_keep_closed_and_notification_card CLOSED TREE
Backed out changeset 054d48fbdbf7 (bug 1948124)
Backed out changeset b99d9e5ea1d3 (bug 1949647)
Backed out changeset 46a382f3f0c6 (bug 1945646)
2025-02-26 08:59:10 +02:00
kpatenio
d16bb0bb4b Bug 1945646 - implement notification card for migrated Review Checker for existing opted-in users. r=desktop-theme-reviewers,firefox-desktop-core-reviewers ,fluent-reviewers,shopping-reviewers,bolsson,jhirsch
**Summary**
Adds a card for migrated Review Checker notifying users can move the sidebar to the left or the right side. Visibility is controlled by two factors:
- browser.shopping.experience2023.newPositionCard.hasSeen - if true, the user already saw the card and we don't have to show it again. If false (default), make sure to show the card once we're able to.
- browser.shopping.experience2023.integratedSidebar - must be true, since this enables Review Checker in the sidebar and allows us to use ReviewChecker actors

There's also three actors in play:

**ReviewCheckerManager**
- Responsible for the sidebar's visibility and auto-open behaviour. We only show the notification card on auto-open and a PDP, so we check if we can render the notification card in this file.
- It also handles behaviour for moving the sidebar position, or showing the sidebar settings panel.
- However, because ReviewCheckerManager is instantiated before the ReviewChecker parent and child pair actors, we have to wait for RC parent to be created before RC manager can communicate with it.

**ReviewCheckerParent**
- Once created, it communicates with ReviewCheckerManager, so that we know if we should render the notification card or not.
- If it receives a response back from RC manager, it will send a message to its RC child counterpart.
- Otherwise, if it receives a message from RC child to move the sidebar position or show the sidebar settings panel, communicate with RC manager again to do the appropriate action.

**ReviewCheckerChild**
- It receives a message from ReviewCheckerParent to know if we should show the notification card. If yes, then send an event to the content (shopping-container)
- It also listens for and handles events from content (shopping-container), like if a user presses the move position buttons, or wants to see the sidebar settings panel. Once an event is detected for either action from content, send a message to ReviewCheckerParent, and then RC manager by extension, to make the appropriate action.

**Follow-up work**
There's another patch https://phabricator.services.mozilla.com/D239083 that updates how the notification card and keep closed message behave, ensuring they don't visually conflict with each other.

Differential Revision: https://phabricator.services.mozilla.com/D238089
2025-02-26 02:23:50 +00:00
Daisuke Akatsuka
95533899a1 Bug 1936455: Remove the Suggest online opt-in onboarding dialog r=firefox-desktop-core-reviewers ,urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D238893
2025-02-21 05:01:33 +00:00
Alexandru Marc
a822e8842c Backed out changeset 2c10082390b2 (bug 1936455) for causing xpcshell failures @ test_quicksuggest_migrate_v1.js CLOSED TREE 2025-02-21 03:51:58 +02:00
Daisuke Akatsuka
9c1c8fcf29 Bug 1936455: Remove the Suggest online opt-in onboarding dialog r=firefox-desktop-core-reviewers ,urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D238893
2025-02-21 01:05:42 +00:00
Florian Quèze
b412ac1d8d Bug 1944631 - Migrate histograms to use Glean APIs for BROWSER_*, r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D238788
2025-02-20 19:34:10 +00:00
Gijs Kruitbosch
ecac1cfa05 Bug 1916424 - use category manager for quit-application-granted consumers from BrowserGlue, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D220898
2025-02-20 13:51:02 +00:00
Gijs Kruitbosch
baa24c276e Bug 1916424 - use category manager for idle startup tasks from BrowserGlue, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D220897
2025-02-20 13:51:02 +00:00
Alexandru Marc
31459715b9 Backed out 4 changesets (bug 1916424, bug 1946400) for causing leaks @ Alloc, JSString::OwnedChars
Backed out changeset df8e24e9be67 (bug 1946400)
Backed out changeset 88961496629c (bug 1946400)
Backed out changeset 8e0862096be2 (bug 1916424)
Backed out changeset b4b2ef6e086b (bug 1916424)
2025-02-18 19:57:43 +02:00
Gijs Kruitbosch
a7804bd1c3 Bug 1916424 - use category manager for quit-application-granted consumers from BrowserGlue, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D220898
2025-02-18 14:57:48 +00:00
Gijs Kruitbosch
698e1bfe4a Bug 1916424 - use category manager for idle startup tasks from BrowserGlue, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D220897
2025-02-18 14:57:47 +00:00
Dave Townsend
16739ed121 Bug 1927808: Profiles should remain disabled if BlockAboutProfiles enterprise policy is active. r=mkaply,profiles-reviewers,firefox-desktop-core-reviewers ,Gijs,jhirsch
This also ensures we are more consistent about using the state of `SelectableProfileService.isEnabled` to check if the feature is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D236848
2025-02-18 11:28:15 +00:00
Goloman Adrian
0e650176ac Backed out changeset 23237bed6270 (bug 1927808) for causing xpc failures @test_sync_warning_dialogs.js. CLOSED TREE 2025-02-17 13:45:43 +02:00
Dave Townsend
9ae2b19dba Bug 1927808: Profiles should remain disabled if BlockAboutProfiles enterprise policy is active. r=mkaply,profiles-reviewers,firefox-desktop-core-reviewers ,Gijs,jhirsch
This also ensures we are more consistent about using the state of `SelectableProfileService.isEnabled` to check if the feature is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D236848
2025-02-17 10:52:15 +00:00
Goloman Adrian
260e6fa6bb Backed out changeset cc9c1dbec866 (bug 1927808) for causing multiple failures. CLOSED TREE 2025-02-17 12:20:26 +02:00
Dave Townsend
b4ae0c1ece Bug 1927808: Profiles should remain disabled if BlockAboutProfiles enterprise policy is active. r=mkaply,profiles-reviewers,firefox-desktop-core-reviewers ,Gijs,jhirsch
This also ensures we are more consistent about using the state of `SelectableProfileService.isEnabled` to check if the feature is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D236848
2025-02-17 09:07:43 +00:00
Ed Lee
694a588ca5 Bug 1945904 - GenAIChild spams the parent process with HideShortcuts messages and should manage event listeners more efficiently r=ngrato,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,mossop
Register actor on mousedown and conditionally register hide related events after showing shortcuts.

Differential Revision: https://phabricator.services.mozilla.com/D237975
2025-02-13 17:02:19 +00:00
Drew Willcoxon
1175b84265 Bug 1945999 - Make Suggest initialization happen in one place. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D236825
2025-02-07 21:35:22 +00:00
Goloman Adrian
bc8a66a1e1 Backed out changeset 39e6a7e77cfb (bug 1927808) for causing multiple failures. CLOSED TREE 2025-02-06 14:50:21 +02:00
Dave Townsend
89b6c18f30 Bug 1927808: Profiles should remain disabled if BlockAboutProfiles enterprise policy is active. r=mkaply,profiles-reviewers,firefox-desktop-core-reviewers ,Gijs,jhirsch
This also ensures we are more consistent about using the state of `SelectableProfileService.isEnabled` to check if the feature is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D236848
2025-02-06 10:23:36 +00:00
Nick Alexander
4773306fc7 Bug 1945672 - Part 3: Block Glean startup and default browser prompt on notifying user. r=chutten,TravisLong,mviar,firefox-desktop-core-reviewers ,Gijs
This blocks FOG initialization on notifying the user.  This **does**
change the existing functionality, even when the Messaging System is
not used to notify the user: in legacy situations, this will display a
background tab and the promise will resolve quickly (not immediately),
falling back to an infobar that might be delayed 10-60s before being
displayed and being resolved (again, not immediately).

(Legacy Telemetry was blocked already, because the existing user
notification blocks sending Legacy Telemetry.)

Finally, the default browser prompt is blocked so that there's no race
between the (potentially blocking) Messaging System notification and
other prompts.  This also changes the behaviour by allowing the
Messaging System notification to be resolved and a subsequent
prompt (such as the default browser prompt) to be displayed
immediately afterward.

Differential Revision: https://phabricator.services.mozilla.com/D236624
2025-02-06 05:15:32 +00:00
Alexandru Marc
68ea3f065b Backed out 5 changesets (bug 1945290, bug 1945672) for causing xpcshell failures @ test_TelemetryReportingPolicy.js
Backed out changeset c16bb7800e1f (bug 1945672)
Backed out changeset 1a5006cd4cff (bug 1945672)
Backed out changeset 7da7d972d2fb (bug 1945672)
Backed out changeset 7b360633f06b (bug 1945290)
Backed out changeset caf8581c6983 (bug 1945290)
2025-02-06 02:40:51 +02:00
Nick Alexander
437a0d2791 Bug 1945672 - Part 3: Block Glean startup and default browser prompt on notifying user. r=chutten,TravisLong,mviar,firefox-desktop-core-reviewers ,Gijs
This blocks FOG initialization on notifying the user.  This **does**
change the existing functionality, even when the Messaging System is
not used to notify the user: in legacy situations, this will display a
background tab and the promise will resolve quickly (not immediately),
falling back to an infobar that might be delayed 10-60s before being
displayed and being resolved (again, not immediately).

(Legacy Telemetry was blocked already, because the existing user
notification blocks sending Legacy Telemetry.)

Finally, the default browser prompt is blocked so that there's no race
between the (potentially blocking) Messaging System notification and
other prompts.  This also changes the behaviour by allowing the
Messaging System notification to be resolved and a subsequent
prompt (such as the default browser prompt) to be displayed
immediately afterward.

Differential Revision: https://phabricator.services.mozilla.com/D236624
2025-02-05 21:55:30 +00:00
Mike Conley
829da877ed Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r=omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,pdahiya,mossop,amy
Differential Revision: https://phabricator.services.mozilla.com/D233866
2025-02-03 16:45:30 +00:00