Repository navigation
fix(capture-kit): ignore nested empty floating-bar containers in sheet occlusion - #5322
khoerulrizal wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
Thanks for the fix. Changes are needed at ea5417d before merge. Could a device run at this commit validate the changed occlusion decision through the daemon? The helper fixtures cannot establish that the reported iOS 27 capture reaches the new role and sibling conditions, or that fill succeeds without allowing interaction through an undimmed sheet. Before merge, capture the nested navigation sheet with its floating-bar siblings, fill the previously blocked field, and verify that an obstructing toolbar and content beneath an undimmed sheet remain blocked. Occlusion decision The open thread on nested sheet coverage still applies. The failing and cancelled Body rules jobs are likely unrelated: they check PR body sections and word limit, while this change affects capture occlusion and tests. Not verified here: the exact body violation was not identified because no CI failure excerpt was supplied; the CI log is needed to identify it. Not verified here: a live run at this head was not supplied, and the reported app's exact capture shape and accessibility projection were not established. No tests were run in this review. No conflicts are known. |
…loating-bar container Skipping a nested empty _UIFloatingBarContainerView in ownPresentationStart left no toolbar host boundary when none preceded it, so the scan returned 0 and the outer host was classified as its own presentation, leaving the presenting screen uncovered. When such a container was skipped, fall back to the enclosed navigation bar as the presentation boundary.
|
Fixed the nested sheet coverage thread in The live device run is still pending. |
|
Thanks for the update. The new fixture covers the nested host before the sheet navigation bar, addressing one ordering from the earlier review; the reported ordering remains unsafe at 0b4ee95. When the sheet navigation bar precedes the nested empty floating-bar container, the fallback can choose the navigation bar as the boundary and exempt the outer host. A button beneath an undimmed sheet can then be treated as interactable through it. Derive the sheet boundary independently of the ignored nested host so the outer host covers the presenting screen in both orders, and add regression cases for both. Boundary selection Before merge, capture the nested navigation sheet through the daemon on iOS 27 at this head, showing the floating-bar siblings and their roles; fill the previously blocked field; and show that a real obstructing toolbar and content beneath an undimmed sheet remain blocked. Record the commands, device, SHA, and outputs. The author reports the live run is pending, so the actual projection and interaction route remain unverified. Host classification The underlay coverage thread still applies. The packet reports 16 passing checks and no failing checks at 0b4ee95; CI does not establish the requested live iOS 27 route. No conflicts are known. Not verified here: tests and live device runs were not performed. Before merge, underlay coverage for the reported sibling ordering must be fixed and the live capture and interaction evidence must be provided. |
Summary
Fixes #5240. On iOS 27, a presented sheet hosting nested
UINavigationControllers emits an inner empty_UIFloatingBarContainerViewbefore the outer sheet's_UIFloatingBarContainerView, which broke the own-presentation sibling walk and marked sheet inputs covered.packages/capture-kit/src/snapshot-occlusion.ts: ignore nested empty_UIFloatingBarContainerViewnodes as presentation boundaries for an enclosing outer floating-bar host (isNestedEmptyFloatingBarContainer,isNestedInLaterFloatingBarPresentation), while keeping real obstructingUIToolbarcontrols covered.packages/capture-kit/src/snapshot-occlusion-ios27-system-toolbars.test.ts: added regression tests for nested sheet floating-bar containers and obstructing toolbars.Before / after
fillon aTextInputinside a sheet with nested navigation controllers fails withcovered by another visible element(Toolbar)._UIFloatingBarContainerView; real obstructing toolbars still block interaction.Validation
Tested at
ea5417de11on59a640c08d:vitest run --project unit-coreonsnapshot-occlusion,snapshot-occlusion-ios27-system-toolbars,snapshot-occlusion-sibling-sized-chrome: 3 files, 85 tests passed.tsc -b tsconfig.typecheck.json examples/sdk/tsconfig.json: passed.oxlint . --deny-warningsandoxfmt --check: passed.CI obligations: unit-core and Apple smoke lanes. Risks: none known.