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

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

Issue 2312613002: Fix 'will execute script' condition for creating custom elements in imports (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/LayoutTests/custom-elements/imports/resources/attribute-upgrade.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
index 98391e7f2cc4021aee338c0a9d23f41fe3e52b95..e6a5f1186594c3bcae3e447e903b0e01fb5998f6 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -762,7 +762,7 @@ inline Document& HTMLConstructionSite::ownerDocumentForCurrentNode()
CustomElementDefinition* HTMLConstructionSite::lookUpCustomElementDefinition(Document& document, AtomicHTMLToken* token)
{
// "2. If document does not have a browsing context, return null."
- LocalDOMWindow* window = document.domWindow();
+ LocalDOMWindow* window = document.executingWindow();
if (!window)
return nullptr;
« no previous file with comments | « third_party/WebKit/LayoutTests/custom-elements/imports/resources/attribute-upgrade.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698