Bug 1001182 - FxAccountsManager.jsm correctly handles {refreshAuthentication:0} r=jedp

This commit is contained in:
Sam Penrose 2014-04-28 09:44:36 -07:00
parent 85bce8c2c2
commit 17ef90f9f4

View File

@ -378,7 +378,7 @@ this.FxAccountsManager = {
// RPs might require an authentication refresh.
if (aOptions &&
aOptions.refreshAuthentication) {
(typeof(aOptions.refreshAuthentication) != "undefined")) {
let gracePeriod = aOptions.refreshAuthentication;
if (typeof gracePeriod != 'number' || isNaN(gracePeriod)) {
return this._error(ERROR_INVALID_REFRESH_AUTH_VALUE);