Use the browser.devtools.network API to retrieve the information about network requests displayed by the Developer Tools in the Network panel.

Allowed in: Devtools pages only

Request
onNavigated
onRequestFinished
getHAR
onNavigated: WebExtEvent<(url: string) => void>

Fired when the inspected window navigates to a new page.

URL of the new page.

onRequestFinished: WebExtEvent<(request: Request) => void>

Fired when a network request is finished and all request data are available.

Description of a network request in the form of a HAR entry. See HAR specification for details.

  • Returns HAR log that contains all known network requests.

    Returns Promise<{ [key: string]: any }>