Bug 851895 - Don't assert against a failure in CanCallNow. r=mrbkap

This can definitely happen now if the |this| object is wrong. It's possible
that we should be checking this earlier, but as the code stands this assertion
is incorrect.
This commit is contained in:
Bobby Holley 2013-03-21 08:20:46 -07:00
parent 7b89d994f6
commit cc9efcfbd5

View File

@ -2210,11 +2210,6 @@ XPCWrappedNative::CallMethod(XPCCallContext& ccx,
nsresult rv = ccx.CanCallNow();
if (NS_FAILED(rv)) {
// If the security manager is complaining then this is not really an
// internal error in xpconnect. So, no reason to botch the assertion.
NS_ASSERTION(rv == NS_ERROR_XPC_SECURITY_MANAGER_VETO,
"hmm? CanCallNow failed in XPCWrappedNative::CallMethod. "
"We are finding out about this late!");
return Throw(rv, ccx);
}