WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
19072
Resource types should only be identfied by the Content-Type value
https://bugs.webkit.org/show_bug.cgi?id=19072
Summary
Resource types should only be identfied by the Content-Type value
Markus Wulftange
Reported
2008-05-15 02:26:48 PDT
The type of data of responses should only be identified by the Content-Type value that was sent. It should not be tried to "guess" the content type. Examples: * If a HTML document contains a link to an external CSS stylesheet only responses with the Content-Type value "text/css" should be accepted. * If a HTML document embedds an image via the IMG element only responses with valid values for image types (e.g. "image/...") should be accepted.
Attachments
Using as self-reference as external stylesheet
(718 bytes, text/html)
2008-07-30 05:19 PDT
,
Markus Wulftange
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Robert Blaut
Comment 1
2008-07-28 13:53:37 PDT
Markus, could you provide test cases or real examples of buggy, according you, behavior of WebKit? You should notice, that HTML5 specification defines content sniffing as other *proper* method of determining resource content type:
http://www.whatwg.org/specs/web-apps/current-work/#content-type-sniffing
Markus Wulftange
Comment 2
2008-07-30 05:19:10 PDT
Created
attachment 22551
[details]
Using as self-reference as external stylesheet At least the latest Safari version (5525.20.1) accepts a document sent as text/html to be used as an external stylesheet.
Robert Blaut
Comment 3
2008-07-30 06:10:36 PDT
(In reply to
comment #2
)
> Created an attachment (id=22551) [edit] > Using as self-reference as external stylesheet > > At least the latest Safari version (5525.20.1) accepts a document sent as > text/html to be used as an external stylesheet. >
(In reply to
comment #2
)
> Created an attachment (id=22551) [edit] > Using as self-reference as external stylesheet > > At least the latest Safari version (5525.20.1) accepts a document sent as > text/html to be used as an external stylesheet. >
This bug was fixed long time ago. Check
bug 17298
for details. What about the other case: "If a HTML document embedds an image via the IMG element only responses with valid values for image types (e.g. "image/...") should be accepted."? Do you have test case for it?
Markus Wulftange
Comment 4
2008-07-30 06:23:49 PDT
No, I have no test case.
Robert Blaut
Comment 5
2008-07-30 06:28:39 PDT
(In reply to
comment #4
)
> No, I have no test case. >
So I assume that I can close the bug report. Markus, feel free to reopen this report if you have real example of reported image issue.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug