Bug 1614760 - Add telemetryInfo to Addon Install object. r=rpl

Differential Revision: https://phabricator.services.mozilla.com/D66093

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Agi Sferro 2020-03-10 15:24:50 +00:00
Родитель 5d808a15d9
Коммит fe6beee13d
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -535,7 +535,11 @@ var GeckoViewWebExtension = {
},
async installWebExtension(aUri) {
const install = await AddonManager.getInstallForURL(aUri.spec);
const install = await AddonManager.getInstallForURL(aUri.spec, {
telemetryInfo: {
source: "geckoview-app",
},
});
const promise = new Promise(resolve => {
install.addListener(new ExtensionInstallListener(resolve));
});

Просмотреть файл

@ -124,8 +124,8 @@ addonsManager:
source: >
The source that originally triggered the add-on installation, one of "about:addons",
"about:debugging", "about:preferences", "amo", "app:profile", "disco", "distribution",
"extension", "enterprise-policy", "file-url", "gmp-plugin", "internal", "plugin",
"rtamo", "sync", "system-addon", "temporary-addon", "unknown".
"extension", "enterprise-policy", "file-url", "geckoview-app", "gmp-plugin",
"internal", "plugin", "rtamo", "sync", "system-addon", "temporary-addon", "unknown".
method: >
The method used by the source to install the add-on (included when the source can use more than one,
e.g. install events with source "about:addons" may have "install-from-file" or "url" as method),