Skip to content

Fix quoted Chrome host resolver rules - #2572

Merged
soulgalore merged 1 commit into
mainfrom
fix-host-resolver-rules-quotes
Oct 12, 2026
Merged

soulgalore merged 1 commit into
mainfrom
fix-host-resolver-rules-quotes

Conversation

@soulgalore

Copy link
Copy Markdown
Member

Chromedriver starts Chrome without a shell, so the quotes around the --host-resolver-rules value reached Chrome's rule parser. Chrome then dropped the first and last rules. In WebPageReplay mode the port 80 mapping was lost, so plain HTTP requests went to the real internet instead of the replay server; packet captures showed Chrome's clients2.google.com time check leaving the container this way. In default mode the first and last phone-home blocks were lost.

A unit test now checks that the arguments contain no quotes.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
Change-Id: I474cf27456bd77a86c4434b312bab51cd0915553

Chromedriver starts Chrome without a shell, so the quotes around the --host-resolver-rules value reached Chrome's rule parser. Chrome then dropped the
first and last rules. In WebPageReplay mode the port 80 mapping was lost, so plain HTTP requests went to the real internet instead of the replay server;
packet captures showed Chrome's clients2.google.com time check leaving the container this way. In default mode the first and last phone-home blocks were
lost.

A unit test now checks that the arguments contain no quotes.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
Change-Id: I474cf27456bd77a86c4434b312bab51cd0915553
@soulgalore
soulgalore merged commit 7a263e5 into main Oct 12, 2026
17 checks passed
@soulgalore
soulgalore deleted the fix-host-resolver-rules-quotes branch October 12, 2026 17:30
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