Allow UTF-8 BOM at the beginning of a pref file
Categories
(Core :: Preferences: Backend, defect)
Tracking
()
People
(Reporter: gstoll, Assigned: gstoll)
References
Details
Attachments
(3 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-esr140+
|
Details | Review |
The telemetry data we gathered in bug 2004956 indicates that users have prefs files with a UTF-8 BOM that the prefs parser does not handle correctly. We can just skip over these bytes and parse the file as normal (in our sample data, all of the files would have parsed correctly if we had done this)
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Our telemetry data indicates that this is pretty common. (in an admittedly
small sample) I will continue monitoring the failure rate after this goes
in to see if we get any improvements in Nightly.
Comment 4•2 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: simple fix that could significantly reduce the number of users for which we fail to parse prefs files (fingers crossed!)
- Code covered by automated testing?: yes
- Fix verified in Nightly?: no
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing: n/a
- Risk associated with taking this patch: low
- Explanation of risk level: just skip a few bytes at the beginning of a prefs file if it's a UTF8 BOM
- String changes made/needed?: no
- Is Android affected?: yes
| Assignee | ||
Comment 5•2 months ago
|
||
Our telemetry data indicates that this is pretty common. (in an admittedly
small sample) I will continue monitoring the failure rate after this goes
in to see if we get any improvements in Nightly.
Original Revision: https://phabricator.services.mozilla.com/D287210
Comment 6•2 months ago
|
||
firefox-esr140 Uplift Approval Request
- User impact if declined/Reason for urgency: simple fix that could significantly reduce the number of users for which we fail to parse prefs files (fingers crossed!)
- Code covered by automated testing?: yes
- Fix verified in Nightly?: no
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing: n/a
- Risk associated with taking this patch: low
- Explanation of risk level: just skip a few bytes at the beginning of a prefs file if it's a UTF8 BOM
- String changes made/needed?: no
- Is Android affected?: yes
| Assignee | ||
Comment 7•2 months ago
|
||
Our telemetry data indicates that this is pretty common. (in an admittedly
small sample) I will continue monitoring the failure rate after this goes
in to see if we get any improvements in Nightly.
Original Revision: https://phabricator.services.mozilla.com/D287210
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Description
•