Commit Graph

34 Commits

Author SHA1 Message Date
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
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Matheus Kerschbaum
93480c6366 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Benjamin Smedberg
b21844d3e7 Bug 617539 - Fold nsIContentPrefService_MOZILLA_2_0 back into the main interface, r=gavin 2011-03-25 11:03:34 -04:00
Felipe Gomes
a948862a2e 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
Felipe Gomes
06d6420f9c Back out 435b65622b7b due to orange. a=backout 2010-12-28 12:09:37 -08:00
Felipe Gomes
dc95908515 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 11:05:08 -08:00
Josh Matthews
01b30a7adf Bug 602294 - Unregister directory provider to stop tests leaking. 2010-10-06 15:25:08 -04:00
Alon Zakai
f580035da5 Bug 584842 - nsIContentPrefService remoting. r=myk a=blocking-fennec=2.0b1 2010-09-07 12:16:43 -07:00
Doug Turner
b7cbcd4e41 Backed out changeset 38b763292cb1. MacOS doesn't support E10S tests. a=bah 2010-09-03 22:56:49 -07:00
Alon Zakai
e5f6158a5a 584842 - E10s nsIContentPrefService remoting implementation r=myk, a=blocking-fennec 2010-09-03 21:48:17 -07:00
Joel Maher
b61eda4b1d Bug 586754 Xpcshell tests should use relativesrcdir instead of $MODULE (android prepartion) r=mitchell.field a=NPOTB 2010-08-26 14:47:28 -07:00
Clint Talbert
1afdc1b8df Backed out changeset 49beef9387a0 due to Xpcshell orange a=backout
--HG--
extra : rebase_source : 01307f705ab07b7784401d69a53921b200544978
2010-08-25 14:03:44 -07:00
Joel Maher
51fff79f07 Bug 586754 Change xpcshell to use $relativesrcdir instead of $module for android support a=NPOTB r=mitchell.field 2010-08-25 11:47:39 -07:00
Jonas Sicking
cbc0676504 Backout bugs 586754, 574189, 584611 due to orange. a=backout 2010-08-20 11:08:43 -07:00
Joel Maher
6763342e81 Bug 586754 xpcshell tests should use relativesrcdir instead of $MODULE r=:Mitch a=NPOTB 2010-08-20 09:32:58 -07:00
Ryan Flint
47d53a6d69 Bug 546445 - Asynchronous getPref triggers debug assertion when shutting down sqlite. r=sdwilsh 2010-02-23 12:19:36 -05:00
Ryan Flint
ad78d52ea2 Disable test 2010-02-09 06:29:36 -05:00
Ryan Flint
da462d7bb6 Bug 539907 - Have getPref use asynchronous statements when called with an optional callback. r=myk, sr=robstrong 2010-02-09 05:28:39 -05:00
Geoff Lankow
1ad78e9662 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
Paul O’Shannessy
03f8e29da1 Bug 518453 - Storage usage changes: Don't create statement wrapper & don't use step(). r=myk
--HG--
extra : rebase_source : 2935c5e83eb8733df93be4415f479d4782052f9a
2009-09-25 15:32:21 -07:00
Geoff Lankow
2847b85054 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
Dão Gottwald
8cf4e93d4f Backed out changeset 012d3f753a28 2009-08-28 22:54:33 +02:00
Geoff Lankow
c03044f9d1 Bug 506799 - nsIContentPrefService should accept string arguments for URI as well as nsIURI. r=myk, sr=mconnor 2009-08-28 20:42:01 +02:00
Geoff Lankow
2463d4bcf5 Bug 503971 - nsIContentPrefService methods should throw when passed a null setting name; r=myk sr=mconnor 2009-08-24 19:12:04 +02:00
Geoff Lankow
075cfc79c1 Bug 458299 - nsIContentPrefService should provide an interface for listing stored prefs; r=(gavin.sharp + myk) 2009-07-27 18:13:15 +02:00
Daniel Holbert
2a7d88e05a Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
Johnathan Nightingale
39d975efc1 Expose site-specific settings in CRH dialog. b=380852, r=gavin 2009-01-20 10:59:49 -05:00
Ehsan Akhgari
4770654ff7 Bug 248970 - Private Browsing mode (global toggle for saving/caching everything) [unit test API changes]; r,sr=mconnor 2008-11-04 02:52:22 +03:30
Ehsan Akhgari
35cba1898f Bug 248970 - Private Browsing mode (global toggle for saving/caching everything) [contentprefs part]; r=mconnor 2008-10-20 00:46:22 +03:30
myk@mozilla.org
d7a9815ea6 bug 417732: fix delay and disk activity when full/text zooming by turning PRAGMA SYNCHRONOUS off for the content prefs database; r=mconnor, a=shaver 2008-05-25 18:05:00 -07:00
edward.lee@engineering.uiuc.edu
a5b92170c7 Bustage fix for bug 416208 testcase 2008-02-25 15:47:44 -08:00
myk@mozilla.org
a540b62053 bug 416208: update content pref service to reflect changes to mozIStorageService::openDatabase and improve robustness against database file and schema corruption; r=sdwilsh, a=dsicore 2008-02-25 14:07:52 -08:00
myk@mozilla.org
24e2a85c89 bug 378547: site-specific preference service
r=mconnor
2007-06-19 11:51:09 -07:00