зеркало из https://github.com/mozilla/gecko-dev.git
bug 882652 fix disabling of socialapi in popups, r=felipe
This commit is contained in:
Родитель
8c309fb1dc
Коммит
63b1136f33
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче