Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for WorkletSharedStorage.
Developer library 6
SharedStorage
gin, defining methods to write data to the shared storage. `SharedStorage` is the base class for: - WindowSharedStorage, accessed via Window.sharedStorage. - WorkletSharedStorage, accessed via SharedStorageWorkletGlobalScope.sharedStorage. ## Instance methods - append() - : Appends a string to the value of an existing key-value pair in the current origin's shared storage. - clear() - : Clears the curren
SharedStorage: delete() method
ave the Shared Storage API included in a successful [privacy sandbox enrollment process](/docs/Web/Privacy/Guides/Privacy_sandbox#enrollment). - In the case of WorkletSharedStorage, the `Promise` rejects with a TypeError if: - The worklet module has not been added with SharedStorageWorklet.addModule(). > [!NOTE] > If the key-value pair doesn't exist in the shared storage, no error is thrown — the operation still f
SharedStorage: append() method
ave the Shared Storage API included in a successful [privacy sandbox enrollment process](/docs/Web/Privacy/Guides/Privacy_sandbox#enrollment). - In the case of WorkletSharedStorage, the `Promise` rejects with a TypeError if the worklet module has not been added with SharedStorageWorklet.addModule(). > [!NOTE] > In the case of WindowSharedStorage, if the `append()` operation doesn't successfully write to the database
SharedStorage: set() method
ave the Shared Storage API included in a successful [privacy sandbox enrollment process](/docs/Web/Privacy/Guides/Privacy_sandbox#enrollment). - In the case of WorkletSharedStorage, the `Promise` rejects with a TypeError if the worklet module has not been added with SharedStorageWorklet.addModule(). > [!NOTE] > In the case of WindowSharedStorage, if the `set()` operation doesn't successfully write to the database fo
SharedStorage: clear() method
ave the Shared Storage API included in a successful [privacy sandbox enrollment process](/docs/Web/Privacy/Guides/Privacy_sandbox#enrollment). - In the case of WorkletSharedStorage, the `Promise` rejects with a TypeError if the worklet module has not been added with SharedStorageWorklet.addModule(). > [!NOTE] > In the case of WindowSharedStorage, if the `clear()` operation doesn't successfully write to the database
WorkletSharedStorage
Shared Storage API The **`WorkletSharedStorage`** interface of the Shared Storage API represents the shared storage for a particular origin within a worklet context. `WorkletSharedStorage` is accessed via SharedStorageWorkletGlobalScope.sharedStorage. ## Instance properties - context - : Contains contextual data passed into the shared storage worklet from the associated browsing context via the FencedFrame