Bug 1629763 - ContentPrincipal::GetBaseDomain returns a void-string for resource: URIs, r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D70804

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2020-04-14 16:26:06 +00:00
parent e8f20aa073
commit 96780fe4bb

View File

@ -330,7 +330,7 @@ nsresult PrincipalToPrincipalInfo(nsIPrincipal* aPrincipal,
baseDomain.SetIsVoid(true);
} else {
if (NS_FAILED(aPrincipal->GetBaseDomain(baseDomain))) {
NS_WARNING("Failed to get base domain!");
// No warning here. Some principal URLs do not have a base-domain.
baseDomain.SetIsVoid(true);
}
}