Bug 1169129 - reset media.{0}.trial-create on GMP install. r=spohl

This commit is contained in:
Chris Pearce 2015-06-05 21:55:52 +12:00
parent 3786dd969e
commit 17c239a954
2 changed files with 5 additions and 0 deletions

View File

@ -890,6 +890,10 @@ GMPDownloader.prototype = {
// if you need to set other prefs etc. do it before this.
GMPPrefs.set(GMPPrefs.KEY_PLUGIN_VERSION, gmpAddon.version,
gmpAddon.id);
// Reset the trial create pref, so that Gecko knows to do a test
// run before reporting that the GMP works to content.
GMPPrefs.reset(GMPPrefs.KEY_PLUGIN_TRIAL_CREATE, gmpAddon.version,
gmpAddon.id);
this._deferred.resolve(extractedPaths);
}, err => {
this._deferred.reject(err);

View File

@ -77,6 +77,7 @@ this.GMPPrefs = {
KEY_PLUGIN_VERSION: "media.{0}.version",
KEY_PLUGIN_AUTOUPDATE: "media.{0}.autoupdate",
KEY_PLUGIN_FORCEVISIBLE: "media.{0}.forcevisible",
KEY_PLUGIN_TRIAL_CREATE: "media.{0}.trial-create",
KEY_URL: "media.gmp-manager.url",
KEY_URL_OVERRIDE: "media.gmp-manager.url.override",
KEY_CERT_CHECKATTRS: "media.gmp-manager.cert.checkAttributes",