Open Bug 1827862 Opened 3 years ago Updated 1 year ago

Set network.cookie.blockUnicode=true

Categories

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

task

Tracking

()

People

(Reporter: valentin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 obsolete file)

No description provided.

This makes Firefox enforce the syntax in the spec and appears to match what chromium source code is doing. folks have talked about doing (but does not yet).

We need to make sure this change gets added to the release notes to give people a chance to understand why they might be broken.

Release Note Request (optional, but appreciated)
[Why is this notable]: This change makes Firefox reject cookies that contain non-ascii characters.
[Affects Firefox for Android]: Yes
[Suggested wording]:

Cookies with non-ascii characters in the name or value will be rejected. Example:

>> document.cookie="🙂=face"
⚠️ Cookie “🙂” has been rejected for invalid characters in the name.

>> document.cookie="smiley=🙂"
⚠️ Cookie “smiley” has been rejected for invalid characters in the value.

[Links (documentation, blog post, etc)]:

relnote-firefox: --- → ?

https://treeherder.mozilla.org/jobs?repo=try&revision=512f631b6f9e1aed67445df364e1f96e29d9848c

This is breaking some tests:
WPT /cookies/encoding/charset.html
dom/html/test/test_non-ascii-cookie.html
dom/manifest/test/browser_ManifestObtainer_credentials.js

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:valentin, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(edgul)

This is not ready yet. We are coordinating with Chrome, but this may have a bigger impact and chance of regressions in some countries than others.

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(edgul)
Assignee: valentin.gosu → nobody
Priority: P2 → P3
Attachment #9328331 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: