Bug 1459655 Check for error when serializing the LoadInfo triggering principal. r=baku
authorBen Kelly <ben@wanderview.com>
Thu, 10 May 2018 08:18:05 -0700
changeset 417755 0e0e6097f282da9d82bc97960931922cfeb38690
parent 417754 3e7ffd532e0ac7d7fc52a52f80a2e1b839a7f915
child 417756 70754a946fde161c04f86df1b67e3913c8ec590a
push id33979
push userdluca@mozilla.com
push dateThu, 10 May 2018 21:59:38 +0000
treeherdermozilla-central@aabfe960ab59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1459655
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1459655 Check for error when serializing the LoadInfo triggering principal. r=baku
ipc/glue/BackgroundUtils.cpp
--- a/ipc/glue/BackgroundUtils.cpp
+++ b/ipc/glue/BackgroundUtils.cpp
@@ -310,16 +310,17 @@ LoadInfoToLoadInfoArgs(nsILoadInfo *aLoa
                                   &loadingPrincipalInfoTemp);
     NS_ENSURE_SUCCESS(rv, rv);
     loadingPrincipalInfo = loadingPrincipalInfoTemp;
   }
 
   PrincipalInfo triggeringPrincipalInfo;
   rv = PrincipalToPrincipalInfo(aLoadInfo->TriggeringPrincipal(),
                                 &triggeringPrincipalInfo);
+  NS_ENSURE_SUCCESS(rv, rv);
 
   OptionalPrincipalInfo principalToInheritInfo = mozilla::void_t();
   if (aLoadInfo->PrincipalToInherit()) {
     PrincipalInfo principalToInheritInfoTemp;
     rv = PrincipalToPrincipalInfo(aLoadInfo->PrincipalToInherit(),
                                   &principalToInheritInfoTemp);
     NS_ENSURE_SUCCESS(rv, rv);
     principalToInheritInfo = principalToInheritInfoTemp;