⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259603 in webkit


Ignore:
Timestamp:
Apr 6, 2020, 4:05:21 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r259519. rdar://problem/61352446

ASSERTION FAILED: objectStoreInfo in SQLiteIDBBackingStore::getRecord
https://bugs.webkit.org/show_bug.cgi?id=209976
<rdar://problem/55005363>

Reviewed by Geoffrey Garen.

Return error if objectStoreInfo is null in SQLiteIDBBackingStore::getRecord, because there is a possibility
SQLiteIDBBackingStore does not have requested objectStoreInfo.

  • Modules/indexeddb/server/SQLiteIDBBackingStore.cpp: (WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259519 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-609-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/Source/WebCore/ChangeLog

    r259601 r259603  
     12020-04-06  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r259519. rdar://problem/61352446
     4
     5    ASSERTION FAILED: objectStoreInfo in SQLiteIDBBackingStore::getRecord
     6    https://bugs.webkit.org/show_bug.cgi?id=209976
     7    <rdar://problem/55005363>
     8   
     9    Reviewed by Geoffrey Garen.
     10   
     11    Return error if objectStoreInfo is null in SQLiteIDBBackingStore::getRecord, because there is a possibility
     12    SQLiteIDBBackingStore does not have requested objectStoreInfo.
     13   
     14    * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
     15    (WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2020-04-03  Sihui Liu  <sihui_liu@apple.com>
     21
     22            ASSERTION FAILED: objectStoreInfo in SQLiteIDBBackingStore::getRecord
     23            https://bugs.webkit.org/show_bug.cgi?id=209976
     24            <rdar://problem/55005363>
     25
     26            Reviewed by Geoffrey Garen.
     27
     28            Return error if objectStoreInfo is null in SQLiteIDBBackingStore::getRecord, because there is a possibility
     29            SQLiteIDBBackingStore does not have requested objectStoreInfo.
     30
     31            * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
     32            (WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):
     33
    1342020-04-06  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-609-branch/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp

    r253377 r259603  
    18861886        return IDBError { UnknownError, "Attempt to get a record from database without an in-progress transaction"_s };
    18871887
     1888    auto* objectStoreInfo = infoForObjectStore(objectStoreID);
     1889    if (!objectStoreInfo)
     1890        return IDBError { InvalidStateError, "Object store cannot be found in the backing store"_s };
     1891
    18881892    auto key = keyRange.lowerKey;
    18891893    if (key.isNull())
     
    20042008        return error;
    20052009
    2006     auto* objectStoreInfo = infoForObjectStore(objectStoreID);
    2007     ASSERT(objectStoreInfo);
    2008     resultValue = { keyData, { valueResultBuffer, WTFMove(blobURLs), WTFMove(blobFilePaths) }, objectStoreInfo->keyPath()};
     2010    resultValue = { keyData, { valueResultBuffer, WTFMove(blobURLs), WTFMove(blobFilePaths) }, objectStoreInfo->keyPath() };
    20092011    return IDBError { };
    20102012}
Note: See TracChangeset for help on using the changeset viewer.