summaryrefslogtreecommitdiff
path: root/toolkit/content/widgets
diff options
context:
space:
mode:
authorLootyhoof <lootyhoofer@gmail.com>2020-06-06 00:37:29 +0100
committerLootyhoof <lootyhoofer@gmail.com>2020-06-09 13:41:53 +0100
commitd18faf81938c947f1d02feab2c394b8135f88d8f (patch)
tree17ad9c1ecb14acd726cb8404c3a82e2781e27253 /toolkit/content/widgets
parentfdb918dea124a6efaf0c86f6d5c2ab1b83013e40 (diff)
downloaduxp-d18faf81938c947f1d02feab2c394b8135f88d8f.tar.gz
Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK
Diffstat (limited to 'toolkit/content/widgets')
-rw-r--r--toolkit/content/widgets/popup.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/toolkit/content/widgets/popup.xml b/toolkit/content/widgets/popup.xml
index bb1a5eeee8..43c529780f 100644
--- a/toolkit/content/widgets/popup.xml
+++ b/toolkit/content/widgets/popup.xml
@@ -25,8 +25,14 @@
</getter>
</property>
- <property name="state" readonly="true"
- onget="return this.popupBoxObject.popupState"/>
+ <property name="state" readonly="true">
+ <getter><![CDATA[
+ if (this.hasAttribute('_moz-nativemenupopupstate'))
+ return this.getAttribute('_moz-nativemenupopupstate');
+ else
+ return this.popupBoxObject.popupState;
+ ]]></getter>
+ </property>
<property name="triggerNode" readonly="true"
onget="return this.popupBoxObject.triggerNode"/>