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.
devtools.network.getHAR()
devtools.network.onNavigated
devtools.network.onRequestFinished
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
getHAR |
Yes |
79 |
60
The returned HAR log will be empty unless the user has previously activated the browser's network panel at least once.
|
? |
Yes |
No |
? |
? |
No |
? |
? |
? |
onNavigated |
Yes |
79 |
54 |
? |
Yes |
No |
? |
? |
No |
? |
? |
? |
onRequestFinished |
Yes |
79 |
61
60-61
This event will only start firing after the user has activated the browser's network panel at least once.
|
? |
Yes |
No |
? |
? |
No |
? |
? |
? |
Note: This API is based on Chromium's chrome.devtools.network
API.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/devtools/network