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

Unified Diff: LayoutTests/http/tests/media/video-load-with-userpass.html

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
Index: LayoutTests/http/tests/media/video-load-with-userpass.html
diff --git a/LayoutTests/http/tests/media/video-useragent.html b/LayoutTests/http/tests/media/video-load-with-userpass.html
similarity index 79%
copy from LayoutTests/http/tests/media/video-useragent.html
copy to LayoutTests/http/tests/media/video-load-with-userpass.html
index d79da8aad40af89bcbe8f1ba46949da1a8c724b1..b0406165caee5888402980f92367105749d49dc6 100644
--- a/LayoutTests/http/tests/media/video-useragent.html
+++ b/LayoutTests/http/tests/media/video-load-with-userpass.html
@@ -3,7 +3,7 @@
<script src=../../media-resources/video-test.js></script>
<script src=../../media-resources/media-file.js></script>
<script>
- function loadMediaFrame()
+ function loadMediaFrame()
{
findMediaElement();
@@ -14,14 +14,14 @@
frame.height = 0;
frame.addEventListener('load', function () {
source = document.getElementById('source');
- source.src = 'http://127.0.0.1:8000/media/resources/video-check-useragent.php?name=' + movie + '&type=' + type;
+ source.src = 'http://user:pass@127.0.0.1:8080/media/resources/video-check-userpass.php?name=' + movie + '&type=' + type;
source.type = type;
-
+
waitForEventAndFail('error');
waitForEventAndEnd('canplay');
video.load();
});
-
+
frame.src = "data:text/html,<b>test</b>";
document.body.appendChild(frame);
}
@@ -33,6 +33,6 @@
<source id="source">
</video>
<br>
- Tests that the media player sends the WebKit User Agent string when requesting a media file.
+ Tests that the media player does not include authorization information.
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698