mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
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:
parent
307566dd3c
commit
15e61dae1b
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
@ -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,
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user