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

Unified Diff: LayoutTests/http/tests/media/resources/video-check-userpass.php

Issue 286993008: For media element fetches, remove user:pass components always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improve comment Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/video-load-with-userpass.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/media/resources/video-check-userpass.php
diff --git a/LayoutTests/http/tests/media/resources/video-check-userpass.php b/LayoutTests/http/tests/media/resources/video-check-userpass.php
new file mode 100644
index 0000000000000000000000000000000000000000..f51df57e117192cd5c91b8f6478ae68f1ec34cd5
--- /dev/null
+++ b/LayoutTests/http/tests/media/resources/video-check-userpass.php
@@ -0,0 +1,17 @@
+<?php
+
+ $auth = $_SERVER["HTTP_AUTHORIZATION"];
+ $url = $_SERVER["REQUEST_URI"];
+
+ if (isset($auth) || stripos($url, "user:pass") !== false)
+ die;
+
+ $fileName = $_GET["name"];
+ $type = $_GET["type"];
+
+ $_GET = array();
+ $_GET['name'] = $fileName;
+ $_GET['type'] = $type;
+ @include("./serve-video.php");
+
+?>
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/video-load-with-userpass.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698