1 From b2cc8f517c6589def4cc126af0b5f1898d61541c Mon Sep 17 00:00:00 2001
2 From: Mike Perry <mikeperry-git@fscked.org>
3 Date: Thu, 8 Sep 2011 08:40:17 -0700
4 Subject: [PATCH 06/16] Make content pref service memory-only + clearable
6 This prevents random urls from being inserted into content-prefs.sqllite in
7 the profile directory as content prefs change (includes site-zoom and perhaps
10 .../contentprefs/nsContentPrefService.js | 4 ++--
11 1 files changed, 2 insertions(+), 2 deletions(-)
13 diff --git a/toolkit/components/contentprefs/nsContentPrefService.js b/toolkit/components/contentprefs/nsContentPrefService.js
14 index 17cac93..1f12609 100644
15 --- a/toolkit/components/contentprefs/nsContentPrefService.js
16 +++ b/toolkit/components/contentprefs/nsContentPrefService.js
17 @@ -1242,7 +1242,7 @@ ContentPrefService.prototype = {
21 - if (!dbFile.exists())
22 + if (true || !dbFile.exists())
23 dbConnection = this._dbCreate(dbService, dbFile);
26 @@ -1290,7 +1290,7 @@ ContentPrefService.prototype = {
29 _dbCreate: function ContentPrefService__dbCreate(aDBService, aDBFile) {
30 - var dbConnection = aDBService.openDatabase(aDBFile);
31 + var dbConnection = aDBService.openSpecialDatabase("memory");
34 this._dbCreateSchema(dbConnection);