ExtensionsDomain

Defines commands and events for browser extensions.

Official doc

Functions

Link copied to clipboard

Clears extension storage in the given storageArea.

Link copied to clipboard
inline suspend fun getStorageItems(id: String, storageArea: StorageArea, optionalArgs: GetStorageItemsRequest.Builder.() -> Unit = {}): GetStorageItemsResponse

Gets data from extension storage in the given storageArea. If keys is specified, these are used to filter the result.

Link copied to clipboard
inline suspend fun loadUnpacked(path: String, optionalArgs: LoadUnpackedRequest.Builder.() -> Unit = {}): LoadUnpackedResponse

Installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.

Link copied to clipboard

Removes keys from extension storage in the given storageArea.

Link copied to clipboard
suspend fun setStorageItems(id: String, storageArea: StorageArea, values: JsonObject): SetStorageItemsResponse

Sets values in extension storage in the given storageArea. The provided values will be merged with existing values in the storage area.

Link copied to clipboard
suspend fun triggerAction(id: String, targetId: String): TriggerActionResponse

Runs an extension default action. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.

Link copied to clipboard

Uninstalls an unpacked extension (others not supported) from the profile. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging.