Skip to content

web-view: fix reloading crashed pages

Michael Catanzaro requested to merge mcatanzaro/#1447 into master

When the web process crashes, we generate an error page that reloads the view's current URI when the reload button is pressed. Unfortunately, since WebKit r268097, the current URI is now an empty string at the time of crash because the web process termination signal is dispatched asynchronously after WebKit has already updated the view to contain an empty page. This means we have to manually keep track of the previous value of the URI. Arguably, this is a bug in WebKit, but it seems tough to fix there and we need a workaround for now.

Note that the web process termination signal is currently only being sent when running under flatpak. Outside flatpak, the signal is not sent at all. That is a separate issue (WebKit#221489) that we will not fix here.

Fixes #1447 (closed)

Merge request reports