Closed
Bug 348227
Opened 19 years ago
Closed 18 years ago
Live Bookmarks should take metadata from the Feed, not the page
Categories
(Firefox Graveyard :: RSS Discovery and Preview, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 2 beta2
People
(Reporter: sayrer, Assigned: sayrer)
References
Details
(Keywords: fixed1.8.1, Whiteboard: [would take patch])
Attachments
(1 file, 1 obsolete file)
11.82 KB,
patch
|
asaf
:
review+
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
If you click on the link below with prefs set to automatically open live bookmarks, you'll get a live bookmark with the title of this page.
http://www.xml.com/2002/12/18/examples/rss20.xml.txt
We have the feed data around when we add the bookmark, so we should add some optional trailing arguments to addLivemark.
Assignee | ||
Comment 1•19 years ago
|
||
Oh, this is worse than I first thought. I think we should block on this--it's easy to fix though.
Flags: blocking-firefox2?
Comment 2•19 years ago
|
||
Robert, we'll take a fix, but not block the release on this issue.
Flags: blocking-firefox2? → blocking-firefox2-
Whiteboard: [would take patch]
Assignee | ||
Comment 3•18 years ago
|
||
Assignee | ||
Updated•18 years ago
|
Attachment #235449 -
Flags: review? → review?(bugs.mano)
Comment 4•18 years ago
|
||
Comment on attachment 235449 [details] [diff] [review]
Add optional parameters to the browser livemark functions
>Index: browser/base/content/browser-places.js
>===================================================================
>- addLiveBookmark: function PCH_addLiveBookmark(url) {
>+ addLiveBookmark: function PCH_addLiveBookmark(url, feedTitle, feedSubtitle) {
> var ios =
> Cc["@mozilla.org/network/io-service;1"].
> getService(Ci.nsIIOService);
> var feedURI = ios.newURI(url, null, null);
>
> var browser = gBrowser.selectedBrowser;
>
> // TODO: implement description annotation
>- //var description = this._getDescriptionFromDocument(doc);
>- var title = browser.contentDocument.title;
>+ //var description;
>+ //if (arguments.length > 2)
>+ // description = feedSubtitle;
>+ //else
>+ // description = BookmarksUtils.getDescriptionFromDocument(doc);
#if 0 this instead.
>Index: browser/components/feeds/public/nsIFeedResultService.idl
>===================================================================
bump the uuid.
>
> /**
> * Adds a URI to the user's specified external feed handler, or live
> * bookmarks.
> * @param request
> * The request for the feed document
remove the documentation for the removed param.
>- void addToClientReader(in nsIRequest request, in AString uri);
>+ void addToClientReader(in AString uri, in AString title, in AString subtitle);
s/AString uri/AUTF8String uri.
>Index: browser/components/feeds/src/FeedConverter.js
>===================================================================
> break;
>
> default:
> LOG("unexpected handler: " + handler);
> // fall through -- let feed service handle error
> case "bookmarks":
> case "client":
> try {
>- feedService.addToClientReader(this._request, result.uri.spec);
>+ var feed = result.doc;
>+ feed.QueryInterface(Ci.nsIFeed);
make this |var feed = result.doc.QueryInterface(Ci.nsIFeed);|
Attachment #235449 -
Flags: review?(bugs.mano) → review-
Assignee | ||
Comment 5•18 years ago
|
||
Attachment #235449 -
Attachment is obsolete: true
Attachment #235463 -
Flags: review?(bugs.mano)
Comment 6•18 years ago
|
||
Comment on attachment 235463 [details] [diff] [review]
fix nits
r=mano
Attachment #235463 -
Flags: review?(bugs.mano) → review+
Assignee | ||
Comment 7•18 years ago
|
||
Checking in browser/base/content/browser-places.js;
/cvsroot/mozilla/browser/base/content/browser-places.js,v <-- browser-places.js
new revision: 1.8; previous revision: 1.7
done
Checking in browser/base/content/browser.js;
/cvsroot/mozilla/browser/base/content/browser.js,v <-- browser.js
new revision: 1.697; previous revision: 1.696
done
Checking in browser/components/feeds/public/nsIFeedResultService.idl;
/cvsroot/mozilla/browser/components/feeds/public/nsIFeedResultService.idl,v <-- nsIFeedResultService.idl
new revision: 1.7; previous revision: 1.6
done
Checking in browser/components/feeds/src/FeedConverter.js;
/cvsroot/mozilla/browser/components/feeds/src/FeedConverter.js,v <-- FeedConverter.js
new revision: 1.19; previous revision: 1.18
done
Checking in browser/components/feeds/src/FeedWriter.js;
/cvsroot/mozilla/browser/components/feeds/src/FeedWriter.js,v <-- FeedWriter.js
new revision: 1.12; previous revision: 1.11
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Attachment #235463 -
Flags: approval1.8.1?
Comment 8•18 years ago
|
||
Comment on attachment 235463 [details] [diff] [review]
fix nits
a=beltzner on behalf of 181drivers
Attachment #235463 -
Flags: approval1.8.1? → approval1.8.1+
Comment 9•18 years ago
|
||
*** Bug 351077 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1
Comment 10•18 years ago
|
||
*** Bug 251447 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•