Bug 1594929 - Remove invalidateCertificate from FxAccountsKeys.jsm. r=rfkelly

Differential Revision: https://phabricator.services.mozilla.com/D52623

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Hammond 2019-11-12 04:05:28 +00:00
parent ef186338d1
commit e57be9d2f3
2 changed files with 1 additions and 9 deletions

View File

@ -264,14 +264,6 @@ class FxAccountsKeys {
);
}
/**
* Invalidate the FxA certificate, so that it will be refreshed from the server
* the next time it is needed.
*/
invalidateCertificate() {
return this._fxia.invalidateCertificate();
}
/**
* Derive the WebExtensions Sync Storage Key given the byte string kB.
*

View File

@ -421,7 +421,7 @@ this.BrowserIDManager.prototype = {
this._log.warn(
"Token server returned 401, refreshing certificate and retrying token fetch"
);
await fxa.keys.invalidateCertificate();
await fxa._internal.invalidateCertificate();
keys = await fxa.keys.getKeys();
token = await getToken(keys);
}