mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1232799 - Remove KEY_PLUGIN_TRIAL_CREATE pref from GMPProvider and friends. r=spohl
The GMPVideoDecoderTrialCreator was removed from Gecko in bug 1232527, and so we don't need to set/reset this pref in the GMPProvider any more. --HG-- extra : rebase_source : 3bb70b21388cdc8adb1aec25cff837a0348a6e3c
This commit is contained in:
parent
8cdc81c1eb
commit
591eb6df76
@ -187,15 +187,6 @@ GMPInstallManager.prototype = {
|
||||
log.info("A version change occurred. Ignoring " +
|
||||
"media.gmp-manager.lastCheck to check immediately for " +
|
||||
"new or updated GMPs.");
|
||||
// Firefox updated; it could be that the TrialGMPVideoDecoderCreator
|
||||
// had failed but could now succeed, or vice versa. So reset the
|
||||
// prefs so we re-try next time EME is used.
|
||||
GMP_PLUGIN_IDS.concat("gmp-eme-clearkey").forEach(
|
||||
function(id, index, array) {
|
||||
log.info("Version change, resetting " +
|
||||
GMPPrefs.getPrefKey(GMPPrefs.KEY_PLUGIN_TRIAL_CREATE, id));
|
||||
GMPPrefs.reset(GMPPrefs.KEY_PLUGIN_TRIAL_CREATE, id);
|
||||
});
|
||||
} else {
|
||||
let secondsBetweenChecks =
|
||||
GMPPrefs.get(GMPPrefs.KEY_SECONDS_BETWEEN_CHECKS,
|
||||
@ -495,10 +486,6 @@ GMPDownloader.prototype = {
|
||||
// Success, set the prefs
|
||||
let now = Math.round(Date.now() / 1000);
|
||||
GMPPrefs.set(GMPPrefs.KEY_PLUGIN_LAST_UPDATE, now, 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);
|
||||
// Remember our ABI, so that if the profile is migrated to another
|
||||
// platform or from 32 -> 64 bit, we notice and don't try to load the
|
||||
// unexecutable plugin library.
|
||||
|
@ -138,7 +138,6 @@ 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_PLUGIN_ABI: "media.{0}.abi",
|
||||
KEY_URL: "media.gmp-manager.url",
|
||||
KEY_URL_OVERRIDE: "media.gmp-manager.url.override",
|
||||
|
@ -444,7 +444,6 @@ GMPWrapper.prototype = {
|
||||
gmpService.removeAndDeletePluginDirectory(this.gmpPath);
|
||||
}
|
||||
GMPPrefs.reset(GMPPrefs.KEY_PLUGIN_VERSION, this.id);
|
||||
GMPPrefs.reset(GMPPrefs.KEY_PLUGIN_TRIAL_CREATE, this.id);
|
||||
GMPPrefs.reset(GMPPrefs.KEY_PLUGIN_ABI, this.id);
|
||||
GMPPrefs.reset(GMPPrefs.KEY_PLUGIN_LAST_UPDATE, this.id);
|
||||
AddonManagerPrivate.callAddonListeners("onUninstalled", this);
|
||||
|
Loading…
Reference in New Issue
Block a user