Skip to content

evidence only, do not merge: #12737 head + Settings Heavy Commit story - #12982

Closed
cixzhang wants to merge 6 commits into
mainfrom
story/navstack-heavy-commit-webkit
Closed

cixzhang wants to merge 6 commits into
mainfrom
story/navstack-heavy-commit-webkit

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Evidence only. Do not merge. This draft exists for its preview Storybook. It closes after the device take.

It is #12737's head (f0d911d) plus the story-only Lab/NavigationStack › Settings Heavy Commit variant, the same commit as the story-only draft off main. The two previews let one iPhone compare main and #12737 on the same story, opened top-level through iframe.html?id=lab-navigationstack--settings-heavy-commit and launched from the Home Screen.

Overlap checked: #12737 (this branch is its head plus a story commit; evidence only, never merged)

… frame at rest

WebKit's UI process applies a commit late, so a from-rest transition that
started at its commit or the next frame skipped into its curve after a
heavy commit on iOS. In WebKit the transition now uses the animator's
start: 'presented'. Chromium and Firefox keep next-frame or the commit.
The engine check is read at transition time, with its removal condition
beside it. A WebKit, Chromium and Firefox frame trace covers it, and
AST-094's FR45 verification gets the engine line.
…since the frame before it

A mouse click drives the row in every engine, so Firefox runs too. The
first moving frame may show no more of the spring than the time since the
frame before it (or since the block ended) allows, plus one frame.
…river; state what Linux WebKit guards

Firefox runs the test as written. The engine check and AST-094's FR45 row
say the defect reproduces on iOS Safari and Linux WebKit's trace guards
only a time-correct start; the removal re-check is on iOS.
…bKit

The interaction config has no Firefox project, so AST-094's FR45 row and
the test comment no longer claim one.
It checks that the first frame stays at rest and that the start fits the
time that passed, so its WebKit check goes with the workaround.
…ce evidence

The pushed screen blocks the main thread for 300 ms in the push's commit,
or in its first moving frame. A readout lists the pushed card's travelled
share in the first eight frames and whether the page runs as a Home Screen
app. Story only.
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 7:13pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 19, 2026, 7:35 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This evidence-only draft needs an owner decision before it could be approved, and it carries one change that would still need fixing after that.

  • Spec decision: the new AST-094 verification row FR45 NavigationStack WebKit is a new requirement with no approval at this head. An engineering owner records the decision by commenting /approve-spec <full head SHA> here, and the author may do so as an engineering owner.
  • Desktop behavior change needs an owner decision: the WebKit engine check in NavigationStack.tsx (lines 784-787) also makes every push and pop from rest in desktop Safari start about one frame later. Either gate the presented clock to touch input, or record an owner decision for desktop Safari together with its mouse before-and-after results.
  • Device evidence: the engine check rests on an iOS Safari defect that no real-device result at this head reproduces. Please state the device take this draft is for: device, browser, head, animation scale, and the first moving frame's share of travel on main and on this head.

Not blocking: the re-padded AST-094 table conflicts with main's updated DEC-31 row, and a shorter wording for the removal note is suggested inline. The same points decide #12737.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: this branch is #12737's head plus one story commit. Verified: the head's parent is #12737's head, and the last commit changes only the story file.
  • Claim: the story commit is the same as the story-only draft off main. Verified as the same change: #12981 has an identical patch and the same resulting file. The two commits differ only in their parent.
  • Claim: the story opens top-level at iframe.html?id=lab-navigationstack--settings-heavy-commit. Verified: that id is in the head's Storybook index, and the story renders and pushes.
  • Claim: the two previews let one iPhone compare main and #12737 on the same story. Verified: both carry the same story patch, and main's later commits change no NavigationStack or animator file.
  • Claim: evidence only, never merged, closed after the device take. This states intent and cannot be checked.
  • File apps/storybook/stories/NavigationStack.stories.tsx: clear.
  • File packages/lab/src/NavigationStack/NavigationStack.tsx: desktop Safari retiming (blocking); comment wording (not blocking).
  • File packages/lab/src/NavigationStack/__tests__/NavigationStack.interaction.browser.spec.ts: clear.
  • File docs/specs/AST-094-touch-presentations/spec.md: the new row awaits owner approval; the table conflicts with main (not blocking).

Automated review (maintainer link)

*/
function appliesCommitsLate(view: Window | null | undefined): boolean {
const userAgent = view?.navigator.userAgent ?? '';
return userAgent.includes('AppleWebKit') && !userAgent.includes('Chrome');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking. This check also matches desktop Safari and every iOS browser. So in desktop Safari, a mouse push or pop from rest also starts one frame later. With a desktop Safari user agent, a plain mouse push first moved at 34 ms (5.0%) on main and at 44 ms (15.1%) here, after one more frame at rest. spec:AST-017 FR59 allows a fine-pointer change only for a defect those users actually hit, or for a cross-device consistency the pull request names, and either way it needs mouse before-and-after evidence. Gate the presented clock to touch input (for example, also require a coarse primary pointer), or record an owner decision for desktop Safari.

Comment on lines +779 to +782
* Its trace checks that the first frame stays at rest and that the start
* fits the time that passed. Remove it when WebKit applies commits on time:
* re-check at each Safari major version on iOS, and remove the trace's
* WebKit check with it. A capability probe in the animator can replace it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking (comment style): the trace sentence describes the test rather than this code, and the removal sentence is a 24-word instruction with three topics in it. Suggested:

 * Remove it when WebKit applies commits on time. Re-check at each Safari
 * major version on iOS. Remove the trace's WebKit check with it.

@cixzhang cixzhang closed this Nov 19, 2026
@github-actions
github-actions Bot deleted the story/navstack-heavy-commit-webkit branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 95cd224f Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant