Closed Bug 1666678 Opened 4 years ago Closed 4 years ago

[cookie] rejected cookie when domain have ipv6 address

Categories

(Core :: Networking: Cookies, defect, P2)

79 Branch
defect

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: niketanravalw, Assigned: valentin)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [necko-triaged])

Attachments

(4 files)

Attached image Domain removed.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

Application : PHP Laravel
Tested on desktop Arch-linux

Steps

  • set cookie with ipv6 address in domain

Request :
Set-Cookie: T1=T2; path=/; SameSite=Lax; domain=[2001:db8:1::242:ac11:3]; httponly

Actual results:

Not Working:

  • when domain set
    Working :
  • when domain not set

Expected results:

Chrome :

  • support with or without domain parameter with ipv6 address

Firefox :

  • not suppored when ipv6 address in domain.

Rejected Cookie Image

Comment on attachment 9177275 [details]
Domain removed.png

Working cookie without domain attribute

Comment on attachment 9177275 [details]
Domain removed.png

Working cookie without domain attribute

Attached image Domain removed.png

Image: working cookie without domain attribute

Component: Untriaged → Networking: Cookies
Product: Firefox → Core
Assignee: nobody → valentin.gosu
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Regressed by: cookie
Whiteboard: [necko-triaged]
Has Regression Range: --- → yes
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/71aa02ea22b6
[cookie] rejected cookie when domain have ipv6 address r=baku

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:valentin, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(valentin.gosu)
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/7905e3c24450
[cookie] rejected cookie when domain have ipv6 address r=baku
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Flags: needinfo?(valentin.gosu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: