Closed Bug 711779 Opened 13 years ago Closed 13 years ago

Add Bookmark This Link to feeds' Website header link context menu

Categories

(SeaMonkey :: MailNews: Message Display, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
seamonkey2.9

People

(Reporter: InvisibleSmiley, Assigned: InvisibleSmiley)

Details

Attachments

(1 file)

If you view a feed item in MailNews which contains a Website (Content-Base) header, you can either click it or context-click it. In the latter case, only Copy Link Location is offered currently.

This bug is about adding Bookmark This Link to the context menu, using the Subject header value as default bookmark title.

Note: If review takes longer, please consider giving f+ and allowing me to land the strings in advance (next Aurora merge is only two days ahead). Also, if SR is needed, please request it since I'm assuming this is a MOA case.

BTW: See bug 224433 comment 11 regarding the general context menu item's label.
Attachment #582604 - Flags: review?(mnyromyr)
Comment on attachment 582604 [details] [diff] [review]
patch [Checkin: comment 3]

Review of attachment 582604 [details] [diff] [review]:
-----------------------------------------------------------------

::: suite/mailnews/msgHdrViewOverlay.js
@@ +1707,5 @@
> +
> +    if (currentHeaderData && "content-base" in currentHeaderData)
> +    {
> +      var url = currentHeaderData["content-base"].headerValue;
> +      if (url != websiteAddressNode)

bah, make that websiteAddress (forgot to hg qrefresh before attaching the patch)
Comment on attachment 582604 [details] [diff] [review]
patch [Checkin: comment 3]

Just formal nitpicking, apart from the bug you already noticed.

>+function BookmarkWebsite(websiteAddressNode)

The parameter should be named aWebsiteAddressNode.

>+    var websiteAddress = websiteAddressNode.getAttribute("value");
>+      var url = currentHeaderData["content-base"].headerValue;
>+      var title = currentHeaderData["subject"].headerValue;

Subscope variables should use let.


r/moa=me with that and the bug fixed.
Attachment #582604 - Flags: superreview+
Attachment #582604 - Flags: review?(mnyromyr)
Attachment #582604 - Flags: review+
Comment on attachment 582604 [details] [diff] [review]
patch [Checkin: comment 3]

http://hg.mozilla.org/comm-central/rev/f59488355a18
Attachment #582604 - Attachment description: patch → patch [Checkin: comment 3]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.9
Mozilla/5.0 (X11; Linux x86_64; rv:12.0a1) Gecko/20111223 Firefox/12.0a1 SeaMonkey/2.9a1 ID:20111223003001

The "Website" link which appears in the headers of a feed item now has a "Bookmark This Link" menuitem in addition to "Copy Link Location" which I've always seen there.

Checked in all three of: preview pane, message tab, message window.

=> VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: