Repository navigation
chore(ui): catch clipped row-menu actions in WebKit - #198599
Conversation
The WebKit Secrets proof found the last row's Delete action clipped while its menu-bounds check still passed. The clip came from the shared overlay max-height resolving 100% against the cell beside the trigger, already fixed on main by #196567. Measure item visibility against the menu scrollport, cover a short bottom-edge row menu, and run the overlay style tests in the WebKit lane so a regression fails in both engines.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR checks menu actions against their scrollport and adds a short bottom-edge menu regression. Example: Open an Edit/Delete menu near the bottom of an 800×600 window.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this useful regression coverage; no introduced correctness or security defect was found. The UI gate reports a failure also present on main, and the existing WebKit glob already includes this suite. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI browser tests mount the shared Solid Menu, exercise native overlay positioning, and assert geometry in Chromium and WebKit. flowchart LR
A[Browser test] --> B[Solid Menu]
B --> C[Native overlay stylesheet]
C --> D[Browser positioning]
D --> E[Scrollport and action geometry]
E --> F[Visibility assertions]
Technical reviewBest possible solution: Retain the scrollport assertion and short-menu regression, using the existing WebKit glob without the redundant literal entry. Do we have a high-confidence way to reproduce the issue? This test-only PR supplies a screenshot of the former clipping and reports a failing CSS-revert control plus 13 passing cases per engine; no target code was executed during this review. Is this the best way to solve the issue? Checking each action against the actual scrollport closes the demonstrated false-positive gap in the existing owner suite; the WebKit inventory addition is unnecessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3cd6a3ed4974. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +21. Total +22 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 10:11 PM ET / November 14, 2026, 03:11 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…ge (openclaw#198599) The WebKit Secrets proof found the last row's Delete action clipped while its menu-bounds check still passed. The clip came from the shared overlay max-height resolving 100% against the cell beside the trigger, already fixed on main by openclaw#196567. Measure item visibility against the menu scrollport, cover a short bottom-edge row menu, and run the overlay style tests in the WebKit lane so a regression fails in both engines.
Related: #196567
What Problem This Solves
A WebKit visual proof (2026-11-07) found the last Secrets row's action menu with Delete cut off, while its menu-bounds check still passed. No committed test covered that case in WebKit, and the shared visibility check could not see a row clipped inside the menu.
User Impact
No user-visible change. The clipping itself is already fixed on
mainby #196567. This PR makes a regression fail in both Chromium and WebKit.Why This Change Was Made
The cause was in the shared overlay stylesheet that every
Menuuses, so other long lists with row menus had the same exposure. Before #196567,max-heightusedcalc(100% - 16px), and inside aposition-areathat100%is the space beside the trigger. A menu near the window edge shrank into that space and scrolled its own rows instead of flipping above. WebKit hit this on Secrets because the first keyboard focus at the bottom of Settings moves the last row down 72px, leaving 64px below a 66px menu. Chromium kept the row higher, so the menu still fit below.This PR changes only tests:
expectItemVisiblenow measures each row against the menu's scrollport (clientTop/clientHeight), not the menu's outer box.bottom-endmenu at the window edge must show every action in full, above its trigger.overlay-style.browser.test.tsxjoins the WebKit browser lane. The whole file already passes there.Evidence
Synthetic data only, captured headlessly from production bundles with the perf lane's own Secrets proof harness (200 rows, keyboard-opened last-row menu). Top: current
mainwith #196567's overlay CSS reverted. The menu sits at y=939.8 and is 48.2px tall around 66px of content (the same numbers as the 2026-11-07 report), and the harness's wrapper-bounds check still passes. Bottom: currentmain. The menu flips to y=833.8 at its full 66px. Chromium is unchanged between the two because the row has room below.Edit: expected 592 to be less than or equal to 588. The menu wrapper itself still fits the viewport, which is the gap the lane reported.main,overlay-style.browser.test.tsxpasses in Chromium (13/13, 5.5s) and WebKit (13/13, 6.6s).pnpm tsgo:test:ui, oxlint and oxfmt pass on the touched files. Autoreview (Codex) found nothing at P2 and above.Not covered: the 72px WebKit scroll-range drop on first focus near the bottom of Settings is a separate layout shift. This PR doesn't change it.