| Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| index f4b870105ca201be87e5d0c0e11970618cf44cc1..67f197b049bf5545ea804a582015f488fe4ad1db 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| @@ -4,14 +4,17 @@
|
| header("Pragma: no-cache");
|
| header("Content-Type: text/plain");
|
| header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
|
| + $secure = isset($_GET["secure"]);
|
| $length = isset($_GET["length"]) ? (int) $_GET["length"] : 0;
|
| if (!$length) {
|
| - setcookie("TestCookie", "TestCookieValue");
|
| + setcookie("TestCookie", "TestCookieValue", 0, "", "", $secure);
|
| } else {
|
| $data = "";
|
| for ($i = 0; $i < $length; $i++) {
|
| $data .= "a";
|
| }
|
| + if ($secure)
|
| + $data .= "; Secure";
|
| header("Set-Cookie: $data");
|
| }
|
| echo("Cookie set.");
|
|
|