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.
Pull request: https://github.com/WebKit/WebKit/pull/20709
Pull request: https://github.com/WebKit/WebKit/pull/30490
Committed 280852@main (5db7057e3b2f): <https://commits.webkit.org/280852@main> Reviewed commits have been landed. Closing PR #30490 and removing active labels.