Function
Cogweb_view_connect_web_process_terminated_restart_handler
Declaration [src]
gulong
cog_web_view_connect_web_process_terminated_restart_handler (
WebKitWebView* web_view,
unsigned max_tries,
unsigned try_window_ms
)
Description [src]
Handles unexpected web process termination, trying to restart the web process up to a maximum number of attempts during a retry window.
Once the web process has been terminated, a retry window timer will
be started with a duration of try_window_ms
milliseconds. During
this time, restarting the web process will be attempted up to a
maximum amount of attempts (max_tries
):
- If the maximum number of attempts is reached within the retry window time, an error page will be displayed.
- If the retry window timer expires without the web process being terminated again, the count of attempts done is reset to zero.
This function will connect its own callback to the WebKit.WebView::web-process-terminated signal. The identifier of the installed signal handler is returned, which allows to disconnect it if needed.
This function is not directly available to language bindings |