Closed Bug 1454781 Opened 7 years ago Closed 6 years ago

Show a warning in the devtools console when SameSite value is unrecognized

Categories

(Core :: Networking: Cookies, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: francois, Assigned: baku)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(5 files, 1 obsolete file)

Right now, we silently ignore the SameSite cookie attribute if its value is anything other than `lax` or `strict`. We should add an `else` clause and show a devtools console warning: https://searchfox.org/mozilla-central/rev/f65d7528e34ef1a7665b4a1a7b7cdb1388fcd3aa/netwerk/cookie/nsCookieService.cpp#4005
Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED

Comment on attachment 9130642 [details]
Bug 1454781 - SameSite policy logged in the console - part 3 - report and flush console events, r?dragana

Revision D65243 was moved to bug 1619971. Setting attachment 9130642 [details] to obsolete.

Attachment #9130642 - Attachment is obsolete: true
Attachment #9130757 - Attachment description: Bug 1454781 - SameSite policy logged in the console - part 4 - log invalid sameSite values, r?ehsan → Bug 1454781 - SameSite policy logged in the console - part 3 - log invalid sameSite values, r?ehsan
Attachment #9130755 - Attachment description: Bug 1454781 - SameSite policy logged in the console - part 5 - tests, r?ehsan → Bug 1454781 - SameSite policy logged in the console - part 4 - tests, r?ehsan
Depends on: 1620334
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/538840a78b48 SameSite policy logged in the console - part 1 - more data shown in MOZ_LOG, r=Ehsan https://hg.mozilla.org/integration/autoland/rev/b0a160275ad6 SameSite policy logged in the console - part 2 - Console messages, r=Ehsan https://hg.mozilla.org/integration/autoland/rev/48192dbaa130 SameSite policy logged in the console - part 3 - log invalid sameSite values, r=Ehsan https://hg.mozilla.org/integration/autoland/rev/8e8c6ec56d02 SameSite policy logged in the console - part 4 - tests, r=Ehsan https://hg.mozilla.org/integration/autoland/rev/bd7e270da86d SameSite policy logged in the console - part 5 - Console messages for beta, r=Ehsan
See Also: → 1622306
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: