зеркало из https://github.com/mozilla/gecko-dev.git
Bug 332256: Middle clicking items in toolbar chevron overflow menu doesnt close menu, patch by Adam Guthrie <ispiked@gmail.com>, r=annie.sullivan/me
This commit is contained in:
Родитель
73cb633be3
Коммит
5efdc9e80e
|
@ -346,6 +346,13 @@ var BookmarksEventHandler = {
|
|||
node = node.parentNode;
|
||||
}
|
||||
}
|
||||
// The event target we get if someone middle clicks on a bookmark in the
|
||||
// bookmarks toolbar overflow menu is different from if they click on a
|
||||
// bookmark in a folder or in the bookmarks menu; handle this case
|
||||
// separately.
|
||||
var bookmarksBar = document.getElementById("bookmarksBarContent");
|
||||
if (bookmarksBar._chevron.getAttribute("open") == "true")
|
||||
bookmarksBar._chevron.firstChild.hidePopupAndChildPopups();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче