| 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 0aa5a910afc15d804bebc5feec09de8beab96559..40486f318bc5a18d332f72b9c54899bdd1584f64 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| @@ -90,7 +90,7 @@ void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt
|
|
|
| Node::InsertionNotificationRequest HTMLScriptElement::insertedInto(ContainerNode* insertionPoint)
|
| {
|
| - if (insertionPoint->inDocument() && hasSourceAttribute() && !loader()->isScriptTypeSupported(ScriptLoader::DisallowLegacyTypeInTypeAttribute))
|
| + if (insertionPoint->inShadowIncludingDocument() && hasSourceAttribute() && !loader()->isScriptTypeSupported(ScriptLoader::DisallowLegacyTypeInTypeAttribute))
|
| UseCounter::count(document(), UseCounter::ScriptElementWithInvalidTypeHasSrc);
|
| HTMLElement::insertedInto(insertionPoint);
|
| logAddElementIfIsolatedWorldAndInDocument("script", srcAttr);
|
|
|