Commit 93f6e570 authored by ap@apple.com's avatar ap@apple.com
Browse files

https://bugs.webkit.org/show_bug.cgi?id=111650

REGRESSION (r143931): set-cookie-on-redirect.html still breaking subsequent tests

Reviewed by Brady Eidson.

Work around <rdar://problem/10080130> by making the cookie persistent, session
cookies are deleted in a way that confuses some code paths in CFNetwork.

I'll unskip tests later, with another cookie reliability fix.

* http/tests/cookies/resources/set-cookie-on-redirect.php:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9ce995f2
2013-08-21 Alexey Proskuryakov <ap@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=111650
REGRESSION (r143931): set-cookie-on-redirect.html still breaking subsequent tests
Reviewed by Brady Eidson.
Work around <rdar://problem/10080130> by making the cookie persistent, session
cookies are deleted in a way that confuses some code paths in CFNetwork.
I'll unskip tests later, with another cookie reliability fix.
* http/tests/cookies/resources/set-cookie-on-redirect.php:
2013-08-21 Filip Pizlo <fpizlo@apple.com>
 
Assertion failure in JSC::SlotVisitor::copyLater when marking JSDataView
......@@ -4,13 +4,13 @@ if ($_GET['step'] == 1) {
header('Location: http://localhost:8000/cookies/resources/set-cookie-on-redirect.php?step=2');
} else if ($_GET['step'] == 2) {
header("HTTP/1.0 302 Found");
setcookie("test_cookie", "1");
setcookie("test_cookie", "1", time() + 86400);
header('Location: http://localhost:8000/cookies/resources/set-cookie-on-redirect.php?step=3');
} else if ($_GET['step'] == 3) {
header("HTTP/1.0 200 OK");
if (isset($_COOKIE['test_cookie'])) {
/* Clear cookie in order not to affect other tests. */
setcookie("test_cookie", "", time() - 1);
setcookie("test_cookie", "", time() - 86400);
echo "PASSED: Cookie successfully set\n";
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment