1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

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
parent 30ea7b27d4
commit 0b7148e2a6
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.