Ensure that principals are written as Compound Objects using |WriteCompoundObject|, not using |WriteObject|
r=mstoltz, sr=brendan
This commit is contained in:
ben%netscape.com 2002-05-03 03:00:46 +00:00
Родитель ea7ba22d5e
Коммит 09cdc7f458
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -408,7 +408,7 @@ nsAggregatePrincipal::Write(nsIObjectOutputStream* aStream)
rv = NS_WriteOptionalObject(aStream, mCertificate, PR_TRUE);
if (NS_FAILED(rv)) return rv;
rv = NS_WriteOptionalObject(aStream, mCodebase, PR_TRUE);
rv = NS_WriteOptionalCompoundObject(aStream, mCodebase, NS_GET_IID(nsIPrincipal), PR_TRUE);
if (NS_FAILED(rv)) return rv;
return NS_OK;

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

@ -326,7 +326,7 @@ nsCodebasePrincipal::Write(nsIObjectOutputStream* aStream)
rv = nsBasePrincipal::Write(aStream);
if (NS_FAILED(rv)) return rv;
return aStream->WriteObject(mURI, PR_TRUE);
return aStream->WriteCompoundObject(mURI, NS_GET_IID(nsIURI), PR_TRUE);
}
/////////////////////////////////////////////