diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js index 758348797afc..47b8debb9f84 100644 --- a/browser/base/content/browser-places.js +++ b/browser/base/content/browser-places.js @@ -1359,7 +1359,7 @@ var BookmarkingUI = { PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .asyncExecuteLegacyQueries([query], 1, options, { handleResult: function (aResultSet) { - let onItemClick = function (aEvent) { + let onItemCommand = function (aEvent) { let item = aEvent.target; openUILink(item.getAttribute("targetURI"), aEvent); CustomizableUI.hidePanelForNode(item); @@ -1379,7 +1379,7 @@ var BookmarkingUI = { item.setAttribute("targetURI", uri); item.setAttribute("class", "menuitem-iconic menuitem-with-favicon bookmark-item " + extraCSSClass); - item.addEventListener("click", onItemClick); + item.addEventListener("command", onItemCommand); if (icon) { let iconURL = "moz-anno:favicon:" + icon; item.setAttribute("image", iconURL); diff --git a/browser/components/customizableui/CustomizableWidgets.jsm b/browser/components/customizableui/CustomizableWidgets.jsm index bd94f025a84e..0019d529664a 100644 --- a/browser/components/customizableui/CustomizableWidgets.jsm +++ b/browser/components/customizableui/CustomizableWidgets.jsm @@ -203,7 +203,7 @@ const CustomizableWidgets = [ PlacesUtils.history.QueryInterface(Ci.nsPIPlacesDatabase) .asyncExecuteLegacyQueries([query], 1, options, { handleResult: function (aResultSet) { - let onItemClick = function (aEvent) { + let onItemCommand = function (aEvent) { let item = aEvent.target; win.openUILink(item.getAttribute("targetURI"), aEvent); CustomizableUI.hidePanelForNode(item); @@ -219,7 +219,7 @@ const CustomizableWidgets = [ item.setAttribute("label", title || uri); item.setAttribute("targetURI", uri); item.setAttribute("class", "subviewbutton"); - item.addEventListener("click", onItemClick); + item.addEventListener("command", onItemCommand); if (icon) { let iconURL = "moz-anno:favicon:" + icon; item.setAttribute("image", iconURL);