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:
gavin%gavinsharp.com 2006-10-10 13:20:26 +00:00
Родитель 73cb633be3
Коммит 5efdc9e80e
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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();
},
/**