GNU bug report logs - #52475
[Question] About CSS prefers-color-scheme render in icecat

Previous Next

Package: gnuzilla;

Reported by: morisum <morisum <at> protonmail.com>

Date: Tue, 14 Dec 2021 02:00:02 UTC

Severity: normal

Tags: notabug

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52475 in the body.
You can then email your comments to 52475 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnuzilla <at> gnu.org:
bug#52475; Package gnuzilla. (Tue, 14 Dec 2021 02:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to morisum <morisum <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnuzilla <at> gnu.org. (Tue, 14 Dec 2021 02:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: morisum <morisum <at> protonmail.com>
To: "bug-gnuzilla <at> gnu.org" <bug-gnuzilla <at> gnu.org>
Subject: [Question] About CSS prefers-color-scheme render in icecat
Date: Tue, 14 Dec 2021 00:44:26 +0000
[Message part 1 (text/plain, inline)]
Hi all,

I tried to use icecat with dark mode; however, the website page won't automatically change to dark mode as expected. To be more specific the "prefers-color-scheme:dark" in CSS (https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme). I tried multiple versions on multiple distros to recreate test this; however, none of it works.

Here is a list of all the test I did:

guix (icecat 78.10.0-guix0-preview1)

guix (icecat 91.4.0-guix0-preview1)

parabola (78.10.0_pre2-1)

arch (91.40 compiled from source)

arch (78.10 compiled from aur)

ubuntu20.04 (install from https://gnu.freemirror.org/gnu/gnuzilla/60.7.0/)

I tried to use the system dark mode settings (for example, in ubuntu), or the adwaita-dark theme, as well as to config the gtk3 directly under ~/.config/gtk-3.0/settings.ini with gtk-application-prefer-dark-theme=1 or gtk-application-prefer-dark-theme=true. I also tried to set ui.systemUsesDarkTheme=1 and other settings in the about:config. But none of those behave as expected.

All the distros are freshly installed; you can use the official qemu image from arch (https://gitlab.archlinux.org/archlinux/arch-boxes/-/jobs/41421/artifacts/file/output/Arch-Linux-x86_64-basic-20211212.41421.qcow2) or guix (https://ftp.gnu.org/gnu/guix/guix-system-vm-image-1.3.0.x86_64-linux.qcow2) to recreate this situation.

I think this might be a missing feature? Can someone check what the problem is? Would you please let me know if there is anything else I need to provide?
Thanks in advance!

morisum
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnuzilla <at> gnu.org:
bug#52475; Package gnuzilla. (Wed, 15 Dec 2021 07:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 52475 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: morisum <morisum <at> protonmail.com>, 52475 <at> debbugs.gnu.org
Subject: Re: bug#52475: [Question] About CSS prefers-color-scheme render in
 icecat
Date: Wed, 15 Dec 2021 02:01:23 -0500
tags 52475 notabug
close 52475
thanks

Hi,

morisum via bug-gnuzilla via GNUzilla bug reports <bug-gnuzilla <at> gnu.org>
writes:

> I tried to use icecat with dark mode; however, the website page won't
> automatically change to dark mode as expected. To be more specific the
> "prefers-color-scheme:dark" in CSS
> (https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme).

It doesn't work because in IceCat the "privacy.resistFingerprinting"
option in <about:config> is set to "true" by default.  If you set it to
"false", scripts will then be able to determine your preferred color
scheme, local time zone, and several other pieces of information.

It would be nice to allow finer-grained control over which pieces of
information to allow scripts to see.  Mozilla opted for a single boolean
switch.  I would welcome patches to improve this situation.

     Regards,
       Mark

-- 
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>.




Added tag(s) notabug. Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Wed, 15 Dec 2021 07:03:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 52475 <at> debbugs.gnu.org and morisum <morisum <at> protonmail.com> Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Wed, 15 Dec 2021 07:03:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 12 Jan 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.