Closed Bug 176181 Opened 23 years ago Closed 23 years ago

network.cookie.enableForCurrentSessionOnly doesn't work

Categories

(Firefox :: Settings UI, defect)

x86
All
defect
Not set
major

Tracking

()

VERIFIED FIXED
Phoenix0.4

People

(Reporter: thieleke, Assigned: hyatt)

Details

Attachments

(1 file)

Using the current CVS code. Steps to reproduce: 1. Go to preferences, enable cookies and enable for the current session options. 2. Remove All Cookies. 2. Go to a site that sets persistant cookies (e.g. www.cnn.com). 3. Exit Phoenix. 4. Start Phoenix and notice that there are cookies present. I only have the two cookie related prefs in my prefs.js file: user_pref("network.cookie.enableForCurrentSessionOnly", true); user_pref("network.cookie.enableForOriginatingWebsiteOnly", true);
This bug is caused by a thinko in COOKIE_RegisterPrefCallbacks, introduced in Blake's Oct 19 nsCookies.cpp v1.86 check-in. cookie_SetLifetimePref(forCurrentSession ? COOKIE_Normal : COOKIE_Trim); should obviously be: cookie_SetLifetimePref(forCurrentSession ? COOKIE_Trim : COOKIE_Normal);
Since this is a major regression and the fix is so simple, nominating for 0.4.
Target Milestone: --- → Phoenix0.4
It's not really a "regression" since I was fixing/implementing this among other cookie prefs, but thanks -- I'll look into it.
> It's not really a "regression" since I was > fixing/implementing this among other > cookie prefs, but thanks -- I'll look into it. The loss of "current session only cookies" functionality is the regression from prior versions of Phoenix, not the code change itself. Prior to the Oct 19th check-in, it was possible to have all cookies expire at the end of the session, using the Mozilla-style cookie prefs. After Oct 19th, there is no way to limit the cookie lifetime to the current session.
Keywords: patch
--> me
Assignee: blaker → hyatt
Fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified in 20021029 nightly.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: