diff --git a/mozilla/browser/components/bookmarks/content/bookmarks.js b/mozilla/browser/components/bookmarks/content/bookmarks.js index 3d958b567f6..e743c8a090b 100644 --- a/mozilla/browser/components/bookmarks/content/bookmarks.js +++ b/mozilla/browser/components/bookmarks/content/bookmarks.js @@ -190,6 +190,11 @@ var BookmarksCommand = { // selection. createContextMenu: function (aEvent, aSelection, aDS) { + if (aSelection == undefined) { + aEvent.preventDefault(); + return; + } + var popup = aEvent.target; // clear out the old context menu contents (if any) while (popup.hasChildNodes())