Repository navigation
feat: Support for iOS SceneDelegate - #19083
Conversation
SceneDelegate
SceneDelegateSceneDelegate
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19083/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/index.html |
|
|
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days. |
4eadb3d to
bbc8a83
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19083/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/index.html |
|
|
bbc8a83 to
899f63d
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19083/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/index.html |
|
|
899f63d to
fa182db
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19083/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/index.html |
|
|
fa182db to
cb590b8
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/index.html |
|
|
cb590b8 to
304bfba
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19083/index.html |
|
|
The base branch removed Mac Catalyst from the runtime source, but the scene-delegate work had moved the same code, so the rebase reapplied it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QTD5frho5FV6f3xFYUuG6V
Secondary windows crashed with "IDragDropManager is set twice on CoreDragDropManager": InitDragAndDrop runs while the native window is created, and with AttachToWindow deferred until afterwards the content root could not resolve its owner window, so it fell back to the main window's manager. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QTD5frho5FV6f3xFYUuG6V
Apple documents NSUserActivity.ActivityType as a reverse-DNS identifier. "platform.uno.window" was forward-DNS; the reverse form of the platform.uno domain is "uno.platform.*", matching the bundle identifiers already used by the sample apps. The activity is only ever read back in-process from UISceneConnectionOptions, so no NSUserActivityTypes plist entry is required. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GP2BeVCQzY3sQB7QBv173u
The comment claimed ConfigureWindowChrome would be re-invoked once NativeAppWindow became available via AppWindow.Changed, but OnAppWindowChanged only calls it when args.DidPresenterChange is true. No such retry path exists, so describe the guard as defensive instead. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GP2BeVCQzY3sQB7QBv173u
6bb62a1 to
3d7b391
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/wasm-skia-net9/index.html |
|
Claude finished @MartinZikmund's task in 7m 46s —— View job Claude Review — PR #19083 · iOS SceneDelegate supportVerdict: fix-first (one medium finding remains open) What was reviewedAll nine changed files read in full:
Findings🟡 MEDIUM —
|
| Area | Resolution |
|---|---|
CloseCore discards MarkHidden() return |
Intentional by design — closing a window ≠ app entering background |
ActivityType = "uno.platform.window" |
Fixed in 8bf345cc — correct reverse-DNS for platform.uno |
WindowChrome.cs misleading comment |
Fixed in 3d7b391e |
DesktopWindow.cs AttachToWindow ordering |
Fixed in 769954db with explanatory comment |
UnoUIApplicationDelegate non-scene lifecycle |
NativeWindowWrapper.Instance restored; OnNativeActivated calls reinstated |
WillConnect graceful fallback (empty registry) |
Fixed in a0702db7 — logs warning + destroys session |
Thread-safe _visibleWindowCount counter |
MarkVisible/MarkHidden protected by _visibilityGate lock with _isCountedVisible idempotency |
Observer lifetime (CompositeDisposable) |
Both orientation registrations stored; disposed in CloseCore |
SceneWindowRegistry FIFO fallback |
Correct — oldest-pending wrapper matched when token is absent |
NSUserActivity.BecomeCurrent() |
Not needed — activity passed in-process directly to the activation API |
Architecture notes (no action required)
The overall design is solid:
- Token-based scene↔window correlation in
SceneWindowRegistrycorrectly handles the async gap betweenWindow.Create()andWillConnect _isSceneDisconnectedguard inCloseCoreprevents double-destroy when the OS disconnects a scene we're also programmatically closingHasSceneManifeststatic cache cleanly bifurcates the single-window (non-scene) and multi-window (scene-manifest) lifecycle pathsSupportsMultipleWindowscorrectly gates on bothHasSceneManifestandUIApplication.SupportsMultipleScenes
|
The build 229440 found UI Test snapshots differences: Details
|
|
Tick the box to add this pull request to the merge queue (same as
|
1 similar comment
|
Tick the box to add this pull request to the merge queue (same as
|
AppleUIKitCorePointerInputSource and UnoKeyboardInputSource were process-wide singletons shared by every window's PointerManager, so touches from any scene were broadcast to every open window instead of just the one that was touched. Each RootViewController now owns its own instances, resolved via the requesting host, mirroring the pattern Win32WindowWrapper already uses.
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19083/wasm-skia-net9/index.html |
|
The build 231152 found UI Test snapshots differences: Details
|
|
Tick the box to add this pull request to the merge queue (same as
|
The ms-appdata load intermittently never completes on the Android Skia runtime-test host: the test starts, then 30 seconds of total silence follow with no ImageOpened, no ImageFailed and no exception, until the inner WaitAsync trips. That is the same signature already tracked for the Linux hosts in #23967, which the existing exclusion covers. #24215 already excluded SkiaAndroid for this test, but gated behind RUNTIME_NATIVE_AOT while investigating #24271. The hang is not specific to NativeAOT -- it reproduces on the plain Android Skia leg -- so the exclusion is un-gated here rather than duplicated, and #24271 is kept in the comment. The test only began running on Android at all once #24003 aligned shard 0's UITEST_RUNTIME_TEST_GROUP_COUNT (4 -> 5, 005db43): selection is a stable hash modulo that count, so before the fix When_MsAppData was one of the 14.7% of methods no shard selected. It is not a new failure, just a newly executed one. Since that merge it has failed on three unrelated PR builds within hours of each other -- 231145 (#24186), 231142 (#24194) and 231152 (#19083) -- where the isolated retry only sometimes recovers, so it reddens whichever PR happens to be unlucky. master still carries the old count of 4 and therefore never runs it. Scoped to this test alone: When_MsAppData_StreamDisposed_FileNotLocked and When_Exif_Rotated_MsAppData use the same ms-appdata path and run green on Android in every post-fix build checked, so they keep running. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015Lk1RUZfAj6A7xGWzYaoBw
GitHub Issue (If applicable): closes #19082, closes https://github.com/unoplatform/uno-private/issues/1182, closes https://github.com/unoplatform/uno-private/issues/660
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):