mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/IDB: Keep track of the connection used to start a transaction
This commit is contained in:
parent
d1dabb9039
commit
fc93ec135e
Notes:
github-actions[bot]
2025-04-11 01:14:28 +00:00
Author: https://github.com/stelar7
Commit: fc93ec135e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4306
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,7 @@ IDBTransaction::IDBTransaction(JS::Realm& realm, GC::Ref<IDBDatabase> connection
|
|||
, m_scope(move(scopes))
|
||||
{
|
||||
m_uuid = MUST(Crypto::generate_random_uuid());
|
||||
connection->add_transaction(*this);
|
||||
}
|
||||
|
||||
GC::Ref<IDBTransaction> IDBTransaction::create(JS::Realm& realm, GC::Ref<IDBDatabase> connection, Bindings::IDBTransactionMode mode, Bindings::IDBTransactionDurability durability = Bindings::IDBTransactionDurability::Default, Vector<GC::Ref<ObjectStore>> scopes = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue