Changeset 255615 in webkit


Ignore:
Timestamp:
Feb 3, 2020 4:31:02 PM (4 years ago)
Author:
sihui_liu@apple.com
Message:

Crash in WebCore::IDBServer::IDBServer::createIndex
https://bugs.webkit.org/show_bug.cgi?id=207137
<rdar://problem/59096231>

Reviewed by Darin Adler.

Source/WebCore:

Export IDBIndexInfo::isolatedCopy so it can be used in WebKitLegacy framework code.

  • Modules/indexeddb/shared/IDBIndexInfo.h:

Source/WebKitLegacy:

  • Storage/InProcessIDBServer.cpp:

(InProcessIDBServer::createIndex): Create an isolated copy of IDBIndexInfo before passing it to IDB thread.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r255609 r255615  
     12020-02-03  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Crash in WebCore::IDBServer::IDBServer::createIndex
     4        https://bugs.webkit.org/show_bug.cgi?id=207137
     5        <rdar://problem/59096231>
     6
     7        Reviewed by Darin Adler.
     8
     9        Export IDBIndexInfo::isolatedCopy so it can be used in WebKitLegacy framework code.
     10
     11        * Modules/indexeddb/shared/IDBIndexInfo.h:
     12
    1132020-02-03  Jer Noble  <jer.noble@apple.com>
    214
  • trunk/Source/WebCore/Modules/indexeddb/shared/IDBIndexInfo.h

    r209873 r255615  
    3838    IDBIndexInfo(uint64_t identifier, uint64_t objectStoreIdentifier, const String& name, IDBKeyPath&&, bool unique, bool multiEntry);
    3939
    40     IDBIndexInfo isolatedCopy() const;
     40    WEBCORE_EXPORT IDBIndexInfo isolatedCopy() const;
    4141
    4242    uint64_t identifier() const { return m_identifier; }
  • trunk/Source/WebKitLegacy/ChangeLog

    r255491 r255615  
     12020-02-03  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Crash in WebCore::IDBServer::IDBServer::createIndex
     4        https://bugs.webkit.org/show_bug.cgi?id=207137
     5        <rdar://problem/59096231>
     6
     7        Reviewed by Darin Adler.
     8
     9        * Storage/InProcessIDBServer.cpp:
     10        (InProcessIDBServer::createIndex): Create an isolated copy of IDBIndexInfo before passing it to IDB thread.
     11
    1122020-01-31  Don Olmstead  <don.olmstead@sony.com>
    213
  • trunk/Source/WebKitLegacy/Storage/InProcessIDBServer.cpp

    r253740 r255615  
    323323void InProcessIDBServer::createIndex(const WebCore::IDBRequestData& requestData, const IDBIndexInfo& info)
    324324{
    325     dispatchTask([this, protectedThis = makeRef(*this), requestData = requestData.isolatedCopy(), info] {
     325    dispatchTask([this, protectedThis = makeRef(*this), requestData = requestData.isolatedCopy(), info = info.isolatedCopy()] {
    326326        LockHolder locker(m_server->lock());
    327327        m_server->createIndex(requestData, info);
Note: See TracChangeset for help on using the changeset viewer.