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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/media/resources/serve-video.php

Issue 1356353003: Relax cross-origin partial response requirements for CORS presence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental php change. Created 5 years, 2 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/media/resources/serve-video.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/media/resources/serve-video.php b/third_party/WebKit/LayoutTests/http/tests/media/resources/serve-video.php
index 9bfcf0289d2bd43e237cbf4b7c31524221842a57..a13edf067195bea2e8cd521ab3cc5d95beb9262c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/media/resources/serve-video.php
+++ b/third_party/WebKit/LayoutTests/http/tests/media/resources/serve-video.php
@@ -27,6 +27,9 @@
header("Accept-Ranges: bytes");
header("Content-Range: bytes " . $start . "-" . $end . "/" . $fileSize);
}
+ if (isset($_GET['cors_allow_origin'])) {
+ header("Access-Control-Allow-Origin: " . $_GET['cors_allow_origin']);
+ }
header("Connection: close");
$chunkSize = 1024 * 256;

Powered by Google App Engine
This is Rietveld 408576698