diff --git a/js/src/xpconnect/src/xpccomponents.cpp b/js/src/xpconnect/src/xpccomponents.cpp index b0480a4b5578..a7c30e915ae4 100644 --- a/js/src/xpconnect/src/xpccomponents.cpp +++ b/js/src/xpconnect/src/xpccomponents.cpp @@ -3412,6 +3412,7 @@ ContextHolder::ContextHolder(JSContext *aOuterCx, JSObject *aSandbox) { JSAutoRequest ar(mJSContext); JS_SetOptions(mJSContext, + JS_GetOptions(mJSContext) | JSOPTION_DONT_REPORT_UNCAUGHT | JSOPTION_PRIVATE_IS_NSISUPPORTS); JS_SetGlobalObject(mJSContext, aSandbox);