Start running the parsed file lints against support files #48320
+47
−143
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.
This is largely motivated by ensuring that people aren't including
testharnessreport.js
in support files which are then included viafetch_tests_from_window
(per docs), and most of the files changed here are removing redundant inclusions here.We also find a few other errors, such as testdriver-vendor.js being omitted and invalid values for
<meta name=timeout>
, which are also fixed.Finally, add a few things to the allowlist.
See also WebKit/WebKit#33969, cc @kkinnunen-apple.
For reference:
I believe the only way an HTML
testharness.js
support file can be included is viafetch_tests_from_window
, which means we should just enforce its semantics.The ultimate goal here is to be able to run tests within cross-origin iframes to test site isolation, and we need to be able to make sure we get the right output. web-platform-tests/rfcs#168 would really also solve this, but this still hasn't been done.