Index: Source/WebCore/dom/ScriptElement.cpp |
diff --git a/Source/WebCore/dom/ScriptElement.cpp b/Source/WebCore/dom/ScriptElement.cpp |
index 7bd26bcc2115fb22f98b5b37db59d6feab6e3ac7..bc3f4256be92c9fdd01d925f0807f3ef1f11d678 100644 |
--- a/Source/WebCore/dom/ScriptElement.cpp |
+++ b/Source/WebCore/dom/ScriptElement.cpp |
@@ -294,12 +294,10 @@ void ScriptElement::executeScript(const ScriptSourceCode& sourceCode) |
if (!m_isExternalScript && !m_element->document()->contentSecurityPolicy()->allowInlineScript(m_element->document()->url(), m_startLineNumber)) |
return; |
-#if ENABLE(NOSNIFF) |
if (m_isExternalScript && m_cachedScript && !m_cachedScript->mimeTypeAllowedByNosniff()) { |
m_element->document()->addConsoleMessage(SecurityMessageSource, ErrorMessageLevel, "Refused to execute script from '" + m_cachedScript->url().elidedString() + "' because its MIME type ('" + m_cachedScript->mimeType() + "') is not executable, and strict MIME type checking is enabled."); |
return; |
} |
-#endif |
RefPtr<Document> document = m_element->document(); |
ASSERT(document); |