[Webkit-unassigned] [Bug 201545] [GTK] Consider dropping content type sniffing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 12 03:25:42 PDT 2019


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

--- Comment #14 from Pierre Labastie <pierre.labastie at neuf.fr> ---
FWIIW, the difference between debian and lfs is shared-mime-info version:
In 1.10, .html and .htm are not recognized as extensions (glob) for xhtml,
while this has been added for 1.12 (https://gitlab.freedesktop.org/xdg/shared-mime-info/commit/8ae13a589577e9bda12fb16465a03cd81b1cd349)

The conclusion is that shared-mime-info should enforce the presence of an <?xml?> header for recognizing the file as application/xhtml+xml.

The index.html file from lfs seems to be valid if served as text/html (see Comment 11, but I am not sure the http-equiv content should be application/xhtml+xml). How a local file is "served" is up to the browser, I suppose. But the right guessing here is text/html, and if using the mime database for that, IMO the mime database should never allow a file not starting with <?xml ... ?> to be considered application/xhtml+xml.

Well, at lfs, we have added the <?xml?> header, and all is fine anyway...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190912/a3b5bd00/attachment-0001.html>


More information about the webkit-unassigned mailing list