<div dir="ltr"><span style="line-height:normal">2015-03-25 11:38 GMT+01:00 Jérémy Lal </span><span dir="ltr" style="line-height:normal">&lt;<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>&gt;</span><span style="line-height:normal">:</span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">2015-03-25 11:29 GMT+01:00 Carlos Garcia Campos &lt;<a href="mailto:cgarcia@igalia.com">cgarcia@igalia.com</a>&gt;:<br>
&gt; El mié, 25-03-2015 a las 11:20 +0100, Jérémy Lal escribió:<br>
&gt;&gt; 2015-03-25 9:01 GMT+01:00 Carlos Garcia Campos &lt;<a href="mailto:cgarcia@igalia.com">cgarcia@igalia.com</a>&gt;:<br>
&gt;&gt; &gt; El mar, 24-03-2015 a las 22:48 +0100, Jérémy Lal escribió:<br>
&gt;&gt; &gt;&gt; 2015-03-24 21:21 GMT+01:00 Jérémy Lal &lt;<a href="mailto:kapouer@melix.org">kapouer@melix.org</a>&gt;:<br>
&gt;&gt; &gt;&gt; &gt; I&#39;m seeing something very weird in a complicated setup here, and am trying to<br>
&gt;&gt; &gt;&gt; &gt; understand what&#39;s happening:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; 1 - open page urlA, Set-Cookie CA<br>
&gt;&gt; &gt;&gt; &gt; 2 - do xhr requests to urlB (ETag set in response)<br>
&gt;&gt; &gt;&gt; &gt; 3 - load same page urlA, Set-Cookie CB<br>
&gt;&gt; &gt;&gt; &gt; 4 - do xhr request to urlB 304 (If-None-Match hit), a response is sent<br>
&gt;&gt; &gt;&gt; &gt; from expressjs server, without a content-type header set (the server<br>
&gt;&gt; &gt;&gt; &gt; gets Cookie CB)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I think i found how to reproduce with this precision in step 4:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 4 - do xhr request to urlB 304 (If-None-Match hit)<br>
&gt;&gt; &gt;&gt; ** with the same Last-Modified header as in step 2 **<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; It makes webkit2gtk 2.7.4 go back in time and it start sending cookies<br>
&gt;&gt; &gt;&gt; from the past !<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; 5 - a second xhr request to never requested urlC is done: the server<br>
&gt;&gt; &gt;&gt; &gt; gets Cookie CA !<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; am going to test against webkit2gtk 2.8.0<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; building...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What libsoup version are you using?<br>
&gt;&gt;<br>
&gt;&gt; The one from debian jessie, 2.48.<br>
&gt;&gt; I just gave a try with webkit2gtk 2.8.0 and it does the same.<br>
&gt;<br>
&gt; I asked because the new libsoup version 2.50 has several fixes in the<br>
&gt; disk cache.<br>
<br>
</div></div>I just read the changelog and am almost already convinced the bug is<br>
already fixes there :)<br>
<span class=""><br>
&gt;<br>
&gt;&gt; The symptoms are a bit different. Sometimes when i do a test, the bug<br>
&gt;&gt; does not appear,<br>
&gt;&gt; and two third of the times it appears.<br>
&gt;<br>
&gt; Could you file a bug report with instructions to reproduce the issue? or<br>
&gt; even better a test case if possible?<br>
<br>
</span>I&#39;ll try to trim the code down to the minimum. Expect nodejs code...<br></blockquote><div></div></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Hi,</div><div class="gmail_extra"><br></div><div class="gmail_extra">i opened</div><div class="gmail_extra"><a href="https://bugs.webkit.org/show_bug.cgi?id=145734">https://bugs.webkit.org/show_bug.cgi?id=145734</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">with code for reproducing the problem i&#39;m seeing - which is simpler to understand now :)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Jérémy.</div><div class="gmail_extra"><br></div></div>