Extensions Domain
Defines commands and events for browser extensions.
Methods
Types
Methods
Extensions.clearStorageItems #
Clears extension storage in the given storageArea
.
parameters
- id
-
string
ID of extension.
- storageArea
-
StorageArea
StorageArea to remove data from.
Extensions.getStorageItems #
Gets data from extension storage in the given storageArea
. If keys
is
specified, these are used to filter the result.
parameters
- id
-
string
ID of extension.
- storageArea
-
StorageArea
StorageArea to retrieve data from.
- keys
-
array[ string ]
Keys to retrieve.
Return Object
- data
-
object
Extensions.loadUnpacked #
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.
parameters
- path
-
string
Absolute file path.
Return Object
- id
-
string
Extension id.
Extensions.removeStorageItems #
Removes keys
from extension storage in the given storageArea
.
parameters
- id
-
string
ID of extension.
- storageArea
-
StorageArea
StorageArea to remove data from.
- keys
-
array[ string ]
Keys to remove.
Extensions.setStorageItems #
Sets values
in extension storage in the given storageArea
. The provided values
will be merged with existing values in the storage area.
parameters
- id
-
string
ID of extension.
- storageArea
-
StorageArea
StorageArea to set data in.
- values
-
object
Values to set.