547 Commits

Author SHA1 Message Date
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
Alexandru Marc
88e7c19d5c Backed out 10 changesets (bug 1938452) for causing node failures CLOSED TREE
Backed out changeset f6a771e83261 (bug 1938452)
Backed out changeset 69f385bc90ce (bug 1938452)
Backed out changeset 9c8837fc4805 (bug 1938452)
Backed out changeset c9737e213e42 (bug 1938452)
Backed out changeset ac0a50aaf347 (bug 1938452)
Backed out changeset f1f41e902e36 (bug 1938452)
Backed out changeset aef74a3d077d (bug 1938452)
Backed out changeset 8ca1a633192a (bug 1938452)
Backed out changeset 88df910fa038 (bug 1938452)
Backed out changeset cd4fdafb2594 (bug 1938452)
2025-02-03 18:28:59 +02:00
Mike Conley
b75d1059ab 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 15:07:08 +00:00
Ed Lee
8b77709dbf Bug 1933524 - Flip chatbot default and remove from Labs in Nightly and Release r=ngrato,settings-reviewers,sidebar-reviewers,nsharpley,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,jsudiaman,Gijs,sclements,desktop-theme-reviewers,hjones
Flip default pref to true and remove featuregate entry/strings/styles. Switch actor enabled to actual opt-in / provider. Update sidebar tests for chatbot as default tool.

Differential Revision: https://phabricator.services.mozilla.com/D233204
2025-01-31 16:58:55 +00:00
Sarah Clements
6431a09f9c Bug 1944101 - remove aichat as a default tool for specific users r=Mardak,mossop,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D235819
2025-01-30 12:46:46 +00:00
Florian Quèze
b4b0d27e43 Bug 1935420 - Migrate histograms to use Glean APIs in toolkit/components/antitracking, r=chutten,anti-tracking-reviewers,firefox-desktop-core-reviewers ,emz,mossop.
Differential Revision: https://phabricator.services.mozilla.com/D234069
2025-01-27 13:42:15 +00:00
Mike Conley
33e00ac976 Bug 1942144 - Move AboutNewTab JSWindowActor registration to AboutNewTabService. r=firefox-desktop-core-reviewers ,home-newtab-reviewers,Gijs,thecount
This makes the AboutNewTabChild DOMContentLoaded event handler capturing in
order to ensure that it injects the contentTheme.js script before the
LightweightThemeChild fires its LightweightTheme:Set event. This worked
before by virtue of actor registration order (which this patch changes).

Differential Revision: https://phabricator.services.mozilla.com/D234590
2025-01-24 21:33:56 +00:00
Mathieu Leplatre
2fb5433cde Bug 1786310 - Offboard the main/public-suffix-list Remote Settings collection r=valentin,Gijs,necko-reviewers,firefox-desktop-core-reviewers
Reverts the work done in:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1563226
- https://bugzilla.mozilla.org/show_bug.cgi?id=1582647
- https://bugzilla.mozilla.org/show_bug.cgi?id=1563246

Differential Revision: https://phabricator.services.mozilla.com/D234356
2025-01-22 15:55:42 +00:00
Meg Viar
de889acc9a Bug 1941896 - Add ability to show preonboarding modal persistently until interacted with r=jprickett,hanna_a
Add ability to show the preonboarding modal on every startup until a configured "interactionPref" is set to true, typically via interaction with the primary CTA.

Differential Revision: https://phabricator.services.mozilla.com/D234406
2025-01-17 21:13:03 +00:00
Meg Viar
3bd09d7884 Bug 1941350 - Add preonboarding modal Nimbus feature r=firefox-desktop-core-reviewers ,omc-reviewers,negin
- Add `preonboarding` Nimbus feature for showing a window modal over about:welcome that cannot be dismissed via ESC
- Include the ability to suppress showing the privacy notice tab on first run using a variable under the new `preonboarding` feature
- Remove legacy `showModal` related `aboutwelcome` Nimbus feature variables (these are not in use and were for [[ https://experimenter.services.mozilla.com/nimbus/window-modal-vs-tab-modal/summary | an old experiment ]])

Differential Revision: https://phabricator.services.mozilla.com/D234039
2025-01-17 15:18:15 +00:00
Butkovits Atila
6827b521ec Backed out changeset d43df6d45f03 (bug 1786310) for causing failures at nsEffectiveTLDService.cpp. CLOSED TREE 2025-01-17 15:02:28 +02:00
Mathieu Leplatre
24dad11c20 Bug 1786310 - Offboard the main/public-suffix-list Remote Settings collection r=valentin,Gijs,necko-reviewers,firefox-desktop-core-reviewers
Reverts the work done in:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1563226
- https://bugzilla.mozilla.org/show_bug.cgi?id=1582647
- https://bugzilla.mozilla.org/show_bug.cgi?id=1563246

Differential Revision: https://phabricator.services.mozilla.com/D234356
2025-01-17 11:47:30 +00:00
Stanca Serban
b272d96a83 Backed out changeset 7ebf2aee0c7b (bug 1941350) for causing xpcshell failures in test_TelemetryReportingPolicy.js. CLOSED TREE 2025-01-16 19:51:43 +02:00
Meg Viar
9317d6a34e Bug 1941350 - Add TOU preonboarding modal Nimbus feature r=firefox-desktop-core-reviewers ,omc-reviewers,negin
- Add `preonboarding` Nimbus feature for showing a window modal over about:welcome that cannot be dismissed via ESC
- Include the ability to suppress showing the privacy notice tab on first run using a variable under the new `preonboarding` feature
- Remove legacy `showModal` related `aboutwelcome` Nimbus feature variables (these are not in use and were for [[ https://experimenter.services.mozilla.com/nimbus/window-modal-vs-tab-modal/summary | an old experiment ]])

Differential Revision: https://phabricator.services.mozilla.com/D234039
2025-01-16 16:00:13 +00:00
Fatih
347fe5d450 Bug 1448423: Skip earlyBlankFirstPaint if RoundWindowSize RFP target is enabled. r=tjr,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D224240
2025-01-16 13:35:46 +00:00
Nick Alexander
5d2870189e Bug 1921218 - Part 3: Usage reporting preference inherits general preference. r=chutten,TravisLong,firefox-desktop-core-reviewers ,mak
This commit makes the usage reporting preference inherit the general
data reporting preference for existing Firefox users.  New Firefox
users will use the default usage reporting preference value, which is
enabled by default.  Future onboarding changes will likely impact the
default usage reporting preference value.

Differential Revision: https://phabricator.services.mozilla.com/D232569
2025-01-15 23:13:25 +00:00
Nick Alexander
9ed45850dd Bug 1921218 - Part 2: Connect usage reporting Gecko preference to Glean. r=chutten,TravisLong,firefox-desktop-core-reviewers
This commit "splits the difference", putting as much behaviour as
convenient into a new `UsageReporting` module while still connecting to
`TelemetryControllerParent`.  The latter connection keeps testing
consistent; tests can assume that preference listeners, etc, are
registered.

The usage ID is preserved sibling to other client IDs in the "data
reporting state" bundle.  In the future, it might make sense to keep
the usage ID only as a Glean metric, but that might require a
migration and some code restructuring.  For expedience, I will keep
the existing implementation.

Differential Revision: https://phabricator.services.mozilla.com/D231995
2025-01-15 23:13:24 +00:00