Bug 1912351 - Create onSearch trigger and targeting r=mviar,omc-reviewers,urlbar-reviewers,dao

Differential Revision: https://phabricator.services.mozilla.com/D219519
This commit is contained in:
Jason Prickett
2024-08-27 16:46:02 +00:00
parent 59ea726487
commit 6d13ee8ae8
8 changed files with 197 additions and 3 deletions

View File

@@ -147,6 +147,12 @@ XPCOMUtils.defineLazyPreferenceGetter(
return behaviorString === "embedded";
}
);
XPCOMUtils.defineLazyPreferenceGetter(
lazy,
"totalSearches",
"browser.search.totalSearches",
0
);
XPCOMUtils.defineLazyServiceGetters(lazy, {
AUS: ["@mozilla.org/updates/update-service;1", "nsIApplicationUpdateService"],
@@ -1063,6 +1069,10 @@ const TargetingGetters = {
}
return memory;
},
get totalSearches() {
return lazy.totalSearches;
},
};
export const ASRouterTargeting = {