summaryrefslogtreecommitdiffstats
path: root/toolkit/content/widgets/popup.xml
diff options
context:
space:
mode:
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"/>