Skip to content

Commit

Permalink
Explicitly set SameSite=None cookies in resourceLoadStatistics/resour…
Browse files Browse the repository at this point in the history
…ces/set-cookie.py and storageAccess/resources/set-cookie.py

https://bugs.webkit.org/show_bug.cgi?id=270825
rdar://124363343

Reviewed by Alex Christensen.

* LayoutTests/http/tests/resourceLoadStatistics/resources/set-cookie.py:
* LayoutTests/http/tests/storageAccess/resources/set-cookie.py:

Canonical link: https://commits.webkit.org/276286@main
  • Loading branch information
charliewolfe committed Mar 18, 2024
1 parent e5f8e96 commit dbbb87d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
expires = datetime.utcnow() + timedelta(seconds=60*60*24*30)

sys.stdout.write(
'Set-Cookie: {name}={value}; expires={expires} GMT; Max-Age=2592000; path=/\r\n'
'Set-Cookie: {name}={value}; expires={expires} GMT; Max-Age=2592000; SameSite=None; path=/\r\n'
'Content-Type: text/html\r\n\r\n'
'{message}<br>'
'<script>\n'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
exp_time = datetime.utcnow() + timedelta(days=30)

sys.stdout.write(
'Set-Cookie: {}={}; expires={} GMT; Max-Age={}; path=/\r\n'
'Set-Cookie: {}={}; expires={} GMT; Max-Age={}; SameSite=None; path=/\r\n'
'Content-Type: text/html\r\n\r\n'
'{}<br>'.format(name, value, exp_time.strftime('%a, %d-%b-%Y %H:%M:%S'), 60*60*24*30, message)
)
Expand Down

0 comments on commit dbbb87d

Please sign in to comment.