$OpenBSD: patch-storage_mozStorageConnection_cpp,v 1.2 2017/03/07 15:36:45 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	Tue Feb 28 02:55:45 2017
+++ storage/mozStorageConnection.cpp	Thu Mar  2 19:50:28 2017
@@ -782,6 +782,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:
