Closed Bug 79469 Opened 24 years ago Closed 24 years ago

getBoolPref method of nsIPrefBranch does not pick up preferences from pref.js.

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: dsirnapalli, Assigned: alecf)

Details

getBoolPref or getCharPref does not pick up preferences from pref.js.Instead it picks up from all.js.here is snippet of my code. var nsIPrefBranchObj = nsIPrefServiceObj.getDefaultBranch(null); alert(nsIPrefBranchObj.getBoolPref("browser.display.use_system_colors")); Even though pref.js contains false for browser.display.use_system_colors the alert displays true. all.js contains true for browser.display.use_system_colors.I believe its picking up from all.js even though this preference is set in prefs.js.
the browser wouldn't function if getBoolPref() wasn't working. Something is wrong with the way you're using the pref API.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
when i use var nsIPrefBranchObj = nsIPrefServiceObj.getBranch(null); it works fine.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.