diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp index bd48f3c071..249162c380 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