0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-03 03:10:07 -05:00

Fix allow_dark_preference_with_rfp.patch

This commit is contained in:
László Károlyi 2022-12-06 20:02:44 +01:00
parent fae5442e21
commit 8dcd24a45b
No known key found for this signature in database
GPG key ID: 2DCAF25E55735BFE

View file

@ -1,20 +1,22 @@
diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp
index ce2cbca..60fda48 100644 index f49f4ac..45c0e95 100644
--- a/dom/base/Document.cpp --- a/dom/base/Document.cpp
+++ b/dom/base/Document.cpp +++ b/dom/base/Document.cpp
@@ -17084,6 +17084,7 @@ void Document::RemoveToplevelLoadingDocument(Document* aDoc) { @@ -17828,7 +17828,8 @@ ColorScheme Document::DefaultColorScheme() const {
StylePrefersColorScheme Document::PrefersColorScheme( }
IgnoreRFP aIgnoreRFP) const {
if (aIgnoreRFP == IgnoreRFP::No && ColorScheme Document::PreferredColorScheme(IgnoreRFP aIgnoreRFP) const {
+ !StaticPrefs::privacy_override_rfp_for_color_scheme() && - if (ShouldResistFingerprinting() && aIgnoreRFP == IgnoreRFP::No) {
nsContentUtils::ShouldResistFingerprinting(this)) { + if (ShouldResistFingerprinting() && aIgnoreRFP == IgnoreRFP::No &&
return StylePrefersColorScheme::Light; + !StaticPrefs::privacy_override_rfp_for_color_scheme()) {
return ColorScheme::Light;
} }
diff --git a/modules/libref/init/StaticPrefList.yaml b/modules/libref/init/StaticPrefList.yaml
index b4b2dc7..e65d43f 100644 diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
index 7ec0341..c70b3af 100644
--- a/modules/libpref/init/StaticPrefList.yaml --- a/modules/libpref/init/StaticPrefList.yaml
+++ b/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml
@@ -9863,6 +9863,12 @@ @@ -12156,6 +12156,12 @@
value: false value: false
mirror: always mirror: always