From 7c3de67b16958ba330758de930359bac4fea4a62 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Wed, 9 Apr 2025 22:51:11 +0200 Subject: [PATCH] LibWeb/IDB: Dont set the forced flag when aborting connection --- Libraries/LibWeb/IndexedDB/Internal/Algorithms.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/LibWeb/IndexedDB/Internal/Algorithms.cpp b/Libraries/LibWeb/IndexedDB/Internal/Algorithms.cpp index 6b1f81c648d..bff6fe8f6dd 100644 --- a/Libraries/LibWeb/IndexedDB/Internal/Algorithms.cpp +++ b/Libraries/LibWeb/IndexedDB/Internal/Algorithms.cpp @@ -149,14 +149,13 @@ WebIDL::ExceptionOr> 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); } }