Bug 1295103 - Check OriginAttributes::PopulateFromSuffix return value in SerializedLoadContext.. r=allstars
authorKan-Ru Chen <kanru@kanru.info>
Mon, 15 Aug 2016 18:15:23 +0800
changeset 341648 83fe5575f4bb65a72caae9b9b8e2126f5d7453af
parent 341647 c01a9c030fd094e73d45bf88639fc320127b9a3e
child 341649 1e0a07384496193c8b40ab0d087d8e600d69c157
push id5
push userfmarier@mozilla.com
push dateFri, 26 Aug 2016 00:45:46 +0000
reviewersallstars
bugs1295103
milestone51.0a1
Bug 1295103 - Check OriginAttributes::PopulateFromSuffix return value in SerializedLoadContext.. r=allstars MozReview-Commit-ID: 8zIApW9e5q0
docshell/base/SerializedLoadContext.h
--- a/docshell/base/SerializedLoadContext.h
+++ b/docshell/base/SerializedLoadContext.h
@@ -82,17 +82,15 @@ 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->mUseRemoteTabs) ||
         !ReadParam(aMsg, aIter, &suffix)) {
       return false;
     }
-    aResult->mOriginAttributes.PopulateFromSuffix(suffix);
-
-    return true;
+    return aResult->mOriginAttributes.PopulateFromSuffix(suffix);
   }
 };
 
 } // namespace IPC
 
 #endif // SerializedLoadContext_h