mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Bug 1378079 - Part 3: Complete the steps related to custom elements in "create an element for a token".
With fixup for missing header due to unified builds. Tag UXP Issue #1344
This commit is contained in:
parent
ed18cbb741
commit
5d26d32825
8 changed files with 203 additions and 141 deletions
|
|
@ -1044,8 +1044,12 @@ CustomElementReactionsStack::PopAndInvokeElementQueue()
|
|||
// element, see https://github.com/w3c/webcomponents/issues/635.
|
||||
// We usually report the error to entry global in gecko, so just follow the
|
||||
// same behavior here.
|
||||
// This may be null if it's called from parser, see the case of
|
||||
// attributeChangedCallback in
|
||||
// https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token
|
||||
// In that case, the exception of callback reactions will be automatically
|
||||
// reported in CallSetup.
|
||||
nsIGlobalObject* global = GetEntryGlobal();
|
||||
MOZ_ASSERT(global, "Should always have a entry global here!");
|
||||
InvokeReactions(elementQueue, global);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue