Skip to content

Commit

Permalink
LibWeb: Mark open request as processed if we have an equal db version
Browse files Browse the repository at this point in the history
  • Loading branch information
stelar7 committed Dec 14, 2024
1 parent cfcd1ac commit 3f37b26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/LibWeb/IndexedDB/Internal/Algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ WebIDL::ExceptionOr<GC::Ref<IDBDatabase>> open_a_database_connection(JS::Realm&
close_a_database_connection(*connection, true);
return WebIDL::AbortError::create(realm, "Upgrade transaction was aborted"_string);
}
} else {
// NOTE: https://github.com/w3c/IndexedDB/issues/434
// AD-HOC: We still need to set the request as processed if the version is the same or lower
request->set_processed(true);
}

// 11. Return connection.
Expand Down

0 comments on commit 3f37b26

Please sign in to comment.