blob: 06defa22d571c01c42eeb35ae7f6cfc5481e4dbc [file] [log] [blame]
<html>
<head>
</head>
<body onload="loadCookie()">
<video id="video"></video>
<script src=../../media-resources/video-test.js></script>
<script src=../../media-resources/media-file.js></script>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setAlwaysAcceptCookies(true);
layoutTestController.waitUntilDone();
}
function loadCookie () {
var movie = findMediaFile("video", "resources/test");
var frame = document.createElement("iframe");
document.body.appendChild(frame);
frame.addEventListener('load', function () {
video = document.getElementById('video');
video.src="http://127.0.0.1:8000/media/resources/video-cookie-check-cookie.php";
video.play();
});
frame.width = 0;
frame.height = 0;
frame.src = "http://127.0.0.1:8000/media/resources/setCookie.cgi?name=" + movie;
}
waitForEvent("canplaythrough", function () {
if (window.layoutTestController)
window.layoutTestController.notifyDone();
} );
</script>
Tests that the media player will send the relevant cookies when requesting the media file.<br/>
</body>
</html>