summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/content/events.js b/common/content/events.js
index f962fe81..d3fd363f 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -1482,8 +1482,11 @@ var Events = Module("events", {
isHidden: function isHidden(elem, aggressive) {
for (let e = elem; e instanceof Element; e = e.parentNode) {
if (util.computedStyle(e).visibility !== "visible" ||
- aggressive && e.boxObject && e.boxObject.height === 0)
+ aggressive && !/set$/.test(e.localName)
+ && e.boxObject && e.boxObject.height === 0)
return true;
+ else if (e.namespaceURI == XUL && e.localName === "panel")
+ break;
}
return false;
},