Skip to content

Commit 343b4fc

Browse files
authored
Stop fetching resources from test.csswg.org (#1579)
Same update as that done in browser-specs: w3c/browser-specs#1348 Resources from test.csswg.org are used to add test annotations to a CSS spec. We don't need that information (at least for now), and these resources seem to contribute to network timeouts. This update adds them to the blocklist of resources that get intercepted when the spec is loaded in Puppeteer.
1 parent c7a22a3 commit 343b4fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ async function processSpecification(spec, processFunction, args, options) {
369369
if (request.url.startsWith('https://drafts.csswg.org/api/drafts/') ||
370370
request.url.startsWith('https://drafts.css-houdini.org/api/drafts/') ||
371371
request.url.startsWith('https://drafts.fxtf.org/api/drafts/') ||
372-
request.url.startsWith('https://api.csswg.org/shepherd/')) {
372+
request.url.startsWith('https://api.csswg.org/shepherd/') ||
373+
request.url.startsWith('https://test.csswg.org/harness/')) {
373374
await cdp.send('Fetch.failRequest', { requestId, errorReason: 'Failed' });
374375
return;
375376
}

0 commit comments

Comments
 (0)