Unescaped non-ASCII cookies are corrupted in sessionstore
Categories
(Firefox :: Session Restore, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | verified |
People
(Reporter: mail, Assigned: emk)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comments in bug 1558836 pinpoint the cause of this issue, fwiw.
Assignee | ||
Comment 3•6 years ago
|
||
Session states (including cookies) are encoded in UTF-8 on save, so it should also be treated as UTF-8 on restore.
https://searchfox.org/mozilla-central/rev/d62176d3d70bbf9ad86a5d444f9edada52cbc2b1/browser/components/sessionstore/SessionWorker.js#161
https://searchfox.org/mozilla-central/rev/d62176d3d70bbf9ad86a5d444f9edada52cbc2b1/browser/components/sessionstore/SessionWorker.js#18
Assignee | ||
Comment 4•6 years ago
|
||
nsICookie changed the value
property type to AUTF8String
. So nsICookieManager.add
should also change for consistency.
https://searchfox.org/mozilla-central/diff/280752aa618928f8fd1aad71e6c1e31f64834ed2/netwerk/cookie/nsICookie.idl#29
(Oh, and this is my change in bug 826159. Sorry for overlooking this.)
Assignee | ||
Comment 5•6 years ago
|
||
Comment 7•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 8•6 years ago
|
||
Confirmed issue with 58.0a1 (2017-10-16).
Fix verified with 69.0b7 on Windows 10, macOS 10.13, Ubuntu 18.04.
Description
•