diff options
author | Lootyhoof <lootyhoofer@gmail.com> | 2020-06-06 00:37:29 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-06-13 11:49:36 +0200 |
commit | 6235023c8bff80273981c70a06cb9decb4a4ffa5 (patch) | |
tree | 9673404b3735e8a8b6bd3e890c3d6b5d2d34d76c /toolkit/content/widgets | |
parent | f51beb3fdab3d586af081ac14478ea59e0523af4 (diff) | |
download | UXP-6235023c8bff80273981c70a06cb9decb4a4ffa5.tar UXP-6235023c8bff80273981c70a06cb9decb4a4ffa5.tar.gz UXP-6235023c8bff80273981c70a06cb9decb4a4ffa5.tar.lz UXP-6235023c8bff80273981c70a06cb9decb4a4ffa5.tar.xz UXP-6235023c8bff80273981c70a06cb9decb4a4ffa5.zip |
Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK
Diffstat (limited to 'toolkit/content/widgets')
-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 bb1a5eeee..43c529780 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"/> |