Disable "draw in titlebar" feature for non-popup windows

This commit is contained in:
YUKI Hiroshi 2014-01-31 22:02:33 +09:00
parent c91ffcac54
commit 081c0dd34b

View File

@ -180,7 +180,12 @@ TreeStyleTabWindow.prototype = {
get isPopupWindow() get isPopupWindow()
{ {
return this.document && this.document.documentElement.getAttribute('chromehidden') != ''; return (
this.document &&
this.document.documentElement.getAttribute('chromehidden') != '' &&
!this.window.gBrowser.treeStyleTab.ownerToolbar.boxObject.width &&
!this.window.gBrowser.treeStyleTab.ownerToolbar.boxObject.height
);
}, },
/* backward compatibility */ /* backward compatibility */