diff --git a/suite/common/bookmarks/bookmarks.js b/suite/common/bookmarks/bookmarks.js index cd7cd78a62d2..32f0b8727eec 100644 --- a/suite/common/bookmarks/bookmarks.js +++ b/suite/common/bookmarks/bookmarks.js @@ -447,8 +447,8 @@ function fillContextMenu(name) dump("Command #" + cmdIndex + ": id='" + cmdResource.Value + "' name='" + cmdName + "'\n\n"); var menuItem = document.createElement("menuitem"); - menuItem.setAttribute("name", cmdName); - menuItem.setAttribute("onclick", "return doContextCmd('" + cmdResource.Value + "');"); + menuItem.setAttribute("value", cmdName); + menuItem.setAttribute("onaction", "return doContextCmd('" + cmdResource.Value + "');"); menuNode.appendChild(menuItem); } diff --git a/xpfe/components/bookmarks/resources/bookmarks.js b/xpfe/components/bookmarks/resources/bookmarks.js index cd7cd78a62d2..32f0b8727eec 100644 --- a/xpfe/components/bookmarks/resources/bookmarks.js +++ b/xpfe/components/bookmarks/resources/bookmarks.js @@ -447,8 +447,8 @@ function fillContextMenu(name) dump("Command #" + cmdIndex + ": id='" + cmdResource.Value + "' name='" + cmdName + "'\n\n"); var menuItem = document.createElement("menuitem"); - menuItem.setAttribute("name", cmdName); - menuItem.setAttribute("onclick", "return doContextCmd('" + cmdResource.Value + "');"); + menuItem.setAttribute("value", cmdName); + menuItem.setAttribute("onaction", "return doContextCmd('" + cmdResource.Value + "');"); menuNode.appendChild(menuItem); }