Skip to content

feat: Capture webview process crashes - #47

Merged
timfish merged 6 commits into
masterfrom
tim/webview-crashes
Oct 19, 2026
Merged

timfish merged 6 commits into
masterfrom
tim/webview-crashes

Conversation

@timfish

@timfish timfish commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Webviews run in separate processes that the native crash handler does not cover, so a webview crash was invisible. With the new webview-crashes feature (on by default), the plugin listens for the WebView2 ProcessFailed event on Windows and the WebKitGTK web-process-terminated signal on Linux, then captures an event like 'webview' process exited with 'crashed' with the event.process: webview, tauri.webview and tauri.window tags, adds a breadcrumb, and ends the session as crashed for crash and out-of-memory exits, using the same reasons and levels as the Electron SDK. On macOS and iOS wry already owns the navigation delegate and Tauri only exposes on_web_content_process_terminate on the app builder, so users call the new web_content_process_terminated function from that hook. A new e2e test crashes the real webview on each OS (SIGKILL to WebKitWebProcess on Linux, Page.crash over the DevTools Protocol on Windows, SIGKILL to the WebContent process on macOS); it passes locally on macOS only, Android is not supported, and the feature raises the minimum tauri version to 2.12 because webview2-com must match the version that tauri uses.

@timfish
timfish force-pushed the tim/webview-crashes branch 2 times, most recently from 5ae0d07 to 4aa7b42 Compare October 19, 2026 13:28
@timfish
timfish force-pushed the tim/webview-crashes branch from 4aa7b42 to 8c5cd94 Compare October 19, 2026 13:40
@timfish
timfish force-pushed the tim/webview-crashes branch from 8c5cd94 to 47610a3 Compare October 19, 2026 13:40
@timfish
timfish merged commit f3c4ae5 into master Oct 19, 2026
8 checks passed
@timfish
timfish deleted the tim/webview-crashes branch November 4, 2026 12:41
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.

1 participant