checking in updates to fix xmlterm build (not part of regular build yet)
git-svn-id: svn://10.0.0.236/trunk@60277 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -235,6 +235,8 @@ NS_IMETHODIMP mozLineTerm::GetSecurePrincipal(nsIDOMDocument *domDoc,
|
||||
{
|
||||
XMLT_LOG(mozLineTerm::GetSecurePrincipal,30,("\n"));
|
||||
|
||||
nsresult result;
|
||||
|
||||
if (!aPrincipalStr)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
@@ -245,7 +247,10 @@ NS_IMETHODIMP mozLineTerm::GetSecurePrincipal(nsIDOMDocument *domDoc,
|
||||
if (!doc)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsCOMPtr<nsIPrincipal> principal=dont_AddRef(doc->GetDocumentPrincipal());
|
||||
nsCOMPtr<nsIPrincipal> principal;
|
||||
result = doc->GetPrincipal(getter_AddRefs(principal));
|
||||
if (NS_FAILED(result))
|
||||
return result;
|
||||
|
||||
#if 0 // Temporarily comented out, because ToString is not immplemented
|
||||
result = principal->ToString(aPrincipalStr);
|
||||
|
||||
Reference in New Issue
Block a user