зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0b6d9349df
Коммит
93d8a8a0c8
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче