mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb/IDB: Dont set the forced flag when aborting connection
This commit is contained in:
parent
fc111537bb
commit
cdf01902ee
1 changed files with 2 additions and 3 deletions
|
@ -149,14 +149,13 @@ WebIDL::ExceptionOr<GC::Ref<IDBDatabase>> open_a_database_connection(JS::Realm&
|
|||
auto upgrade_transaction = upgrade_a_database(realm, connection, version, request);
|
||||
|
||||
// 7. If connection was closed, return a newly created "AbortError" DOMException and abort these steps.
|
||||
if (connection->state() == IDBDatabase::ConnectionState::Closed) {
|
||||
if (connection->state() == IDBDatabase::ConnectionState::Closed)
|
||||
return WebIDL::AbortError::create(realm, "Connection was closed"_string);
|
||||
}
|
||||
|
||||
// 8. If the upgrade transaction was aborted, run the steps to close a database connection with connection,
|
||||
// return a newly created "AbortError" DOMException and abort these steps.
|
||||
if (upgrade_transaction->aborted()) {
|
||||
close_a_database_connection(*connection, true);
|
||||
close_a_database_connection(*connection);
|
||||
return WebIDL::AbortError::create(realm, "Upgrade transaction was aborted"_string);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue