Bug 265088 - [GTK4] Ensure that clipboard read operations work synchronously
Summary: [GTK4] Ensure that clipboard read operations work synchronously
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Claudio Saavedra
URL:
Keywords:
Depends on:
Blocks: GTK4
  Show dependency treegraph
 
Reported: 2023-11-18 10:37 PST by Claudio Saavedra
Modified: 2023-11-18 11:03 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Saavedra 2023-11-18 10:37:19 PST
Often clipboard operations are triggered as a result of a button press event, which is handled with synchronous messages between web and UI process. GTK4 clipboard reads are asynchronous, and this can easily cause deadlocks when the UI process is both waiting for the press event to be handled by the UI process before returning to the main loop and the GTK4 clipboard is waiting for the GAsyncReadyCallback to read from its stream at the same time.
Comment 1 Claudio Saavedra 2023-11-18 10:45:23 PST
Pull request: https://github.com/WebKit/WebKit/pull/20709