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)
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.
Assignee | ||
Comment 1•24 years ago
|
||
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
Reporter | ||
Comment 2•24 years ago
|
||
when i use
var nsIPrefBranchObj = nsIPrefServiceObj.getBranch(null);
it works fine.
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•