| OLD | NEW |
| (Empty) |
| 1 [ | |
| 2 { | |
| 3 "namespace": "experimental.browsingData", | |
| 4 "types": [ | |
| 5 { | |
| 6 "id": "RemovalOptions", | |
| 7 "type": "object", | |
| 8 "description": "Options that determine exactly what data will be removed
.", | |
| 9 "properties": { | |
| 10 "since": { | |
| 11 "type": "number", | |
| 12 "optional": true, | |
| 13 "description": "Remove data accumulated on or after this date, repre
sented in milliseconds since the epoch ('Date().GetTime()'). If absent, defaults
to 0 (which would remove everything)." | |
| 14 } | |
| 15 } | |
| 16 } | |
| 17 ], | |
| 18 "functions": [ | |
| 19 { | |
| 20 "name": "remove", | |
| 21 "description": "Clears various types of browsing data stored in a user's
profile.", | |
| 22 "type": "function", | |
| 23 "parameters": [ | |
| 24 { | |
| 25 "$ref": "RemovalOptions", | |
| 26 "name": "options" | |
| 27 }, | |
| 28 { | |
| 29 "name": "dataToRemove", | |
| 30 "type": "object", | |
| 31 "description": "An object whose properties specify which browsing da
ta types ought to be cleared. You may set as many or as few as you like in a sin
gle call, each is optional (defaulting to <code>false</code>).", | |
| 32 "properties": { | |
| 33 "appcache": { | |
| 34 "type": "boolean", | |
| 35 "optional": true, | |
| 36 "description": "Should websites' appcaches be cleared?" | |
| 37 }, | |
| 38 "cache": { | |
| 39 "type": "boolean", | |
| 40 "optional": true, | |
| 41 "description": "Should the browser's cache be cleared? Note: thi
s clears the <em>entire</em> cache: it is not limited to the range you specify." | |
| 42 }, | |
| 43 "cookies": { | |
| 44 "type": "boolean", | |
| 45 "optional": true, | |
| 46 "description": "Should the browser's cookies be cleared?" | |
| 47 }, | |
| 48 "downloads": { | |
| 49 "type": "boolean", | |
| 50 "optional": true, | |
| 51 "description": "Should the browser's download list be cleared?" | |
| 52 }, | |
| 53 "fileSystems": { | |
| 54 "type": "boolean", | |
| 55 "optional": true, | |
| 56 "description": "Should websites' file systems be cleared?" | |
| 57 }, | |
| 58 "formData": { | |
| 59 "type": "boolean", | |
| 60 "optional": true, | |
| 61 "description": "Should the browser's stored form data be cleared
?" | |
| 62 }, | |
| 63 "history": { | |
| 64 "type": "boolean", | |
| 65 "optional": true, | |
| 66 "description": "Should the browser's history be cleared?" | |
| 67 }, | |
| 68 "indexedDB": { | |
| 69 "type": "boolean", | |
| 70 "optional": true, | |
| 71 "description": "Should websites' IndexedDB data be cleared?" | |
| 72 }, | |
| 73 "localStorage": { | |
| 74 "type": "boolean", | |
| 75 "optional": true, | |
| 76 "description": "Should websites' local storage data be cleared?" | |
| 77 }, | |
| 78 "originBoundCertificates": { | |
| 79 "type": "boolean", | |
| 80 "optional": true, | |
| 81 "description": "Should origin-bound certificates be removed?" | |
| 82 }, | |
| 83 "pluginData": { | |
| 84 "type": "boolean", | |
| 85 "optional": true, | |
| 86 "description": "Should plugins' data be cleared?" | |
| 87 }, | |
| 88 "passwords": { | |
| 89 "type": "boolean", | |
| 90 "optional": true, | |
| 91 "description": "Should the stored passwords be cleared?" | |
| 92 }, | |
| 93 "webSQL": { | |
| 94 "type": "boolean", | |
| 95 "optional": true, | |
| 96 "description": "Should websites' WebSQL data be cleared?" | |
| 97 } | |
| 98 } | |
| 99 }, | |
| 100 { | |
| 101 "name": "callback", | |
| 102 "type": "function", | |
| 103 "description": "Called when deletion has completed.", | |
| 104 "optional": true, | |
| 105 "parameters": [] | |
| 106 } | |
| 107 ] | |
| 108 }, | |
| 109 { | |
| 110 "name": "removeAppcache", | |
| 111 "description": "Clears websites' appcache data.", | |
| 112 "type": "function", | |
| 113 "parameters": [ | |
| 114 { | |
| 115 "$ref": "RemovalOptions", | |
| 116 "name": "options" | |
| 117 }, | |
| 118 { | |
| 119 "name": "callback", | |
| 120 "type": "function", | |
| 121 "description": "Called when websites' appcache data has been cleared
.", | |
| 122 "optional": true, | |
| 123 "parameters": [] | |
| 124 } | |
| 125 ] | |
| 126 }, | |
| 127 { | |
| 128 "name": "removeCache", | |
| 129 "description": "Clears the browser's cache.", | |
| 130 "type": "function", | |
| 131 "parameters": [ | |
| 132 { | |
| 133 "$ref": "RemovalOptions", | |
| 134 "name": "options" | |
| 135 }, | |
| 136 { | |
| 137 "name": "callback", | |
| 138 "type": "function", | |
| 139 "description": "Called when the browser's cache has been cleared.", | |
| 140 "optional": true, | |
| 141 "parameters": [] | |
| 142 } | |
| 143 ] | |
| 144 }, | |
| 145 { | |
| 146 "name": "removeCookies", | |
| 147 "description": "Clears the browser's cookies modified within a particula
r timeframe.", | |
| 148 "type": "function", | |
| 149 "parameters": [ | |
| 150 { | |
| 151 "$ref": "RemovalOptions", | |
| 152 "name": "options" | |
| 153 }, | |
| 154 { | |
| 155 "name": "callback", | |
| 156 "type": "function", | |
| 157 "description": "Called when the browser's cookies have been cleared.
", | |
| 158 "optional": true, | |
| 159 "parameters": [] | |
| 160 } | |
| 161 ] | |
| 162 }, | |
| 163 { | |
| 164 "name": "removeDownloads", | |
| 165 "description": "Clears the browser's list of downloaded files (<em>not</
em> the downloaded files themselves).", | |
| 166 "type": "function", | |
| 167 "parameters": [ | |
| 168 { | |
| 169 "$ref": "RemovalOptions", | |
| 170 "name": "options" | |
| 171 }, | |
| 172 { | |
| 173 "name": "callback", | |
| 174 "type": "function", | |
| 175 "description": "Called when the browser's list of downloaded files h
as been cleared.", | |
| 176 "optional": true, | |
| 177 "parameters": [] | |
| 178 } | |
| 179 ] | |
| 180 }, | |
| 181 { | |
| 182 "name": "removeFileSystems", | |
| 183 "description": "Clears websites' file system data.", | |
| 184 "type": "function", | |
| 185 "parameters": [ | |
| 186 { | |
| 187 "$ref": "RemovalOptions", | |
| 188 "name": "options" | |
| 189 }, | |
| 190 { | |
| 191 "name": "callback", | |
| 192 "type": "function", | |
| 193 "description": "Called when websites' file systems have been cleared
.", | |
| 194 "optional": true, | |
| 195 "parameters": [] | |
| 196 } | |
| 197 ] | |
| 198 }, | |
| 199 { | |
| 200 "name": "removeFormData", | |
| 201 "description": "Clears the browser's stored form data (autofill).", | |
| 202 "type": "function", | |
| 203 "parameters": [ | |
| 204 { | |
| 205 "$ref": "RemovalOptions", | |
| 206 "name": "options" | |
| 207 }, | |
| 208 { | |
| 209 "name": "callback", | |
| 210 "type": "function", | |
| 211 "description": "Called when the browser's form data has been cleared
.", | |
| 212 "optional": true, | |
| 213 "parameters": [] | |
| 214 } | |
| 215 ] | |
| 216 }, | |
| 217 { | |
| 218 "name": "removeHistory", | |
| 219 "description": "Clears the browser's history.", | |
| 220 "type": "function", | |
| 221 "parameters": [ | |
| 222 { | |
| 223 "$ref": "RemovalOptions", | |
| 224 "name": "options" | |
| 225 }, | |
| 226 { | |
| 227 "name": "callback", | |
| 228 "type": "function", | |
| 229 "description": "Called when the browser's history has cleared.", | |
| 230 "optional": true, | |
| 231 "parameters": [] | |
| 232 } | |
| 233 ] | |
| 234 }, | |
| 235 { | |
| 236 "name": "removeIndexedDB", | |
| 237 "description": "Clears websites' IndexedDB data.", | |
| 238 "type": "function", | |
| 239 "parameters": [ | |
| 240 { | |
| 241 "$ref": "RemovalOptions", | |
| 242 "name": "options" | |
| 243 }, | |
| 244 { | |
| 245 "name": "callback", | |
| 246 "type": "function", | |
| 247 "description": "Called when websites' IndexedDB data has been cleare
d.", | |
| 248 "optional": true, | |
| 249 "parameters": [] | |
| 250 } | |
| 251 ] | |
| 252 }, | |
| 253 { | |
| 254 "name": "removeLocalStorage", | |
| 255 "description": "Clears websites' local storage data.", | |
| 256 "type": "function", | |
| 257 "parameters": [ | |
| 258 { | |
| 259 "$ref": "RemovalOptions", | |
| 260 "name": "options" | |
| 261 }, | |
| 262 { | |
| 263 "name": "callback", | |
| 264 "type": "function", | |
| 265 "description": "Called when websites' local storage has been cleared
.", | |
| 266 "optional": true, | |
| 267 "parameters": [] | |
| 268 } | |
| 269 ] | |
| 270 }, | |
| 271 { | |
| 272 "name": "removePluginData", | |
| 273 "description": "Clears plugins' data.", | |
| 274 "type": "function", | |
| 275 "parameters": [ | |
| 276 { | |
| 277 "$ref": "RemovalOptions", | |
| 278 "name": "options" | |
| 279 }, | |
| 280 { | |
| 281 "name": "callback", | |
| 282 "type": "function", | |
| 283 "description": "Called when plugins' data has been cleared.", | |
| 284 "optional": true, | |
| 285 "parameters": [] | |
| 286 } | |
| 287 ] | |
| 288 }, | |
| 289 { | |
| 290 "name": "removePasswords", | |
| 291 "description": "Clears the browser's stored passwords.", | |
| 292 "type": "function", | |
| 293 "parameters": [ | |
| 294 { | |
| 295 "$ref": "RemovalOptions", | |
| 296 "name": "options" | |
| 297 }, | |
| 298 { | |
| 299 "name": "callback", | |
| 300 "type": "function", | |
| 301 "description": "Called when the browser's passwords have been cleare
d.", | |
| 302 "optional": true, | |
| 303 "parameters": [] | |
| 304 } | |
| 305 ] | |
| 306 }, | |
| 307 { | |
| 308 "name": "removeWebSQL", | |
| 309 "description": "Clears websites' WebSQL data.", | |
| 310 "type": "function", | |
| 311 "parameters": [ | |
| 312 { | |
| 313 "$ref": "RemovalOptions", | |
| 314 "name": "options" | |
| 315 }, | |
| 316 { | |
| 317 "name": "callback", | |
| 318 "type": "function", | |
| 319 "description": "Called when websites' WebSQL databases have been cle
ared.", | |
| 320 "optional": true, | |
| 321 "parameters": [] | |
| 322 } | |
| 323 ] | |
| 324 } | |
| 325 ] | |
| 326 } | |
| 327 ] | |
| OLD | NEW |