Repository navigation
fix: retain hostname routing through the About copy test - #4391
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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