Bug 303502 - make DOM Don't call me! asserts more meaningful, r=peterv,sr=jst

This commit is contained in:
bob%bclary.com 2005-09-04 18:16:58 +00:00
parent 707e75e6ad
commit b9949fcef0
2 changed files with 19 additions and 17 deletions

View File

@ -2958,7 +2958,8 @@ nsresult
nsHTMLDocument::UpdateNameTableEntry(const nsAString& aName,
nsIContent *aContent)
{
NS_ASSERTION(!IsXHTML(), "Don't call me on an XHTML document!!!");
NS_ASSERTION(!IsXHTML(),
"nsHTMLDocument::UpdateNameTableEntry Don't call me on an XHTML document!!!");
IdAndNameMapEntry *entry =
NS_STATIC_CAST(IdAndNameMapEntry *,
@ -3023,7 +3024,8 @@ nsresult
nsHTMLDocument::RemoveFromNameTable(const nsAString& aName,
nsIContent *aContent)
{
NS_ASSERTION(!IsXHTML(), "Don't call me on an XHTML document!!!");
NS_ASSERTION(!IsXHTML(),
"nsHTMLDocument::RemoveFromNameTable Don't call me on an XHTML document!!!");
IdAndNameMapEntry *entry =
NS_STATIC_CAST(IdAndNameMapEntry *,

View File

@ -2970,7 +2970,7 @@ NS_IMETHODIMP
nsDOMClassInfo::PreCreate(nsISupports *nativeObj, JSContext *cx,
JSObject *globalObj, JSObject **parentObj)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::PreCreate Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -2979,7 +2979,7 @@ NS_IMETHODIMP
nsDOMClassInfo::Create(nsIXPConnectWrappedNative *wrapper,
JSContext *cx, JSObject *obj)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Create Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3057,7 +3057,7 @@ nsDOMClassInfo::AddProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, jsval id, jsval *vp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::AddProperty Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3067,7 +3067,7 @@ nsDOMClassInfo::DelProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, jsval id, jsval *vp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::DelProperty Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3077,7 +3077,7 @@ nsDOMClassInfo::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, jsval id, jsval *vp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::GetProperty Don't call me!");
return NS_OK;
}
@ -3087,7 +3087,7 @@ nsDOMClassInfo::SetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, jsval id, jsval *vp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::SetProperty Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3117,7 +3117,7 @@ nsDOMClassInfo::NewEnumerate(nsIXPConnectWrappedNative *wrapper,
JSContext *cx, JSObject *obj, PRUint32 enum_op,
jsval *statep, jsid *idp, PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::NewEnumerate Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3168,7 +3168,7 @@ nsDOMClassInfo::Convert(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, PRUint32 type, jsval *vp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Convert Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3177,7 +3177,7 @@ NS_IMETHODIMP
nsDOMClassInfo::Finalize(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Finalize Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3216,7 +3216,7 @@ nsDOMClassInfo::Call(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, PRUint32 argc, jsval *argv, jsval *vp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Call Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3226,7 +3226,7 @@ nsDOMClassInfo::Construct(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, PRUint32 argc, jsval *argv,
jsval *vp, PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Construct Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3236,7 +3236,7 @@ nsDOMClassInfo::HasInstance(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, jsval val, PRBool *bp,
PRBool *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::HasInstance Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3245,7 +3245,7 @@ NS_IMETHODIMP
nsDOMClassInfo::Mark(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JSObject *obj, void *arg, PRUint32 *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Mark Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3254,7 +3254,7 @@ NS_IMETHODIMP
nsDOMClassInfo::Equality(nsIXPConnectWrappedNative *wrapper, JSContext * cx,
JSObject * obj, jsval val, PRBool *bp)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::Equality Don't call me!");
return NS_ERROR_UNEXPECTED;
}
@ -3263,7 +3263,7 @@ NS_IMETHODIMP
nsDOMClassInfo::OuterObject(nsIXPConnectWrappedNative *wrapper, JSContext * cx,
JSObject * obj, JSObject * *_retval)
{
NS_ERROR("Don't call me!");
NS_ERROR("nsDOMClassInfo::OuterObject Don't call me!");
return NS_ERROR_UNEXPECTED;
}