Closed Bug 189205 Opened 22 years ago Closed 22 years ago

Implement early shutdown of NSS resources

Categories

(Core Graveyard :: Security: UI, defect)

1.0 Branch
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(2 files)

For background discussion, see also comments in bug 177260. We would like to land the portions that were initially posted in that other bug, and that allow an early shutdown of NSS resources, even if some XPCom objects are still referenced by the world outside of PSM. However, we still require a certain level of good behaviour from the outside world. We require that all SSL sockets must be closed before PSM is asked to switch the profile.
Attached patch Patch v54Splinter Review
This patch is mostly the latest patch in 177260, however without the portions we already checked in. Note that it contains some printf("=>..."); statements, to allow me some debugging in optimized builds, I'll of course remove them prior to checking it in.
This patch has the changes to reenable the call to NSS_Shutdown as requested in bug 187501, and it also has the code to fix the leaks as reported in bugs 189041 and 189042.
This is a subset, all this code is contained in the other patch, too. These are the changes that implement the tracking and early shutdown logic. All the other changes in the larger patch simply make use of that logic, most of it is automatic variables that track the active context.
Attachment #111625 - Flags: superreview?(darin)
Attachment #111625 - Flags: review?(javi)
Comment on attachment 111625 [details] [diff] [review] Patch v54 r=javi
Attachment #111625 - Flags: review?(javi) → review+
Comment on attachment 111625 [details] [diff] [review] Patch v54 sr=darin
Attachment #111625 - Flags: superreview?(darin) → superreview+
Blocks: 188559
Patch checked in to trunk, marking fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified per kaie's comments.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm2.4 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: