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

Unified Diff: third_party/WebKit/Source/core/html/HTMLScriptElement.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
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);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698