Changeset 252138 in webkit


Ignore:
Timestamp:
Nov 6, 2019 9:34:50 AM (4 years ago)
Author:
dbates@webkit.org
Message:

Update SameSite tests for new semantics for empty and invalid SameSite attribute
https://bugs.webkit.org/show_bug.cgi?id=203755
<rdar://problem/50816282>

Reviewed by Brent Fulgham.

Update the tests and test expectations following CFNetwork change <rdar://problem/42290578> as we
now only recognize SameSite=Strict and SameSite=Lax. That is, we no longer treat SameSite= or
SameSite=<some garbage value> as SameSite=Strict.

  • http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt:
  • http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt:
  • http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt:
  • http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt:
  • http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt:
  • http/tests/cookies/same-site/popup-cross-site-post.html:
  • http/tests/cookies/same-site/popup-cross-site.html:
  • http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect.html:
  • http/tests/cookies/same-site/resources/fetch-after-navigating-iframe-in-cross-origin-page.php:
  • http/tests/cookies/same-site/resources/fetch-after-top-level-cross-origin-redirect.php:
  • http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-from-cross-origin-page.php:
  • http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page.php:
  • http/tests/cookies/same-site/resources/fetch-in-cross-origin-service-worker.html:
  • platform/ios-12/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
  • platform/ios-12/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
  • platform/ios/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
  • platform/mac-mojave/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
  • platform/mac/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
Location:
trunk/LayoutTests
Files:
4 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r252126 r252138  
     12019-11-06  Daniel Bates  <dabates@apple.com>
     2
     3        Update SameSite tests for new semantics for empty and invalid SameSite attribute
     4        https://bugs.webkit.org/show_bug.cgi?id=203755
     5        <rdar://problem/50816282>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Update the tests and test expectations following CFNetwork change <rdar://problem/42290578> as we
     10        now only recognize SameSite=Strict and SameSite=Lax. That is, we no longer treat SameSite= or
     11        SameSite=<some garbage value> as SameSite=Strict.
     12
     13        * http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt:
     14        * http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt:
     15        * http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt:
     16        * http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt:
     17        * http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt:
     18        * http/tests/cookies/same-site/popup-cross-site-post.html:
     19        * http/tests/cookies/same-site/popup-cross-site.html:
     20        * http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect.html:
     21        * http/tests/cookies/same-site/resources/fetch-after-navigating-iframe-in-cross-origin-page.php:
     22        * http/tests/cookies/same-site/resources/fetch-after-top-level-cross-origin-redirect.php:
     23        * http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-from-cross-origin-page.php:
     24        * http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page.php:
     25        * http/tests/cookies/same-site/resources/fetch-in-cross-origin-service-worker.html:
     26        * platform/ios-12/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
     27        * platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
     28        * platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
     29        * platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
     30        * platform/ios-12/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
     31        * platform/ios-12/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
     32        * platform/ios-12/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
     33        * platform/ios-12/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
     34        * platform/ios/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
     35        * platform/ios/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
     36        * platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
     37        * platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
     38        * platform/ios/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
     39        * platform/ios/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
     40        * platform/ios/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
     41        * platform/ios/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
     42        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
     43        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
     44        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
     45        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
     46        * platform/mac-mojave/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
     47        * platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
     48        * platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
     49        * platform/mac-mojave/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
     50        * platform/mac/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt: Removed.
     51        * platform/mac/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt: Removed.
     52        * platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt: Removed.
     53        * platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt: Removed.
     54        * platform/mac/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt: Removed.
     55        * platform/mac/http/tests/cookies/same-site/popup-cross-site-expected.txt: Removed.
     56        * platform/mac/http/tests/cookies/same-site/popup-cross-site-post-expected.txt: Removed.
     57        * platform/mac/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt: Removed.
     58
    1592019-11-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    260
  • trunk/LayoutTests/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt

    r231450 r252138  
    1111Cookies sent with HTTP request:
    1212PASS Do not have cookie "strict".
    13 PASS Do not have cookie "implicit-strict".
    14 PASS Do not have cookie "strict-because-invalid-SameSite-value".
     13PASS Has cookie "implicit-strict" with value 6.
     14PASS Has cookie "strict-because-invalid-SameSite-value" with value 6.
    1515PASS Do not have cookie "lax".
    1616
    1717Cookies visible in DOM:
    1818PASS Do not have DOM cookie "strict".
    19 PASS Do not have DOM cookie "implicit-strict".
    20 PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
     19PASS Has DOM cookie "implicit-strict" with value 6.
     20PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 6.
    2121PASS Do not have DOM cookie "lax".
    2222PASS successfullyParsed is true
  • trunk/LayoutTests/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt

    r231444 r252138  
    66Cookies sent with HTTP request:
    77PASS Do not have cookie "strict".
    8 PASS Do not have cookie "implicit-strict".
    9 PASS Do not have cookie "strict-because-invalid-SameSite-value".
     8PASS Has cookie "implicit-strict" with value 19.
     9PASS Has cookie "strict-because-invalid-SameSite-value" with value 19.
    1010PASS Has cookie "lax" with value 19.
    1111
    1212Cookies visible in DOM:
    1313PASS Do not have DOM cookie "strict".
    14 PASS Do not have DOM cookie "implicit-strict".
    15 PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
     14PASS Has DOM cookie "implicit-strict" with value 19.
     15PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 19.
    1616PASS Has DOM cookie "lax" with value 19.
    1717PASS successfullyParsed is true
  • trunk/LayoutTests/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt

    r230944 r252138  
    66Cookies sent with HTTP request:
    77PASS Do not have cookie "strict".
    8 PASS Do not have cookie "implicit-strict".
    9 PASS Do not have cookie "strict-because-invalid-SameSite-value".
     8PASS Has cookie "implicit-strict" with value 5.
     9PASS Has cookie "strict-because-invalid-SameSite-value" with value 5.
    1010PASS Has cookie "lax" with value 5.
    1111
    1212Cookies visible in DOM:
    1313PASS Do not have DOM cookie "strict".
    14 PASS Do not have DOM cookie "implicit-strict".
    15 PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
     14PASS Has DOM cookie "implicit-strict" with value 5.
     15PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 5.
    1616PASS Has DOM cookie "lax" with value 5.
    1717PASS successfullyParsed is true
  • trunk/LayoutTests/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt

    r230944 r252138  
    66Cookies sent with HTTP request:
    77PASS Do not have cookie "strict".
    8 PASS Do not have cookie "implicit-strict".
    9 PASS Do not have cookie "strict-because-invalid-SameSite-value".
     8PASS Has cookie "implicit-strict" with value 4.
     9PASS Has cookie "strict-because-invalid-SameSite-value" with value 4.
    1010PASS Has cookie "lax" with value 4.
    1111
    1212Cookies visible in DOM:
    1313PASS Do not have DOM cookie "strict".
    14 PASS Do not have DOM cookie "implicit-strict".
    15 PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
     14PASS Has DOM cookie "implicit-strict" with value 4.
     15PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 4.
    1616PASS Has DOM cookie "lax" with value 4.
    1717PASS successfullyParsed is true
  • trunk/LayoutTests/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt

    r231450 r252138  
    1111Cookies sent with HTTP request:
    1212PASS Do not have cookie "strict".
    13 PASS Do not have cookie "implicit-strict".
    14 PASS Do not have cookie "strict-because-invalid-SameSite-value".
     13PASS Has cookie "implicit-strict" with value 10.
     14PASS Has cookie "strict-because-invalid-SameSite-value" with value 10.
    1515PASS Do not have cookie "lax".
    1616
  • trunk/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html

    r230944 r252138  
    1717        window.addEventListener("message", t.step_func_done(e => {
    1818            assert_equals(e.data.http[STRICT_DOM], undefined, "strict");
    19             assert_equals(e.data.http[IMPLICIT_STRICT_DOM], undefined, "implicit-strict");
    20             assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], undefined, "strict-because-invalid-SameSite-value");
     19            assert_equals(e.data.http[IMPLICIT_STRICT_DOM], "1", "implicit-strict");
     20            assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], "1", "strict-because-invalid-SameSite-value");
    2121            assert_equals(e.data.http[LAX_DOM], undefined, "lax");
    2222            assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
    23             assert_equals(normalizeCookie(e.data.document), normalizeCookie(LAX_DOM + "=1; " + NORMAL_DOM + "=1"));
     23            assert_equals(normalizeCookie(e.data.document), normalizeCookie(IMPLICIT_STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1; " + STRICT_BECAUSE_INVALID_SAMESITE_VALUE + "=1"));
    2424            e.source.close();
    2525        }));
  • trunk/LayoutTests/http/tests/cookies/same-site/popup-cross-site.html

    r230944 r252138  
    1616        window.addEventListener("message", t.step_func_done(e => {
    1717            assert_equals(e.data.http[STRICT_DOM], undefined, "strict");
    18             assert_equals(e.data.http[IMPLICIT_STRICT_DOM], undefined, "implicit-strict");
    19             assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], undefined, "strict-because-invalid-SameSite-value");
     18            assert_equals(e.data.http[IMPLICIT_STRICT_DOM], "1", "implicit-strict");
     19            assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], "1", "strict-because-invalid-SameSite-value");
    2020            assert_equals(e.data.http[LAX_DOM], "1", "lax");
    2121            assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
    22             assert_equals(normalizeCookie(e.data.document), normalizeCookie(LAX_DOM + "=1; " + NORMAL_DOM + "=1"));
     22            assert_equals(normalizeCookie(e.data.document), normalizeCookie(IMPLICIT_STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1; " + STRICT_BECAUSE_INVALID_SAMESITE_VALUE + "=1"));
    2323        }));
    2424    }, "'127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent.");
  • trunk/LayoutTests/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect.html

    r230944 r252138  
    1414    window.addEventListener("message", t.step_func_done(e => {
    1515        assert_equals(e.data.http[STRICT_DOM], undefined, "strict");
    16         assert_equals(e.data.http[IMPLICIT_STRICT_DOM], undefined, "implicit-strict");
    17         assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], undefined, "strict-because-invalid-SameSite-value");
     16        assert_equals(e.data.http[IMPLICIT_STRICT_DOM], "1", "implicit-strict");
     17        assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], "1", "strict-because-invalid-SameSite-value");
    1818        assert_equals(e.data.http[LAX_DOM], "1", "lax");
    1919        assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
    20         assert_equals(normalizeCookie(e.data.document), normalizeCookie(LAX_DOM + "=1; " + NORMAL_DOM + "=1"));
     20        assert_equals(normalizeCookie(e.data.document), normalizeCookie(IMPLICIT_STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1; " + STRICT_BECAUSE_INVALID_SAMESITE_VALUE + "=1"));
    2121    }));
    2222
  • trunk/LayoutTests/http/tests/cookies/same-site/resources/fetch-after-navigating-iframe-in-cross-origin-page.php

    r230944 r252138  
    1616    debug("Cookies sent with HTTP request:");
    1717    await shouldNotHaveCookie("strict");
    18     await shouldNotHaveCookie("implicit-strict");
    19     await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
     18    await shouldHaveCookieWithValue("implicit-strict", "6");
     19    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "6");
    2020    await shouldNotHaveCookie("lax");
    2121
    2222    debug("<br>Cookies visible in DOM:");
    2323    shouldNotHaveDOMCookie("strict");
    24     shouldNotHaveDOMCookie("implicit-strict");
    25     shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
     24    shouldHaveDOMCookieWithValue("implicit-strict", "6");
     25    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "6");
    2626    shouldNotHaveDOMCookie("lax");
    2727
  • trunk/LayoutTests/http/tests/cookies/same-site/resources/fetch-after-top-level-cross-origin-redirect.php

    r231444 r252138  
    1616    debug("Cookies sent with HTTP request:");
    1717    await shouldNotHaveCookie("strict");
    18     await shouldNotHaveCookie("implicit-strict");
    19     await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
     18    await shouldHaveCookieWithValue("implicit-strict", "19");
     19    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "19");
    2020    await shouldHaveCookieWithValue("lax", "19");
    2121
    2222    debug("<br>Cookies visible in DOM:");
    2323    shouldNotHaveDOMCookie("strict");
    24     shouldNotHaveDOMCookie("implicit-strict");
    25     shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
     24    shouldHaveDOMCookieWithValue("implicit-strict", "19");
     25    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "19");
    2626    shouldHaveDOMCookieWithValue("lax", "19");
    2727
  • trunk/LayoutTests/http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-from-cross-origin-page.php

    r230944 r252138  
    1616    debug("Cookies sent with HTTP request:");
    1717    await shouldNotHaveCookie("strict");
    18     await shouldNotHaveCookie("implicit-strict");
    19     await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
     18    await shouldHaveCookieWithValue("implicit-strict", "5");
     19    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "5");
    2020    await shouldHaveCookieWithValue("lax", "5");
    2121
    2222    debug("<br>Cookies visible in DOM:");
    2323    shouldNotHaveDOMCookie("strict");
    24     shouldNotHaveDOMCookie("implicit-strict");
    25     shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
     24    shouldHaveDOMCookieWithValue("implicit-strict", "5");
     25    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "5");
    2626    shouldHaveDOMCookieWithValue("lax", "5");
    2727
  • trunk/LayoutTests/http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page.php

    r230944 r252138  
    1616    debug("Cookies sent with HTTP request:");
    1717    await shouldNotHaveCookie("strict");
    18     await shouldNotHaveCookie("implicit-strict");
    19     await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
     18    await shouldHaveCookieWithValue("implicit-strict", "4");
     19    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "4");
    2020    await shouldHaveCookieWithValue("lax", "4");
    2121
    2222    debug("<br>Cookies visible in DOM:");
    2323    shouldNotHaveDOMCookie("strict");
    24     shouldNotHaveDOMCookie("implicit-strict");
    25     shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
     24    shouldHaveDOMCookieWithValue("implicit-strict", "4");
     25    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "4");
    2626    shouldHaveDOMCookieWithValue("lax", "4");
    2727
  • trunk/LayoutTests/http/tests/cookies/same-site/resources/fetch-in-cross-origin-service-worker.html

    r230944 r252138  
    1717    debug("Cookies sent with HTTP request:");
    1818    await shouldNotHaveCookie("strict");
    19     await shouldNotHaveCookie("implicit-strict");
    20     await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
     19    await shouldHaveCookieWithValue("implicit-strict", "10"); // Behaves like a non-SameSite cookie
     20    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "10"); // Behaves like a non-SameSite cookie
    2121    await shouldNotHaveCookie("lax");
    2222
Note: See TracChangeset for help on using the changeset viewer.