mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #1776 - Support detecting bool preferences in chrome stylesheets
This functionality was already added to Gecko for UA stylesheets allow the "dom.details_element.enabled" preference to work. I changed the condition to allow bool preferences to be used in chrome stylesheets as well.
This commit is contained in:
parent
2319d8be12
commit
d1a537b9cf
1 changed files with 1 additions and 1 deletions
|
|
@ -4667,7 +4667,7 @@ CSSParserImpl::ParseSupportsConditionInParens(bool& aConditionMet)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (AgentRulesEnabled() &&
|
||||
if ((AgentRulesEnabled() || ChromeRulesEnabled()) &&
|
||||
mToken.mType == eCSSToken_Function &&
|
||||
mToken.mIdent.LowerCaseEqualsLiteral("-moz-bool-pref")) {
|
||||
return ParseSupportsMozBoolPrefName(aConditionMet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue