diff --git a/browser/base/content/browser-social.js b/browser/base/content/browser-social.js index 14022cff1518..7ca68e7de8eb 100644 --- a/browser/base/content/browser-social.js +++ b/browser/base/content/browser-social.js @@ -324,7 +324,10 @@ SocialUI = { get _chromeless() { // Is this a popup window that doesn't want chrome shown? let docElem = document.documentElement; - let chromeless = docElem.getAttribute("chromehidden").indexOf("extrachrome") >= 0; + // extrachrome is not restored during session restore, so we need + // to check for the toolbar as well. + let chromeless = docElem.getAttribute("chromehidden").contains("extrachrome") || + docElem.getAttribute('chromehidden').contains("toolbar"); // This property is "fixed" for a window, so avoid doing the check above // multiple times... delete this._chromeless;