Commit e5e3c1be authored by Mike Perry's avatar Mike Perry Committed by Mike Perry
Browse files

Make content pref service memory-only + clearable

This prevents random urls from being inserted into content-prefs.sqllite in
the profile directory as content prefs change (includes site-zoom and perhaps
other site prefs?).
parent ab3c82a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1158,7 +1158,7 @@ ContentPrefService.prototype = {

    var dbConnection;

    if (!dbFile.exists())
    if (true || !dbFile.exists())
      dbConnection = this._dbCreate(dbService, dbFile);
    else {
      try {
@@ -1206,7 +1206,7 @@ ContentPrefService.prototype = {
  },

  _dbCreate: function ContentPrefService__dbCreate(aDBService, aDBFile) {
    var dbConnection = aDBService.openDatabase(aDBFile);
    var dbConnection = aDBService.openSpecialDatabase("memory");

    try {
      this._dbCreateSchema(dbConnection);