XPCNativeWrappers can confuse the short-circuiting code. bug 409291, r+sr=jst a=beltzner

This commit is contained in:
mrbkap@gmail.com 2007-12-21 11:06:29 -08:00
parent f1c34acb2b
commit ca0549b22f

View File

@ -2403,7 +2403,8 @@ nsScriptSecurityManager::doGetObjectPrincipal(JSContext *aCx, JSObject *aObj
nsCOMPtr<nsIXPConnectWrappedNative> xpcWrapper =
do_QueryInterface(priv);
NS_ASSERTION(!xpcWrapper,
NS_ASSERTION(!xpcWrapper ||
!strcmp(jsClass->name, "XPCNativeWrapper"),
"Uh, an nsIXPConnectWrappedNative with the "
"wrong JSClass or getObjectOps hooks!");
}