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