"download": {
"default_directory": "/Users/gregg/Downloads",
"directory_upgrade": true,
"prompt_for_download": true
},
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
Browsers use the mime type given in the Contebnt-Type header to determine whether they *can* display the content, and Content-Disposition to determine whether they *should*. In the absence of a content disposition, they display anything they can, and download anything else. So yes, you are right, but that's not the whole story.
Chrome considers all text/* mime types to be displayable with a few specific exceptions such as text/csv and text/vcard. Other browsers may have a specific white list of which text types they will try to display and will not attempt to display unknown types like text/txt (which is not a registered mime type). There isn't any standard which says which mime types should be treated which way as far as I know, nor could there be really (for example, a browser without a PDF viewer can never render application/pdf no matter what any spec or header tells it to do).
Also, if "Save page as" does not save the file correctly that sounds like a bug to me; I would expect us to save the bytes we got from the network exactly as we received them, regardless of how they were displayed.
Yeah, if the document was plain text we should not even offer saving it the other way I think.