Repository navigation
Run the fetch/h1-parsing WPT subtests that don't need a DOM - #8874
Merged
Merged
Conversation
fetch/misc omitted all three h1-parsing files as needing a window, but only
three of their 30 subtests use document. The rest call fetch() against
wptserve handlers that send hand-written HTTP/1.1 responses.
In this patch those subtests run. The three that load a script, an iframe
and an image through document stay omitted. The HTTP client accepts a head
that mixes LF and CRLF line endings, rejects a head cut off by EOF with
Error("Network connection lost.") instead of TypeError, and rejects status
codes below 100, so nine subtests are recorded as expected failures.
This changes tests only.
There was a problem hiding this comment.
✅ Approved — This pull request changes test configuration only. The omitted subtests and expected failures are each scoped and explained, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
This changes test configuration only. It adds no production code and leaves every security control in place.
📋 Code Quality: ✅ LGTM
The WPT config edits are scoped well. Specific subtests are omitted, and each expected failure has a comment explaining it.
📝 Documentation: ✅ LGTM
The comments describe the current behaviour of the HTTP client, in line with the repository's comment guidelines.
Reviewed commit: 7fedde8b
npaun
approved these changes
Nov 24, 2026
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.
fetch/misc omitted all three h1-parsing files as needing a window, but only three of their 30 subtests use
document. The rest callfetch()against wptserve handlers that send hand-written HTTP/1.1 responses.In this patch those subtests run. The three that load a script, an iframe and an image through
documentstay omitted. Nine subtests are recorded as expected failures, each with its reason: the HTTP client accepts a head that mixes LF and CRLF line endings, rejects a head cut off by EOF withError("Network connection lost.")instead of a TypeError, and rejects status codes below 100.This changes tests only, so there is no compat flag.
//src/wpt:fetch/misc@and//src/wpt:fetch/misc@all-autogateseach passed 20 of 20 runs with--runs_per_test=20.