New issue
Advanced search Search tips

Issue 871998 link

Starred by 10 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Chrome losing the cookie during subsequent requests while DevTools is open

Reported by kulk...@gmail.com, Aug 7

Issue description

Chrome Version       : Version 66.0.3359.181 (Official Build) (64-bit)

URLs (if applicable) : https://def-chrome.devl.us.e01.c01.johndeerecloud.com/

Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue:

Opera(OS X): FAIL - 54.0.2952.64
     Safari: OK - Version 11.1.2 (12605.3.8.1)
    Firefox: OK - 61.0.1 (64-bit)
       Edge: OK - IE 11.0.9600.19080CO

What steps will reproduce the problem?
(1) Create new user: https://myjohndeere.tal.deere.com
(2) Use the credentials in step (1) to login to https://def-chrome.devl.us.e01.c01.johndeerecloud.com/
(3) Once the tiles are loaded(aqua colored), zoom in and out of map quickly. In few seconds you should see multiple 403s in console, with map not showing the tiles (shows the actual map without overlay).

What is the expected result?
Fast zooming in/out should be possible without losing the 'client' cookie.

What happens instead?
As we zoom in/out quickly, Chrome changes the cookie which causes 403 from server.

Please provide any additional information below. Attach a screenshot if possible.
In the example above, /setSessionData endpoint sets an authenticated flag on the server side for the specific session, at the very start of map loading. For each /getTileImage call, server verifies if the session is authenticated. It returns 403 when it is not.
Please see attached GIF.

 
Chromium.gif
12.6 MB View Download
Labels: Needs-Milestone
Any updates on this defect? We are looking for the Chromium team to confirm our assumption that this is a Chromium issue and not an application issue.
This is a pretty critical issue for our application. We are looking for someone from Chromium to help provide direction. If you need any more details, please let us know. 
Cc: phanindra.mandapaka@chromium.org
Labels: Needs-Feedback Triaged-ET
Tried to reproduce the issue on latest chrome stable 68.0.3440.106 using Mac 10.13.6. Attaching screen-cast for reference.
Steps: 
------
1. Launched reported chrome 
2. Navigated the URL " https://myjohndeere.tal.deere.com " 
3. Tried to create a user 
As we are getting error while creating a user as per screen-cast

@Reporter: Could you please review the attached screen-cast and confirm if anything being missed here.Could you please upgrade to latest chrome Beta 69.0.3497.57, you can download latest chrome builds here:" https://www.chromium.org/getting-involved/dev-channel ". Chrome beta is rolled out very soon as stable. Let us know whether issue still persists.
Thanks.!


871998.mp4
1.2 MB View Download
Hi, looks like it was temporary issue with our development environment. We used the email in screen cast and could register successfully. You should have an email in your inbox with a link to validate your profile.
Project Member

Comment 6 by sheriffbot@chromium.org, Aug 30

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: vamshi.kommuri@chromium.org
Components: Internals>Network>Cookies
Labels: Needs-Feedback
Thanks for registering using the email ID shown in screencast, we have successfully validated our profile and have set the password.
After navigating to https://def-chrome.devl.us.e01.c01.johndeerecloud.com/ and Zoomed In/Out when tiles are loaded (...into aqua colour), we didn't observe any 403s in DevTools console.

@Reporter: As mentioned in comment#0 about being connected with a server, Could you please mention if it's mandatory to connect to a server in order to reproduce this issue. Requesting you to check the same issue on the latest chrome stable and let us know its behaviour, as version 66.0.3359.181 being an old one. Please find the below URL to download/install the chrome latest versions.
https://www.chromium.org/getting-involved/dev-channel

Thanks!
I was able to reproduce this with: Version 69.0.3497.81 (Official Build) (64-bit) on Mac. 

Please make sure your repeatedly click the zoom out and/or zoom in button without hesitation. I was able to make it occur on the first try for a 3 or 4 times I attempted. 
Hi, We tested the issue in latest stable version and could reproduce it easily. The steps were very similar to the gif provided in comment#0. Can you please try again?

As cookies are lost during subsequent requests, server interaction would be required.

Latest stable version tried: Version 69.0.3497.81 (Official Build) (64-bit)
Project Member

Comment 10 by sheriffbot@chromium.org, Sep 5

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
As per comment#9, the issue seems to be triaged with server interaction which would be out of scope for us to triage it further from our end, hence requesting someone from Internals>Network>Cookies team to have a look into it and help in further triaging it.

Thanks!
Labels: TE-NeedsTriageHelp
Adding label "TE-NeedsTriageHelp" and requesting someone from Internals>Network>Cookies team to help in further triaging it.

Thanks!
Hi Team, Any update on this? Please let us know if you have any questions.
Cc: morlovich@chromium.org

Comment 15 Deleted

I was able to reproduce this issue.

Can you reproduce it without opening devtools? It might be related to the SameSite=Lax attribute when the request is initiated by devtools instead of the site.

Components: Platform>DevTools>Network
This seems likely to be an issue with chrome-devtools://devtools/ URLs appearing in the initiator field.
Components: Blink>Loader
Summary: Chrome losing the cookie during subsequent requests while DevTools is open (was: Chrome losing the cookie during subsequent requests)
Talked a bit more to chlily about this.  We're pretty confident this is solely a devtools issue, due to it misconfiguring its ResourceRequests' |request_initiator| field, which is used for the SameSite=Lax check.

We defer to the devtools team (and maybe the loader team) on fixing it - the network stack team doesn't have much familiarity with the code in blink to issue requests, or how that changes when devtools is enabled.
Labels: -Pri-3 Pri-2
Thanks, we too couldn't reproduce this with the devtools closed.
Project Member

Comment 21 by sheriffbot@chromium.org, Oct 4

Cc: chlily@google.com
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Great, thanks for the prompt follow up, and sorry for the delay investigating!
Cc: -chlily@google.com chlily@chromium.org
Owner: jarhar@chromium.org
Status: Assigned (was: Unconfirmed)
Status: Fixed (was: Assigned)
Thanks for your investigation mmenke@ and chlily@

The problem is that the network panel in DevTools re-issues failed requests for images in order to create an image preview. In this case, the request didn't contain authentication and would get redirected and somehow change the cookie. I couldn't see how or where the cookie was getting changed, but I changed the network panel to stop issuing those requests which fixed the bug.
Cc: susan.boorgula@chromium.org
 Issue 895939  has been merged into this issue.
The cookie was presumably changed by the server, which was confused by DevTools requests losing their cookies, so to speak.  Thanks for the investigation!

Sign in to add a comment