Replace the release assertion to release logging to gather information about the bug. Crashing network process for failing to open a database seems too aggressive.
<rdar://problem/59687897>
Created attachment 391557 [details] Patch
Comment on attachment 391557 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=391557&action=review > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692 > - RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)); > + if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) { Don't we also want to log objectStoreInfoTableName and objectStoreInfoTableNameAlternate?
(In reply to Ryosuke Niwa from comment #3) > Comment on attachment 391557 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=391557&action=review > > > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692 > > - RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)); > > + if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) { > > Don't we also want to log objectStoreInfoTableName and > objectStoreInfoTableNameAlternate? objectStoreInfoTableName and objectStoreInfoTableNameAlternate are constants.
Comment on attachment 391557 [details] Patch Clearing flags on attachment: 391557 Committed r257361: <https://trac.webkit.org/changeset/257361>
All reviewed patches have been landed. Closing bug.
(In reply to Sihui Liu from comment #4) > (In reply to Ryosuke Niwa from comment #3) > > Comment on attachment 391557 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=391557&action=review > > > > > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692 > > > - RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)); > > > + if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) { > > > > Don't we also want to log objectStoreInfoTableName and > > objectStoreInfoTableNameAlternate? > > objectStoreInfoTableName and objectStoreInfoTableNameAlternate are constants. Ah, ok.