Note: There are a few cases of duplicates in user autocompletion which are being worked on.

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

VERIFIED FIXED in seamonkey2.9

Status

SeaMonkey
MailNews: Message Display
--
enhancement
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: InvisibleSmiley, Assigned: InvisibleSmiley)

Tracking

Trunk
seamonkey2.9

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 582604 [details] [diff] [review]
patch [Checkin: comment 3]

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)
(Assignee)

Comment 1

6 years ago
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 2

6 years ago
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+
(Assignee)

Comment 3

6 years ago
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]
(Assignee)

Updated

6 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 6 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.