Skip to content

Conversation

@hdijkema
Copy link
Contributor

Add GTK event handling for webview on Linux when a call is made to javascript.

Reason: If no Gtk Events are processed during javascript calls, the application can lock up. A very simple use case to make the GtkWebView lock up:

 char response[64];
 webui_script(win, "alert('hi');return 4 + 6;", 0, response, 64);

Add GTK event handling for webview on Linux when a call is made to javascript. 

Reason: If no Gtk Events are processed during javascript calls, 
the application can lock up.  A very simple use case to make 
the GtkWebView lock up:

```c
 char response[64];
 webui_script(win, "alert('hi');return 4 + 6;", 0, response, 64);
```
@AlbertShown AlbertShown merged commit 6fc1b10 into webui-dev:main Oct 27, 2025
26 checks passed
@hdijkema hdijkema deleted the gtk-eventloop-for-script-client branch October 29, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants