<?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>26250</bug_id>
          
          <creation_ts>2009-06-07 22:10:06 -0700</creation_ts>
          <short_desc>If cookie string assigned to document.cookie has &quot;expires&quot; no greater than 3600 seconds from now, the cookie is not changed.</short_desc>
          <delta_ts>2012-09-07 10:06:31 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Morgan Cheng">morgan_cheng</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124726</commentid>
    <comment_count>0</comment_count>
    <who name="Morgan Cheng">morgan_cheng</who>
    <bug_when>2009-06-07 22:10:06 -0700</bug_when>
    <thetext>Below script demo this issue.
If document.cookie is assigned a cookie with expires no greater than 1 hour (3600 seconds) from now, the cookie is not set. If expires is greater than 3600 seconds, it works.

&lt;body&gt;
	&lt;script&gt;
		var dt = new Date();
		dt.setSeconds(dt.getSeconds() + 3600);

		document.cookie = &quot;cookietest=1; expires=&quot; + dt.toGMTString();
		var cookiesEnabled = document.cookie.indexOf(&quot;cookietest=&quot;) != -1;
		alert(document.cookie);
		alert(cookiesEnabled);
		
	&lt;/script&gt;
&lt;/body&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124907</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2009-06-08 23:35:36 -0700</bug_when>
    <thetext>Morgan, does this issue still occur in the final release of Safari 4 for Windows? If it only occurs in Safari 4 Public Beta for Windows, then it is caused by a bug in CFNetwork (tracked by &lt;rdar://problem/6772112&gt;), which is also the root cause of bug 25861.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714175</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2012-09-06 23:35:17 -0700</bug_when>
    <thetext>This is not a JSC bug, moving to the misc component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714648</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-09-07 10:06:31 -0700</bug_when>
    <thetext>No answer in more than 3 years, marking INVALID. Please feel free to re-open if you have additional information, or to open a new bug if you are seeing something similar, but not necessarily the same issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>