Repository navigation
Sync upstream dev and fix macOS observer lifetime and borderless shadows - #3
Merged
Merged
Conversation
…enumeration order (tauri-apps#1397)
…auri-apps#1411) * fix(macos): preserve maximizable state without a native zoom button * fix(macos): preserve conditional zoom button initialization * docs(changelog): mention maximizable state after decoration changes
* refactor(macos): migrate `WindowDelegate` to `define_class!` * migrate msg_send * migrate `TaoWindow` * clippy * fmt * migrate sendEvent * clean up * progress bar * app * AppDelegate * clean up * `as_super` is different from `super(self)` * remove `CreationError` resolve todo * `as_super` is different from `super(self)` mirror cffe16b * unused import
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.
Merge tauri-apps/tao dev through 2f60c2d, preserve the fork's external macOS pump and dragging behavior, and fix two reproduced macOS defects. The macOS 26 blank-page report itself remains unconfirmed; this PR does not claim to resolve it.
Upstream synchronization
Reproduced lifecycle panic and loading investigation
Commit 841ed17 owns and removes/releases CF observers with EventLoop and gives each observer balanced weak context ownership. Previously the observers survived EventLoop/PanicInfo destruction. Continuing the embedding host's NSRunLoop reproduced both exact panic messages in github/copilot-cli#5398 (missing panic info and the secondary Option::unwrap); the fixture passes after the fix.
Added a localhost HTTP adaptation of the issue reproduction: initial launch before window creation, two WKWebViews, 50ms external pump cadence, recurring fetches, JS evaluation, IPC, synthetic keyboard delivery, window destruction, LoopDestroyed and host run-loop progress after dropping Tao. Navigation and JS/IPC are asserted before posting input. Poll and Wait both report roots=2, ticks=26, ipc=2, js=2, destroyed=2, shutdown=1.
The merged baseline already loaded pages and processed subsequent HTTP requests without interaction on this host. Investigated repeated NSApplication.run calls, redraw/before-wait stop conditions and the existing skip-one-idle-boundary allowance; left scheduling unchanged because starvation did not reproduce. No run_return substitution or sleeps were added to Tao. The fixture's 50ms delay models the host timer.
Borderless shadows
Commit 002db4a explicitly applies setHasShadow for both true and false. AppKit defaults to false for a borderless window without other style bits. The baseline failed the reported combination; the fix passes all 16 combinations of decorations/resizable/minimizable/shadow plus runtime style and shadow changes. Tested style mutations preserve the explicit value, so no additional stored state or style-mask override was necessary. Public API unchanged.
Related: github/copilot-cli#5398 and webviewjs/webview#91. Neither issue is marked resolved by this PR.
Validation
Local host: Apple Silicon, macOS 27.0.1 (26A434).
Passed:
Limits:
Final dependency SHA: 002db4a.