mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +00:00
Bug 437723. Make sure to look at the nested innermost URI when looking for the origin. r+sr=sicking
This commit is contained in:
parent
09d4442e30
commit
f61641d25e
@ -1044,7 +1044,9 @@ GetPrincipalDomainOrigin(nsIPrincipal* aPrincipal,
|
||||
if (!uri) {
|
||||
aPrincipal->GetURI(getter_AddRefs(uri));
|
||||
}
|
||||
NS_ENSURE_TRUE(uri, NS_ERROR_UNEXPECTED);
|
||||
|
||||
uri = NS_GetInnermostURI(uri);
|
||||
NS_ENSURE_TRUE(uri, NS_ERROR_UNEXPECTED);
|
||||
|
||||
nsCAutoString hostPort;
|
||||
|
Loading…
x
Reference in New Issue
Block a user