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

gk at torproject.org gk at torproject.org
Fri Sep 18 07:38:28 UTC 2015


commit 5e73e452d5fbf32cb4a38a09e2a79bc28f23afeb
Author: Arthur Edelstein <arthuredelstein at gmail.com>
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));



More information about the tbb-commits mailing list