Bug 1218746 - Invalid ClientID Fix in ClientID.jsm. r=gfritzsche

This commit is contained in:
Eduard Hanu 2015-11-09 16:20:00 +01:00
parent eb3643516f
commit e7668eb67c

View File

@ -174,6 +174,9 @@ var ClientIDImpl = {
// Not yet loaded, return the cached client id if we have one.
let id = Preferences.get(PREF_CACHED_CLIENTID, null);
if (id === null) {
return null;
}
if (!isValidClientID(id)) {
this._log.error("getCachedClientID - invalid client id in preferences, resetting", id);
Preferences.reset(PREF_CACHED_CLIENTID);