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

gk at torproject.org gk at torproject.org
Fri Sep 18 07:37:09 UTC 2015


commit e9de860b1e090eb56ce324f0baebc587a7ada374
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