Closed Bug 96678 Opened 23 years ago Closed 23 years ago

delay loading of nslocale from nsPrefBranch::GetDefaultFromPropertiesFile

Categories

(Core :: Networking: HTTP, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ftang, Assigned: dp)

References

(Depends on 1 open bug)

Details

this is a spin off from 75041.
we load the nslocale from

....
nsPrefBranch::GetDefaultFromPropertiesFile
....
nsPref::GetLocalizedUnicharPref
....
nsHttpHandler::InitUserAgentComponents
....
nsHttpHandler::Create
...
nsIOService::GetProtocolHandler
....
nsCodebasePrincipal::InitFromPersistent
...

The need to load nslocale.dll in nsPrefBranch::GetDefaultFromPropertiesFile is
reasonable and there are no way I can delay it in there. However, I wonder maybe
 that we can delay calling nsHttpHandler::InitUserAgentComponents(), or even 
codebase->InitFromPersistent for "http://www.netscape.com"
Blocks: 75041
Depends on: 96680
"If that pref is accessed, there isn't a way to delay loading nslocale. Maybe we
should delay that pref being accessed." - ftang

I will take this bug.
Assignee: ftang → dp
Depends on: 96681
There is nothing to be done here. bug# 96681 is the best we can do - delaying
the caller.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.