зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8197c0c37c
Коммит
cbd1c370a8
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче