зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3a25af8174
Коммит
2ed0dc6ea9
|
@ -611,15 +611,13 @@ void PrintWinCodebase(T* win) {
|
||||||
printf("Window doesn't have principals.\n");
|
printf("Window doesn't have principals.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (prin->IsSystemPrincipal()) {
|
||||||
nsCOMPtr<nsIURI> uri;
|
printf("No URI, it's the system principal.\n");
|
||||||
prin->GetURI(getter_AddRefs(uri));
|
|
||||||
if (!uri) {
|
|
||||||
printf("No URI, maybe the system principal.\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
nsCString spec;
|
||||||
printf("%s\n", uri->GetSpecOrDefault().get());
|
prin->GetAsciiSpec(spec);
|
||||||
|
printf("%s\n", spec.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintWinCodebaseInner(nsGlobalWindowInner* aWin) {
|
void PrintWinCodebaseInner(nsGlobalWindowInner* aWin) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче