Hookup mime classifier to main document loader (#39109)

While we don't perform any sniffing yet, it does now
check all relevant mime types. Before, we would only
check specific versions of specific mime types. However,
the specification is more elaborate, which MimeClassifier
already handles.

There are two new test failures, but they actually fail
in the same way in other browsers. These tests are still
being discussed what the correct behavior should be [1]

Part of #14024

[1]:
https://github.com/whatwg/mimesniff/issues/189#issuecomment-2081559661

---------

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-09-04 10:30:55 +02:00 committed by GitHub
parent a44b98c358
commit dab195ca80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 284 additions and 619 deletions

View file

@ -1,2 +1,2 @@
[Document-createElement-svg.svg]
expected: TIMEOUT
expected: ERROR

View file

@ -1,2 +1,2 @@
[parser-uses-create-an-element-for-a-token-svg.svg]
expected: TIMEOUT
expected: ERROR