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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp

Issue 2821803002: Introduce ScriptLoader::script_type_ (Closed)
Patch Set: Add missing include 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698