Bug 232613 - [GTK] Run Javascript in a dedicated thread?
Summary: [GTK] Run Javascript in a dedicated thread?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 01:49 PDT by Milan Crha
Modified: 2021-11-02 01:49 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Crha 2021-11-02 01:49:27 PDT
Looking into backtraces provided in:
https://gitlab.gnome.org/GNOME/evolution/-/issues/1679#note_1299118

The WebKitWebProcess is busy in the JavaScript call. As it's executed on the main thread the whole process is blocked and any attempt to talk to it (over D-Bus) leads to time outs and the GUI is not updated as well.

Would it make sense to call the JavaScript code in a dedicated thread, thus the call can be eventually cancelled from the main process? I can understand the JavaScript code blocks the GUI repaint.