<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>265634</bug_id>
          
          <creation_ts>2023-12-01 00:39:40 -0800</creation_ts>
          <short_desc>Samesite=Lax is not always working in Safari</short_desc>
          <delta_ts>2024-03-27 03:27:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=255524</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=218002</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=201646</see_also>
          <bug_file_loc>https://github.com/edimoldovan/safari-cookies-test</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>adrian.kuehni</cc>
    
    <cc>cbilling</cc>
    
    <cc>cchambers</cc>
    
    <cc>info</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>m.kurz+webkitbugs</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1996141</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-12-01 00:39:40 -0800</bug_when>
    <thetext>In Bug 255524 There is a long thread of discussions around the fact that some users have issues with cookies not working.

Most of the time, developers have been able to solve it by setting Samesite = None instead of Samesite = Lax. This is not an acceptable solution, security wise. 

ed created a demo for reproducing the issue. See Bug 255524 Comment #75
https://github.com/edimoldovan/safari-cookies-test

Additional Notes:
- localhost with no proxy running
- someone says that this happening with iframes. 

The WebKit opened this bug to continue the investigation and possibly tries to identify the culprit.

Todo:
* Trying to get to a point where we can reliably reproduce the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997947</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-08 00:40:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/119362503&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999598</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-12-14 08:45:39 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21801</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999600</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-12-14 08:47:36 -0800</bug_when>
    <thetext>&lt;rdar://117905897&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999682</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-14 12:13:38 -0800</bug_when>
    <thetext>Committed 272062@main (3096c561acce): &lt;https://commits.webkit.org/272062@main&gt;

Reviewed commits have been landed. Closing PR #21801 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024132</commentid>
    <comment_count>5</comment_count>
    <who name="Peter">info</who>
    <bug_when>2024-03-27 03:27:34 -0700</bug_when>
    <thetext>Do you plan to backport this to 16.x?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>