Initialize app.geo.reportdata pref to avoid annoying nsIPrefBranch.getCharPref() exceptions

RESOLVED FIXED in Firefox 24

Status

()

defect
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: cpeterson, Assigned: cpeterson)

Tracking

({regression})

23 Branch
Firefox 24
All
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox23 unaffected, firefox24 fixed)

Details

Attachments

(1 attachment)

Every time I run Fennec, the following JS exception is dumped to logcat because Fennec is trying to read the uninitialized "app.geo.reportdata" pref:

E/GeckoConsole( 8712): Error reading pref [app.geo.reportdata]: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://browser/content/browser.js :: getPreferences :: line 1044"  data: no]

This warning is harmless, but it is very annoying because I do a double-take every time I see "Error" and "Exception" in logcat when debugging. :)
Attachment #762370 - Flags: review?(blassey.bugs)
Attachment #762370 - Flags: review?(blassey.bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/7fc2d9ea82b6
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
You need to log in before you can comment on or make changes to this bug.