| Index: third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| index 4834fe74a4c4f7c0bb9fe8c55748e486b7d62398..ce375905b14837812e631f2c242f726a44294857 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| @@ -104,9 +104,10 @@ void HTMLScriptElement::ParseAttribute(
|
|
|
| Node::InsertionNotificationRequest HTMLScriptElement::InsertedInto(
|
| ContainerNode* insertion_point) {
|
| + ScriptType script_type = ScriptType::kClassic;
|
| if (insertion_point->isConnected() && HasSourceAttribute() &&
|
| !Loader()->IsScriptTypeSupported(
|
| - ScriptLoader::kDisallowLegacyTypeInTypeAttribute))
|
| + ScriptLoader::kDisallowLegacyTypeInTypeAttribute, script_type))
|
| UseCounter::Count(GetDocument(),
|
| UseCounter::kScriptElementWithInvalidTypeHasSrc);
|
| HTMLElement::InsertedInto(insertion_point);
|
|
|