mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement a quota of 5MB per origin for localstorage and sessionstorage
This commit is contained in:
parent
a8ad990c6d
commit
fb45b0e691
6 changed files with 66 additions and 36 deletions
|
@ -28,8 +28,7 @@ pub enum StorageTaskMsg {
|
|||
GetItem(IpcSender<Option<DOMString>>, Url, StorageType, DOMString),
|
||||
|
||||
/// sets the value of the given key in the associated storage data
|
||||
/// TODO throw QuotaExceededError in case of error
|
||||
SetItem(IpcSender<(bool, Option<DOMString>)>, Url, StorageType, DOMString, DOMString),
|
||||
SetItem(IpcSender<Result<(bool, Option<DOMString>), ()>>, Url, StorageType, DOMString, DOMString),
|
||||
|
||||
/// removes the key/value pair for the given key in the associated storage data
|
||||
RemoveItem(IpcSender<Option<DOMString>>, Url, StorageType, DOMString),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue