Closed Bug 161626 Opened 24 years ago Closed 23 years ago

mozilla can't read pref when the ioservice is initialized

Categories

(Core :: Networking, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: antonio.xu, Assigned: neeti)

Details

I found a problem in ioservice:init() function. I saw it want to read preference file for modify the port list in ioservice:init(). But it seems didn't work due to we can not get portlist form preference file. I guess we can not read the preferrnce file when mozilla starting ioservice. the below code can not work in ioservice:init(). nsCOMPtr<nsIPrefBranch> prefBranch; 221 GetPrefBranch(getter_AddRefs(prefBranch)); 222 if (prefBranch) { 223 nsCOMPtr<nsIPrefBranchInternal> pbi = do_QueryInterface(prefBranch); 224 if (pbi) { 225 pbi->AddObserver(PORT_PREF_PREFIX, this, PR_TRUE); 226 pbi->AddObserver(AUTODIAL_PREF, this, PR_TRUE); 227 } 228 PrefsChanged(prefBranch); 229 } mozilla can support customer editing portlist. But sometime, customer change the pref.js for making mozilla to open/block some port. The function must let ioservice read perf for change portlist when the ioservice is initialized. But ioservice can't read pref when the ioservice is initialized. So the customer still couldn't change the ioservice's portlist. Expected Results: The ioservice can read pref when the ioservice is initialized
me
Assignee: dougt → neeti
reporter: When the ioservice is initialized, the user's profile has not been selected, and the user's prefs.js file has not been read, so we cannot get the portlist from the preference file. But once the preference file is read, it notifies all its observers, and the ioservice is able to read the prefs.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.