summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp')
-rw-r--r--Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp b/Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp
index 685827e..3cfddf9 100644
--- a/Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp
+++ b/Source/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp
@@ -31,6 +31,8 @@
#include "PlatformString.h"
#include <MimeType.h>
+#include <wtf/Assertions.h>
+#include <wtf/MainThread.h>
#include <wtf/text/CString.h>
namespace WebCore {
@@ -62,6 +64,8 @@ static const ExtensionMap extensionMap[] = {
String MIMETypeRegistry::getMIMETypeForExtension(const String& ext)
{
+ ASSERT(isMainThread());
+
String str = ext.lower();
// Try WebCore built-in types.