--- a/Preferences/__init__.py Fri Mar 11 19:49:18 2016 +0100 +++ b/Preferences/__init__.py Sat Mar 12 16:49:36 2016 +0100 @@ -1036,6 +1036,9 @@ "DoNotTrack": False, "SendReferer": True, "SendRefererWhitelist": ["qt-apps.org", "kde-apps.org"], + "AcceptCookies": 2, # CookieJar.AcceptOnlyFromSitesNavigatedTo + "KeepCookiesUntil": 0, # CookieJar.KeepUntilExpire + "FilterTrackingCookies": True, # Grease Monkey "GreaseMonkeyDisabledScripts": [], # Downloads @@ -2781,8 +2784,7 @@ ## if QWebSettings is None: ## value = prefClass.helpDefaults[key] ## return value -## elif key in ["AcceptCookies", -## "KeepCookiesUntil", "StartupBehavior", +## elif key in ["StartupBehavior", ## "OfflineStorageDatabaseQuota", ## "OfflineWebApplicationCacheQuota", "CachePolicy", ## "AdBlockUpdatePeriod", @@ -2793,11 +2795,11 @@ "SearchLanguage", "WebInspectorPort", "DefaultFontSize", "DefaultFixedFontSize", "MinimumFontSize", "MinimumLogicalFontSize", - "DiskCacheSize", ]: + "DiskCacheSize", "AcceptCookies", "KeepCookiesUntil", + ]: return int(prefClass.settings.value( "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) -## elif key in ["DiskCacheEnabled", "FilterTrackingCookies", -## "PrintBackgrounds", "AdBlockEnabled" +## elif key in ["PrintBackgrounds", "AdBlockEnabled" ## "JavaEnabled", ## "JavaScriptCanCloseWindows", ## "PluginsEnabled", "DnsPrefetchEnabled", @@ -2819,7 +2821,7 @@ "SyncPasswords", "SyncUserAgents", "SyncSpeedDial", "SyncEncryptData", "SyncEncryptPasswordsOnly", "ShowPreview", "WebInspectorEnabled", "DiskCacheEnabled", - "DoNotTrack", "SendReferer", + "DoNotTrack", "SendReferer", "FilterTrackingCookies", ]: return toBool(prefClass.settings.value( "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))