[Webkit-unassigned] [Bug 246330] [GTK][WPE] Add API to check for web process responsiveness

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 14 06:34:47 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=246330

--- Comment #6 from Miguel Gomez <magomez at igalia.com> ---
The good part of adding the new API is that the change is simple and it's up to the application whether it wants to perform the ping or not.

On the other hand, the heartbeat idea makes things simpler for the app as it doesn't have to do anything. On a fast look, I think this could be implemented for GTK and WPE by adding a timer to the glib WebKitWebView that calls WebProcessProxy::isResponsive every some seconds. That should be fairly simple. We could even add a setting for enabling and disabling this timer if we want to. 

Regarding visibility, I'm not sure whether the visibility flag is accessible from WebKitWebView, but they can be taken into consideration to start/stop the timer as needed (not sure whether the visibility flags are accessible from WebKitWebView, maybe we need to work with WebKitWebViewGTK and WebKitWebViewWPE).

I initially thought of the new API to fix this, but if the heartbeat is not hard to implement I think it would be a better approach.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221014/af3ec84b/attachment-0001.htm>


More information about the webkit-unassigned mailing list