Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-blocked.html

Issue 2645953004: Update duration when demuxed packets exceed known duration. (Closed)
Patch Set: Remove broken CGI server. Rate limit duration changed events. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>This tests that video is not loaded because of "Content-Security-Policy". </title> 2 <title>This tests that video is not loaded because of "Content-Security-Policy". </title>
3 <meta http-equiv="Content-Security-Policy" content="media-src 'none'"> 3 <meta http-equiv="Content-Security-Policy" content="media-src 'none'">
4 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script src="../../media-resources/media-file.js"></script> 6 <script src="../../media-resources/media-file.js"></script>
7 <video></video> 7 <video></video>
8 <script> 8 <script>
9 async_test(function(t) { 9 async_test(function(t) {
10 var video = document.querySelector("video"); 10 var video = document.querySelector("video");
11 video.onloadedmetadata = t.unreached_func(); 11 video.onloadedmetadata = t.unreached_func();
12 12
13 window.onload = t.step_func_done(); 13 window.onload = t.step_func_done();
14 14
15 // Find a supported media file. 15 // Find a supported media file.
16 var mediaFile = findMediaFile("video", "content/test"); 16 var mediaFile = findMediaFile("video", "content/test");
17 var mimeType = mimeTypeForFile(mediaFile); 17 var mimeType = mimeTypeForFile(mediaFile);
18 18
19 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000"; 19 video.src = "http://127.0.0.1:8000/resources/load-and-stall.php?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000";
20 }); 20 });
21 </script> 21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698