$OpenBSD: patch-mozilla_storage_src_mozStorageConnection_cpp,v 1.1 2011/01/14 22:57:44 landry Exp $
--- mozilla/storage/src/mozStorageConnection.cpp.orig	Wed Jan 12 09:50:06 2011
+++ mozilla/storage/src/mozStorageConnection.cpp	Wed Jan 12 09:53:55 2011
@@ -375,6 +375,13 @@ Connection::initialize(nsIFile *aDatabaseFile)
     return convertResultCode(srv);
   }
 
+  srv = ::sqlite3_exec(mDBConn, "PRAGMA secure_delete = ON", NULL, NULL, NULL);
+  if (srv != SQLITE_OK) {
+    ::sqlite3_close(mDBConn);
+    mDBConn = nsnull;
+    return convertResultCode(srv);
+  }
+
   // Set the synchronous PRAGMA, according to the pref
   nsCOMPtr<nsIPrefBranch> pref(do_GetService(NS_PREFSERVICE_CONTRACTID));
   PRInt32 synchronous = 1; // Default to NORMAL if pref not set
