| Index: third_party/WebKit/LayoutTests/http/tests/security/cookies/resources/set-a-cookie.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cookies/resources/set-a-cookie.php b/third_party/WebKit/LayoutTests/http/tests/security/cookies/resources/set-a-cookie.php
|
| index 22121f188890c9ae075b97096341a1689a36edaf..ccf0690ca071c248aea6c5ac40616deeb2bb84c2 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/cookies/resources/set-a-cookie.php
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cookies/resources/set-a-cookie.php
|
| @@ -1,5 +1,17 @@
|
| <?php
|
| - setcookie("test_cookie", "1", 0, "/");
|
| + $secure = false;
|
| + if ($_GET["secure"]) {
|
| + $secure = true;
|
| + }
|
| + setcookie("test_cookie", "1", 0, "/", "", $secure);
|
| +
|
| + $resetcookie = "true";
|
| + if ($_GET["resetcookie"] == "false")
|
| + $resetcookie = "false";
|
| +
|
| + $notifydone = "true";
|
| + if ($_GET["notifydone"] == "false")
|
| + $notifydone = "false";
|
| ?>
|
| <!DOCTYPE html>
|
| <html>
|
| @@ -10,9 +22,13 @@ function checkCookie()
|
| document.getElementById("log").innerHTML += "Cookie is NOT set";
|
| else
|
| document.getElementById("log").innerHTML += "Cookie is set";
|
| - document.cookie = "test_cookie=0; path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT";
|
|
|
| - if (window.testRunner)
|
| + var reset_cookie = <?php echo($resetcookie); ?>;
|
| + if (reset_cookie)
|
| + document.cookie = "test_cookie=0; path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT";
|
| +
|
| + var notify_done = <?php echo $notifydone ?>;
|
| + if (notify_done && window.testRunner)
|
| testRunner.notifyDone();
|
| }
|
| </script>
|
|
|