зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5d808a15d9
Коммит
fe6beee13d
|
@ -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),
|
||||
|
|
Загрузка…
Ссылка в новой задаче