blob: 255d6f3db1218fd585ef0912ff7a38186af5100e [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.py">
</head>
<body>
<script>
// Expect the blocked URI to be the requested origin, not the redirect target.
document.addEventListener('securitypolicyviolation', e => {
document.body.innerHTML += `blockedURI = <b>${e.blockedURI}</b><br/><br/>`;
window.testRunner.notifyDone();
});
</script>
<video crossOrigin="anonymous">
<track src="http://127.0.0.1:8000/resources/redirect.py?code=307&url=http%3A//127.0.0.1%3A8000/resources/redirect.py%3Furl=http%3A//localhost%3A8000/security/contentSecurityPolicy/resources/track.vtt.py" kind="captions">
</video>
<script>
document.querySelector("track").track.mode = "hidden"; // Load the track
</script>
</body>
</html>