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);