Bug 1620684 - Refactor nsJSEnv r=ckerschb

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sebastian Streich 2020-03-10 14:21:03 +00:00
Родитель 3a25af8174
Коммит 2ed0dc6ea9
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -611,15 +611,13 @@ void PrintWinCodebase(T* win) {
printf("Window doesn't have principals.\n");
return;
}
nsCOMPtr<nsIURI> uri;
prin->GetURI(getter_AddRefs(uri));
if (!uri) {
printf("No URI, maybe the system principal.\n");
if (prin->IsSystemPrincipal()) {
printf("No URI, it's the system principal.\n");
return;
}
printf("%s\n", uri->GetSpecOrDefault().get());
nsCString spec;
prin->GetAsciiSpec(spec);
printf("%s\n", spec.get());
}
void PrintWinCodebaseInner(nsGlobalWindowInner* aWin) {