Bug 1820280 - Be consistent for which URIs we expose chrome rules. r=dshin

Differential Revision: https://phabricator.services.mozilla.com/D171640
This commit is contained in:
Emilio Cobos Álvarez
2023-03-07 20:22:23 +00:00
parent 8b0b0c7e73
commit daefa22bbe
9 changed files with 19 additions and 17 deletions

View File

@@ -2716,7 +2716,7 @@ void nsCSSFrameConstructor::SetUpDocElementContainingBlock(
if (isXUL) {
return false;
}
if (aDocElement->OwnerDoc()->IsDocumentURISchemeChrome() &&
if (aDocElement->OwnerDoc()->ChromeRulesEnabled() &&
aDocElement->AsElement()->AttrValueIs(
kNameSpaceID_None, nsGkAtoms::scrolling, nsGkAtoms::_false,
eCaseMatters)) {