Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for webRequest.onBeforeRedirect.
Developer library 3
Work with documentId
nts — webRequest.onBeforeRequest, webRequest.onBeforeSendHeaders, webRequest.onSendHeaders, webRequest.onHeadersReceived, webRequest.onAuthRequired, webRequest.onBeforeRedirect, webRequest.onResponseStarted, webRequest.onCompleted, and webRequest.onErrorOccurred — include `documentId` and `parentDocumentId` when applicable. - proxy.RequestDetails includes `documentId` and `parentDocumentId` when applicable. - declara
webRequest
er of requests is onBeforeRequest, onBeforeSendHeader, onSendHeaders, onHeadersReceived, onResponseStarted, and onCompleted. The onHeadersReceived can cause an onBeforeRedirect and an onAuthRequired. Events caused by onHeadersReceived start at the beginning onBeforeRequest. Events caused by onAuthRequired start at onBeforeSendHeader.](webrequest-flow.png) However, not all of these events might be observed by an exte
webRequest.onBeforeRedirect
ss `"blocking"` for this event, so you can't modify or cancel the request from this event: it's informational only. ## Syntax ```js-nolint browser.webRequest.onBeforeRedirect.addListener( listener, // function filter, // object extraInfoSpec // optional array of strings ) browser.webRequest.onBeforeRedirect.removeListener(listener) browser.webRequest.onBeforeRedirect.hasLis