зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1630313 - Use BasePrincipal in ApplicationReputation.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D71070
This commit is contained in:
Родитель
996d12f63a
Коммит
dca41f9190
|
@ -1242,10 +1242,11 @@ nsresult PendingLookup::AddRedirects(nsIArray* aRedirects) {
|
|||
|
||||
nsCOMPtr<nsIPrincipal> principal;
|
||||
rv = redirectEntry->GetPrincipal(getter_AddRefs(principal));
|
||||
auto* basePrin = BasePrincipal::Cast(principal);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
rv = principal->GetURI(getter_AddRefs(uri));
|
||||
rv = basePrin->GetURI(getter_AddRefs(uri));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Add the spec to our list of local lookups. The most recent redirect is
|
||||
|
|
Загрузка…
Ссылка в новой задаче