mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/IDB: Dont set state in IDBTransaction::abort
This commit is contained in:
parent
70db474cf0
commit
a7bcb1b0c5
|
|
@ -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 {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user