$OpenBSD: patch-mozilla_storage_src_mozStorageConnection_cpp,v 1.3 2011/07/24 07:10:12 landry Exp $
force the use of secure_delete instead of using internal sqlite copy
--- mozilla/storage/src/mozStorageConnection.cpp.orig	Sat May 28 00:44:29 2011
+++ mozilla/storage/src/mozStorageConnection.cpp	Mon May 30 14:28:50 2011
@@ -558,6 +558,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:
