$OpenBSD: patch-storage_mozStorageConnection_cpp,v 1.1 2016/04/27 14:01:02 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/mozStorageConnection.cpp.orig	Mon Feb  1 23:40:47 2016
+++ storage/mozStorageConnection.cpp	Tue Feb  2 09:28:55 2016
@@ -743,6 +743,13 @@ Connection::initializeInternal()
     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:
