mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 966956 - don't call Australis' maybeAutoHidePanel from buttons themselves, r=Unfocused
This commit is contained in:
parent
1e667fdaf9
commit
a3bf892ffd
@ -1141,8 +1141,6 @@ let CustomizableUIInternal = {
|
||||
LOG("handleWidgetCommand");
|
||||
|
||||
if (aWidget.type == "button") {
|
||||
this.maybeAutoHidePanel(aEvent);
|
||||
|
||||
if (aWidget.onCommand) {
|
||||
try {
|
||||
aWidget.onCommand.call(null, aEvent);
|
||||
@ -1164,10 +1162,6 @@ let CustomizableUIInternal = {
|
||||
|
||||
handleWidgetClick: function(aWidget, aNode, aEvent) {
|
||||
LOG("handleWidgetClick");
|
||||
if (aWidget.type == "button") {
|
||||
this.maybeAutoHidePanel(aEvent);
|
||||
}
|
||||
|
||||
if (aWidget.onClick) {
|
||||
try {
|
||||
aWidget.onClick.call(null, aEvent);
|
||||
@ -1324,7 +1318,7 @@ let CustomizableUIInternal = {
|
||||
let target = aEvent.originalTarget;
|
||||
let closemenu = "auto";
|
||||
let widgetType = "button";
|
||||
while (target.localName != "panel") {
|
||||
while (target.parentNode && target.localName != "panel") {
|
||||
closemenu = target.getAttribute("closemenu");
|
||||
widgetType = target.getAttribute("widget-type");
|
||||
if (closemenu == "none" || closemenu == "single" ||
|
||||
|
Loading…
Reference in New Issue
Block a user