Closed Bug 421005 Opened 16 years ago Closed 16 years ago

FUEL: undefined this._prefs when calling Preferences.type

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 beta5

People

(Reporter: u278084, Assigned: mfinkle)

References

()

Details

Attachments

(1 file, 1 obsolete file)

When you do something like

Application.prefs.get("network.proxy.type").type

from javascript, an exception is thrown because this._prefs is undefined in Preferences object. See above url for exact location this error occurs. It probably needs to get this.branch._prefs
Attached patch some testcases (obsolete) — Splinter Review
The fix is trivial, but I'm doing this as (lame) practice for doing mochitests. Also, if you had it in there, I wouldn't have to file this bug ;)
Summary: FUEL: undefined this._prefs when callling Prefences.type → FUEL: undefined this._prefs when calling Prefences.type
Summary: FUEL: undefined this._prefs when calling Prefences.type → FUEL: undefined this._prefs when calling Preferences.type
Good catch! Do you have a patch, too? :)
Assignee: nobody → mark.finkle
Attachment #307383 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #307454 - Flags: review?(gavin.sharp)
Attachment #307454 - Flags: review?(gavin.sharp) → review+
Attachment #307454 - Flags: approval1.9?
Comment on attachment 307454 [details] [diff] [review]
Fixes Preference.type and adds tests

a1.9+=damons
Attachment #307454 - Flags: approval1.9? → approval1.9+
checked in

mozilla/browser/fuel/src/fuelApplication.js new rev 1.26
mozilla/browser/fuel/test/browser_ApplicationPrefs.js new rev 1.3
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Firefox 3 beta5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: