$OpenBSD: patch-storage_src_mozStorageConnection_cpp,v 1.19 2013/06/26 19:29:15 landry Exp $
set secure_delete PRAGMA on by default, instead of using internal sqlite copy
https://bugzilla.mozilla.org/show_bug.cgi?id=546162
--- storage/src/mozStorageConnection.cpp.orig	Wed May 29 03:16:25 2013
+++ storage/src/mozStorageConnection.cpp	Fri May 31 16:53:04 2013
@@ -601,6 +601,13 @@ Connection::initializeInternal(nsIFile* aDatabaseFile)
     return convertResultCode(srv);
   }
 
+  srv = ::sqlite3_exec(mDBConn, "PRAGMA secure_delete = ON", NULL, NULL, NULL);
+  if (srv != SQLITE_OK) {
+    ::sqlite3_close(mDBConn);
+    mDBConn = nullptr;
+    return convertResultCode(srv);
+  }
+
   // Set the synchronous PRAGMA, according to the preference.
   switch (Service::getSynchronousPref()) {
     case 2:
