Closed
Bug 1419042
Opened 6 years ago
Closed 6 years ago
Uncaught exception when calling getCharPref for distribution.version in Preferences
Categories
(Firefox :: Settings UI, defect, P1)
Tracking
()
RESOLVED
FIXED
Firefox 59
People
(Reporter: jaws, Assigned: jaws)
References
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
evanxd
:
review+
gchang
:
approval-mozilla-beta+
Sylvestre
:
approval-mozilla-release+
|
Details |
A user on Reddit reported that the preferences were not opening correctly for them[1]. They attached a screenshot (attached) that showed an error on line 379 of main.js (NS_ERROR_UNEXPECTED on nsIPrefBranch.getCharPref). Line 379 of main.js attempts to call nsIPrefBranch.getCharPref() without a fallback value[2]. [1] https://www.reddit.com/r/firefox/comments/7dfgnr/youve_earned_it_firefox/dpxo8qc/ [2] https://dxr.mozilla.org/mozilla-release/rev/3702966a64c80e17d01f613b0a464f92695524fc/browser/components/preferences/in-content/main.js#379
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Priority: -- → P1
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8930112 [details] Bug 1419042 - Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. https://reviewboard.mozilla.org/r/201284/#review206810 Looks good to me. Thank you.
Attachment #8930112 -
Flags: review?(evan) → review+
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64ee916b6bb9 Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. r=evanxd
Comment 4•6 years ago
|
||
Backed out 1 changesets (bug 1419042) on request from jaws r=backout on a CLOSED TREE Backout link: https://hg.mozilla.org/integration/autoland/rev/316b73a02f6c422295f6844517fbd7046d569338
Comment hidden (mozreview-request) |
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67d04a3bf037 Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. r=evanxd
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/67d04a3bf037
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Assignee | ||
Comment 8•6 years ago
|
||
Comment on attachment 8930112 [details] Bug 1419042 - Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. Approval Request Comment [Feature/Bug causing the regression]: The new preferences, first released in v56, added some version strings to the updates section. Some users, at least one user on Reddit, reported that preferences don't open when they installed v57. This was due to their `distribution.version` pref being missing. This user would have had the same problem if they opened the About window but that is less likely for most users compared to the Preferences. [User impact if declined]: potentially broken Preferences and About window [Is this code covered by automated tests?]: no [Has the fix been verified in Nightly?]: no [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: no [Why is the change risky/not risky?]: This change adds a fallback default value for the `distribution.version` preference and will only use the value if it has been found, otherwise it will display the distribution ID without the associated version. This should be safe to uplift, and could ride along with a chemspill if one is needed due to other factors. [String changes made/needed]:
Attachment #8930112 -
Flags: approval-mozilla-release?
Attachment #8930112 -
Flags: approval-mozilla-beta?
Comment 9•6 years ago
|
||
Comment on attachment 8930112 [details] Bug 1419042 - Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. Fix a potential broken preferences and about window issue. Beta58+.
Attachment #8930112 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•6 years ago
|
status-firefox57:
--- → affected
status-firefox58:
--- → affected
Comment 10•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/1f8410489ea6
Comment 11•6 years ago
|
||
Comment on attachment 8930112 [details] Bug 1419042 - Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. Not being able to open the preferences seems to be a pain, taking it in 57.0.1
Attachment #8930112 -
Flags: approval-mozilla-release? → approval-mozilla-release+
Comment 12•6 years ago
|
||
uplift |
https://hg.mozilla.org/releases/mozilla-release/rev/bb567288734838a9a39af0b000d7087ac132662d
You need to log in
before you can comment on or make changes to this bug.
Description
•