Fix for 56395 rtm++ bug.

git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@81369 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2000-10-18 07:49:20 +00:00
parent afc6f5055a
commit 2e14d07068
2 changed files with 16 additions and 0 deletions

View File

@@ -249,6 +249,10 @@ nsXBLPrototypeBinding::GetBindingURI(nsCString& aResult)
nsCOMPtr<nsIXBLDocumentInfo> info;
GetXBLDocumentInfo(nsnull, getter_AddRefs(info));
NS_ASSERTION(info, "The prototype binding has somehow lost its XBLDocInfo! Bad bad bad!!!\n");
if (!info)
return NS_ERROR_FAILURE;
info->GetDocumentURI(aResult);
aResult += "#";
aResult += mID;
@@ -261,6 +265,10 @@ nsXBLPrototypeBinding::GetDocURI(nsCString& aResult)
nsCOMPtr<nsIXBLDocumentInfo> info;
GetXBLDocumentInfo(nsnull, getter_AddRefs(info));
NS_ASSERTION(info, "The prototype binding has somehow lost its XBLDocInfo! Bad bad bad!!!\n");
if (!info)
return NS_ERROR_FAILURE;
info->GetDocumentURI(aResult);
return NS_OK;
}

View File

@@ -249,6 +249,10 @@ nsXBLPrototypeBinding::GetBindingURI(nsCString& aResult)
nsCOMPtr<nsIXBLDocumentInfo> info;
GetXBLDocumentInfo(nsnull, getter_AddRefs(info));
NS_ASSERTION(info, "The prototype binding has somehow lost its XBLDocInfo! Bad bad bad!!!\n");
if (!info)
return NS_ERROR_FAILURE;
info->GetDocumentURI(aResult);
aResult += "#";
aResult += mID;
@@ -261,6 +265,10 @@ nsXBLPrototypeBinding::GetDocURI(nsCString& aResult)
nsCOMPtr<nsIXBLDocumentInfo> info;
GetXBLDocumentInfo(nsnull, getter_AddRefs(info));
NS_ASSERTION(info, "The prototype binding has somehow lost its XBLDocInfo! Bad bad bad!!!\n");
if (!info)
return NS_ERROR_FAILURE;
info->GetDocumentURI(aResult);
return NS_OK;
}