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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user