Skip to content

fix(wpt): improve harness compatibility - #1787

Merged
richarddd merged 2 commits into
awslabs:mainfrom
nabetti1720:fix/improve-wpt
Sep 23, 2026
Merged

richarddd merged 2 commits into
awslabs:mainfrom
nabetti1720:fix/improve-wpt

Conversation

@nabetti1720

@nabetti1720 nabetti1720 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Issue # (if available)

n/a

Description of changes

Improve WPT harness compatibility with LLRT's server-side runtime.

  • Provide browser-like self, console, and DOMException globals.
  • Add runtime global fallback for WPT contexts.
  • Support self.location and relative URL resolution in Fetch tests.

Checklist

  • Created unit tests in tests/unit and/or in Rust for my feature if needed
  • Ran make fix to format JS and apply Clippy auto fixes
  • Made sure my code didn't add any additional warnings: make check
  • Added relevant type info in types/ directory
  • Updated documentation if needed (API.md/README.md/Other)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nabetti1720
nabetti1720 force-pushed the fix/improve-wpt branch 2 times, most recently from 90bcb27 to 767643e Compare September 21, 2026 02:01
@richarddd

Copy link
Copy Markdown
Collaborator

@nabetti1720 this is a bit out of scope for this PR but the hole point of wpt-errors is to keep track of what's supported and whats not. Now that we discard unsupported behaviour via filters in wpt-harness we no longer see that. I suggest we remove the filter and just maintain the wpt-errors.txt file.

@nabetti1720

Copy link
Copy Markdown
Contributor Author

@nabetti1720 this is a bit out of scope for this PR but the hole point of wpt-errors is to keep track of what's supported and whats not. Now that we discard unsupported behaviour via filters in wpt-harness we no longer see that. I suggest we remove the filter and just maintain the wpt-errors.txt file.

I excluded that test, deeming it meaningless in a server-side runtime environment. However, there is value in keeping it as an error precisely to make that point clear.

The remaining fix concerns the harness mismatch. Resolving this cleared up the strange errors and revealed new errors specific to the test cases themselves.

@nabetti1720 nabetti1720 changed the title fix(wpt): improve harness compatibility and narrow Fetch skips fix(wpt): improve harness compatibility Sep 22, 2026
@richarddd
richarddd merged commit e4a5772 into awslabs:main Sep 23, 2026
32 checks passed
@nabetti1720
nabetti1720 deleted the fix/improve-wpt branch September 23, 2026 08:26
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