mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
Enable access to transaction from idbobjectstore (#38737)
Adds the transaction property to IDBObjectStore, as per spec. Testing: WPT Fixes: None --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
b869b7eb96
commit
dd7b2a5ee2
4 changed files with 4 additions and 15 deletions
|
@ -449,9 +449,9 @@ impl IDBObjectStoreMethods<crate::DomTypeHolder> for IDBObjectStore {
|
|||
// }
|
||||
|
||||
// https://www.w3.org/TR/IndexedDB-2/#dom-idbobjectstore-transaction
|
||||
// fn Transaction(&self) -> DomRoot<IDBTransaction> {
|
||||
// unimplemented!();
|
||||
// }
|
||||
fn GetTransaction(&self) -> Option<DomRoot<IDBTransaction>> {
|
||||
self.transaction()
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/IndexedDB-2/#dom-idbobjectstore-autoincrement
|
||||
fn AutoIncrement(&self) -> bool {
|
||||
|
|
|
@ -13,7 +13,7 @@ interface IDBObjectStore {
|
|||
attribute DOMString name;
|
||||
// readonly attribute any keyPath;
|
||||
// readonly attribute DOMStringList indexNames;
|
||||
// [SameObject] readonly attribute IDBTransaction transaction;
|
||||
[SameObject] readonly attribute IDBTransaction? transaction;
|
||||
readonly attribute boolean autoIncrement;
|
||||
|
||||
[NewObject, Throws] IDBRequest put(any value, optional any key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue