Mozilla doesn't handle files served as */*+xml as XML files
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: dominique.hazael-massieux, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: helpwanted, xhtml, Whiteboard: [Hixie-P2] Please read comment 6)
Attachments
(2 files, 4 obsolete files)
12.01 KB,
patch
|
Details | Diff | Splinter Review | |
282 bytes,
application/x.custom+xml
|
Details |
Updated•22 years ago
|
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
Updated•22 years ago
|
Updated•22 years ago
|
Comment 4•22 years ago
|
||
Comment 5•22 years ago
|
||
Comment 6•22 years ago
|
||
Comment 7•22 years ago
|
||
Comment 8•22 years ago
|
||
Comment 10•22 years ago
|
||
Comment 11•22 years ago
|
||
Updated•22 years ago
|
Comment 12•22 years ago
|
||
Updated•21 years ago
|
Comment 13•21 years ago
|
||
Comment 14•21 years ago
|
||
Comment 15•21 years ago
|
||
Comment 16•21 years ago
|
||
Comment 17•21 years ago
|
||
Updated•21 years ago
|
Comment 18•21 years ago
|
||
Comment 19•21 years ago
|
||
Comment 20•21 years ago
|
||
Comment 21•21 years ago
|
||
Comment 22•21 years ago
|
||
Comment 23•21 years ago
|
||
Comment 24•21 years ago
|
||
Comment 25•20 years ago
|
||
Comment 26•20 years ago
|
||
Comment 27•20 years ago
|
||
Comment 28•20 years ago
|
||
Comment 29•20 years ago
|
||
Comment 30•20 years ago
|
||
Comment 31•20 years ago
|
||
Comment 32•20 years ago
|
||
Comment 33•19 years ago
|
||
Comment 34•19 years ago
|
||
Comment 35•19 years ago
|
||
Comment 36•19 years ago
|
||
Comment 37•19 years ago
|
||
Comment 38•19 years ago
|
||
Comment 39•19 years ago
|
||
Comment 40•15 years ago
|
||
Updated•15 years ago
|
Updated•15 years ago
|
Comment 41•15 years ago
|
||
Comment 42•15 years ago
|
||
Comment 43•15 years ago
|
||
Comment 44•15 years ago
|
||
Comment 45•15 years ago
|
||
Comment 46•15 years ago
|
||
Comment 47•15 years ago
|
||
Comment 48•15 years ago
|
||
Comment 49•15 years ago
|
||
Comment 50•15 years ago
|
||
Comment 51•15 years ago
|
||
Comment 52•15 years ago
|
||
Comment 53•15 years ago
|
||
Comment 54•15 years ago
|
||
Comment 55•15 years ago
|
||
Comment 56•15 years ago
|
||
Comment 58•15 years ago
|
||
Comment 59•15 years ago
|
||
Reporter | ||
Comment 60•15 years ago
|
||
Comment 61•15 years ago
|
||
Comment 62•15 years ago
|
||
Comment 63•15 years ago
|
||
Comment 64•15 years ago
|
||
Comment 67•14 years ago
|
||
Comment 68•14 years ago
|
||
Comment 69•14 years ago
|
||
Comment 70•14 years ago
|
||
Updated•12 years ago
|
Updated•9 years ago
|
Updated•8 years ago
|
Comment 72•5 years ago
|
||
Both RFC 7303 and the Fetch Standard require this.
Comment 73•5 years ago
|
||
Yes, but does anyone else anywhere implement it?
(And note that mimesniff is unmaintained and known-wrong about a bunch of things; it needs an editor and a lot of work put into it to be useful.)
Comment 74•5 years ago
|
||
(In reply to Boris Zbarsky [:bzbarsky, bz on IRC] from comment #73)
Yes, but does anyone else anywhere implement it?
(And note that mimesniff is unmaintained and known-wrong about a bunch of things; it needs an editor and a lot of work put into it to be useful.)
I’ve been trying to test Chromium, but I can’t get VirtualBox to work for whatever reason (probably because there’s something else that’s hogging AMD‑V).
And I refuse to install Google spyware directly on my PC.
You can use the following custom-xml.reg
file and test.custom-xml
files to test whether any browser actually supports this.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.custom-xml]
@="xmlfile"
"Content Type"="application/x.custom+xml"
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<custom-xml>
Custom XML document.
</custom-xml>
Comment 75•5 years ago
|
||
Comment 76•5 years ago
•
|
||
I just tested it, and it more or less works in Safari (on iOS), in that Safari displays it as text, rather than trying to download it.
Same with Firefox for iOS.
Comment 77•5 years ago
|
||
Comment 78•5 years ago
|
||
I can't test Safari on iOS, but Safari on MacOS does NOT have this behavior. Loading data:application/custom+xml,<root/>
does a download instead of treating it as XML. I don't know what exact case you tested on iOS, but if you tested text/something+xml
, then what you saw is that Safari basically treats text/anything
as text/plain
with some special-casing for text/html
. It most certainly doesn't implement the behavior this bug is talking about.
As for Chrome, it has the same behavior as Safari as far as I can tell: treat text/anything
as text/plain
, download application/something+xml
.
Updated•2 years ago
|
Comment 80•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 4 duplicates, 46 votes and 59 CCs.
:Gijs, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 81•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 82•2 years ago
|
||
(In reply to Boris Zbarsky [:bzbarsky] from comment #78)
As for Chrome, […]: treat
text/anything
astext/plain
, downloadapplication/something+xml
.
I'm unable to reproduce downloading behaviour in Chrome.
https://chriscoyier.net/feed/ https://timotijhof.net/feed/ etc
These use WordPress and emit Content-Type: application/rss+xml; charset=UTF-8
.
These are visually shown in Chrome, the same as for Atom feeds and JSON feeds.
Safari behaviour varies by macOS version and by what else is installed.
Safari 8-12 (macOS 10.11-10.13) prompts to subscribe in its built-in RSS "Shared Links" lists sidebar.
Safari 13 (macOS 10.14 Mojave+) prompt to open the News app, or if not installed, displays a grey placeholder page indicating that the content type cannot be displayed, with a link to search for RSS apps in the Mac App store.
Mobile Safari iOS 11-16, prompts to open Apple News app, or prompts to search for an RSS app in the App Store.
Mobile Safari iOS 6-9, prompts to search for an RSS app in the App Store.
Firefox places RSS feeds as a file with a seemingly random file name in the Downloads folder.
Atom feeds and JSON feeds are shown visually by Firefox (albeit by accident as Atom tends to be served as text/xml whereas RSS is more widely served with its dedicated application/+xml MIME type, and Firefox has a first-class JSON viewer).
Comment 83•2 years ago
|
||
(In reply to Timo Tijhof from comment #82)
(In reply to Boris Zbarsky [:bzbarsky] from comment #78)
As for Chrome, […]: treat
text/anything
astext/plain
, downloadapplication/something+xml
.I'm unable to reproduce downloading behaviour in Chrome.
https://chriscoyier.net/feed/ https://timotijhof.net/feed/ etc
These use WordPress and emitContent-Type: application/rss+xml; charset=UTF-8
.
And the RSS mimetype is handled specifically as you describe - much like the XHTML mimetype is probably also handled by just displaying it like a normal webpage. Neither is the point of this bug. The example attached to this bug that uses application/x.custom+xml
as the content type trivially reproduces the download behaviour in current Google Chrome. Firefox does the same with RSS because it does not have dedicated RSS support (and adding such support would be a separate bug that wouldn't address this one).
Comment 84•1 year ago
|
||
I came here from bug 1524719 which has been marked as duplicate 4 years ago. I was lead here because the CMS I use (Drupal) decided (years ago) to use the recommended RSS mimetype. Today, my clients are asking why the links to their RSS feed does not act like other websites' ones (which are mostly using text/xml).
The work started by :fredw 14 years ago was promising and would have solved most issues we face today with these "+xml" mimetypes. I don't get why some of you are trying to compare how other browsers are handling when Firefox could just follow the RFC and handle all uncatched mimetypes ending with "+xml" as "application/xml".
I am no CPP developper but I think that :fredw's work would be a very good starting point for someone willing to restart this on the latest version of Firefox (I believe the codebase changed a lot since 2009).
Description
•