mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWeb: Mark open request as processed if the spec forgot
This commit is contained in:
parent
32e5fb4da5
commit
0b1c7d6af2
Notes:
github-actions[bot]
2024-12-14 22:03:56 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/0b1c7d6af2c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2696 Reviewed-by: https://github.com/gmta
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ WebIDL::ExceptionOr<GC::Ref<IDBOpenDBRequest>> IDBFactory::open(String const& na
|
|||
// 1. Let result be the result of opening a database connection, with storageKey, name, version if given and undefined otherwise, and request.
|
||||
auto result = open_a_database_connection(realm, storage_key.value(), name, version, request);
|
||||
|
||||
// FIXME: https://github.com/w3c/IndexedDB/issues/434
|
||||
// We need to set the request as processed, since we didnt always do it via the above function.
|
||||
request->set_processed(true);
|
||||
|
||||
// 2. Queue a task to run these steps:
|
||||
HTML::queue_a_task(HTML::Task::Source::DatabaseAccess, nullptr, nullptr, GC::create_function(realm.heap(), [&realm, request, result = move(result)]() mutable {
|
||||
// 1. If result is an error, then:
|
||||
|
|
Loading…
Reference in a new issue