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

Side by Side Diff: LayoutTests/http/tests/w3c/webperf/resources/multi_redirect.php

Issue 13912021: [Resource Timing] Expose redirect timing information (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaseline Created 7 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 $step = $_GET["step"] ? $_GET["step"] : 1;
3 $pageOrigin = $_GET["pageOrigin"];
4 $crossOrigin = $_GET["crossOrigin"];
5 $timingAllow = $_GET["timingAllow"] ? $_GET["timingAllow"] : 0;
6 $redirectURL = "/w3c/webperf/resources/multi_redirect.php?pageOrigin=$pageOrig in&crossOrigin=$crossOrigin&timingAllow=$timingAllow";
7
8 switch ($step) {
9 case 1:
10 $redirectURL = $crossOrigin . $redirectURL . "&step=2";
11 if ($timingAllow != "0")
12 header("timing-allow-origin: $pageOrigin");
13 break;
14 case 2:
15 $redirectURL = $pageOrigin . $redirectURL . "&step=3";
16 if ($timingAllow != "0")
17 header("timing-allow-origin: $pageOrigin");
18 break;
19 case 3:
20 $redirectURL = $pageOrigin . "/w3c/webperf/resources/blank_page_green.htm" ;
21
22 break;
23 default:
24 break;
25 }
26
27 header("HTTP/1.1 302");
28 header("Location: $redirectURL");
29 sleep(1);
30 exit;
31 ?>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_cross_origin_redirect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698