9.16content-security-policy/media-src/

11 / 29 WPT subtests passing

Failed
7
Timed out
3
Not run
8
Test files
10
Blocking files
0

Chrome 29 / 29 WPT subtests passing on the same files, none blocking

Tests

10 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
media-src-7_1.html0 / 3 passingChrome 3 / 32 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 3 / 3 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

the in-policy WebM loads but the default platform cannot decode it, so the element fires error where the test waits for loadeddata

Media
/media/A4.webm (video/webm)
Failing assertion
assert_unreached: Media error handler should be triggered for non-allowed domain. Reached unreachable code (subtests 1-2; subtest 3 NOTRUN)

/content-security-policy/media-src/media-src-7_1.html TIMEOUT 0 / 3

  1. FAILIn-policy async video src
    assert_unreached: Media error handler should be triggered for non-allowed domain. Reached unreachable code
  2. FAILIn-policy async video source element
    assert_unreached: Media error handler should be triggered for non-allowed domain. Reached unreachable code
  3. NOT RUNShould not fire policy violation events
media-src-7_1_2.sub.html2 / 3 passingChrome 3 / 30 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 3 / 3 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

the <source type="video/webm"> is skipped by resource selection before it is fetched (canPlayType answers ""), so only the src= video reaches media-src's check and one of the two expected violations fires (both element subtests pass)

Media
/media/A4.webm (video/webm)
Failing assertion
TIMEOUT: Test that securitypolicyviolation events are fired - Test timed out (2/3 pass)

/content-security-policy/media-src/media-src-7_1_2.sub.html TIMEOUT 2 / 3

  1. TIMEOUTTest that securitypolicyviolation events are fired
    Test timed out
2 passing subtests
  1. Disallowed async video src
  2. Disallowed async video source element
media-src-7_2.html0 / 3 passingChrome 3 / 32 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 3 / 3 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

the in-policy Ogg audio loads but the default platform cannot decode it, so the element fires error where the test waits for loadeddata

Media
/media/sound_5.oga (audio/ogg)
Failing assertion
assert_unreached: Media error handler should be triggered for non-allowed domain. Reached unreachable code (subtests 1-2; subtest 3 NOTRUN)

/content-security-policy/media-src/media-src-7_2.html TIMEOUT 0 / 3

  1. FAILIn-policy audio src
    assert_unreached: Media error handler should be triggered for non-allowed domain. Reached unreachable code
  2. FAILIn-policy audio source element
    assert_unreached: Media error handler should be triggered for non-allowed domain. Reached unreachable code
  3. NOT RUNShould not fire policy violation events
media-src-7_2_2.sub.html2 / 3 passingChrome 3 / 30 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 3 / 3 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

the <source> typed audio/webm is skipped by resource selection before it is fetched (canPlayType answers ""), so one of the two expected violations fires (both element subtests pass)

Media
/media/sound_5.oga (a <source> typed audio/webm)
Failing assertion
TIMEOUT: Test that securitypolicyviolation events are fired - Test timed out (2/3 pass)

/content-security-policy/media-src/media-src-7_2_2.sub.html TIMEOUT 2 / 3

  1. TIMEOUTTest that securitypolicyviolation events are fired
    Test timed out
2 passing subtests
  1. Disallaowed audio src
  2. Disallowed audio source element
media-src-7_3.sub.html0 / 2 passingChrome 2 / 20 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 2 / 2 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

the video's only source is A4.webm, skipped because the default platform cannot decode WebM, so loadeddata never fires and the in-policy track test never runs

Media
/media/A4.webm (video/webm)
Failing assertion
harness TIMEOUT: In-policy track element and Should not fire policy violation events NOTRUN

/content-security-policy/media-src/media-src-7_3.sub.html TIMEOUT 0 / 2

  1. NOT RUNIn-policy track element
  2. NOT RUNShould not fire policy violation events
media-src-7_3_2.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. Disallowed track element onerror handler fires.
  2. Test that securitypolicyviolation events are fired
media-src-blocked-blob-url.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. Video with blob: URL blocked when blob: not in media-src
  2. Audio with blob: URL blocked when blob: not in media-src
media-src-blocked-data-url.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. Video with data: URL blocked by media-src 'self'
  2. Audio with data: URL blocked by media-src 'self'
media-src-blocked.sub.html1 / 4 passingChrome 4 / 40 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 4 / 4 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

subtest 2's <source type="video/webm"> is skipped by resource selection before any fetch, so media-src 'none' never sees it and the awaited violation never comes; subtests 3-4 are NOTRUN behind it (4's <source> typed audio/webm would be skipped the same way; subtest 1 passes)

Media
/media/A4.webm (video/webm) and /media/sound_5.oga (a <source> typed audio/webm)
Failing assertion
TIMEOUT: Disallowed async video source element - Test timed out (1/4 pass)

/content-security-policy/media-src/media-src-blocked.sub.html TIMEOUT 1 / 4

  1. TIMEOUTDisallowed async video source element
    Test timed out
  2. NOT RUNDisallowed audio src
  3. NOT RUNDisallowed audio source element
1 passing subtest
  1. Disallowed async video src
media-src-redir-bug.sub.html0 / 5 passingChrome 5 / 53 failedExempt
Standing
Exempt runner status TIMEOUT
Chrome
Clean 5 / 5 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a decoder plays its media

the in-policy WebM, direct and through a redirect, loads but the default platform cannot decode it, so the element fires error where the test waits for loadeddata

Media
/media/A4.webm (video/webm)
Failing assertion
assert_unreached: Media error handler shouldn't be triggered for allowed domain. Reached unreachable code (subtests 1-3; 4-5 NOTRUN)

/content-security-policy/media-src/media-src-redir-bug.sub.html TIMEOUT 0 / 5

  1. FAILIn-policy async video src
    assert_unreached: Media error handler shouldn't be triggered for allowed domain. Reached unreachable code
  2. FAILin-policy async video src w/redir
    assert_unreached: Media error handler shouldn't be triggered for allowed domain. Reached unreachable code
  3. FAILIn-policy async video source element
    assert_unreached: Media error handler shouldn't be triggered for allowed domain. Reached unreachable code
  4. NOT RUNIn-policy async video source element w/redir
  5. NOT RUNShould not fire policy violation events

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.