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

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

Issue 2766913003: Fixed and improved content-security-policy/media-src tests (Closed)
Patch Set: Re-edited TestExpectations after a rebase-update to try to make the patch apply properly this time Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-redirect-blocked-by-connect-src.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-redirect-blocked-by-connect-src.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-redirect-blocked-by-connect-src.html
deleted file mode 100644
index 00b5aeaa526504a4e8f9c58ce5137dd4727fe8f4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-redirect-blocked-by-connect-src.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="../../../media-resources/media-file.js"></script>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <meta http-equiv="Content-Security-Policy" content="media-src 'self' http://localhost:8000; connect-src 'self'">
-</head>
-<body>
- <video id="video"/>
- <script>
- var video = document.getElementById("video");
- var source = document.getElementById("source");
- var t = async_test("video source redirects to location disallowed by connect-src");
- video.addEventListener("loadedmetadata", function () {
- t.done();
- });
- var mediaFile = findMediaFile("video", "content/test");
- var mimeType = mimeTypeForFile(mediaFile);
- video.src = "/security/resources/redir.php?url=" + encodeURIComponent("http://localhost:8000/resources/load-and-stall.php?name=../../../media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000");
- video.load();
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698