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 here

Each 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.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["Pass"]
connect-src-beacon-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["Pass", "violated-directive=connect-src"]
connect-src-beacon-redirect-to-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["violated-directive=connect-src"]
connect-src-eventsource-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["allowed"]
connect-src-eventsource-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["blocked","violated-directive=connect-src"]
connect-src-eventsource-redirect-to-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS EventSource() did not follow the disallowed redirect.","TEST COMPLETE", "violated-directive=connect-src"]
connect-src-fetch-keepalive-allowed.sub.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Expecting logs: ["Pass"]
  2. fetch with keepalive should be allowed by CSP
connect-src-fetch-keepalive-blocked.sub.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Expecting logs: ["Pass", "violated-directive=connect-src"]
  2. fetch with keepalive should be blocked by CSP
connect-src-fetch-keepalive-redirect-to-blocked.sub.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Expecting logs: ["Pass", "violated-directive=connect-src"]
  2. fetch with keepalive should be blocked when redirected to disallowed origin
connect-src-json-import-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. import should be allowed
connect-src-json-import-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. connect-src-json-import-blocked
connect-src-json-import-in-worker-and-worklet-blocked.https.html0 / 3 passingChrome 0 / 30 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Exempt 0 / 3 WPT subtests passing runner status TIMEOUT

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

  1. TIMEOUTDedicatedWorker: a JSON module import is reported on the creator.
    Test timed out
  2. NOT RUNSharedWorker: a JSON module import is reported on the creator.
  3. NOT RUNAudioWorklet: a JSON module import is reported on the creator.
connect-src-syncxmlhttprequest-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["Pass"]
connect-src-syncxmlhttprequest-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["Pass","violated-directive=connect-src"]
connect-src-syncxmlhttprequest-redirect-to-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS Sync XMLHttpRequest.send() did not follow the disallowed redirect.","TEST COMPLETE","violated-directive=connect-src"]
connect-src-text-import-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. import should be allowed
connect-src-text-import-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. connect-src-text-import-blocked
connect-src-websocket-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["allowed"]
connect-src-websocket-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["blocked","violated-directive=connect-src"]
connect-src-websocket-self.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["allowed", "allowed"]
connect-src-xmlhttprequest-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["Pass"]
connect-src-xmlhttprequest-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["Pass","violated-directive=connect-src"]
connect-src-xmlhttprequest-redirect-to-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS XMLHttpRequest.send() did not follow the disallowed redirect.","TEST COMPLETE","violated-directive=connect-src"]
shared-worker-connect-src-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["xhr allowed","TEST COMPLETE"]
shared-worker-connect-src-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["xhr blocked","TEST COMPLETE"]
worker-connect-src-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["xhr allowed"]
worker-connect-src-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["xhr blocked","TEST COMPLETE"]
worker-from-guid.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["violated-directive=connect-src","xhr blocked","TEST COMPLETE"]

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.