Skip to content

Check saved host chrome stays out of isolated samples - #2373

Merged
leaf-agent merged 3 commits into
mainfrom
fix/ci-38085674297-sample-restore
Oct 11, 2026
Merged

leaf-agent merged 3 commits into
mainfrom
fix/ci-38085674297-sample-restore

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

The restored-surface browser test's contained cases opened an isolated lf-sample child URL in a new top-level tab and waited for it to present. That child needs its host's private port, so the detached tab cannot start. The test now primes saved auxiliary chrome on the host, waits for the contained child to present, and checks that the host restores its panel while the isolated child does not inherit it. The standalone cases still measure their original first-paint geometry.

The formerly failing contained cases and the standalone controls passed in the pinned full CI run. Lint, build, and review passed. That run's only red result was a separate 49px diff-header shift in a newly added test; #2391 addresses the shift watcher's completion boundary. This PR does not change diff rendering or the shift watcher.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The contained assertion can pass before the child finishes startup. The sample clears Reset's disabled state on both success and failure, while a child body exists before its runtime restores auxiliary surfaces. Wait for the child frame's page readiness before checking its body attribute so a failed sample cannot make this regression test pass.

Comment thread tests/test_render_startup.py Resolved

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The current test check is red: test_phone_diff_headers_keep_distinguishing_parent_folder_readable reports a 49 px layout shift after opening a diff file. The restored-surface cases changed here passed in that run. #2391 addresses the diff test's failure.

@leaf-agent
leaf-agent merged commit 9d323a0 into main Oct 11, 2026
5 of 6 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38085674297-sample-restore branch October 11, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant