зеркало из https://github.com/mozilla/pjs.git
[Chrome FastLoad]
Ensure that principals are written as Compound Objects using |WriteCompoundObject|, not using |WriteObject| r=mstoltz, sr=brendan
This commit is contained in:
Родитель
ea7ba22d5e
Коммит
09cdc7f458
|
@ -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);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче