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

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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: rebased 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..35cd0a184dcb289887f53bb5fcf4667dbccd8c05 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