[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-38.3.0esr-5.0-2] fixup! Bug #15502. Isolate blob, mediasource & mediastream URLs to first party



commit 5e73e452d5fbf32cb4a38a09e2a79bc28f23afeb
Author: Arthur Edelstein <arthuredelstein@xxxxxxxxx>
Date:   Thu Sep 17 15:13:52 2015 -0700

    fixup! Bug #15502. Isolate blob, mediasource & mediastream URLs to first party
---
 dom/base/ThirdPartyUtil.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dom/base/ThirdPartyUtil.cpp b/dom/base/ThirdPartyUtil.cpp
index 6f0a358..5cffc71 100644
--- a/dom/base/ThirdPartyUtil.cpp
+++ b/dom/base/ThirdPartyUtil.cpp
@@ -41,7 +41,8 @@ nsresult
 ThirdPartyUtil::GetFirstPartyHost(nsIChannel* aChannel, nsIDocument* aDocument, nsACString& aResult)
 {
   if (!gThirdPartyUtilService) {
-    CallGetService(THIRDPARTYUTIL_CONTRACTID, &gThirdPartyUtilService);
+    nsresult rv = CallGetService(THIRDPARTYUTIL_CONTRACTID, &gThirdPartyUtilService);
+    NS_ENSURE_SUCCESS(rv, rv);
   }
   nsCOMPtr<nsIURI> isolationURI;
   nsresult rv = gThirdPartyUtilService->GetFirstPartyIsolationURI(aChannel, aDocument, getter_AddRefs(isolationURI));

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits