Update SameSite tests for new semantics for empty and invalid SameSite attribute
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Nov 2019 23:03:10 +0000 (23:03 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Nov 2019 23:03:10 +0000 (23:03 +0000)
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.

MacOS Mojave does not have the fix for <rdar://problem/42290578> and so we land expected failure results.

* 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:
* platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt:
* platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt:
* platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt:
* platform/mac-mojave/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt:
* platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-expected.txt:
* platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-post-expected.txt:
* platform/mac-mojave/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt:
* 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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252153 268f45cc-cd09-0410-ab3c-d52691b4dbfc

46 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt
LayoutTests/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt
LayoutTests/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt
LayoutTests/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt
LayoutTests/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt
LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html
LayoutTests/http/tests/cookies/same-site/popup-cross-site.html
LayoutTests/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect.html
LayoutTests/http/tests/cookies/same-site/resources/fetch-after-navigating-iframe-in-cross-origin-page.php
LayoutTests/http/tests/cookies/same-site/resources/fetch-after-top-level-cross-origin-redirect.php
LayoutTests/http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-from-cross-origin-page.php
LayoutTests/http/tests/cookies/same-site/resources/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page.php
LayoutTests/http/tests/cookies/same-site/resources/fetch-in-cross-origin-service-worker.html
LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-cross-site-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-cross-site-post-expected.txt [deleted file]
LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/popup-cross-site-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/popup-cross-site-post-expected.txt [deleted file]
LayoutTests/platform/ios/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt [deleted file]
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-post-expected.txt
LayoutTests/platform/mac-mojave/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt
LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/popup-cross-site-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/popup-cross-site-post-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt [deleted file]

index 39a67fa83071f4d98f9bed19f6954d7b7cb717e2..5d9c01140a4c82c3c6493489a866a8b4c29529ff 100644 (file)
@@ -1,3 +1,63 @@
+2019-11-06  Daniel Bates  <dabates@apple.com>
+
+        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.
+
+        MacOS Mojave does not have the fix for <rdar://problem/42290578> and so we land expected failure results.
+
+        * 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:
+        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt:
+        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt:
+        * platform/mac-mojave/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt:
+        * platform/mac-mojave/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt:
+        * platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-expected.txt:
+        * platform/mac-mojave/http/tests/cookies/same-site/popup-cross-site-post-expected.txt:
+        * platform/mac-mojave/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt:
+        * 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.
+
 2019-11-06  Truitt Savell  <tsavell@apple.com>
 
         Unreviewed, rolling out r252138.
index 75e165c3d4168b4486157596c3c05ebff146627a..b47de8be40af7d3ebe80c57c39d10f6d9d554f77 100644 (file)
@@ -10,14 +10,14 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+PASS Has cookie "implicit-strict" with value 6.
+PASS Has cookie "strict-because-invalid-SameSite-value" with value 6.
 PASS Do not have cookie "lax".
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+PASS Has DOM cookie "implicit-strict" with value 6.
+PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 6.
 PASS Do not have DOM cookie "lax".
 PASS successfullyParsed is true
 
index 8a2b89f2067ee2ec75f7afaee115e262be628a39..85161fa91a52d1d2b266b99c4d0cb1ca390cf27a 100644 (file)
@@ -5,14 +5,14 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+PASS Has cookie "implicit-strict" with value 19.
+PASS Has cookie "strict-because-invalid-SameSite-value" with value 19.
 PASS Has cookie "lax" with value 19.
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+PASS Has DOM cookie "implicit-strict" with value 19.
+PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 19.
 PASS Has DOM cookie "lax" with value 19.
 PASS successfullyParsed is true
 
index 1e8a2e3bc3c63f73fc45069c65c302d62a4f8285..a345d6a1a100c1aa2e591b527a577dd12c928e65 100644 (file)
@@ -5,14 +5,14 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+PASS Has cookie "implicit-strict" with value 5.
+PASS Has cookie "strict-because-invalid-SameSite-value" with value 5.
 PASS Has cookie "lax" with value 5.
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+PASS Has DOM cookie "implicit-strict" with value 5.
+PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 5.
 PASS Has DOM cookie "lax" with value 5.
 PASS successfullyParsed is true
 
index fa2cf4fde883df2d5213048e0837d781fa38217b..ce244a98c260172bf59625ff679dc20fe41be82d 100644 (file)
@@ -5,14 +5,14 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+PASS Has cookie "implicit-strict" with value 4.
+PASS Has cookie "strict-because-invalid-SameSite-value" with value 4.
 PASS Has cookie "lax" with value 4.
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+PASS Has DOM cookie "implicit-strict" with value 4.
+PASS Has DOM cookie "strict-because-invalid-SameSite-value" with value 4.
 PASS Has DOM cookie "lax" with value 4.
 PASS successfullyParsed is true
 
index 86fc3a5b69245a8416c8354498634902a8aaf35d..b449be6e71e26748567e27b766c156cabf7dcc9d 100644 (file)
@@ -10,8 +10,8 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+PASS Has cookie "implicit-strict" with value 10.
+PASS Has cookie "strict-because-invalid-SameSite-value" with value 10.
 PASS Do not have cookie "lax".
 
 Cookies visible in DOM:
index 57bddf0481bc4f9a1cfbe704a455b8bcf4b1bcf9..21b0db721910110efa8c0f530c4a2806901fbb75 100644 (file)
@@ -16,11 +16,11 @@ if (window.location.hostname == "127.0.0.1") {
     async_test(t => {
         window.addEventListener("message", t.step_func_done(e => {
             assert_equals(e.data.http[STRICT_DOM], undefined, "strict");
-            assert_equals(e.data.http[IMPLICIT_STRICT_DOM], undefined, "implicit-strict");
-            assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], undefined, "strict-because-invalid-SameSite-value");
+            assert_equals(e.data.http[IMPLICIT_STRICT_DOM], "1", "implicit-strict");
+            assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], "1", "strict-because-invalid-SameSite-value");
             assert_equals(e.data.http[LAX_DOM], undefined, "lax");
             assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
-            assert_equals(normalizeCookie(e.data.document), normalizeCookie(LAX_DOM + "=1; " + NORMAL_DOM + "=1"));
+            assert_equals(normalizeCookie(e.data.document), normalizeCookie(IMPLICIT_STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1; " + STRICT_BECAUSE_INVALID_SAMESITE_VALUE + "=1"));
             e.source.close();
         }));
 
index e08ff02e74b13d8eaaa6a69118f9239cd2ff2bec..0508d71d5aa9b6d4564d06033985384a247909cb 100644 (file)
@@ -15,11 +15,11 @@ if (window.location.hostname == "127.0.0.1") {
         var i = window.open("http://127.0.0.1:8000/cookies/resources/post-cookies-to-opener.php");
         window.addEventListener("message", t.step_func_done(e => {
             assert_equals(e.data.http[STRICT_DOM], undefined, "strict");
-            assert_equals(e.data.http[IMPLICIT_STRICT_DOM], undefined, "implicit-strict");
-            assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], undefined, "strict-because-invalid-SameSite-value");
+            assert_equals(e.data.http[IMPLICIT_STRICT_DOM], "1", "implicit-strict");
+            assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], "1", "strict-because-invalid-SameSite-value");
             assert_equals(e.data.http[LAX_DOM], "1", "lax");
             assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
-            assert_equals(normalizeCookie(e.data.document), normalizeCookie(LAX_DOM + "=1; " + NORMAL_DOM + "=1"));
+            assert_equals(normalizeCookie(e.data.document), normalizeCookie(IMPLICIT_STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1; " + STRICT_BECAUSE_INVALID_SAMESITE_VALUE + "=1"));
         }));
     }, "'127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent.");
 }
index a1d46b08ec5ec77d3d29bef23791d3aeff7d9810..748a4a81cfddc574efe0784e333f74dd0f3fc650 100644 (file)
@@ -13,11 +13,11 @@ async_test(t => {
 
     window.addEventListener("message", t.step_func_done(e => {
         assert_equals(e.data.http[STRICT_DOM], undefined, "strict");
-        assert_equals(e.data.http[IMPLICIT_STRICT_DOM], undefined, "implicit-strict");
-        assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], undefined, "strict-because-invalid-SameSite-value");
+        assert_equals(e.data.http[IMPLICIT_STRICT_DOM], "1", "implicit-strict");
+        assert_equals(e.data.http[STRICT_BECAUSE_INVALID_SAMESITE_VALUE], "1", "strict-because-invalid-SameSite-value");
         assert_equals(e.data.http[LAX_DOM], "1", "lax");
         assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
-        assert_equals(normalizeCookie(e.data.document), normalizeCookie(LAX_DOM + "=1; " + NORMAL_DOM + "=1"));
+        assert_equals(normalizeCookie(e.data.document), normalizeCookie(IMPLICIT_STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1; " + STRICT_BECAUSE_INVALID_SAMESITE_VALUE + "=1"));
     }));
 
     var i = window.open("http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/cookies/resources/post-cookies-to-opener.php");
index 62cbc38e2b19b604991b96b6d4bc6a1c7f055060..9bb849eac6b825178a89089b262cde0ffe71174e 100644 (file)
@@ -15,14 +15,14 @@ async function checkResult()
 {
     debug("Cookies sent with HTTP request:");
     await shouldNotHaveCookie("strict");
-    await shouldNotHaveCookie("implicit-strict");
-    await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
+    await shouldHaveCookieWithValue("implicit-strict", "6");
+    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "6");
     await shouldNotHaveCookie("lax");
 
     debug("<br>Cookies visible in DOM:");
     shouldNotHaveDOMCookie("strict");
-    shouldNotHaveDOMCookie("implicit-strict");
-    shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
+    shouldHaveDOMCookieWithValue("implicit-strict", "6");
+    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "6");
     shouldNotHaveDOMCookie("lax");
 
     await resetCookies();
index fd94b7e0f0b45d353b05a434eeff82d2302174c0..3fef37dffae15a8d414ea258ed037c2b6a7e876f 100644 (file)
@@ -15,14 +15,14 @@ async function checkResult()
 {
     debug("Cookies sent with HTTP request:");
     await shouldNotHaveCookie("strict");
-    await shouldNotHaveCookie("implicit-strict");
-    await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
+    await shouldHaveCookieWithValue("implicit-strict", "19");
+    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "19");
     await shouldHaveCookieWithValue("lax", "19");
 
     debug("<br>Cookies visible in DOM:");
     shouldNotHaveDOMCookie("strict");
-    shouldNotHaveDOMCookie("implicit-strict");
-    shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
+    shouldHaveDOMCookieWithValue("implicit-strict", "19");
+    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "19");
     shouldHaveDOMCookieWithValue("lax", "19");
 
     await resetCookies();
index df19fb1237063f67122cef40838a10d80de827b3..6d0fa9197c02413e8af993d5493d261dc1119d75 100644 (file)
@@ -15,14 +15,14 @@ async function checkResult()
 {
     debug("Cookies sent with HTTP request:");
     await shouldNotHaveCookie("strict");
-    await shouldNotHaveCookie("implicit-strict");
-    await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
+    await shouldHaveCookieWithValue("implicit-strict", "5");
+    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "5");
     await shouldHaveCookieWithValue("lax", "5");
 
     debug("<br>Cookies visible in DOM:");
     shouldNotHaveDOMCookie("strict");
-    shouldNotHaveDOMCookie("implicit-strict");
-    shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
+    shouldHaveDOMCookieWithValue("implicit-strict", "5");
+    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "5");
     shouldHaveDOMCookieWithValue("lax", "5");
 
     await resetCookies();
index 677b78c47c6fb0d4096b15c2cad0322b63e9cce5..e62f6ce0e74949dd4a2129bf30200475f3a87f3f 100644 (file)
@@ -15,14 +15,14 @@ async function checkResult()
 {
     debug("Cookies sent with HTTP request:");
     await shouldNotHaveCookie("strict");
-    await shouldNotHaveCookie("implicit-strict");
-    await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
+    await shouldHaveCookieWithValue("implicit-strict", "4");
+    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "4");
     await shouldHaveCookieWithValue("lax", "4");
 
     debug("<br>Cookies visible in DOM:");
     shouldNotHaveDOMCookie("strict");
-    shouldNotHaveDOMCookie("implicit-strict");
-    shouldNotHaveDOMCookie("strict-because-invalid-SameSite-value");
+    shouldHaveDOMCookieWithValue("implicit-strict", "4");
+    shouldHaveDOMCookieWithValue("strict-because-invalid-SameSite-value", "4");
     shouldHaveDOMCookieWithValue("lax", "4");
 
     await resetCookies();
index d5941c7dfb02da094d149ff0777781550d649635..59e867b804b91a4a1bf20b2efc8ae919b0a29ff9 100644 (file)
@@ -16,8 +16,8 @@ async function checkResult()
 
     debug("Cookies sent with HTTP request:");
     await shouldNotHaveCookie("strict");
-    await shouldNotHaveCookie("implicit-strict");
-    await shouldNotHaveCookie("strict-because-invalid-SameSite-value");
+    await shouldHaveCookieWithValue("implicit-strict", "10"); // Behaves like a non-SameSite cookie
+    await shouldHaveCookieWithValue("strict-because-invalid-SameSite-value", "10"); // Behaves like a non-SameSite cookie
     await shouldNotHaveCookie("lax");
 
     debug("<br>Cookies visible in DOM:");
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index 75e165c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a frame navigation for a frame embedded in a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt
deleted file mode 100644 (file)
index 8a2b89f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a redirect from a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
-PASS Has cookie "lax" with value 19.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Has DOM cookie "lax" with value 19.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index 1e8a2e3..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a top-level navigation initiated from a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
-PASS Has cookie "lax" with value 5.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Has DOM cookie "lax" with value 5.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index fa2cf4f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a top-level navigation initiated from a frame embedded in a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
-PASS Has cookie "lax" with value 4.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Has DOM cookie "lax" with value 4.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt
deleted file mode 100644 (file)
index 86fc3a5..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a request initiated from an iframe- and processed by a service worker- with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-cross-site-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-cross-site-expected.txt
deleted file mode 100644 (file)
index 4c9fda7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-PASS '127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent. 
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-cross-site-post-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-cross-site-post-expected.txt
deleted file mode 100644 (file)
index 05c1dc1..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-PASS '127.0.0.1' is not same-site with 'localhost', so samesite cookies are not sent via POST. 
-
diff --git a/LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt b/LayoutTests/platform/ios-12/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt
deleted file mode 100644 (file)
index 39aa2ba..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-PASS '127.0.0.1' is same-site with itself, so samesite cookies are sent. 
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index da78122..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a frame navigation for a frame embedded in a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 6.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 6.
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 6.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 6.
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt
deleted file mode 100644 (file)
index e6a3ef4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a redirect from a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 19.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 19.
-PASS Has cookie "lax" with value 19.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 19.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 19.
-PASS Has DOM cookie "lax" with value 19.
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index 59934d0..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a top-level navigation initiated from a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 5.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 5.
-PASS Has cookie "lax" with value 5.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 5.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 5.
-PASS Has DOM cookie "lax" with value 5.
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index 66c1454..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a top-level navigation initiated from a frame embedded in a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 4.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 4.
-PASS Has cookie "lax" with value 4.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 4.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 4.
-PASS Has DOM cookie "lax" with value 4.
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt
deleted file mode 100644 (file)
index 24445dc..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a request initiated from an iframe- and processed by a service worker- with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 10.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 10.
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/popup-cross-site-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/popup-cross-site-expected.txt
deleted file mode 100644 (file)
index ed3f1ae..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-FAIL '127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent. assert_equals: implicit-strict expected (undefined) undefined but got (string) "1"
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/popup-cross-site-post-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/popup-cross-site-post-expected.txt
deleted file mode 100644 (file)
index 4ef6873..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-FAIL '127.0.0.1' is not same-site with 'localhost', so samesite cookies are not sent via POST. assert_equals: implicit-strict expected (undefined) undefined but got (string) "1"
-
diff --git a/LayoutTests/platform/ios/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt b/LayoutTests/platform/ios/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt
deleted file mode 100644 (file)
index dd5978d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-FAIL '127.0.0.1' is same-site with itself, so samesite cookies are sent. assert_equals: implicit-strict expected (undefined) undefined but got (string) "1"
-
index 75e165c3d4168b4486157596c3c05ebff146627a..29cca1b58a9b09eb0549d67b7b27d7348e42a7c4 100644 (file)
@@ -10,16 +10,17 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+FAIL Should have cookie "implicit-strict". But do not.
+FAIL Should have cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Do not have cookie "lax".
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+FAIL Should have DOM cookie "implicit-strict". But do not.
+FAIL Should have DOM cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Do not have DOM cookie "lax".
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE
 
index 8a2b89f2067ee2ec75f7afaee115e262be628a39..f670b02b4cc5a23c6ceafc55d4fd2299e536401a 100644 (file)
@@ -5,16 +5,17 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+FAIL Should have cookie "implicit-strict". But do not.
+FAIL Should have cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Has cookie "lax" with value 19.
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+FAIL Should have DOM cookie "implicit-strict". But do not.
+FAIL Should have DOM cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Has DOM cookie "lax" with value 19.
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE
 
index 1e8a2e3bc3c63f73fc45069c65c302d62a4f8285..18d6798e5eb403af913b3c8de2df6fdee9606e0f 100644 (file)
@@ -5,16 +5,17 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+FAIL Should have cookie "implicit-strict". But do not.
+FAIL Should have cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Has cookie "lax" with value 5.
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+FAIL Should have DOM cookie "implicit-strict". But do not.
+FAIL Should have DOM cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Has DOM cookie "lax" with value 5.
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE
 
index fa2cf4fde883df2d5213048e0837d781fa38217b..05e5c7d33d1c478392abefc2c5d92eb8beeb30e2 100644 (file)
@@ -5,16 +5,17 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+FAIL Should have cookie "implicit-strict". But do not.
+FAIL Should have cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Has cookie "lax" with value 4.
 
 Cookies visible in DOM:
 PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
+FAIL Should have DOM cookie "implicit-strict". But do not.
+FAIL Should have DOM cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Has DOM cookie "lax" with value 4.
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE
 
index 86fc3a5b69245a8416c8354498634902a8aaf35d..d88fb8383e05c567eb211813d3c59571fb65fd5f 100644 (file)
@@ -10,8 +10,8 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Cookies sent with HTTP request:
 PASS Do not have cookie "strict".
-PASS Do not have cookie "implicit-strict".
-PASS Do not have cookie "strict-because-invalid-SameSite-value".
+FAIL Should have cookie "implicit-strict". But do not.
+FAIL Should have cookie "strict-because-invalid-SameSite-value". But do not.
 PASS Do not have cookie "lax".
 
 Cookies visible in DOM:
@@ -20,6 +20,7 @@ PASS Do not have DOM cookie "implicit-strict".
 PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
 PASS Do not have DOM cookie "lax".
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE
 
index 4c9fda7b7a061f0cedc32a40315defa8a39df7b3..cab7524c4efa98b1afb1d444d590d3508f028d68 100644 (file)
@@ -1,3 +1,3 @@
 
-PASS '127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent. 
+FAIL '127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent. assert_equals: implicit-strict expected (string) "1" but got (undefined) undefined
 
index 05c1dc1d6ae2d2286bcd19156284c67a682c1991..6e84f07028c4bbf24c22aca95bbb28d7521c93e0 100644 (file)
@@ -1,3 +1,3 @@
 
-PASS '127.0.0.1' is not same-site with 'localhost', so samesite cookies are not sent via POST. 
+FAIL '127.0.0.1' is not same-site with 'localhost', so samesite cookies are not sent via POST. assert_equals: implicit-strict expected (string) "1" but got (undefined) undefined
 
index 39aa2ba7626ad3581be83f1fe3ed76b23da77ccf..76631e0ced8ad17d0e08e0edb366311927451e0b 100644 (file)
@@ -1,3 +1,3 @@
 
-PASS '127.0.0.1' is same-site with itself, so samesite cookies are sent. 
+FAIL '127.0.0.1' is same-site with itself, so samesite cookies are sent. assert_equals: implicit-strict expected (string) "1" but got (undefined) undefined
 
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-navigating-iframe-in-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index da78122..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a frame navigation for a frame embedded in a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 6.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 6.
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 6.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 6.
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-cross-origin-redirect-expected.txt
deleted file mode 100644 (file)
index e6a3ef4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a redirect from a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 19.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 19.
-PASS Has cookie "lax" with value 19.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 19.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 19.
-PASS Has DOM cookie "lax" with value 19.
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-from-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index 59934d0..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a top-level navigation initiated from a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 5.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 5.
-PASS Has cookie "lax" with value 5.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 5.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 5.
-PASS Has DOM cookie "lax" with value 5.
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page-expected.txt
deleted file mode 100644 (file)
index 66c1454..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Tests that a SameSite Lax cookie for 127.0.0.1 is sent with a top-level navigation initiated from a frame embedded in a page with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 4.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 4.
-PASS Has cookie "lax" with value 4.
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-FAIL Should not have DOM cookie "implicit-strict". But do with value 4.
-FAIL Should not have DOM cookie "strict-because-invalid-SameSite-value". But do with value 4.
-PASS Has DOM cookie "lax" with value 4.
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/fetch-in-cross-origin-service-worker-expected.txt
deleted file mode 100644 (file)
index 24445dc..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
---------
-Frame: '<!--frame1-->'
---------
-Tests that Same-Site cookies for 127.0.0.1 are not sent with a request initiated from an iframe- and processed by a service worker- with a different origin.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Cookies sent with HTTP request:
-PASS Do not have cookie "strict".
-FAIL Should not have cookie "implicit-strict". But do with value 10.
-FAIL Should not have cookie "strict-because-invalid-SameSite-value". But do with value 10.
-PASS Do not have cookie "lax".
-
-Cookies visible in DOM:
-PASS Do not have DOM cookie "strict".
-PASS Do not have DOM cookie "implicit-strict".
-PASS Do not have DOM cookie "strict-because-invalid-SameSite-value".
-PASS Do not have DOM cookie "lax".
-PASS successfullyParsed is true
-Some tests failed.
-
-TEST COMPLETE
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/popup-cross-site-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/popup-cross-site-expected.txt
deleted file mode 100644 (file)
index ed3f1ae..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-FAIL '127.0.0.1' is not same-site with 'localhost', so strict samesite cookies are not sent. assert_equals: implicit-strict expected (undefined) undefined but got (string) "1"
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/popup-cross-site-post-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/popup-cross-site-post-expected.txt
deleted file mode 100644 (file)
index 4ef6873..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-FAIL '127.0.0.1' is not same-site with 'localhost', so samesite cookies are not sent via POST. assert_equals: implicit-strict expected (undefined) undefined but got (string) "1"
-
diff --git a/LayoutTests/platform/mac/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt b/LayoutTests/platform/mac/http/tests/cookies/same-site/popup-same-site-via-cross-site-redirect-expected.txt
deleted file mode 100644 (file)
index dd5978d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-FAIL '127.0.0.1' is same-site with itself, so samesite cookies are sent. assert_equals: implicit-strict expected (undefined) undefined but got (string) "1"
-