mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1218746 - Invalid ClientID Fix in ClientID.jsm. r=gfritzsche
This commit is contained in:
parent
a45cc8a956
commit
1ed7763259
@ -174,6 +174,9 @@ var ClientIDImpl = {
|
|||||||
|
|
||||||
// Not yet loaded, return the cached client id if we have one.
|
// Not yet loaded, return the cached client id if we have one.
|
||||||
let id = Preferences.get(PREF_CACHED_CLIENTID, null);
|
let id = Preferences.get(PREF_CACHED_CLIENTID, null);
|
||||||
|
if (id === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (!isValidClientID(id)) {
|
if (!isValidClientID(id)) {
|
||||||
this._log.error("getCachedClientID - invalid client id in preferences, resetting", id);
|
this._log.error("getCachedClientID - invalid client id in preferences, resetting", id);
|
||||||
Preferences.reset(PREF_CACHED_CLIENTID);
|
Preferences.reset(PREF_CACHED_CLIENTID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user