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

Unified Diff: LayoutTests/http/tests/security/resources/cors-script.php

Issue 984213002: CORS errors print error twice on preload. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added delay to cors-script.php Created 5 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: LayoutTests/http/tests/security/resources/cors-script.php
diff --git a/LayoutTests/http/tests/security/resources/cors-script.php b/LayoutTests/http/tests/security/resources/cors-script.php
index 1023855ad8bce0394468b3230c289470d31a8b5f..b99cf5d3a8eb01d8557924d6485b3269bce72a03 100644
--- a/LayoutTests/http/tests/security/resources/cors-script.php
+++ b/LayoutTests/http/tests/security/resources/cors-script.php
@@ -6,6 +6,9 @@ if (strtolower($_GET["credentials"]) == "true") {
header("Access-Control-ALlow-Credentials: true");
}
header("Content-Type: application/javascript");
+$delay = $_GET['delay'];
+if ($delay)
+ usleep(1000 * $delay);
$value = $_GET['value'];
if ($_SERVER['HTTP_ORIGIN'] && $_GET['value_cors']) {
$value = $_GET['value_cors'];

Powered by Google App Engine
This is Rietveld 408576698