[Webkit-unassigned] [Bug 24904] Disentangle standards mode CSS type check from content sniffing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 7 01:25:41 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24904





------- Comment #20 from abarth at webkit.org  2009-04-07 01:25 PDT -------
(In reply to comment #19)
> Do you know how exactly sniffing works in Safari now?  For an empty
> Content-Type, I'm getting "text/css" in mimeType()

I don't understand how that works.  The answer is buried somewhere in the
closed-source CFNetwork.  Maciej hinted that it had to do with the file
extension, but I couldn't verify that.

> - but will this patch change
> the behavior for sites that send e.g. "text/plain"?

It shouldn't change that behavior, as far as I know.  If CFNetwork is somehow
magically sniffing text/css from text/plain, that violates the HTML 5 spec and
is inconsistent with Firefox's behavior.

> Also, wouldn't a regression test for this change be helpful?

I could add a test, but it won't appear to be any different since we're not
changing the CFNetwork behavior.  I'll add a test on the Chromium side, where
we will see a difference.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list