Bug 877760 - XPConnect always logs an error when a component doesn't implement a method. r=mrbkap

This commit is contained in:
Gabor Krizsanits 2013-06-11 12:01:33 +02:00
parent 4c06e0d593
commit 3a3067bb7b

View File

@ -1012,6 +1012,11 @@ nsXPCWrappedJSClass::CheckForException(XPCCallContext & ccx,
!strcmp(aPropertyName, "getInterface")) {
reportable = false;
}
// More special case, see bug 877760.
if (e_result == NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED) {
reportable = false;
}
}
// Try to use the error reporter set on the context to handle this