(GeForce RTX 4070) Flickering issue when using the DMABuf renderer in WebKitGTK

When using the DMABuf renderer in WebKitGTK, web pages flicker severely. A WebKit developer told me this is an Nvidia driver issue, so I am reporting it here.

To reproduce:
Using a computer with Nvidia graphics (RTX 4070 for example) without a second GPU,

  1. Install Gnome Web from Web | Flathub
  2. Browse reddit.com
  3. Web page displays severe flickering issues
  4. Using Flatseal, set the environment variable WEBKIT_DISABLE_DMABUF_RENDERER=1 of Gnome Web
  5. This disables the DMABuf renderer and therefore the flickering stops

Hardware: Intel i7-13700F/ Nvidia GeForce RTX 4070
Software: Gnome Web 45.1 from Flathub, running on Fedora Silverblue 39 with Nvidia driver version 535

Original bug: https://bugs.webkit.org/show_bug.cgi?id=263779
Please find more information and a screen recording there.