Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Unified Diff: third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp

Issue 2838933003: [not-for-commit] kitsune changes + pending kouhei changes (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp b/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp
index 97e66fc5f059fdbfd1fb61301854a115c1a27b84..7fba1b0a30d0355b73461b70b9bab99c9a76279c 100644
--- a/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp
@@ -178,9 +178,9 @@ bool ModuleScriptLoader::WasModuleLoadSuccessful(Resource* resource) {
// are not of a correct MIME type.
// We use ResourceResponse::httpContentType() instead of mimeType(), as
// mimeType() may be rewritten by mime sniffer.
- if (!MIMETypeRegistry::IsSupportedJavaScriptMIMEType(
- response.HttpContentType()))
- return false;
+ //if (!MIMETypeRegistry::IsSupportedJavaScriptMIMEType(
+ // response.HttpContentType()))
+ // return false;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698