Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStylesheet loads ignore responses with MIME types that don't match text/css #26640
Comments
|
Relevant specs:
Quirks mode is relevant. Where https://mimesniff.spec.whatwg.org/#supplied-mime-type-detection-algorithm says to use the
I’m not sure what this is supposed to mean. I’m not aware of any filesystem such as NTFS, ext4 etc encoding MIME type information. Is this saying to take a guess based on a table of "well-known" file name extensions, similar to https://docs.python.org/3/library/mimetypes.html#mimetypes.guess_type ? Probably not, as the table would hopefully be specified in that case. |
This means that any page relying on a file:// URL, or any webserver like the built-in python one that checks for common extensions like .css to decide what mime type to return will cause unexpected behaviour when loaded in servo vs. Firefox.