mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
The widget will hide the XUL panel when clicking to the outside of panel automatically. If a user clicks the MenuButton when opening the popup, the popup will hide automatically and mouse click event will be fired on macOS and Linux. (Windows will eat this click event since the consumeoutsideclicks of this panel is false.) As a result of it, the popup menu will be reopened. In order to prevent this, this patch will disable the MenuButton until popup is hidden by using the popuphidden event. This popuphidden event will be fired before the click event of MenuButton, then the click event of MenuButton will be fired after popuphidden immediately. MozReview-Commit-ID: 42xV0aWDmkR