mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 777582 - Make nsPrincipal deserialize members in the order that they are serialized. r=mounir
This commit is contained in:
parent
461a44b5d8
commit
35a4609900
@ -1159,6 +1159,12 @@ nsPrincipal::Read(nsIObjectInputStream* aStream)
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIURI> domain;
|
||||
rv = NS_ReadOptionalObject(aStream, true, getter_AddRefs(domain));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
PRUint32 appId;
|
||||
rv = aStream->Read32(&appId);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
@ -1170,12 +1176,6 @@ nsPrincipal::Read(nsIObjectInputStream* aStream)
|
||||
rv = Init(fingerprint, subjectName, prettyName, cert, codebase, appId, inMozBrowser);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIURI> domain;
|
||||
rv = NS_ReadOptionalObject(aStream, true, getter_AddRefs(domain));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
SetDomain(domain);
|
||||
|
||||
rv = aStream->ReadBoolean(&mTrusted);
|
||||
|
Loading…
Reference in New Issue
Block a user