Closed Bug 1565990 Opened 6 years ago Closed 6 years ago

Cookies are not sent correctly in some cases for video requests

Categories

(Core :: Networking: Cookies, defect)

69 Branch
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

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

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.

Component: Untriaged → Networking: Cookies
Product: Firefox → Core
Flags: needinfo?(kaoskaoskaoskaos)

(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.

Flags: needinfo?(kaoskaoskaoskaos)

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

Flags: needinfo?(kaoskaoskaoskaos)

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.

Flags: needinfo?(kaoskaoskaoskaos)

Looks like the video is blocked by mixed content or something else. Does your console show something?

Flags: needinfo?(kaoskaoskaoskaos)

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?

Kalle, please see comment 5.

We need log or STR to move forward. Please see comment 5.
Feel free to reopen if more information is provided.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(kaoskaoskaoskaos)
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.