GNOME Bugzilla – Bug 171657
PATCH: Enable retreival of news feeds present in a visited webpage
Last modified: 2005-04-08 12:58:27 UTC
The following patch provides a way for epiphany and extensions to be warned when a page contains a news feed, by looking at the <link rel="alternate"> tag in the header. If the mime-type is either application/rss+xml or application/atom+xml, the signal is fired (i looked at the favicon code to do that). There is also a text/xml mimetype used by old rss feeds, but i left it out because text/xml can be anything..
Created attachment 39263 [details] [review] ephy-rss.patch The patch. Will be used by my rss extension, to come soon
""" is it necessary to resolve the feed uri against the document uri? firefox doesn't do that... I assume it'll always be an absolute uri, no? """ No it isn't it's just that i copied the favicon code, and didn't understand everything, so feel free to remove what should be :)
Created attachment 39601 [details] [review] my version of this patch I changed the signal name to "ge_feed_link" --- since it also dispatches atom feeds, ge_rss wasn't really appropriate. I'm open for better names, though. I incorporated this into the existing DOMLinkAdded handler; no point adding more handlers.
Seems good, the name is ok too ! However, i would resolve the url anyway (not like i said before) because if a site provide a feed url relative to the site, it will not work..
Created attachment 39721 [details] [review] updated patch
Check in on HEAD.