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

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

Issue 1670203002: Block HTML Imports from loading when inserted via innerHTML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/imports/LinkImport.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
index 340a8408874d0b1056ff39277c60bb37fc0cdd33..ce84e40005626de6c7157a2bf98426b945b1af31 100644
--- a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
+++ b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
@@ -77,6 +77,8 @@ void LinkImport::process()
return;
if (!shouldLoadResource())
return;
+ if (m_owner->isAlreadyStarted())
+ return;
if (!m_owner->document().importsController()) {
ASSERT(m_owner->document().frame()); // The document should be the master.

Powered by Google App Engine
This is Rietveld 408576698