Bug 1688004 - Build top layer items for XUL documents that don't have scrollframes. r=miko

This will allow the browser chrome to use `<dialog>` etc, see
bug 1685313.

Tweak the check to support scrolling="false" on reftests, so that we can
test this.

Differential Revision: https://phabricator.services.mozilla.com/D102623
This commit is contained in:
Emilio Cobos Álvarez
2021-01-22 14:44:17 +00:00
parent 3b26296c6a
commit 375ef05db5
6 changed files with 108 additions and 77 deletions

View File

@@ -2565,7 +2565,7 @@ void nsCSSFrameConstructor::SetUpDocElementContainingBlock(
isScrollable = presContext->HasPaginatedScrolling();
} else if (isXUL) {
isScrollable = false;
} else if (nsContentUtils::IsInChromeDocshell(aDocElement->OwnerDoc()) &&
} else if (aDocElement->OwnerDoc()->AllowXULXBL() &&
aDocElement->AsElement()->AttrValueIs(
kNameSpaceID_None, nsGkAtoms::scrolling, nsGkAtoms::_false,
eCaseMatters)) {