summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-06-09 10:42:36 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-06-09 10:42:36 -0400
commit47db6b4b5e8ca41c93964e964238fe85bdd7e23b (patch)
tree171fe3a3852abe97b53b636b85565ab73ceedc9a
parent907530e8669d40c1ff59c2855afcf669fe724263 (diff)
downloadUXP-47db6b4b5e8ca41c93964e964238fe85bdd7e23b.tar
UXP-47db6b4b5e8ca41c93964e964238fe85bdd7e23b.tar.gz
UXP-47db6b4b5e8ca41c93964e964238fe85bdd7e23b.tar.lz
UXP-47db6b4b5e8ca41c93964e964238fe85bdd7e23b.tar.xz
UXP-47db6b4b5e8ca41c93964e964238fe85bdd7e23b.zip
Follow up to Issue #1578 - Preprocess the popup binding
-rw-r--r--toolkit/content/jar.mn2
-rw-r--r--toolkit/content/widgets/popup.xml11
2 files changed, 10 insertions, 3 deletions
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
index 8b7b35b61..d79403605 100644
--- a/toolkit/content/jar.mn
+++ b/toolkit/content/jar.mn
@@ -96,7 +96,7 @@ toolkit.jar:
content/global/bindings/menulist.xml (widgets/menulist.xml)
content/global/bindings/notification.xml (widgets/notification.xml)
content/global/bindings/numberbox.xml (widgets/numberbox.xml)
- content/global/bindings/popup.xml (widgets/popup.xml)
+* content/global/bindings/popup.xml (widgets/popup.xml)
* content/global/bindings/preferences.xml (widgets/preferences.xml)
content/global/bindings/progressmeter.xml (widgets/progressmeter.xml)
content/global/bindings/radio.xml (widgets/radio.xml)
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"/>