Bug 381434 - "Open "livemark name" ignores middle click" (intercept middle-click with onclick) [p=mak77@supereva.it (Marco Bonardo [MaK77]) r=Mano a=blocking-firefox3+]

This commit is contained in:
reed@reedloden.com 2007-12-16 13:53:40 -08:00
parent 0ac225c527
commit 2fcac62efa

View File

@ -487,7 +487,7 @@ var BookmarksEventHandler = {
openHomePage.setAttribute("siteURI", siteURIString); openHomePage.setAttribute("siteURI", siteURIString);
openHomePage.setAttribute("oncommand", openHomePage.setAttribute("oncommand",
"openUILink(this.getAttribute('siteURI'), event);"); "openUILink(this.getAttribute('siteURI'), event);");
// If a user middle-click this item we serve the oncommand event // If a user middle-clicks this item we serve the oncommand event
// We are using checkForMiddleClick because of Bug 246720 // We are using checkForMiddleClick because of Bug 246720
// Note: stopPropagation is needed to avoid serving middle-click // Note: stopPropagation is needed to avoid serving middle-click
// with BT_onClick that would open all items in tabs // with BT_onClick that would open all items in tabs