Bug 1876556 - Change urlbar engagement telemetry to record data by default - r=TravisLong,mak,daisuke

Differential Revision: https://phabricator.services.mozilla.com/D199661
This commit is contained in:
James Teow 2024-01-29 14:20:57 +00:00
parent 307566dd3c
commit 15e61dae1b
4 changed files with 1 additions and 14 deletions

View File

@ -12,7 +12,6 @@ $tags:
urlbar:
abandonment:
disabled: true
type: event
description: Recorded when the user abandons a search (blurring the urlbar).
extra_keys:
@ -154,7 +153,6 @@ urlbar:
- fx-search-telemetry@mozilla.com
expires: never
engagement:
disabled: true
type: event
description: Recorded when the user executes an action on a result.
extra_keys:

View File

@ -11,10 +11,6 @@ Services.scriptloader.loadSubScript(
);
add_setup(async function () {
Services.fog.setMetricsFeatureConfig(
JSON.stringify({ "urlbar.abandonment": false })
);
await SpecialPowers.pushPrefEnv({
set: [
["browser.urlbar.searchTips.test.ignoreShowLimits", true],
@ -32,7 +28,6 @@ add_setup(async function () {
await Services.search.moveEngine(engine, 0);
registerCleanupFunction(async function () {
Services.fog.setMetricsFeatureConfig("{}");
await SpecialPowers.popPrefEnv();
await Services.search.setDefault(
originalDefaultEngine,

View File

@ -13,15 +13,11 @@ Services.scriptloader.loadSubScript(
add_setup(async function () {
makeProfileResettable();
Services.fog.setMetricsFeatureConfig(
JSON.stringify({ "urlbar.engagement": false })
);
await SpecialPowers.pushPrefEnv({
set: [["browser.urlbar.quickactions.enabled", false]],
});
registerCleanupFunction(async function () {
Services.fog.setMetricsFeatureConfig("{}");
await SpecialPowers.popPrefEnv();
});
});

View File

@ -204,11 +204,9 @@ async function doPasteAndGo(data) {
async function doTest(testFn) {
await Services.fog.testFlushAllChildren();
Services.fog.testResetFOG();
// Enable recording telemetry for abandonment, engagement and impression.
// Enable recording telemetry for impression, as it is disabled by default.
Services.fog.setMetricsFeatureConfig(
JSON.stringify({
"urlbar.abandonment": true,
"urlbar.engagement": true,
"urlbar.impression": true,
})
);