bug 882652 fix disabling of socialapi in popups, r=felipe

This commit is contained in:
Shane Caraveo 2013-06-14 14:39:42 -06:00
parent a6d1150061
commit d4f59f93b9

View File

@ -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;