Bug 262779

Summary: [GTK] Display VBlank monitor stops when the monitor is off
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Carlos Garcia Campos <cgarcia>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2 Keywords: Gtk
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Carlos Garcia Campos 2023-10-06 05:03:35 PDT
When the monitor we are using to get the vblank signal is off or suspended, drmWaitVBlank fails with -EPERM. That's considered fatal error and we stop sending the signal to the web process, so that when the monitor is back we don't get any display update. This only happens in the few cases in which the view is not notified to be non-visible, and the vblank monitor keeps running. In those cases we can just handle the error and keep trying after sleeping for a while until it successes again.
Comment 1 Carlos Garcia Campos 2023-10-06 05:08:10 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18759
Comment 2 EWS 2023-10-06 06:40:45 PDT
Committed 268988@main (b727a1776a5f): <https://commits.webkit.org/268988@main>

Reviewed commits have been landed. Closing PR #18759 and removing active labels.