Index: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp |
index 05ffc6b464cbc334cfba759883037467daee38c3..67f85162e48e1da8960bd791011f6a03af55265b 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp |
@@ -521,10 +521,11 @@ class TokenPreloadScanner::StartTagScanner { |
return ShouldPreloadLink(type); |
if (Match(tag_impl_, inputTag) && !input_is_image_) |
return false; |
+ ScriptType script_type = ScriptType::kClassic; |
if (Match(tag_impl_, scriptTag) && |
!ScriptLoader::IsValidScriptTypeAndLanguage( |
type_attribute_value_, language_attribute_value_, |
- ScriptLoader::kAllowLegacyTypeInTypeAttribute)) { |
+ ScriptLoader::kAllowLegacyTypeInTypeAttribute, script_type)) { |
return false; |
} |
return true; |