Closed Bug 745501 Opened 12 years ago Closed 12 years ago

Simple string preferences don't get sent to Java properly

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox14 fixed, blocking-fennec1.0 -)

RESOLVED FIXED
Firefox 14
Tracking Status
firefox14 --- fixed
blocking-fennec1.0 --- -

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
The code in browser.js calls getComplexValue which throws an exception. Fennec XUL used to do something different: http://mxr.mozilla.org/mozilla-central/source/mobile/xul/chrome/content/config.js#341 and we should handle that case too.
Attachment #615101 - Flags: review?(mark.finkle)
Comment on attachment 615101 [details] [diff] [review]
Patch

Bug 719662 makes it seem like the nsISupportsString case is handled by the nsIPrefLocalizedString, but this patch looks good for handling a fallback to plain char string prefs.
Attachment #615101 - Flags: review?(mark.finkle) → review+
(In reply to Mark Finkle (:mfinkle) from comment #1)
> Bug 719662 makes it seem like the nsISupportsString case is handled by the
> nsIPrefLocalizedString, 

I was seeing it throw an exception when accessing a pref whose value I had set to be the empty string "" in mobile/android/app/mobile.js. Maybe that case is treated differently? Anyway, this takes care of it.

https://hg.mozilla.org/integration/mozilla-inbound/rev/1ce567bc7915
Target Milestone: --- → Firefox 14
https://hg.mozilla.org/mozilla-central/rev/1ce567bc7915
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
blocking-fennec1.0: ? → -
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: