In the network monitor, indicate somehow when cookies are ignored by Content Blocking
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: ehsan.akhgari, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
(deleted),
image/png
|
Details |
Comment 1•6 years ago
|
||
Tanks for the report Ehsan!
This could be done as part of our "Improve content blocking debugging flow" effort (bug 1484005)
Honza
Comment 2•5 years ago
|
||
Are there any platform API we could use to calculate the list of ignored cookies? (to be as close as possible to the reality)
Honza
Comment 3•5 years ago
|
||
SameSite should probably also be part of this, as it blocks cookies.
Reporter | ||
Comment 4•5 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #2)
Are there any platform API we could use to calculate the list of ignored cookies? (to be as close as possible to the reality)
We currently send the "cookie-rejected"
observer notification ever time we decide to not accept a cookie (when reading/writing them). Is that enough for your needs? If not we can probably add something else that matches your needs...
Comment 5•5 years ago
|
||
I've tested the "cookie-rejected" notification with same-site cookies and created a simple test scenario
-
Honza'a origin site that creates two cookies. One
samesite=Strict
and secondsamesite=Lax
http://softwareishard.com/tests/network/blocked-cookies/my-site.php -
Third party site that loads an image from Honza's site
http://odvarko.com/tests/network/blocked-cookies/third-party-site.php
This site blocks the cookies when loading the image.
I was able to handle "cookie-rejected" event but, the subject is pointing to host URL object. The object is passed in here:
https://searchfox.org/mozilla-central/rev/9b4b41b95cbcda63f565bdc24411e15248f91d83/netwerk/cookie/nsCookieService.cpp#2218
How can I see what specific cookie is blocked from the event?
Honza
Reporter | ||
Comment 6•5 years ago
|
||
That information isn't currently exposed on this event. It is also not always meaningful, only when setting cookies. This same notification is dispatched when reading cookies, and there we may have one or more cookies stored in the cookie manager which are being denied, so there is no single name of the cookie being rejected to present alongside with this event.
Updated•2 years ago
|
Description
•