mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1087110
- Don't update experiments manifests if no experiment is running. r=gfritzsche
This commit is contained in:
parent
90be53c400
commit
2504927a19
@ -419,6 +419,14 @@ Experiments.Experiments = function (policy=new Experiments.Policy()) {
|
||||
Experiments.Experiments.prototype = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsITimerCallback, Ci.nsIObserver]),
|
||||
|
||||
/**
|
||||
* `true` if the experiments manager is currently setup (has been fully initialized
|
||||
* and not uninitialized yet).
|
||||
*/
|
||||
get isReady() {
|
||||
return !this._shutdown;
|
||||
},
|
||||
|
||||
init: function () {
|
||||
this._shutdown = false;
|
||||
configureLogging();
|
||||
|
@ -56,7 +56,10 @@ ExperimentsService.prototype = {
|
||||
if (OS.Constants.Path.profileDir === undefined) {
|
||||
throw Error("Update timer fired before profile was initialized?");
|
||||
}
|
||||
Experiments.instance().updateManifest();
|
||||
let instance = Experiments.instance();
|
||||
if (instance.isReady) {
|
||||
instance.updateManifest();
|
||||
}
|
||||
},
|
||||
|
||||
_delayedInit: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user