summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 22:04:13 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:21 -0500
commit6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2 (patch)
tree2a8d8b47a0bd8fff4d86658b51c69f1c12c815af /dom
parent19f08038f0ef424e2226acd691efcbd26d589556 (diff)
downloadUXP-6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2.tar
UXP-6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2.tar.gz
UXP-6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2.tar.lz
UXP-6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2.tar.xz
UXP-6ff1c0c52fdf5f25e26ca65631e1b081f67ce1c2.zip
Bug 1315885 - Part 2: Avoid rethrowing exception in CustomElementCallback::Call.
Tag UXP Issue #1344
Diffstat (limited to 'dom')
-rw-r--r--dom/base/CustomElementRegistry.cpp4
1 files changed, 4 insertions, 0 deletions
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