From b0453e044d4abb657b93f42bddad1792865e41c1 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Mon, 24 Mar 2025 20:51:31 +0100 Subject: [PATCH] LibWeb/IDB: Implement IDBObjectStore::transaction --- Libraries/LibWeb/IndexedDB/IDBObjectStore.h | 1 + Libraries/LibWeb/IndexedDB/IDBObjectStore.idl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/IndexedDB/IDBObjectStore.h b/Libraries/LibWeb/IndexedDB/IDBObjectStore.h index 7551b0ddd82..c4c8284921a 100644 --- a/Libraries/LibWeb/IndexedDB/IDBObjectStore.h +++ b/Libraries/LibWeb/IndexedDB/IDBObjectStore.h @@ -24,6 +24,7 @@ public: [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref, GC::Ref); JS::Value key_path() const; + GC::Ref transaction() const { return m_transaction; } protected: explicit IDBObjectStore(JS::Realm&, GC::Ref, GC::Ref); diff --git a/Libraries/LibWeb/IndexedDB/IDBObjectStore.idl b/Libraries/LibWeb/IndexedDB/IDBObjectStore.idl index 3e13fb9b03a..92f3eefdae0 100644 --- a/Libraries/LibWeb/IndexedDB/IDBObjectStore.idl +++ b/Libraries/LibWeb/IndexedDB/IDBObjectStore.idl @@ -7,7 +7,7 @@ interface IDBObjectStore { [FIXME] attribute DOMString name; readonly attribute any keyPath; [FIXME] readonly attribute DOMStringList indexNames; - [FIXME, SameObject] readonly attribute IDBTransaction transaction; + [SameObject] readonly attribute IDBTransaction transaction; [FIXME] readonly attribute boolean autoIncrement; [FIXME, NewObject] IDBRequest put(any value, optional any key);