From 6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 4 Jan 2020 22:04:13 -0500 Subject: Bug 1315885 - Part 2: Avoid rethrowing exception in CustomElementCallback::Call. Tag UXP Issue #1344 --- dom/base/CustomElementRegistry.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dom/base') diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp index bd48f3c07..249162c38 100644 --- a/dom/base/CustomElementRegistry.cpp +++ b/dom/base/CustomElementRegistry.cpp @@ -55,6 +55,10 @@ CustomElementCallback::Call() mArgs.name, mArgs.oldValue, mArgs.newValue, rv); break; } + + // If callbacks throw exceptions, it'll be handled and reported in + // Lifecycle*Callback::Call function. + rv.SuppressException(); } void -- cgit v1.2.3