]> Pileus Git - ~andy/sunrise/blob - www-client/torbrowser/files/10.0.1/0008-Make-content-pref-service-memory-only-clearable.patch
imported into portage
[~andy/sunrise] / www-client / torbrowser / files / 10.0.1 / 0008-Make-content-pref-service-memory-only-clearable.patch
1 From 23a09d0a6def1e2f7190177a875ab5a85c5da7b7 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 08/13] Make content pref service memory-only + clearable
5
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
8 other site prefs?).
9 ---
10  .../contentprefs/nsContentPrefService.js           |    4 ++--
11  1 files changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/toolkit/components/contentprefs/nsContentPrefService.js b/toolkit/components/contentprefs/nsContentPrefService.js
14 index adfb650..1619d5f 100644
15 --- a/toolkit/components/contentprefs/nsContentPrefService.js
16 +++ b/toolkit/components/contentprefs/nsContentPrefService.js
17 @@ -1240,7 +1240,7 @@ ContentPrefService.prototype = {
18  
19      var dbConnection;
20  
21 -    if (!dbFile.exists())
22 +    if (true || !dbFile.exists())
23        dbConnection = this._dbCreate(dbService, dbFile);
24      else {
25        try {
26 @@ -1288,7 +1288,7 @@ ContentPrefService.prototype = {
27    },
28  
29    _dbCreate: function ContentPrefService__dbCreate(aDBService, aDBFile) {
30 -    var dbConnection = aDBService.openDatabase(aDBFile);
31 +    var dbConnection = aDBService.openSpecialDatabase("memory");
32  
33      try {
34        this._dbCreateSchema(dbConnection);
35 -- 
36 1.7.5.4
37