9.4content-security-policy/connect-src/
30 / 33 WPT subtests passing
- Failed
- 0
- Timed out
- 1
- Not run
- 2
- Test files
- 28
- Blocking files
- 0
Chrome 30 / 33 WPT subtests passing on the same files, none blocking
Tests
28 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
connect-src-beacon-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass"]
connect-src-beacon-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass", "violated-directive=connect-src"]
connect-src-beacon-redirect-to-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["violated-directive=connect-src"]
connect-src-eventsource-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["allowed"]
connect-src-eventsource-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["blocked","violated-directive=connect-src"]
connect-src-eventsource-redirect-to-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS EventSource() did not follow the disallowed redirect.","TEST COMPLETE", "violated-directive=connect-src"]
connect-src-fetch-keepalive-allowed.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Expecting logs: ["Pass"]
- fetch with keepalive should be allowed by CSP
connect-src-fetch-keepalive-blocked.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Expecting logs: ["Pass", "violated-directive=connect-src"]
- fetch with keepalive should be blocked by CSP
connect-src-fetch-keepalive-redirect-to-blocked.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Expecting logs: ["Pass", "violated-directive=connect-src"]
- fetch with keepalive should be blocked when redirected to disallowed origin
connect-src-json-import-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- import should be allowed
connect-src-json-import-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- connect-src-json-import-blocked
connect-src-json-import-in-worker-and-worklet-blocked.https.html 0 / 3 passingChrome 0 / 30 failedExempt
Exempt from the 0.1 gate: Crane follows the browser majority
a module DedicatedWorker's static JSON import is checked against the worker's own (empty) CSP, so no violation reaches the creator and subtest 1 times out, exactly as in Chrome, Firefox and Safari (the AudioWorklet subtest is NOTRUN everywhere)
- Crane matches
- Chrome, Firefox, Safari
- Chrome
- wpt.fyi run 4786307730243584: 0/3 TIMEOUT (Chrome 157, 2358bd4835)
- Firefox
- wpt.fyi run 4877168468033536: 0/3 TIMEOUT (Firefox 160, 2358bd4835)
- Safari
- wpt.fyi run 6479119966273536: 0/3 TIMEOUT (Safari 27.2, 2358bd4835)
- Ruling
- golden rule 2, no newer spec: Firefox and WebKit fetch a module worker's static descendants with the worker's settings (whatwg/html#9571, open), Crane's worker_host.zig executeModuleScript does the same (workers/modules/dedicated-worker-import-csp.html: Crane 8/11 = Firefox = Safari); the integrator, 2026-11-18 3:02 PM ET (lane csp1)
- Revisit
- when Chrome, Firefox or Safari changes its result on a newer aligned wpt.fyi run, or Crane's result moves
/content-security-policy/connect-src/connect-src-json-import-in-worker-and-worklet-blocked.https.html TIMEOUT 0 / 3
connect-src-syncxmlhttprequest-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass"]
connect-src-syncxmlhttprequest-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass","violated-directive=connect-src"]
connect-src-syncxmlhttprequest-redirect-to-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS Sync XMLHttpRequest.send() did not follow the disallowed redirect.","TEST COMPLETE","violated-directive=connect-src"]
connect-src-text-import-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- import should be allowed
connect-src-text-import-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- connect-src-text-import-blocked
connect-src-websocket-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["allowed"]
connect-src-websocket-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["blocked","violated-directive=connect-src"]
connect-src-websocket-self.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["allowed", "allowed"]
connect-src-xmlhttprequest-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass"]
connect-src-xmlhttprequest-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["Pass","violated-directive=connect-src"]
connect-src-xmlhttprequest-redirect-to-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS XMLHttpRequest.send() did not follow the disallowed redirect.","TEST COMPLETE","violated-directive=connect-src"]
worker-connect-src-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["xhr allowed"]
worker-connect-src-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["xhr blocked","TEST COMPLETE"]
worker-from-guid.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["violated-directive=connect-src","xhr blocked","TEST COMPLETE"]