$OpenBSD: patch-mozilla_storage_src_mozStorageConnection_cpp,v 1.9 2012/06/11 15:38:33 landry Exp $
force the use of secure_delete instead of using internal sqlite copy
--- mozilla/storage/src/mozStorageConnection.cpp.orig	Fri May 18 06:11:03 2012
+++ mozilla/storage/src/mozStorageConnection.cpp	Fri May 18 09:27:59 2012
@@ -700,6 +700,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:
