From 64fe3e4fbcbf059b0269a38fceb3c3f03a22d274 Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Fri, 21 Dec 2007 19:06:29 +0000 Subject: [PATCH] XPCNativeWrappers can confuse the short-circuiting code. bug 409291, r+sr=jst a=beltzner --- caps/src/nsScriptSecurityManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/caps/src/nsScriptSecurityManager.cpp b/caps/src/nsScriptSecurityManager.cpp index 11b2f4954a6..8304c1f4e52 100644 --- a/caps/src/nsScriptSecurityManager.cpp +++ b/caps/src/nsScriptSecurityManager.cpp @@ -2403,7 +2403,8 @@ nsScriptSecurityManager::doGetObjectPrincipal(JSContext *aCx, JSObject *aObj nsCOMPtr xpcWrapper = do_QueryInterface(priv); - NS_ASSERTION(!xpcWrapper, + NS_ASSERTION(!xpcWrapper || + !strcmp(jsClass->name, "XPCNativeWrapper"), "Uh, an nsIXPConnectWrappedNative with the " "wrong JSClass or getObjectOps hooks!"); }