|
| 1 | +// GENERATED CONTENT - DO NOT EDIT |
| 2 | +// Content was automatically extracted by Reffy into webref |
| 3 | +// (https://github.com/w3c/webref) |
| 4 | +// Source: Extending Storage Access API (SAA) to non-cookie storage (https://privacycg.github.io/saa-non-cookie-storage/) |
| 5 | + |
| 6 | +dictionary StorageAccessTypes { |
| 7 | + boolean all = false; |
| 8 | + boolean cookies = false; |
| 9 | + boolean sessionStorage = false; |
| 10 | + boolean localStorage = false; |
| 11 | + boolean indexedDB = false; |
| 12 | + boolean locks = false; |
| 13 | + boolean caches = false; |
| 14 | + boolean getDirectory = false; |
| 15 | + boolean estimate = false; |
| 16 | + boolean createObjectURL = false; |
| 17 | + boolean revokeObjectURL = false; |
| 18 | + boolean BroadcastChannel = false; |
| 19 | + boolean SharedWorker = false; |
| 20 | +}; |
| 21 | + |
| 22 | +[Exposed=Window] |
| 23 | +interface StorageAccessHandle { |
| 24 | + readonly attribute Storage sessionStorage; |
| 25 | + readonly attribute Storage localStorage; |
| 26 | + readonly attribute IDBFactory indexedDB; |
| 27 | + readonly attribute LockManager locks; |
| 28 | + readonly attribute CacheStorage caches; |
| 29 | + Promise<FileSystemDirectoryHandle> getDirectory(); |
| 30 | + Promise<StorageEstimate> estimate(); |
| 31 | + DOMString createObjectURL((Blob or MediaSource) obj); |
| 32 | + undefined revokeObjectURL(DOMString url); |
| 33 | + BroadcastChannel BroadcastChannel(DOMString name); |
| 34 | + SharedWorker SharedWorker(USVString scriptURL, optional (DOMString or SharedWorkerOptions) options = {}); |
| 35 | +}; |
| 36 | + |
| 37 | +partial interface Document { |
| 38 | + Promise<boolean> hasUnpartitionedCookieAccess(); |
| 39 | +}; |
| 40 | + |
| 41 | +enum SameSiteCookiesType { "all", "none" }; |
| 42 | + |
| 43 | +dictionary SharedWorkerOptions : WorkerOptions { |
| 44 | + SameSiteCookiesType sameSiteCookies; |
| 45 | +}; |
0 commit comments