Closed Bug 1125826 Opened 10 years ago Closed 7 years ago

Wildcard cookies aren't displayed correctly in devtools (storage)

Categories

(DevTools :: Storage Inspector, defect, P2)

37 Branch
x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: m+mozilla, Assigned: miker)

References

Details

(Whiteboard: [todo-mr])

Attachments

(4 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150125030202

Steps to reproduce:

- Create a cookie on mysite.dev with domain ".mysite.dev" (wildcard)
- Create a cookie on test.mysite.dev with what you want as domain (just to see the section "test.mysite.dev" in storage tab


Actual results:

The wildcard cookie will be displayed in test.mysite.dev and not in mysite.dev section


Expected results:

Seeing this cookie in test.mysite.dev AND ALSO in mysite.dev
Component: Untriaged → Developer Tools: Storage Inspector
Blocks: 1194190
Status: UNCONFIRMED → NEW
Ever confirmed: true
same effect is with 2 cookies on different paths:

e.g.: www.example.org/somepath

Set-Cookie: foo=spam; path=/
Set-Cookie: foo=ham; path=/somepath
Set-Cookie: foo=egg; domain=.example.org

will display only 1 cookie instead of 3
Attached image Steps to reproduce
Assignee: nobody → mratcliffe
Whiteboard: [papercut-mr]
(In reply to Erwann Mest from comment #0)
> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0)
> Gecko/20100101 Firefox/38.0
> Build ID: 20150125030202
> 
> Steps to reproduce:
> 
> - Create a cookie on mysite.dev with domain ".mysite.dev" (wildcard)
> - Create a cookie on test.mysite.dev with what you want as domain (just to
> see the section "test.mysite.dev" in storage tab
> 
> 
> Actual results:
> 
> The wildcard cookie will be displayed in test.mysite.dev and not in
> mysite.dev section
> 
> 
> Expected results:
> 
> Seeing this cookie in test.mysite.dev AND ALSO in mysite.dev

This is fixed in the latest nightly... please see the attached screenshots in "Wildcard cookie on example.com.png" and "Wildcard and non-wildcard cookie on www.example.com.png".
Attached image 3 Cookies same name.png
(In reply to benjamin.kellermann from comment #1)
> same effect is with 2 cookies on different paths:
> 
> e.g.: www.example.org/somepath
> 
> Set-Cookie: foo=spam; path=/
> Set-Cookie: foo=ham; path=/somepath
> Set-Cookie: foo=egg; domain=.example.org
> 
> will display only 1 cookie instead of 3

Please see this working in the latest nightly in the attached screenshot "3 Cookies same name.png"
The screenshots show that these issues are fixed in the latest nightly.

Can you test these issues in the latest nightly and let us know if it is working for you?
Flags: needinfo?(m+bugzilla)
Status: NEW → ASSIGNED
Filter on Brobdingnagian.
Whiteboard: [papercut-mr] → [todo-mr]
Priority: -- → P2
I can confirm, that it works with the latest nightly (tested with 53.0a1.en-US.linux-x86_64)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(m+bugzilla)
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: