From 8db81508a1ffe1c3873503a1cb2082d664714776 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Mon, 20 Jan 2020 20:14:59 -0500 Subject: Bug 1415761 - Catch the exception and rethrow it after invoking custom elements reactions; The spec was unclear on how CEReactions interact with thrown exceptions; see https://github.com/whatwg/html/issues/3217. The spec is now being clarified in https://github.com/whatwg/html/pull/3235. Tag UXP Issue #1344 --- parser/html/nsHtml5TreeOperation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'parser') diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp index d530cbba3..d747f80a8 100644 --- a/parser/html/nsHtml5TreeOperation.cpp +++ b/parser/html/nsHtml5TreeOperation.cpp @@ -450,7 +450,8 @@ nsHtml5TreeOperation::CreateHTMLElement( nsAutoMicroTask mt; } dom::AutoCEReaction - autoCEReaction(document->GetDocGroup()->CustomElementReactionsStack()); + autoCEReaction(document->GetDocGroup()->CustomElementReactionsStack(), + nullptr); nsCOMPtr newElement; NS_NewHTMLElement(getter_AddRefs(newElement), nodeInfo.forget(), -- cgit v1.2.3