mirror of
https://github.com/servo/servo.git
synced 2025-08-26 07:38:21 +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);
|
||||
|
|
|
@ -2,13 +2,8 @@
|
|||
expected: ERROR
|
||||
|
||||
[idbobjectstore_get.any.html]
|
||||
[When a transaction is aborted, throw TransactionInactiveError]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idbobjectstore_get.any.serviceworker.html]
|
||||
expected: ERROR
|
||||
|
||||
[idbobjectstore_get.any.worker.html]
|
||||
[When a transaction is aborted, throw TransactionInactiveError]
|
||||
expected: FAIL
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
[IDBObjectStore interface: attribute indexNames]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: attribute transaction]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: operation getAll(optional any, optional unsigned long)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -178,9 +175,6 @@
|
|||
[IDBObjectStore interface: attribute indexNames]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: attribute transaction]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: operation getAll(optional any, optional unsigned long)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue