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 5c6106355a1ee952024bca5d718f3cad37d19518..6f0aea5a33edf81d3a20054abb7125e0b1a0db66 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp |
@@ -541,6 +541,10 @@ class TokenPreloadScanner::StartTagScanner { |
ScriptLoader::kAllowLegacyTypeInTypeAttribute, script_type)) { |
return false; |
} |
+ // TODO(kouhei): Enable preload for module scripts, with correct |
Kunihiko Sakamoto
2017/05/10 10:07:12
Kouhei, would you mind having your name here? :)
|
+ // credentials mode. |
+ if (type_attribute_value_ == "module") |
+ return false; |
if (ScriptLoader::BlockForNoModule(script_type, |
nomodule_attribute_value_)) { |
return false; |