In Firefox, whenever I request a page that returns a Content-type of "application/json", Firefox saves the file into /tmp but then says "/tmp/json.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." Well, I go into Edit > Preferences > Applications, and there's no content type listed there that seems to have anything to do with application/json.
Is it possible to add an entry for this type? (Or for a random custom type I make up, like "foo/bar"?) I see a file called mimeTypes.rdf which looks promising. Firefox has a native viewer now
以上就是Adding custom content-types to Firefox application handler?的详细内容，更多请关注web前端其它相关文章！