diff options
Diffstat (limited to 'toolkit/content/widgets/popup.xml')
-rw-r--r-- | toolkit/content/widgets/popup.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/toolkit/content/widgets/popup.xml b/toolkit/content/widgets/popup.xml index bb1a5eeee..c8a395c40 100644 --- a/toolkit/content/widgets/popup.xml +++ b/toolkit/content/widgets/popup.xml @@ -25,8 +25,21 @@ </getter> </property> +#ifdef MOZ_WIDGET_GTK + <property name="state" readonly="true"> + <getter> + <![CDATA[ + if (this.hasAttribute('_moz-nativemenupopupstate')) + return this.getAttribute('_moz-nativemenupopupstate'); + else + return this.popupBoxObject.popupState; + ]]> + </getter> + </property> +#else <property name="state" readonly="true" onget="return this.popupBoxObject.popupState"/> +#endif <property name="triggerNode" readonly="true" onget="return this.popupBoxObject.triggerNode"/> |