LibWeb/MimeSniff: Add sniffing in a font context

This commit is contained in:
Kemal Zebari 2023-12-07 17:45:03 -08:00 committed by Andrew Kaster
commit 0b7148e2a6
Notes: sideshowbarker 2024-07-17 06:35:23 +09:00
3 changed files with 122 additions and 1 deletions

View file

@ -14,7 +14,8 @@ enum class SniffingContext {
None,
Browsing,
Image,
AudioOrVideo
AudioOrVideo,
Font,
};
struct SniffingConfiguration {
@ -44,6 +45,7 @@ private:
ErrorOr<void> context_specific_sniffing_algorithm(SniffingContext sniffing_context);
ErrorOr<void> rules_for_sniffing_images_specifically();
ErrorOr<void> rules_for_sniffing_audio_or_video_specifically();
ErrorOr<void> rules_for_sniffing_fonts_specifically();
// https://mimesniff.spec.whatwg.org/#supplied-mime-type
// A supplied MIME type, the MIME type determined by the supplied MIME type detection algorithm.