[webkit-changes] [WebKit/WebKit] 76c329: Remove m_abortOrCommitEvent in IDBTransaction

Sihui noreply at github.com
Wed Jun 21 12:40:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 76c3292d860a72e80773aca7e4bd35c545a63e4d
      https://github.com/WebKit/WebKit/commit/76c3292d860a72e80773aca7e4bd35c545a63e4d
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2023-06-21 (Wed, 21 Jun 2023)

  Changed paths:
    M Source/WebCore/Modules/indexeddb/IDBTransaction.cpp
    M Source/WebCore/Modules/indexeddb/IDBTransaction.h

  Log Message:
  -----------
  Remove m_abortOrCommitEvent in IDBTransaction
https://bugs.webkit.org/show_bug.cgi?id=258323
rdar://111064003

Reviewed by Chris Dumez.

m_abortOrCommitEvent was added to ensure untrusted events cannot change the internal states of IDBTransaction. We could
achieve that by checking the property of the event which avoids the raw pointer.

* Source/WebCore/Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::enqueueEvent):
(WebCore::IDBTransaction::dispatchEvent):
* Source/WebCore/Modules/indexeddb/IDBTransaction.h:

Canonical link: https://commits.webkit.org/265369@main




More information about the webkit-changes mailing list