From 422292336c5e806e3e90d657fce29a17d8f71ff5 Mon Sep 17 00:00:00 2001 From: "bbaetz%cs.mcgill.ca" Date: Sat, 12 May 2001 17:52:35 +0000 Subject: [PATCH] Bug 32359 - fix context menu for mailtos patch by gerv, r=bz,dr sr=alecf --- .../content/contentAreaContextOverlay.xul | 12 +++++ .../resources/content/nsContextMenu.js | 44 ++++++++++++++++--- .../locale/en-US/contentAreaCommands.dtd | 2 + 3 files changed, 52 insertions(+), 6 deletions(-) diff --git a/xpfe/communicator/resources/content/contentAreaContextOverlay.xul b/xpfe/communicator/resources/content/contentAreaContextOverlay.xul index 43d61ba670be..293c78dfe120 100644 --- a/xpfe/communicator/resources/content/contentAreaContextOverlay.xul +++ b/xpfe/communicator/resources/content/contentAreaContextOverlay.xul @@ -47,13 +47,16 @@ + 7 ) { // 7 == length of "mailto:" + addresses = url.substring( 7, qmark ); + } else { + addresses = url.substr( 7 ); + } + + var clipboard = this.getService( "@mozilla.org/widget/clipboardhelper;1", + Components.interfaces.nsIClipboardHelper ); + clipboard.copyString(addresses); + }, // Open Metadata window for node showMetadata : function () { window.openDialog( "chrome://navigator/content/metadata.xul", diff --git a/xpfe/communicator/resources/locale/en-US/contentAreaCommands.dtd b/xpfe/communicator/resources/locale/en-US/contentAreaCommands.dtd index 77d7090bc262..ea8b33b87f79 100644 --- a/xpfe/communicator/resources/locale/en-US/contentAreaCommands.dtd +++ b/xpfe/communicator/resources/locale/en-US/contentAreaCommands.dtd @@ -52,6 +52,8 @@ + +