checking in updates to fix xmlterm build (not part of regular build yet)

This commit is contained in:
leaf%mozilla.org 2000-02-10 04:23:06 +00:00
Родитель e29d93df57
Коммит b2391ea944
3 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -337,7 +337,10 @@ mozXMLTermUtils::ExecuteScript(nsIDOMDocument* aDOMDocument,
if (!doc)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIPrincipal> docPrincipal=dont_AddRef(doc->GetDocumentPrincipal());
nsCOMPtr<nsIPrincipal> docPrincipal;
result = doc->GetPrincipal(getter_AddRefs(docPrincipal));
if (NS_FAILED(result))
return result;
// Get document script context
nsCOMPtr<nsIScriptContext> scriptContext;

Просмотреть файл

@ -62,7 +62,7 @@ DEFINES = $(TK_CFLAGS)
CPPSRCS = nsSetupRegistry.cpp \
mozSimpleContainer.cpp \
mozGeckoTerm.cpp \
nsTimer.cpp \
# nsTimer.cpp \
$(NULL)
# Libraries to be linked