Closed
Bug 286267
Opened 21 years ago
Closed 1 month ago
All kinds of MIME-Types for XSLT Stylesheets accepted
Categories
(Core :: XSLT, defect)
Core
XSLT
Tracking
()
RESOLVED
DUPLICATE
of bug 2041923
People
(Reporter: mcsmurf, Unassigned)
References
()
Details
See URL for a testcase. It sends MIME-Type text/blabla for the XSLT Stylesheet
and Mozilla accepts this. Mozilla should throw a error, only text/xml and
application/xml should be accepted.
What version of moz are you using. This behaves as expected for me on FF 1.0.1
| Reporter | ||
Comment 2•21 years ago
|
||
(In reply to comment #1)
> What version of moz are you using. This behaves as expected for me on FF 1.0.1
Trunk of course :), you should also test against this, since FF 1.0.1 is
out-of-date in coding terms.
Updated•21 years ago
|
Status: NEW → ASSIGNED
Updated•21 years ago
|
Summary: All kind of MIME-Types for XSLT Stylesheets accepted → All kinds of MIME-Types for XSLT Stylesheets accepted
Comment 3•21 years ago
|
||
As discussed with peterv, nsParser used to have a hardcoded list of MIME types
and throw if passed something that wasn't on the list.
This was pretty hard to work with, so now it will assume everything is XML
unless stated otherwise in the MIME type (because so many MIME types map to
XML). This is not an issue for random pages, because nsContentDLF will only
pass types we know how to handle to the parser.
So the XSLT code probably needs to have a type check before just dumping the
data into the parser... (note that before the parser change, you could still
have, eg, XSLT stylesheets with the SVG MIME type and they would happily work,
so this isn't even a regression, in general -- it's just never worked right).
Updated•20 years ago
|
Assignee: peterv → xslt
Status: ASSIGNED → NEW
Updated•17 years ago
|
Assignee: xslt → nobody
QA Contact: keith → xslt
Updated•3 years ago
|
Severity: normal → S3
Comment 4•1 month ago
|
||
Forward duping this to a bug that contains the impact of this design
You need to log in
before you can comment on or make changes to this bug.
Description
•