summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNew Tobin Paradigm <mattatobin@no-reply.palemoon.org>2021-06-19 20:40:11 +0000
committerNew Tobin Paradigm <mattatobin@no-reply.palemoon.org>2021-06-19 20:40:11 +0000
commit2c626f604620140462d52d5865d4beb0a9d11ae3 (patch)
treec52a7546ed441242f782153fd8656424b6b89b5b
parenta970411caf9b1951708efb4987733c6a4581454b (diff)
parent4dac05e0e0cc4ffd9359541cbfa909b928ae56c7 (diff)
downloaduxp-2c626f604620140462d52d5865d4beb0a9d11ae3.tar.gz
Merge pull request 'Support detecting bool preferences in chrome stylesheets' (#1785) from athenian200/UXP:bool-chrome-stylesheets into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1785
-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);