From cbd1c370a878f1aa4916b5765a91609cab705ff1 Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Thu, 24 Oct 2019 09:19:07 +0000 Subject: [PATCH] Bug 1590889: Stop warning on common failures in ThirdPartyUtil.cpp r=ckerschb Differential Revision: https://phabricator.services.mozilla.com/D50365 --HG-- extra : moz-landing-system : lando --- dom/base/ThirdPartyUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/base/ThirdPartyUtil.cpp b/dom/base/ThirdPartyUtil.cpp index e93723a2e374..824e9fbaaeb5 100644 --- a/dom/base/ThirdPartyUtil.cpp +++ b/dom/base/ThirdPartyUtil.cpp @@ -214,7 +214,9 @@ ThirdPartyUtil::IsThirdPartyWindow(mozIDOMWindowProxy* aWindow, nsIURI* aURI, NS_ENSURE_SUCCESS(rv, rv); // Determine whether aURI is foreign with respect to the current principal. rv = prin->IsThirdPartyURI(aURI, &result); - NS_ENSURE_SUCCESS(rv, rv); + if (NS_FAILED(rv)) { + return rv; + } if (result) { *aResult = true;