blob: aa23efbc1b3fc9317d5b2dfba962610071c2b7b1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="resources/dump-as-text.js"></script>
<script src="resources/wait-until-done.js"></script>
<meta http-equiv="Content-Security-Policy" content="media-src http://127.0.0.1:8000/resources/redirect.php">
</head>
<body>
<video>
<track src="http://127.0.0.1:8000/resources/redirect.php?code=307&url=http%3A%2F%2Flocalhost%3A8000/security/contentSecurityPolicy/resources/track.vtt" kind="captions" onload="alertAndDone('FAIL')" onerror="alertAndDone('PASS')">
</video>
<script>
document.querySelector("track").track.mode = "hidden"; // Load the track
</script>
</body>
</html>