mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 15:02:11 +00:00
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:
parent
e8f20aa073
commit
96780fe4bb
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user