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

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

Issue 2781713003: Enable module scripts in ScriptLoader (Closed)
Patch Set: Rebase 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/parser/HTMLParserScriptRunner.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
index 2af3c5671058a53f6d4bab996c92077797fe3a7c..5065906d52568acc379ecd5665fe620c1dcaab33 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
@@ -291,6 +291,7 @@ void FetchBlockedDocWriteScript(ScriptElementBase* element,
DCHECK(script_loader);
script_loader->SetFetchDocWrittenScriptDeferIdle();
script_loader->PrepareScript(script_start_position);
+ CHECK_EQ(script_loader->GetScriptType(), ScriptType::kClassic);
}
void EmitWarningForDocWriteScripts(const String& url, Document& document) {

Powered by Google App Engine
This is Rietveld 408576698