Skip to content

Commit 423f7e4

Browse files
leaanthonyclaude
andauthored
fix(v2): prevent WebView crash on macOS 26 during rapid UI updates (#4806)
Disable suppressesIncrementalRendering on macOS 26+ (Tahoe) to prevent WebView crashes when the frontend performs frequent UI updates. Fixes #4592 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4dbde81 commit 423f7e4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

v2/internal/frontend/desktop/darwin/WailsContext.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,13 @@ - (void) CreateWindow:(int)width :(int)height :(bool)frameless :(bool)resizable
215215

216216
// Webview stuff here!
217217
WKWebViewConfiguration *config = [WKWebViewConfiguration new];
218-
config.suppressesIncrementalRendering = true;
218+
// Disable suppressesIncrementalRendering on macOS 26+ to prevent WebView crashes
219+
// during rapid UI updates. See: https://github.com/wailsapp/wails/issues/4592
220+
if (@available(macOS 26.0, *)) {
221+
config.suppressesIncrementalRendering = false;
222+
} else {
223+
config.suppressesIncrementalRendering = true;
224+
}
219225
config.applicationNameForUserAgent = @"wails.io";
220226
[config setURLSchemeHandler:self forURLScheme:@"wails"];
221227

website/src/pages/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Fixed
1818

19+
- Fixed WebView crash on macOS 26 (Tahoe) during rapid UI updates [#4592](https://github.com/wailsapp/wails/issues/4592) by @leaanthony
1920
- Updated menu reference docs with complete imports by @agilgur5 in [#4727](https://github.com/wailsapp/wails/pull/4727) and [#4742](https://github.com/wailsapp/wails/pull/4742)
2021
- Fixed menu reference syntax by @agilgur5 in [#4726](https://github.com/wailsapp/wails/pull/4726)
2122
- Fixed indentation in Application Development guide by @agilgur5 in [#4730](https://github.com/wailsapp/wails/pull/4730)

0 commit comments

Comments
 (0)