Repository navigation
Fix(macos/ios): Add handler for web content process termination (fix #14371) #14523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
FabianLars
merged 31 commits into
tauri-apps:dev
from
JeffTsang:fix/web-content-process-termination
Apr 14, 2026
Merged
Changes from 8 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
82efc67
Add handler for web content process termination on macOS and iOS
JeffTsang f39aeb6
Remove redundant closure
JeffTsang 2954c83
Add documentation
JeffTsang 04c64dc
Update .changes
JeffTsang c848d4b
Merge branch 'dev' into fix/web-content-process-termination
JeffTsang 13bb380
Update .changes
JeffTsang 160d7e2
Merge branch 'dev' into fix/web-content-process-termination
JeffTsang 12d4894
Merge branch 'dev' into fix/web-content-process-termination
JeffTsang fb41639
Add default handler for web content process termination on iOS
JeffTsang 05daf95
Merge branch 'dev' into fix/web-content-process-termination
JeffTsang 9d087bd
Use navigate instead of reload when recovering from web content proce…
JeffTsang 477e710
Merge branch 'fix/web-content-process-termination' of https://github.…
JeffTsang b296654
Merge branch 'dev' into fix/web-content-process-termination
JeffTsang 4988d6e
Fix handler in webview window
JeffTsang c5a9f9d
Reload by default on iOS
JeffTsang 3791c6c
Update .changes
JeffTsang 1bda592
Fix code format
JeffTsang 3e7e738
Add default handler to macOS
JeffTsang f184c59
Move function to tauri::Builder
JeffTsang 578b7b3
Add comment
JeffTsang 31aef4d
Allow fallback handler
JeffTsang 69d4483
Add os check
JeffTsang f28ede5
Add os checks to use declarations
JeffTsang cfa6a38
Fix tests
JeffTsang e491659
Update comment with platform support
JeffTsang 129f0fb
Simplify default handler logic
JeffTsang 342e25b
Merge branch 'fix/web-content-process-termination' of https://github.…
JeffTsang 23250c0
Fix default handler
JeffTsang b6fb7ec
Remove extra clone
JeffTsang 7160b46
Fix default handler
JeffTsang e8991c2
Add logging
JeffTsang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "tauri": "patch:bug" | ||
| "tauri-runtime": "patch:bug" | ||
| "tauri-runtime-wry": "patch:bug" | ||
| --- | ||
|
|
||
| Add handler for web content process termination on macOS and iOS. |
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
webViewWebContentProcessDidTerminateis the name of the underlying WebKit API. I see thaton_web_content_process_terminateis the naming used in WRY, but ideally this should follow the same naming as WebKit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I was naming the function for wry, I opted for the shorter name because it meant the same thing. I would have kept the original name if there was a webViewWebContentProcessWillTerminate event.