mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 882652 fix disabling of socialapi in popups, r=felipe
This commit is contained in:
parent
a6d1150061
commit
d4f59f93b9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user