[Lazyweb] Viewing AtomPub services documents in Firefox
November 15th, 2007AtomPub services documents return a content type of application/atomsvc+xml. How does one tell Firefox to just view this in the browser and NOT save it to disk? This question came up on the Abdera list as well, but no one had a good solution.
November 15th, 2007 at 2:04 pm
Hey Dan,
Seems you might have to hack the mimeTypes.rdf file in your Firefox install – http://developer.mozilla.org/en/docs/How_Mozilla_determines_MIME_Types
Also, http://weblogs.mozillazine.org/ben/archives/010116.html hints that they have hooks for plugins to sniff content when a document is loading (if you feel like developing a plugin
I agree though, it’d be nice if Firefox rendered the service doc in way that allows the user to easily navigate(subscribe to) to the collection URLs (and possibly any category document URLs), something like how they currently present feeds…
John.
November 15th, 2007 at 2:28 pm
Are you looking for something like this:
http://kb.mozillazine.org/Browser.contentHandlers.types.*.uri
?
using chrome://browser-region/locale/region.properties as uri should display the feed in your browser window.
I’m very new to AtomPub and don’t know any free to use app-service, that’s why I actually couldn’t try out if it works.
November 15th, 2007 at 6:07 pm
The server could add a “Content-Disposition: inline” header. See http://www.ietf.org/rfc/rfc2183.txt I don’t know how well browsers obey that, but I believe it is the right thing for the server to do if you want.
December 11th, 2007 at 2:02 pm
Yeah, I’m not seeing a way to do this short of developing a plugin. *sigh*