Bug 238424 - [GTK4] Selected background color does not appear in reddit comments
Summary: [GTK4] Selected background color does not appear in reddit comments
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: GTK4
  Show dependency treegraph
 
Reported: 2022-03-27 12:28 PDT by Michael Catanzaro
Modified: 2023-09-25 08:33 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2022-03-27 12:28:17 PDT
Sadly, to reproduce this bug, you'll need a reddit account, because I have not attempted to create a minimal reproducer for this. Try to post a comment in any subreddit on reddit.com. When editing your comment, select some text. The selected text should be indicated by a blue background, but instead no selection is visible. The text really does get selected, so this is only cosmetic.

This worked fine with GTK 3.
Comment 1 Alice Mikhaylenko 2022-11-23 19:31:46 PST
I can't reproduce this. Was this only reproducible with threaded rendering?
Comment 2 Michael Catanzaro 2022-11-24 06:48:41 PST
Nope, it's still 100% reproducible for me.
Comment 3 Alice Mikhaylenko 2022-11-24 09:42:44 PST
Then I need more info - what specific page it is given they all have significantly different styles, old vs new reddit etc.
Comment 4 Michael Catanzaro 2022-11-24 10:08:28 PST
Normal/new reddit. The bug occurs on every page in every subreddit, but only in the comment editor, when posting or editing a comment.

Actually, testing it now, I see now that the background color displays properly if I wait for a few seconds after selecting the text. It also displays properly if I press Ctrl+A. So this looks like a performance or rendering issue, similar to the problem with the emoji picker on Element, rather than a theme issue.
Comment 5 Alice Mikhaylenko 2022-11-24 10:40:38 PST
Ah, so probably redraw then, not performance. And since I can't reliably reproduce it, it worked here too. Great, great. :(
Comment 6 Michael Catanzaro 2023-09-25 08:33:59 PDT
This was mysteriously fixed sometime in the past year.