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
Родитель 8c309fb1dc
Коммит 63b1136f33
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -324,7 +324,10 @@ SocialUI = {
get _chromeless() { get _chromeless() {
// Is this a popup window that doesn't want chrome shown? // Is this a popup window that doesn't want chrome shown?
let docElem = document.documentElement; 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 // This property is "fixed" for a window, so avoid doing the check above
// multiple times... // multiple times...
delete this._chromeless; delete this._chromeless;