Bug 117302

Summary: Disabling cookies deletes per domain cookie handling settings
Product: [Applications] konqueror Reporter: Anders E. Andersen <andersa>
Component: kcookiejarAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.4.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Anders E. Andersen 2005-11-29 22:13:58 UTC
Version:           3.4.2 (using KDE 3.4.2, Debian Package 4:3.4.2-4 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.14-asus-1

Suppose you have had cookies enabled for a while with the ask setting. Eventually you will accumulate a lot of per domain settings for rejecting or accepting cookies.

If you disable cookies entirely, this list is cleared.

It should only be cleared when you click the clear all button and accept. Disabling cookies should preserve the list.
Comment 1 Philip Rodrigues 2006-09-07 23:58:12 UTC
Confirmed on 3.5 branch r575787
Comment 2 Dawit Alemayehu 2007-09-03 06:30:18 UTC
SVN commit 707819 by adawit:

- Do not loose the domain-specific cookie policies when cookie support is disabled and re-enabled again.

BUG:117302


 M  +1 -1      kcookiespolicies.cpp  


--- branches/KDE/3.5/kdebase/kcontrol/kio/kcookiespolicies.cpp #707818:707819
@@ -313,12 +313,12 @@
   dlg->cbAutoAcceptSessionCookies->setChecked (sessionCookies);
   bool cookieExpiration = cfg.readBoolEntry("IgnoreExpirationDate", false);
   dlg->cbIgnoreCookieExpirationDate->setChecked (cookieExpiration);
+  updateDomainList(cfg.readListEntry("CookieDomainAdvice"));
 
   if (enableCookies)
   {
     ignoreCookieExpirationDate( cookieExpiration );
     autoAcceptSessionCookies( sessionCookies );
-    updateDomainList(cfg.readListEntry("CookieDomainAdvice"));
     updateButtons();
   }