From f54fae03dddad60b8fe7ebaf2df38e30076bc89e Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Wed, 23 May 2001 04:54:22 +0000 Subject: [PATCH] Clean up after my fix for 35835, back out earlier Copy Link Location code. --- .../bookmarks/resources/bookmarksOverlay.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/xpfe/components/bookmarks/resources/bookmarksOverlay.js b/xpfe/components/bookmarks/resources/bookmarksOverlay.js index 554087be7876..fe1268cbbfdd 100644 --- a/xpfe/components/bookmarks/resources/bookmarksOverlay.js +++ b/xpfe/components/bookmarks/resources/bookmarksOverlay.js @@ -207,7 +207,7 @@ BookmarksUIElement.prototype = { "newfolder"]; break; case "http://home.netscape.com/NC-rdf#Bookmark": - commands = ["open", "find", "separator", "bm_cut", "bm_copylink", + commands = ["open", "find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "rename", "separator", "bm_fileBookmark", "separator", "newfolder", "separator", "properties"]; @@ -223,7 +223,7 @@ BookmarksUIElement.prototype = { "bm_fileBookmark", "separator", "separator", "properties"]; break; case "http://home.netscape.com/NC-rdf#IEFavorite": - commands = ["open", "find", "separator", "bm_copylink", "bm_copy"]; + commands = ["open", "find", "separator", "bm_copy"]; break; case "http://home.netscape.com/NC-rdf#FileSystemObject": commands = ["open", "find", "separator", "bm_copy"]; @@ -313,9 +313,6 @@ BookmarksUIElement.prototype = { case "bm_copy": this.copySelection(selection); break; - case "bm_copylink": - this.copyLinkLocation (selectedItem); - break; case "bm_paste": this.paste(selection); break; @@ -434,18 +431,6 @@ BookmarksUIElement.prototype = { clipboard.setData(xferable, null, kClipboardIID.kGlobalClipboard); }, - copyLinkLocation: function (aBookmarkItem) - { - var url = LITERAL(this.db, aBookmarkItem, NC_NS + "URL"); - - // Get the clipboard helper - var contractid = "@mozilla.org/widget/clipboardhelper;1"; - var iid = Components.interfaces.nsIClipboardHelper; - var clipboard = Components.classes[contractid].getService(iid); - - clipboard.copyString(url); - }, - paste: function (aSelection) { const kXferableContractID = "@mozilla.org/widget/transferable;1";