]> git.saurik.com Git - apple/javascriptcore.git/blob - inspector/protocol/DOMStorage.json
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / inspector / protocol / DOMStorage.json
1 {
2 "domain": "DOMStorage",
3 "description": "Query and modify DOM storage.",
4 "availability": "web",
5 "types": [
6 {
7 "id": "StorageId",
8 "type": "object",
9 "description": "DOM Storage identifier.",
10 "properties": [
11 { "name": "securityOrigin", "type": "string", "description": "Security origin for the storage." },
12 { "name": "isLocalStorage", "type": "boolean", "description": "Whether the storage is local storage (not session storage)." }
13 ]
14 },
15 {
16 "id": "Item",
17 "type": "array",
18 "description": "DOM Storage item.",
19 "items": { "type": "string" }
20 }
21 ],
22 "commands": [
23 {
24 "name": "enable",
25 "description": "Enables storage tracking, storage events will now be delivered to the client."
26 },
27 {
28 "name": "disable",
29 "description": "Disables storage tracking, prevents storage events from being sent to the client."
30 },
31 {
32 "name": "getDOMStorageItems",
33 "parameters": [
34 { "name": "storageId", "$ref": "StorageId" }
35 ],
36 "returns": [
37 { "name": "entries", "type": "array", "items": { "$ref": "Item" } }
38 ]
39 },
40 {
41 "name": "setDOMStorageItem",
42 "parameters": [
43 { "name": "storageId", "$ref": "StorageId" },
44 { "name": "key", "type": "string" },
45 { "name": "value", "type": "string" }
46 ]
47 },
48 {
49 "name": "removeDOMStorageItem",
50 "parameters": [
51 { "name": "storageId", "$ref": "StorageId" },
52 { "name": "key", "type": "string" }
53 ]
54 }
55 ],
56 "events": [
57 {
58 "name": "domStorageItemsCleared",
59 "parameters": [
60 { "name": "storageId", "$ref": "StorageId" }
61 ]
62 },
63 {
64 "name": "domStorageItemRemoved",
65 "parameters": [
66 { "name": "storageId", "$ref": "StorageId" },
67 { "name": "key", "type": "string" }
68 ]
69 },
70 {
71 "name": "domStorageItemAdded",
72 "parameters": [
73 { "name": "storageId", "$ref": "StorageId" },
74 { "name": "key", "type": "string" },
75 { "name": "newValue", "type": "string" }
76 ]
77 },
78 {
79 "name": "domStorageItemUpdated",
80 "parameters": [
81 { "name": "storageId", "$ref": "StorageId" },
82 { "name": "key", "type": "string" },
83 { "name": "oldValue", "type": "string" },
84 { "name": "newValue", "type": "string" }
85 ]
86 }
87 ]
88 }