Closed Bug 161952 Opened 22 years ago Closed 22 years ago

nsIPermissionManager::RemoveAll doesn't update perm file

Categories

(Core :: Networking: Cookies, defect, P2)

PowerPC
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.2beta

People

(Reporter: cls, Assigned: morse)

Details

Attachments

(1 file)

I was attempting to add a "Clear blocked cookie sites" button to the preferences
pane of chimera for bug 160123 when I ran across this.  Whenever
nsIPermissionManager::RemoveAll is called, the results are never flushed to the
disk.  Looking at nsPermissionManager.cpp, ::RemoveAll just calls
PERMISSION_RemoveAll which just clears the in-memory permission list.  Based
upon nsCookieManager.cpp, a _Write function should be getting called.
PERMISSION_Save is never called.  However, calling PERMISSION_Save wouldn't help
either as it exits early if the permission list is null.  So how do you write an
empty permissions file?
Comment on attachment 94656 [details] [diff] [review]
Remove the perm file instead of saving an empty one

r=morse
Attachment #94656 - Flags: review+
cc'ing alecf for sr
Status: NEW → ASSIGNED
Keywords: nsbeta1
Priority: -- → P2
Target Milestone: --- → mozilla1.2beta
Comment on attachment 94656 [details] [diff] [review]
Remove the perm file instead of saving an empty one

sr=alecf
Attachment #94656 - Flags: superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: