Bug 1769091 - Add some more prefs/telemetry around GMP installation. r=chutten
We have a number of users that check for updates but don't seem to actually update. This should help narrow down what's going wrong. Differential Revision: https://phabricator.services.mozilla.com/D146216
This commit is contained in:
@@ -324,6 +324,8 @@ const DEFAULT_ENVIRONMENT_PREFS = new Map([
|
||||
["layers.prefer-opengl", { what: RECORD_PREF_VALUE }],
|
||||
["layout.css.devPixelsPerPx", { what: RECORD_PREF_VALUE }],
|
||||
["media.gmp-gmpopenh264.enabled", { what: RECORD_PREF_VALUE }],
|
||||
["media.gmp-gmpopenh264.lastInstallStart", { what: RECORD_PREF_VALUE }],
|
||||
["media.gmp-gmpopenh264.lastDownload", { what: RECORD_PREF_VALUE }],
|
||||
["media.gmp-gmpopenh264.lastUpdate", { what: RECORD_PREF_VALUE }],
|
||||
["media.gmp-gmpopenh264.visible", { what: RECORD_PREF_VALUE }],
|
||||
["media.gmp-manager.lastCheck", { what: RECORD_PREF_VALUE }],
|
||||
|
||||
@@ -423,6 +423,10 @@ The following is a partial list of `collected preferences <https://searchfox.org
|
||||
|
||||
- ``media.gmp-gmpopenh264.enabled``: Whether OpenH264 is enabled.
|
||||
|
||||
- ``media.gmp-gmpopenh264.lastDownload``: When OpenH264 was last download.
|
||||
|
||||
- ``media.gmp-gmpopenh264.lastInstallStart``: When OpenH264 installation was last started.
|
||||
|
||||
- ``media.gmp-gmpopenh264.lastUpdate``: When OpenH264 was last updated.
|
||||
|
||||
- ``media.gmp-gmpopenh264.visible``: Whether OpenH264 is visible.
|
||||
|
||||
@@ -726,6 +726,8 @@ GMPDownloader.prototype = {
|
||||
*/
|
||||
start() {
|
||||
let log = getScopedLogger("GMPDownloader");
|
||||
let now = Math.round(Date.now() / 1000);
|
||||
GMPPrefs.setInt(GMPPrefs.KEY_PLUGIN_LAST_INSTALL_START, now, gmpAddon.id);
|
||||
let gmpAddon = this._gmpAddon;
|
||||
|
||||
if (!gmpAddon.isValid) {
|
||||
@@ -743,6 +745,8 @@ GMPDownloader.prototype = {
|
||||
};
|
||||
return ProductAddonChecker.downloadAddon(gmpAddon, downloadOptions).then(
|
||||
zipPath => {
|
||||
let now = Math.round(Date.now() / 1000);
|
||||
GMPPrefs.setInt(GMPPrefs.KEY_PLUGIN_LAST_DOWNLOAD, now, gmpAddon.id);
|
||||
log.info(
|
||||
`install to directory path: ${gmpAddon.id}/${gmpAddon.version}`
|
||||
);
|
||||
|
||||
@@ -125,6 +125,8 @@ var GMPUtils = {
|
||||
var GMPPrefs = {
|
||||
KEY_EME_ENABLED: "media.eme.enabled",
|
||||
KEY_PLUGIN_ENABLED: "media.{0}.enabled",
|
||||
KEY_PLUGIN_LAST_DOWNLOAD: "media.{0}.lastDownload",
|
||||
KEY_PLUGIN_LAST_INSTALL_START: "media.{0}.lastInstallStart",
|
||||
KEY_PLUGIN_LAST_UPDATE: "media.{0}.lastUpdate",
|
||||
KEY_PLUGIN_VERSION: "media.{0}.version",
|
||||
KEY_PLUGIN_AUTOUPDATE: "media.{0}.autoupdate",
|
||||
|
||||
Reference in New Issue
Block a user