[webkit-dev] Is MIMETypeRegistry::canShowMIMEType supposed to accept lowercase or unknown case?

Konstantin Tokarev annulen at yandex.ru
Fri Feb 12 05:33:17 PST 2016


Hello,

In WebProcess/WebPage/WebPage.cpp MIMETypeRegistry::canShowMIMEType seems to be called with argument of unknown case (the same string is then looked up in ASCIICaseInsensitiveHash).

However, MIMETypeRegistry::canShowMIMEType does a case-sensitive startsWith("text/").

Should MIMETypeRegistry::canShowMIMEType use startsWithIgnoringASCIICase instead?

-- 
Regards,
Konstantin


More information about the webkit-dev mailing list