зеркало из 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");
|
||||
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче