Changeset 57241 in webkit


Ignore:
Timestamp:
Apr 7, 2010 4:49:11 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-04-07 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

Fix two cookie tests to clean up after themselves (so they can be run repeatedly)
https://bugs.webkit.org/show_bug.cgi?id=37235

Tiger's CFNetwork doesn't seem to understand "max-age=-1" so we'll
use "expires=some date in the past" to clear cookies instead.
I've verified that these tests still work on Snow Leopard.

  • http/tests/xmlhttprequest/resources/cross-origin-set-cookies.php:
  • http/tests/xmlhttprequest/resources/get-set-cookie.cgi:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r57238 r57241  
     12010-04-07  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Fix two cookie tests to clean up after themselves (so they can be run repeatedly)
     6        https://bugs.webkit.org/show_bug.cgi?id=37235
     7
     8        Tiger's CFNetwork doesn't seem to understand "max-age=-1" so we'll
     9        use "expires=some date in the past" to clear cookies instead.
     10        I've verified that these tests still work on Snow Leopard.
     11
     12        * http/tests/xmlhttprequest/resources/cross-origin-set-cookies.php:
     13        * http/tests/xmlhttprequest/resources/get-set-cookie.cgi:
     14
    1152010-04-07  Erik Arvidsson  <arv@chromium.org>
    216
  • trunk/LayoutTests/http/tests/xmlhttprequest/resources/cross-origin-set-cookies.php

    r57237 r57241  
    22$age_string = "";
    33if ($_GET['clear']) {
    4     $age_string = "max-age=-1";
     4    $age_string = "expires=Thu, 19 Mar 1982 11:22:11 GMT";
    55}
    66header("Set-Cookie: WK-xhr-cookie-storage=MySpecialValue;$age_string");
  • trunk/LayoutTests/http/tests/xmlhttprequest/resources/get-set-cookie.cgi

    r57237 r57241  
    44my $AGE_STRING = "";
    55if ($ENV{"QUERY_STRING"}) { # Assume any query string means "?clear=1"
    6     $AGE_STRING = "max-age=-1";
     6    $AGE_STRING = "expires=Thu, 19 Mar 1982 11:22:11 GMT";
    77}
    88print "Set-Cookie: WK-test=1;$AGE_STRING\n";
Note: See TracChangeset for help on using the changeset viewer.