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

Unified Diff: Source/core/html/imports/LinkImport.cpp

Issue 214513011: HTMLLinkElement should not run script inside ::insertedInto (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/LinkImport.cpp
diff --git a/Source/core/html/imports/LinkImport.cpp b/Source/core/html/imports/LinkImport.cpp
index 18751a425335333845d7f6996900c2c72e738809..caaf812e0f83ed40f0ce42691cda56fcac2302d9 100644
--- a/Source/core/html/imports/LinkImport.cpp
+++ b/Source/core/html/imports/LinkImport.cpp
@@ -105,9 +105,7 @@ void LinkImport::didFinish()
{
if (!m_owner || !m_owner->inDocument())
return;
- // Because didFinish() is called from import's own scheduler in HTMLImportsController,
- // we don't need to scheduleEvent() here.
- m_owner->dispatchEventImmediately();
+ m_owner->scheduleEvent();
}
void LinkImport::importChildWasDestroyed(HTMLImportChild* child)
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698