Skip to content

fix: retain hostname routing through the About copy test - #4391

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4386
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4386

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The plain HTTP About test removed its hostname-to-loopback forwarding before navigating away, while the old document could still send interaction requests. Retain the route until the browser context closes, matching the existing code-copy tests. This preserves #4291's insecure-context clipboard fallback and its clipboard-content assertion without changing product behavior.

A controlled reproduction on current main installs the browser clock before removing the route, presses Tab, and advances 1000 ms before navigation. Browser-health teardown then reports failed hostname requests, including /api/interaction (502 through this sandbox's proxy; the reported CI run refused the direct connection). The same sequence passes with forwarding retained. The temporary clock probe is not retained; the ordinary About case and both click/Enter code-copy cases pass (3 tests).

Closes #4386 — automated triage

The HTTP clipboard test removed its loopback forwarding while the hostname document could still issue interaction requests, including its pagehide flush. Keep forwarding until the browser context closes, as the code-copy tests already do.

Reproduced on current main by installing the browser clock before unroute_all, pressing Tab and advancing 1000 ms before navigation: pending hostname requests fail at browser-health teardown (502 through the sandbox proxy). The same controlled sequence passes with the route retained. The ordinary About case and both code-copy routes pass. The temporary clock probe is not retained.

Closes #4386
@leaf-agent
leaf-agent merged commit ef73ecd into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4386 branch October 27, 2026 07:42
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.

Plain HTTP About test reports a refused interaction request at teardown

1 participant