summaryrefslogtreecommitdiffstats
path: root/toolkit/content/widgets/popup.xml
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-06-09 10:42:36 -0400
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-06-13 11:49:53 +0200
commit7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add (patch)
tree929b97c32b8274e2bb89ebe54e30b6ff4e20809d /toolkit/content/widgets/popup.xml
parent6235023c8bff80273981c70a06cb9decb4a4ffa5 (diff)
downloadUXP-7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add.tar
UXP-7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add.tar.gz
UXP-7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add.tar.lz
UXP-7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add.tar.xz
UXP-7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add.zip
Follow up to Issue #1578 - Preprocess the popup binding
Diffstat (limited to 'toolkit/content/widgets/popup.xml')
-rw-r--r--toolkit/content/widgets/popup.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/toolkit/content/widgets/popup.xml b/toolkit/content/widgets/popup.xml
index 43c529780..c8a395c40 100644
--- a/toolkit/content/widgets/popup.xml
+++ b/toolkit/content/widgets/popup.xml
@@ -25,14 +25,21 @@
</getter>
</property>
+#ifdef MOZ_WIDGET_GTK
<property name="state" readonly="true">
- <getter><![CDATA[
+ <getter>
+ <![CDATA[
if (this.hasAttribute('_moz-nativemenupopupstate'))
return this.getAttribute('_moz-nativemenupopupstate');
else
return this.popupBoxObject.popupState;
- ]]></getter>
+ ]]>
+ </getter>
</property>
+#else
+ <property name="state" readonly="true"
+ onget="return this.popupBoxObject.popupState"/>
+#endif
<property name="triggerNode" readonly="true"
onget="return this.popupBoxObject.triggerNode"/>