mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibWeb: Dont take a reference to the request in IDBFactory::open()
This commit is contained in:
parent
bb31b682a5
commit
9aebe5f2eb
Notes:
github-actions[bot]
2024-11-26 13:52:01 +00:00
Author: https://github.com/stelar7
Commit: 9aebe5f2eb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2236
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ WebIDL::ExceptionOr<GC::Ref<IDBOpenDBRequest>> IDBFactory::open(String const& na
|
|||
auto result = open_a_database_connection(realm, storage_key.value(), name, version, request);
|
||||
|
||||
// 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 {
|
||||
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:
|
||||
if (result.is_error()) {
|
||||
// 1. Set request’s result to undefined.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue