chrome.experimental.* APIs
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
chrome.experimental.* APIs
true
Before you start, choose the right version of this page.
You should read either:
For information about browser versions such as
Canary (bleeding edge) and the Dev channel, see
Chrome Release Channels.
For details about channel-specific docs,
see Doc versions.
List of APIs
We'd like your feedback
on the following experimental APIs:
Pay special attention to the following APIs,
which we expect to finalize soon:
devtools,
infobars,
permissions,
For examples of using the experimental APIs, see
Samples.
Caution:
Don't depend on these experimental APIs.
They might disappear,
and they will change.
Also, the Chrome Web Store doesn't allow you to
upload extensions that use experimental APIs.
How to use experimental APIs
-
Make sure you're using either
Canary
(which you can use at the same time as other Chrome channels) or the
Dev channel.
Although the experimental APIs might work in other versions,
we need your feedback on the latest incarnation of the APIs,
which you can find in Canary and on the Dev channel.
-
Using either the
most recent API documentation (if you're using Canary) or the
API documentation for the Dev channel,
write the code for your extension.
-
Specify the "experimental"
permission
in your extension's manifest, like this:
"permissions": [
"experimental",
...
],
-
Enable the experimental API in your browser.
You can do this in either of two ways:
-
Give us feedback!
Your comments and suggestions help us
improve the APIs and decide
which ones should move from experimental to supported.
More APIs
For information on the standard APIs that extensions can use, see
chrome.* APIs and
Other APIs.
API reference: chrome.apiname
Properties
getLastError
chrome.extensionlastError
Methods
method name
void
chrome.module.methodName(,
)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(Type param1, Type param2) {...};
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Events
event name
chrome.bookmarksonEvent.addListener(function(Type param1, Type param2) {...}, Type opt_param1, Type opt_param2);
Undocumented.
A description from the json schema def of the event goes here.
Extra parameters to addListener
Listener returns