diff --git a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js index 21d85fa004cf..47c2f6d8f72f 100644 --- a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js +++ b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js @@ -439,6 +439,11 @@ PrivateBrowsingService.prototype = { this._unload(); break; case "private-browsing": + // clear all auth tokens + let sdr = Cc["@mozilla.org/security/sdr;1"]. + getService(Ci.nsISecretDecoderRing); + sdr.logoutAndTeardown(); + if (!this._inPrivateBrowsing) { // Clear the error console let consoleService = Cc["@mozilla.org/consoleservice;1"].