devtools.network
The devtools.network
API lets a devtools extension get information about network requests associated with the window that the devtools are attached to (the inspected window).
Like all the devtools
APIs, this API is only available to code running in the document defined in the devtools_page manifest.json key, or in other devtools documents created by the extension (such as the panel's own document). See Extending the developer tools for more.
Functions
devtools.network.getHAR()
- Get a HAR log for the page loaded in the current tab.
Events
devtools.network.onNavigated
- Fired when the user navigates the inspected window to a new page.
devtools.network.onRequestFinished
- Fired when the a network request has finished and its details are available to the extension.
Browser compatibility
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
getHAR | ChromeFull supportYes | EdgeFull support79 | FirefoxFull support60
| OperaFull supportYes | SafariNo supportNo | Firefox for AndroidNo supportNo |
onNavigated | ChromeFull supportYes | EdgeFull support79 | FirefoxFull support54 | OperaFull supportYes | SafariNo supportNo | Firefox for AndroidNo supportNo |
onRequestFinished | ChromeFull supportYes | EdgeFull support79 | FirefoxFull support61
| OperaFull supportYes | SafariNo supportNo | Firefox for AndroidNo supportNo |
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Acknowledgements
This API is based on Chromium's chrome.devtools.network
API.