mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
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:
parent
7b89d994f6
commit
cc9efcfbd5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user