mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
[IndexedDB] Adhere better to the specification for idb object store related operations (#37682)
Many object store related operations require the transaction to be checked: to ensure it is still active, and, if the operation is a write, that the transaction is not read-only. I've added the `check_transaction` method to perform these checks. Additionally `Clear` was still half-implemented, so I went ahead and implemented that. --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
2e3c280f46
commit
71e7019d45
3 changed files with 94 additions and 35 deletions
|
@ -92,6 +92,8 @@ pub enum AsyncReadWriteOperation {
|
|||
RemoveItem(
|
||||
IndexedDBKeyType, // Key
|
||||
),
|
||||
/// Clears all key/value pairs in the associated idb data
|
||||
Clear,
|
||||
}
|
||||
|
||||
/// Operations that are not executed instantly, but rather added to a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue