Skip to content

Run the fetch/h1-parsing WPT subtests that don't need a DOM - #8874

Merged
littledivy merged 1 commit into
mainfrom
littledivy/2026-11-24-wpt-suite-fetch-h1
Nov 24, 2026
Merged

littledivy merged 1 commit into
mainfrom
littledivy/2026-11-24-wpt-suite-fetch-h1

Conversation

@littledivy

Copy link
Copy Markdown
Member

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. 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 with Error("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-autogates each passed 20 of 20 runs with --runs_per_test=20.

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.
@littledivy
littledivy requested review from a team as code owners November 24, 2026 12:37

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ 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

@littledivy
littledivy merged commit e79b082 into main Nov 24, 2026
23 checks passed
@littledivy
littledivy deleted the littledivy/2026-11-24-wpt-suite-fetch-h1 branch November 24, 2026 18:11
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.

2 participants