Issue metadata
Sign in to add a comment
|
Strict same-site cookies not sent on prefetch/prerender
Reported by
sjoer...@gmail.com,
Jul 2 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0 Example URL: Steps to reproduce the problem: 1. Set a same-site cookie: Set-Cookie: strictcookie=helloworld; samesite=strict 2. Prefetch a page on the same domain: <link rel="prefetch" href="somepage"> What is the expected behavior? I expect the request to "somepage" to contain the cookie "strictcookie". What went wrong? The request does not contain the strict same-site cookie. It does contain lax or normal cookies. Did this work before? No Chrome version: 54.0.2786.0 (Official Build) canary (64-bit) Channel: canary OS Version: OS X 10.11 Flash Version:
,
Jul 2 2016
,
Jul 2 2016
The script I wrote to reproduce this bug is faulty, because each header call overwrites the previous 'Set-Cookie' header. I will try to come up with a better reproduction script.
,
Jul 2 2016
I made a new reproduction script, and it seems the bug is already resolved in the lastest Chrome. I could reproduce the bug in 52.0.2743.60 (Official Build) beta (64-bit). When prerendering the strict cookie is not sent. Prefetch works as expected. On 53.0.2783.2 and 54.0.2786.0 it works as expected.
,
Jul 4 2016
sjoerder@ : Thanks for the report, could you please help providing more descriptive steps to triage from our side. mkwst@ : cced you as per the above comment #2, please undo if not related to you.
,
Jul 4 2016
,
Jul 4 2016
In Chrome 52: 1. Set a cookie with samesite=strict. 2. Prerender a page with <link rel="prerender" href="/somepage">. Expected: cookie is sent with prerender request. Actual: cookie is not sent with prerender request. I verified whether the cookie want sent using an intercepting proxy (Burp), as the prerender request does not show up in the network tab of the developer toolbar.
,
Jul 4 2016
Thank you for providing more feedback. Adding requester "rnimmagadda@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 6 2016
,
Jul 6 2016
,
Jul 7 2016
This seems fixed on trunk; I think it ended up being a duplicate of the bug reported at https://bugs.chromium.org/p/chromium/issues/detail?id=619603. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 Deleted