experimental.webInspector.* APIs
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
experimental.webInspector.* APIs
The following API modules provide support for extending
Chrome Development Tools (aka WebInspector):
Caution:
Don't depend on these experimental APIs. They might disappear, and they
will change.
Also, the Chrome Developer Dashboard doesn't allow you to
upload extensions that use experimental APIs.
How to use WebInspector APIs
-
WebInspector APIs are currently experimental, so please start with
the steps for using experimental extension
APIs.
-
Specify the "devtools_page" field in your extension's manifest and make
sure you have "experimental" permission:
{
"name": ...
"version": "1.0",
"minimum_chrome_version": "10.0",
"devtools_page": "devtools.html",
"permissions": [ "experimental" ... ],
...
}
-
An instance of the devtools_page specified in your extension's manifest
will be created for every Developer Tools window opened. The page may add
other extension pages as panels and sidebars to the Developer Tools window
using experimental.webInspector.panels
API.
- The APIs available to extension pages within the Developer Tools
window include all experimental.webInspector modules
listed above and chrome.extension API.
Other extension APIs are not available to the Developer Tools pages, but
you may invoke them by sending a request to the background page of your
extension, similarly to how it's done in the
content scripts.
- Please note that, unlike other Chrome Extension APIs, the WebInspector
APIs lack "chrome" prefix. This is because the APIs, as the WebInspector
itself, are a part of WebKit and may eventually appear in other browsers.
-
Give us feedback!
Your comments and suggestions help us improve the APIs and decide which
ones should move from experimental to supported.
More information
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) {...});
Undocumented.
A description from the json schema def of the event goes here.