зеркало из https://github.com/mozilla/pjs.git
XPCNativeWrappers can confuse the short-circuiting code. bug 409291, r+sr=jst a=beltzner
This commit is contained in:
Родитель
66efd4f5d1
Коммит
64fe3e4fbc
|
@ -2403,7 +2403,8 @@ nsScriptSecurityManager::doGetObjectPrincipal(JSContext *aCx, JSObject *aObj
|
||||||
nsCOMPtr<nsIXPConnectWrappedNative> xpcWrapper =
|
nsCOMPtr<nsIXPConnectWrappedNative> xpcWrapper =
|
||||||
do_QueryInterface(priv);
|
do_QueryInterface(priv);
|
||||||
|
|
||||||
NS_ASSERTION(!xpcWrapper,
|
NS_ASSERTION(!xpcWrapper ||
|
||||||
|
!strcmp(jsClass->name, "XPCNativeWrapper"),
|
||||||
"Uh, an nsIXPConnectWrappedNative with the "
|
"Uh, an nsIXPConnectWrappedNative with the "
|
||||||
"wrong JSClass or getObjectOps hooks!");
|
"wrong JSClass or getObjectOps hooks!");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче