Only call sqlite3_initialize() when a SQLite database is actually being opened instead of doing it unconditionally.
Sqlite3_initialize() is currently called in the SQLiteDatabase constructor which gets called on WebContent process initialization because a DatabaseTracker is constructed on initialization and DatabaseTracker has a SQLiteDatabase data member.
Created attachment 281860 [details]
Brady will have to review this. I have two questions:
Is it ok to assume that open is always going to be the first call on a SQLiteDatabase? I think the answer is yes.
Should we even have databases in the WebProcess?
Comment on attachment 281860 [details]
Clearing flags on attachment: 281860
Committed r202379: <http://trac.webkit.org/changeset/202379>
All reviewed patches have been landed. Closing bug.