gecko/toolkit/components/contentprefs/tests/unit
arno renevier 72d929e113 bug 679784: let nsIContentPrefService handle private browsing mode; r=ehsan
Manage private browsing mode in content pref service. CPS should be available
in private browsing mode, but should not store informations on disk, and should
clear all informations once the private session ends.

When setting a pref in private mode, it is stored in an in-memory hash table.
When getting a pref, it is retrieved from that hash table if available.
Otherwise, it is retrieved using the standard mechanism. When removing a pref,
it is retrieved from the hash table. The rationale is that in private mode,
it's ok to read a pref from normal database, but not ok to set it.

The in-memory hash table is cleared when leaving the private browsing mode.

When removing a set of preferences (with removeGroupedPrefs or
removePrefsByName), preferences are removed from the in-memory hashtable, *and*
from normal mode database. The rationale is that visiting a website may trigger
setting/getting/removing for a specific preference only. But removing many
prefs at once is the result of an action not associated with a website. For
example, user may wish to delete all its informations. In that case, user
probably expects to not have those informations restored once it leaves private
browsing mode.
2011-09-01 14:13:03 -04:00
..
head_contentPrefs.js Bug 602294 - Unregister directory provider to stop tests leaking. 2010-10-06 15:25:08 -04:00
tail_contentPrefs.js Bug 559992. Implement a caching mechanism for the contentprefs service and use it to retrieve page-specific zoom values, avoiding zoom flicker with back/forward navigation. r=gavin sr=vlad a=blocking-betaN 2010-12-28 12:45:04 -08:00
test_bug248970.js bug 679784: let nsIContentPrefService handle private browsing mode; r=ehsan 2011-09-01 14:13:03 -04:00
test_bug503971.js Bug 503971 - nsIContentPrefService methods should throw when passed a null setting name; r=myk sr=mconnor 2009-08-24 19:12:04 +02:00
test_bug679784.js bug 679784: let nsIContentPrefService handle private browsing mode; r=ehsan 2011-09-01 14:13:03 -04:00
test_contentPrefs.js Bug 518453 - Storage usage changes: Don't create statement wrapper & don't use step(). r=myk 2009-09-25 15:32:21 -07:00
test_contentPrefsCache.js Bug 617539 - Fold nsIContentPrefService_MOZILLA_2_0 back into the main interface, r=gavin 2011-03-25 11:03:34 -04:00
test_getPrefAsync.js Bug 546445 - Asynchronous getPref triggers debug assertion when shutting down sqlite. r=sdwilsh 2010-02-23 12:19:36 -05:00
test_stringGroups.js Bug 506799 - "nsIContentPrefService should accept string arguments for URI as well as nsIURI" [r=myk sr=mconnor] 2009-09-04 21:22:19 -05:00
test_unusedGroupsAndSettings.js Bug 537189 - Ensure no data is left behind after removing prefs via 'removePrefsByName' and 'removeGroupedPrefs', r=myk 2010-01-05 18:38:06 -05:00
xpcshell.ini bug 679784: let nsIContentPrefService handle private browsing mode; r=ehsan 2011-09-01 14:13:03 -04:00