$OpenBSD: patch-mozilla_storage_src_mozStorageConnection_cpp,v 1.2 2011/07/24 07:31:57 landry Exp $
force the use of secure_delete instead of using internal sqlite copy
--- mozilla/storage/src/mozStorageConnection.cpp.orig	Mon Feb 21 12:47:11 2011
+++ mozilla/storage/src/mozStorageConnection.cpp	Wed Mar  2 10:29:08 2011
@@ -384,6 +384,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 preference.
   switch (Service::getSynchronousPref()) {
     case 2:
