[Qt] Don't rely on QMimeDatabase for essential MIME types
authorallan.jensen@digia.com <allan.jensen@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2012 12:37:27 +0000 (12:37 +0000)
committerallan.jensen@digia.com <allan.jensen@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2012 12:37:27 +0000 (12:37 +0000)
commitcaf1744db3bd7192633e431d689bed376f857c64
treeea728ed552604cb495e68d2c57ad8b0b16a51ffe
parent652db7c60050c7bfbc1eaf11edb0fdf07df99513
[Qt] Don't rely on QMimeDatabase for essential MIME types
https://bugs.webkit.org/show_bug.cgi?id=103865

Based on patch by Pierre Rossi.
Reviewed by Jocelyn Turcotte.

Extend the short static list to also include MIME types essential to WebKit,
and detect these first before checking the system mimedatabase.

* platform/qt/MIMETypeRegistryQt.cpp:
(WebCore::MIMETypeRegistry::getMIMETypeForExtension):
(WebCore::MIMETypeRegistry::getMIMETypeForPath):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/qt/MIMETypeRegistryQt.cpp