Follow up to Issue #1578 - Preprocess the popup binding

This commit is contained in:
Matt A. Tobin 2020-06-09 10:42:36 -04:00 • committed by Roy Tam
commit 7359f90456
2 changed files with 10 additions and 3 deletions

View file

@ -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"/>