mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +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.
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user