diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-06-09 10:42:36 -0400 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-06-13 11:49:53 +0200 |
commit | 7f238b1cf9775b43b119eb9a5e2ea0fe79fa5add (patch) | |
tree | 929b97c32b8274e2bb89ebe54e30b6ff4e20809d /toolkit/content | |
parent | 6235023c8bff80273981c70a06cb9decb4a4ffa5 (diff) | |
download | UXP-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')
-rw-r--r-- | toolkit/content/jar.mn | 2 | ||||
-rw-r--r-- | toolkit/content/widgets/popup.xml | 11 |
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"/> |