DescriptionFix ScriptCustomElementDefinition::createElementSync to use the given document
This patch fixes ScriptCustomElementDefinition::createElementSync to
create an element with its ownerDocument set to the given document by
using the construction stack.
Before this fix, V8HTMLElement::constructorCustom assumed it matches to
window.document. The assumption does not stand when custom elements are
created in import documents.
BUG=640465
Committed: https://crrev.com/9636049c6e6b9509f94d29532f4274af5ee79d34
Cr-Commit-Position: refs/heads/master@{#414434}
Patch Set 1 #Patch Set 2 : Fix typo in comment #
Total comments: 6
Patch Set 3 : kochi@ review #Patch Set 4 : tkent@ nit #Patch Set 5 : Rebase #Patch Set 6 : Remove #if DCHECK_IS_ON() due to failure on CrOS #
Messages
Total messages: 31 (16 generated)
|