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)
commit42d6fc4862bc695b8d23893dc233335b547722f9
tree0906e8ba29ee231a3521bc557464b136fa814edf
parent6ebb884f0ad13761d89f1272c3b9d2981ee621f0
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.

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]