Bug 1630313 - Use BasePrincipal in ApplicationReputation.cpp r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D71070
This commit is contained in:
Sebastian Streich 2020-04-20 10:23:07 +00:00
Родитель 996d12f63a
Коммит dca41f9190
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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