Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 82913c0cd7470c0bacff8688318db0decfc6057b
      
https://github.com/WebKit/WebKit/commit/82913c0cd7470c0bacff8688318db0decfc6057b
  Author: David Kilzer <[email protected]>
  Date:   2025-10-13 (Mon, 13 Oct 2025)

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

  Log Message:
  -----------
  
WebCore::IDBServer::UniqueIDBDatabaseConnection::createVersionChangeTransaction 
should return Ref<UniqueIDBDatabaseTransaction>
<https://bugs.webkit.org/show_bug.cgi?id=300559>
<rdar://162441616>

Reviewed by Sihui Liu.

Change method to return Ref<UniqueIDBDatabaseTransaction>.  This does
not fix a use-after-free since the object is kept alive when being added
to UniqueIDBDatabaseConnection::m_transactionMap.  This reverts the
change to the return type of the method in 168300@main.

* Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseConnection.cpp:
(WebCore::IDBServer::UniqueIDBDatabaseConnection::createVersionChangeTransaction):
- Remove call to Ref::unsafeGet() since it's no longer needed.
* Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseConnection.h:
(WebCore::IDBServer::UniqueIDBDatabaseConnection::createVersionChangeTransaction):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to