Repository navigation
feat: Capture webview process crashes - #47
Merged
Merged
Conversation
timfish
force-pushed
the
tim/webview-crashes
branch
2 times, most recently
from
October 19, 2026 13:28
5ae0d07 to
4aa7b42
Compare
timfish
force-pushed
the
tim/webview-crashes
branch
from
October 19, 2026 13:40
4aa7b42 to
8c5cd94
Compare
timfish
force-pushed
the
tim/webview-crashes
branch
from
October 19, 2026 13:40
8c5cd94 to
47610a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Webviews run in separate processes that the native crash handler does not cover, so a webview crash was invisible. With the new
webview-crashesfeature (on by default), the plugin listens for the WebView2ProcessFailedevent on Windows and the WebKitGTKweb-process-terminatedsignal on Linux, then captures an event like'webview' process exited with 'crashed'with theevent.process: webview,tauri.webviewandtauri.windowtags, 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 exposeson_web_content_process_terminateon the app builder, so users call the newweb_content_process_terminatedfunction from that hook. A new e2e test crashes the real webview on each OS (SIGKILL toWebKitWebProcesson Linux,Page.crashover 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 minimumtauriversion to 2.12 becausewebview2-commust match the version thattauriuses.