Cookies are not sent correctly in some cases for video requests
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
People
(Reporter: kaoskaoskaoskaos, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.62 Safari/537.36
Steps to reproduce:
When loading a video clip in some cases cookies are not included in the request
Actual results:
The cookies are not sent to the server
Expected results:
The cookies should have been sent to the server
User agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
(In reply to Kalle from comment #0)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
When loading a video clip in some cases cookies are not included in the request
Actual results:
The cookies are not sent to the server
Expected results:
The cookies should have been sent to the server
Comment 3•6 years ago
|
||
Hi @Kalle, could you please attach a screenshot/s with an example of what you describe?
Further I will set a component to it, if isn't the proper one please fell free to change it.
Thanks.
Updated•6 years ago
|
(In reply to Kalle from comment #1)
User agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
The problem is probably related to the "raced" downloading. Firefox tries to race the downloading of the video clip and the login cookie does not get included. If you reload the page the video clip is loaded correctly since the login cookie is then included. My suggestion is that no external media (images, videos, etc.) should be "raced" or there should be some kind of meta tag to disabled "raced" downloading.
Comment 5•6 years ago
|
||
Please provide a link to a site where we can reproduce it. You can also provide a log of a load with the failure, see https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging
After some more investigation we have come to the conclusion that this bug is not related to the "raced" downloading. It seems to be related to videos downloaded over http and that the video is not requested again if the page is being reloaded. When we changed the video url to https everything works correctly.
Comment 7•6 years ago
|
||
Looks like the video is blocked by mixed content or something else. Does your console show something?
No, this is not the case since it's working correctly if you reload the page manually. And I just noticed that the same problem exists even if you transfer the video over https. And the console doesn't show anything. Something is very wrong with cookie handling when loading videos in the beta. How can something so basic be broken in the beta?
Comment 10•6 years ago
|
||
We need log or STR to move forward. Please see comment 5.
Feel free to reopen if more information is provided.
Description
•