// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: Shared Storage API (https://wicg.github.io/shared-storage/) typedef (USVString or FencedFrameConfig) SharedStorageResponse; [Exposed=(Window)] interface SharedStorageWorklet : Worklet { Promise selectURL(DOMString name, FrozenArray urls, optional SharedStorageRunOperationMethodOptions options = {}); Promise run(DOMString name, optional SharedStorageRunOperationMethodOptions options = {}); }; callback RunFunctionForSharedStorageSelectURLOperation = Promise(sequence urls, optional any data); [Exposed=SharedStorageWorklet, Global=SharedStorageWorklet] interface SharedStorageWorkletGlobalScope : WorkletGlobalScope { undefined register(DOMString name, Function operationCtor); readonly attribute WorkletSharedStorage sharedStorage; }; dictionary SharedStorageUrlWithMetadata { required USVString url; object reportingMetadata; }; [Exposed=(Window,SharedStorageWorklet)] interface SharedStorage { Promise set(DOMString key, DOMString value, optional SharedStorageSetMethodOptions options = {}); Promise append(DOMString key, DOMString value); Promise delete(DOMString key); Promise clear(); }; dictionary SharedStorageSetMethodOptions { boolean ignoreIfPresent = false; }; [Exposed=(Window)] interface WindowSharedStorage : SharedStorage { Promise selectURL(DOMString name, FrozenArray urls, optional SharedStorageRunOperationMethodOptions options = {}); Promise run(DOMString name, optional SharedStorageRunOperationMethodOptions options = {}); Promise createWorklet(USVString moduleURL, optional WorkletOptions options = {}); readonly attribute SharedStorageWorklet worklet; }; dictionary SharedStorageRunOperationMethodOptions { object data; boolean resolveToConfig = false; boolean keepAlive = false; }; partial interface Window { [SecureContext] readonly attribute WindowSharedStorage? sharedStorage; }; [Exposed=(SharedStorageWorklet)] interface WorkletSharedStorage : SharedStorage { Promise get(DOMString key); Promise length(); Promise remainingBudget(); async iterable; }; interface mixin HTMLSharedStorageWritableElementUtils { [CEReactions, SecureContext] attribute boolean sharedStorageWritable; }; HTMLIFrameElement includes HTMLSharedStorageWritableElementUtils; HTMLImageElement includes HTMLSharedStorageWritableElementUtils; partial dictionary RequestInit { boolean sharedStorageWritable; };