Closed
Bug 1904557
Opened 1 year ago
Closed 1 year ago
Unify and improve cookie warning messages
Categories
(Core :: Networking: Cookies, enhancement, P2)
Core
Networking: Cookies
Tracking
()
RESOLVED
FIXED
129 Branch
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
Details
(Whiteboard: [necko-triaged])
Attachments
(3 files)
The current cookie parsing implementation generates several error and warning messages in case the cookies are invalid or not fully spec compliant. These messages are often confusing for the developer because they are not grouped and do not follow a particular order or priority.
I would suggest the following changes:
- Move the cookie parsing logic to a separate class:
CookieParser
. - This class does not report warning/error messages during the parsing but, instead, it collects them
- Only at the end of the parsing the warning/error messages are reported following this logic:
- if there is a cookie rejection, only the rejection message is printed
- if the cookie is not rejected, all the warning messages are reported
- the warning messages are grouped under a
Cookie warnings
console group.
Assignee | ||
Updated•1 year ago
|
Summary: Unify cookie warning messages → Unify and improve cookie warning messages
Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3b18bb35281
part 1 - Improve cookie logging - Move cookie parser methods into a CookieParser class, r=timhuang,cookie-reviewers,edgul
https://hg.mozilla.org/integration/autoland/rev/f8dfc2e9673f
part 2 - Improve cookie logging - Move the warning/reject logic in CookieParser, r=timhuang,cookie-reviewers,edgul
https://hg.mozilla.org/integration/autoland/rev/2ce77cdcbb97
part 3 - Improve cookie logging - Groupping the console warnings, r=timhuang,devtools-reviewers,cookie-reviewers,ochameau
Comment 5•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d3b18bb35281
https://hg.mozilla.org/mozilla-central/rev/f8dfc2e9673f
https://hg.mozilla.org/mozilla-central/rev/2ce77cdcbb97
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox129:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•