Bug 688745 - Add 'Open in Browser' to context menu for Opening a Website from RSS. r=IanN moa=Mnyromyr
authorEdmund Wong <ewong@pw-wspx.org>
Mon, 23 Jan 2012 12:19:05 +0800
changeset 9252 230f526f4fca93f622cf855b816156afbeb3718b
parent 9251 edae64607f3dd136074ee41badc46fca1c6269de
child 9253 916cf00f9afa55573be784c77351d84bd52e17a0
push id7082
push userewong@pw-wspx.org
push dateMon, 23 Jan 2012 04:20:35 +0000
treeherdercomm-central@230f526f4fca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN
bugs688745
Bug 688745 - Add 'Open in Browser' to context menu for Opening a Website from RSS. r=IanN moa=Mnyromyr
suite/locales/en-US/chrome/mailnews/msgHdrViewPopup.dtd
suite/mailnews/msgHdrViewOverlay.xul
--- a/suite/locales/en-US/chrome/mailnews/msgHdrViewPopup.dtd
+++ b/suite/locales/en-US/chrome/mailnews/msgHdrViewPopup.dtd
@@ -39,18 +39,20 @@
 <!ENTITY AddToAddressBook.label            "Add To Address Book…">
 <!ENTITY AddToAddressBook.accesskey        "B">
 <!ENTITY SendMailTo.label                  "Compose Mail To…">
 <!ENTITY SendMailTo.accesskey              "s">
 <!ENTITY CopyEmailAddress.label            "Copy Email Address">
 <!ENTITY CopyEmailAddress.accesskey        "C">
 <!ENTITY CreateFilterFrom.label            "Create Filter From…">
 <!ENTITY CreateFilterFrom.accesskey        "F">
+<!ENTITY openInBrowser.label               "Open in Browser">
+<!ENTITY openInBrowser.accesskey           "O">
+<!ENTITY bookmarkLinkCmd.label             "Bookmark This Link…">
+<!ENTITY bookmarkLinkCmd.accesskey         "B">
 <!ENTITY copyLinkCmd.label                 "Copy Link Location">
 <!ENTITY copyLinkCmd.accesskey             "C">
-<!ENTITY bookmarkLinkCmd.label             "Bookmark This Link…">
-<!ENTITY bookmarkLinkCmd.accesskey         "B">
 <!ENTITY CopyMessageId.label               "Copy Message-ID">
 <!ENTITY CopyMessageId.accesskey           "C">
 <!ENTITY OpenMessageForMsgId.label         "Open Message For ID">
 <!ENTITY OpenMessageForMsgId.accesskey     "O">
 <!ENTITY OpenBrowserWithMsgId.label        "Open Browser With Message-ID">
 <!ENTITY OpenBrowserWithMsgId.accesskey    "B">
--- a/suite/mailnews/msgHdrViewOverlay.xul
+++ b/suite/mailnews/msgHdrViewOverlay.xul
@@ -128,18 +128,25 @@
     accesskey="&saveAllAttachmentsCmd.accesskey;" oncommand="HandleMultipleAttachments('saveAttachment', currentAttachments);"/>
   <menuitem id="file-detachAllAttachments" label="&detachAllAttachmentsCmd.label;" 
     accesskey="&detachAllAttachmentsCmd.accesskey;" oncommand="HandleMultipleAttachments('detachAttachment', currentAttachments);" />
   <menuitem id="file-deleteAllAttachments" label="&deleteAllAttachmentsCmd.label;" 
     accesskey="&deleteAllAttachmentsCmd.accesskey;" oncommand="HandleMultipleAttachments('deleteAttachment', currentAttachments);" />
 </menupopup>
 
 <menupopup id="copyUrlPopup">
-  <menuitem label="&copyLinkCmd.label;" accesskey="&copyLinkCmd.accesskey;" oncommand="CopyWebsiteAddress(document.popupNode);"/>
-  <menuitem label="&bookmarkLinkCmd.label;" accesskey="&bookmarkLinkCmd.accesskey;" oncommand="BookmarkWebsite(document.popupNode);"/>
+  <menuitem label="&openInBrowser.label;"
+            accesskey="&openInBrowser.accesskey;"
+            oncommand="openAsExternal(document.popupNode.getAttribute('value'));"/>
+  <menuitem label="&bookmarkLinkCmd.label;"
+            accesskey="&bookmarkLinkCmd.accesskey;"
+            oncommand="BookmarkWebsite(document.popupNode);"/>
+  <menuitem label="&copyLinkCmd.label;"
+            accesskey="&copyLinkCmd.accesskey;"
+            oncommand="CopyWebsiteAddress(document.popupNode);"/>
 </menupopup>
 
 <hbox id="msgHeaderView" keywordrelated="true" originalclass="none" persist="state">
 
 <grid id="collapsedHeaderView" class="header-part1" keywordrelated="true" originalclass="header-part1" flex="1" collapsed="true">
   <rows>
     <row flex="1"/>
   </rows>