Truly independent web browser
LibWeb: Fire bubbling and cancelable error events from IDB open()
Andreas Kling0a06ecd96099
diff --git a/Libraries/LibWeb/IndexedDB/IDBFactory.cpp b/Libraries/LibWeb/IndexedDB/IDBFactory.cppindex d9f8c44a877..eb3651d203e 100644--- a/Libraries/LibWeb/IndexedDB/IDBFactory.cpp+++ b/Libraries/LibWeb/IndexedDB/IDBFactory.cpp@@ -105,6 +105,7 @@ WebIDL::ExceptionOr<GC::Ref<IDBOpenDBRequest>> IDBFactory::open(Utf16String cons// 4. Fire an event named error at request with its bubbles and cancelable attributes initialized to true.request->dispatch_event(DOM::Event::create(HTML::EventNames::error,+ { .bubbles = true, .cancelable = true },current_high_resolution_time(request->relevant_global_scope())));} else {// 1. Set request’s result to result.diff --git a/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.sharedworker.txt b/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.sharedworker.txtindex b1bc8a580bd..84aca9c4082 100644--- a/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.sharedworker.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.sharedworker.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail Properties of error event from failed open()\ No newline at end of file+1 Pass+Pass Properties of error event from failed open()\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.txt b/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.txtindex b1bc8a580bd..84aca9c4082 100644--- a/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail Properties of error event from failed open()\ No newline at end of file+1 Pass+Pass Properties of error event from failed open()\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.worker.txtindex b1bc8a580bd..84aca9c4082 100644--- a/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.worker.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/IndexedDB/idbfactory-open-error-properties.any.worker.txt@@ -2,5 +2,5 @@ Harness status: OKFound 1 tests-1 Fail-Fail Properties of error event from failed open()\ No newline at end of file+1 Pass+Pass Properties of error event from failed open()\ No newline at end of file