Bug 1597435 - part 1: Update the comment obsoleted by bug 1616353. r=farre

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tetsuharu Ohzeki 2020-04-15 13:42:27 +00:00
Родитель 0b6d9349df
Коммит 93d8a8a0c8
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -1750,7 +1750,8 @@ void nsGlobalWindowOuter::SetInitialPrincipalToSubject(
// We should never create windows with an expanded principal.
// If we have a system principal, make sure we're not using it for a content
// docshell.
// NOTE: Please keep this logic in sync with AppWindow::Initialize().
// NOTE: Please keep this logic in sync with
// nsAppShellService::JustCreateTopWindow
if (nsContentUtils::IsExpandedPrincipal(newWindowPrincipal) ||
(newWindowPrincipal->IsSystemPrincipal() &&
GetDocShell()->ItemType() != nsIDocShellTreeItem::typeChrome)) {