Closed Bug 95532 Opened 25 years ago Closed 24 years ago

In embedding projects, add triggering PSM init during startup

Categories

(Core Graveyard :: Security: UI, defect, P3)

1.0 Branch
defect

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: inactive-mailbox, Assigned: KaiE)

Details

See bug 76915 for the background. Basically, if there is the risk of having no write access or a full disk, one should make sure during init that PSM can init properly. Some comments from an off-bugzilla discussion: If we're initializing it explictly, and doing things to nsAppRunner.cpp, don't forget about embedding. If the initialization was removed from nsGlobalWindowImpl and into nsAppRunner.cpp, embedding apps would be in a world of hurt. Something similar would have to be done in NS_InitEmbedding(). Conrad Carlen wrote: > > > Kai Engert wrote: > > > >> Regarding NS_InitEmbedding I'd be glad to get some help. Can you > >> tell me > >> at which place I should add the call, and what service/code should > >> I > >> call to display the error? Can I expect the error file to be > >> available > >> as it is in the non-embedding case, or do we need to do something > >> completely different? > >> > This error is first detected in nsNSSComponent.cpp here: > > + if (NSS_InitReadWrite(profileStr) != SECSuccess) { > > right? If that's true, the initialization and error check can't be in > NS_InitEmbedding because, at that point, the profile has not been set. > I think that embedding apps may have to handle this check themselves > :-/
Target Milestone: --- → Future
Changing my prefered e-mail address.
Assignee: kai.engert → kaie
QA > junruh
Priority: -- → P3
QA Contact: ckritzer → junruh
Version: unspecified → 2.1
If the patch for bug 75947 gets accepted, this bug will become obsolete.
Marking fixed per kaie's comment.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm2.1 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.