Closed Bug 277490 Opened 20 years ago Closed 20 years ago

Retrieve site description from meta tag when adding bookmark

Categories

(Firefox :: Bookmarks & History, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox1.5

People

(Reporter: Gavin, Assigned: Gavin)

References

Details

Attachments

(2 files, 3 obsolete files)

When adding a bookmark, we should see if the site has <meta name="description">
headers and retrieve the data from it to put into the bookmark.

Patch coming up.
Attached patch Patch v1 (obsolete) — Splinter Review
I'll wait for more testing/verification before asking for review. This also
changes the addBookmark2 interface to take an object instead of a list of
arguments, to avoid having to remember the order etc, as mentioned at:

http://lxr.mozilla.org/mozilla/source/browser/components/bookmarks/content/addBookmark2.js#56
Attached patch Patch v2 (obsolete) — Splinter Review
Missed a few things in the initial patch.
Attachment #170640 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attached patch Patch v3 (obsolete) — Splinter Review
More changes. These are things that I should be testing *before* posting
patches.
Attachment #170710 - Attachment is obsolete: true
Add in a check for the http-equiv="description" tag.
Attachment #170716 - Attachment is obsolete: true
Attachment #170777 - Flags: review?(mconnor)
Comment on attachment 170777 [details] [diff] [review]
Patch v4 (Checked in)

I honestly won't have time to do this for a while, vlad would be a better
reviewer for bookmarks code anyway.
Attachment #170777 - Flags: review?(mconnor) → review?(vladimir)
Comment on attachment 170777 [details] [diff] [review]
Patch v4 (Checked in)

r=vladimir@pobox.com, looks good, thanks for doing the change to the add
bookmark window arguments as well.
Attachment #170777 - Flags: review?(vladimir) → review+
Whiteboard: [patch-r+] [checkin needed]
Target Milestone: --- → Firefox1.1
Comment on attachment 170777 [details] [diff] [review]
Patch v4 (Checked in)

Checking in base/content/browser.js;
/cvsroot/mozilla/browser/base/content/browser.js,v  <--  browser.js
new revision: 1.381; previous revision: 1.380
done
Checking in components/bookmarks/content/addBookmark2.js;
/cvsroot/mozilla/browser/components/bookmarks/content/addBookmark2.js,v  <-- 
addBookmark2.js
new revision: 1.33; previous revision: 1.32
done
Checking in components/bookmarks/content/addBookmark2.xul;
/cvsroot/mozilla/browser/components/bookmarks/content/addBookmark2.xul,v  <-- 
addBookmark2.xul
new revision: 1.18; previous revision: 1.17
done
Checking in components/bookmarks/content/bookmarks.js;
/cvsroot/mozilla/browser/components/bookmarks/content/bookmarks.js,v  <-- 
bookmarks.js
new revision: 1.92; previous revision: 1.91
done
Attachment #170777 - Attachment description: Patch v4 → Patch v4 (Checked in)
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [patch-r+] [checkin needed]
does it also address live-bookmarks?
(In reply to comment #8)
> does it also address live-bookmarks?

No, but see Bug 256794 for the live bookmark component.
The patch that was checked in does have an effect on livemarks, but it isn't
exactly optimal. The "Name" for new live bookmarks is currently taken from the
page where it is embedded, and this patch extends that to the description as
well. I'm sure there are cases where the page's description and the feed's
description are not related at all.

As mentioned, bug 256794 is about improving that behavior.
Attachment #174738 - Flags: review?(mconnor)
Checking in browser/components/sidebar/src/nsSidebar.js;
/cvsroot/mozilla/browser/components/sidebar/src/nsSidebar.js,v  <--  nsSidebar.js
new revision: 1.9; previous revision: 1.8
done
Status: RESOLVED → VERIFIED
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs, filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: