| Index: third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
|
| diff --git a/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp b/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
|
| index 3d792cfc5069b40a6fbd597f7d0a8eec91112ebb..28526a33147d9b4379635cc588d44b024f11cb91 100644
|
| --- a/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
|
| +++ b/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
|
| @@ -163,9 +163,10 @@ bool MIMETypeRegistry::isJavaAppletMIMEType(const String& mimeType) {
|
| // followed by any number of specific versions of the JVM, which is why we use
|
| // startsWith()
|
| return mimeType.startsWith("application/x-java-applet",
|
| - TextCaseInsensitive) ||
|
| - mimeType.startsWith("application/x-java-bean", TextCaseInsensitive) ||
|
| - mimeType.startsWith("application/x-java-vm", TextCaseInsensitive);
|
| + TextCaseASCIIInsensitive) ||
|
| + mimeType.startsWith("application/x-java-bean",
|
| + TextCaseASCIIInsensitive) ||
|
| + mimeType.startsWith("application/x-java-vm", TextCaseASCIIInsensitive);
|
| }
|
|
|
| bool MIMETypeRegistry::isSupportedStyleSheetMIMEType(const String& mimeType) {
|
| @@ -174,7 +175,7 @@ bool MIMETypeRegistry::isSupportedStyleSheetMIMEType(const String& mimeType) {
|
|
|
| bool MIMETypeRegistry::isSupportedFontMIMEType(const String& mimeType) {
|
| static const unsigned fontLen = 5;
|
| - if (!mimeType.startsWith("font/", TextCaseInsensitive))
|
| + if (!mimeType.startsWith("font/", TextCaseASCIIInsensitive))
|
| return false;
|
| String subType = mimeType.substring(fontLen).lower();
|
| return subType == "woff" || subType == "woff2" || subType == "otf" ||
|
|
|