mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/IDB: Dont set state in IDBTransaction::abort
This commit is contained in:
Notes:
github-actions[bot]
2025-08-14 08:33:38 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/a7bcb1b0c54 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5827 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -87,8 +87,7 @@ WebIDL::ExceptionOr<void> IDBTransaction::abort()
|
||||
if (m_state == TransactionState::Committing || m_state == TransactionState::Finished)
|
||||
return WebIDL::InvalidStateError::create(realm(), "Transaction is ending"_utf16);
|
||||
|
||||
// 2. Set this's state to inactive and run abort a transaction with this and null.
|
||||
m_state = TransactionState::Inactive;
|
||||
// 2. Run abort a transaction with this and null.
|
||||
abort_a_transaction(*this, nullptr);
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user