summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2021-06-19 15:01:08 -0500
committerJeremy Andrews <athenian200@outlook.com>2021-06-19 15:01:08 -0500
commit4dac05e0e0cc4ffd9359541cbfa909b928ae56c7 (patch)
tree839a84c560a92f191b421a2582c3f3134c8dfe45
parentb9d8b3aa2dd3aa7c2687cdfd4ec6fdbffccddd80 (diff)
downloaduxp-4dac05e0e0cc4ffd9359541cbfa909b928ae56c7.tar.gz
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.
-rw-r--r--layout/style/nsCSSParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp
index 0f1b04a178..9866dd09e8 100644
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -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);