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
This commit is contained in:
Dave Townsend 2019-10-24 09:19:07 +00:00
Родитель 8197c0c37c
Коммит cbd1c370a8
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -214,7 +214,9 @@ ThirdPartyUtil::IsThirdPartyWindow(mozIDOMWindowProxy* aWindow, nsIURI* aURI,
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
// Determine whether aURI is foreign with respect to the current principal. // Determine whether aURI is foreign with respect to the current principal.
rv = prin->IsThirdPartyURI(aURI, &result); rv = prin->IsThirdPartyURI(aURI, &result);
NS_ENSURE_SUCCESS(rv, rv); if (NS_FAILED(rv)) {
return rv;
}
if (result) { if (result) {
*aResult = true; *aResult = true;