зеркало из https://github.com/mozilla/gecko-dev.git
Bug 963285 - CallSetup may set context options but not restore them , r=bz
This commit is contained in:
Родитель
0f318259cc
Коммит
0eb04a40df
|
@ -151,7 +151,7 @@ CallbackObject::CallSetup::CallSetup(CallbackObject* aCallback,
|
|||
mCx = cx;
|
||||
|
||||
// Make sure the JS engine doesn't report exceptions we want to re-throw
|
||||
if (mExceptionHandling == eRethrowContentExceptions ||
|
||||
if ((mCompartment && mExceptionHandling == eRethrowContentExceptions) ||
|
||||
mExceptionHandling == eRethrowExceptions) {
|
||||
mSavedJSContextOptions = JS::ContextOptionsRef(cx);
|
||||
JS::ContextOptionsRef(cx).setDontReportUncaught(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче