Bug 496990 - Web Browser plasmoid and KHelpCenter's QtWebEngine does not adhere to the Colours KCM's preferences.
Summary: Web Browser plasmoid and KHelpCenter's QtWebEngine does not adhere to the Col...
Status: RESOLVED UPSTREAM
Alias: None
Product: kdeplasma-addons
Classification: Unmaintained
Component: Web Browser (other bugs)
Version First Reported In: 6.2.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-03 15:25 UTC by Roke Julian Lockhart Beedell
Modified: 2024-12-03 16:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Reproduction screencast (for `#c0`). (1.12 MB, video/mp4)
2024-12-03 15:25 UTC, Roke Julian Lockhart Beedell
Details
Screenshot of the Web Browser plasmoid at an error page. (110.41 KB, image/png)
2024-12-03 15:28 UTC, Roke Julian Lockhart Beedell
Details
Screenshot of KHelpCenter. (50.30 KB, image/png)
2024-12-03 15:30 UTC, Roke Julian Lockhart Beedell
Details
Screenshot of the Web Browser plasmoid at `about:blank`. (5.23 KB, image/png)
2024-12-03 15:31 UTC, Roke Julian Lockhart Beedell
Details
Screenshot of Firefox at `about:blank`. (35.30 KB, image/png)
2024-12-03 16:15 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2024-12-03 15:25:25 UTC
Created attachment 176320 [details]
Reproduction screencast (for `#c0`).

SUMMARY
-------

Currently, the Web Browser plasmoid and `khelpcenter` render `about:blank` and status code / error pages with a `#FFFFFF` background. At night, this can be startling if `plasma-apply-colorscheme` is set to `BreezeDark`.

[STEPS TO REPRODUCE][7]
-----------------------

- 1. Add the Web Browser plasmoid to `plasmashell`.
  2. - Navigate to `about:blank`.
     - Navigate to `localhost:0/`.
- Invoke `khelpcenter`.

[OBSERVED RESULT][3]
--------------------

The `HTML`'s `background-color` appears to be hard-coded as either of the undermentioned:

- ~~~CSS
  HTML { background-color: #FFFFFF; }
  ~~~

- ~~~CSS
  HTML { color-scheme: light; }
  ~~~

I doubt that `@media (prefers-color-scheme:` is involved.

[EXPECTED RESULT][4]
--------------------

As [Firefox permits using its `browser.display.use_system_colors` preference][1], `about:blank` in `khelpcenter` the Web Browser plasmoid should render usiung the system `.colors` scheme's background-attribute's colour value.

To *my* knowledge, this can be remdiated by *unsetting* `background-color`, and *setting* the undermentioned:

~~~CSS
HTML { color-scheme: light dark !important; }
~~~

However, this is merely a hypothesis.

[SOFTWARE/OS VERSIONS][2]
-------------------------

1. ~~~sh
   #!/usr/bin/env -S bash
   kinfo
   ~~~

2. > ~~~YAML
   > Operating System       : Fedora Linux 41
   > KDE Plasma Version     : 6.2.4
   > KDE Frameworks Version : 6.8.0
   > Qt Version             : 6.8.0
   > Kernel Version         : 6.11.10-300.fc41.x86_64 (64-bit)
   > Graphics Platform      : Wayland
   > Processors             : 12 × AMD Ryzen 5 7600X 6-Core Processor
   > Memory                 : 30.4 GiB of RAM
   > Graphics Processor     : AMD Radeon RX 5700
   > Manufacturer           : ASRock
   > Product Name           : X670E Taichi
   > ~~~

ADDITIONAL INFORMATION
----------------------

Nominally filed here, because it becomes increasingly difficult to file at [QtWebEngine][5] or [Chromium][6] if they don't believe that you've consulted downstream first.

[1]: https://superuser.com/revisions/1480115/2
[2]: https://stackoverflow.com/revisions/76446386/3
[3]: https://imgur.com/a/qgupNfQ
[4]: https://imgur.com/a/0LlkZSM
[5]: https://bugreports.qt.io/secure/CreateIssue!default.jspa
[6]: https://issues.chromium.org/issues/wizard
[7]: https://youtu.be/MClyv7Gx5r4
Comment 1 Roke Julian Lockhart Beedell 2024-12-03 15:28:05 UTC
Created attachment 176321 [details]
Screenshot of the Web Browser plasmoid at an error page.
Comment 2 Roke Julian Lockhart Beedell 2024-12-03 15:30:05 UTC
Created attachment 176322 [details]
Screenshot of KHelpCenter.
Comment 3 Roke Julian Lockhart Beedell 2024-12-03 15:31:05 UTC
Created attachment 176323 [details]
Screenshot of the Web Browser plasmoid at `about:blank`.
Comment 4 Roke Julian Lockhart Beedell 2024-12-03 15:54:30 UTC
(In reply to Roke Julian Lockhart Beedell from comment #0)  
Reported to https://bugreports.qt.io/browse/QTBUG-131845.
Comment 5 Roke Julian Lockhart Beedell 2024-12-03 16:15:22 UTC
Created attachment 176325 [details]
Screenshot of Firefox at `about:blank`.