Bug 722850 - Part 1: Add missing privacy-bit-valid serialization for load contexts. r=jduell

This commit is contained in:
Josh Matthews 2012-11-16 12:32:31 +00:00
parent 920299add9
commit dd2037ddc8

View File

@ -67,6 +67,7 @@ struct ParamTraits<SerializedLoadContext>
{
WriteParam(aMsg, aParam.mIsNotNull);
WriteParam(aMsg, aParam.mIsContent);
WriteParam(aMsg, aParam.mIsPrivateBitValid);
WriteParam(aMsg, aParam.mUsePrivateBrowsing);
WriteParam(aMsg, aParam.mAppId);
WriteParam(aMsg, aParam.mIsInBrowserElement);
@ -76,6 +77,7 @@ struct ParamTraits<SerializedLoadContext>
{
if (!ReadParam(aMsg, aIter, &aResult->mIsNotNull) ||
!ReadParam(aMsg, aIter, &aResult->mIsContent) ||
!ReadParam(aMsg, aIter, &aResult->mIsPrivateBitValid) ||
!ReadParam(aMsg, aIter, &aResult->mUsePrivateBrowsing) ||
!ReadParam(aMsg, aIter, &aResult->mAppId) ||
!ReadParam(aMsg, aIter, &aResult->mIsInBrowserElement)) {