GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for webRequest.BlockingResponse.

Developer library 6

Chrome incompatibilities

came from an untrusted source, as a normal web page should. - Some of the `browser.webRequest.*` APIs allow for returning Promises that resolves `webRequest.BlockingResponse` asynchronously. - **In Chrome:** Only `webRequest.onAuthRequired` supports asynchronous `webRequest.BlockingResponse` by supplying `'asyncBlocking'`, through a callback instead of a Promise. #### Windows API - **In Firefox:** `onFocusChang

webRequest

value `"blocking"` in the `extraInfoSpec` argument to the event's `addListener()`. This makes the listener synchronous. In the listener, you can then return a BlockingResponse object, which indicates the modification you need to make: for example, the modified request header you want to send. ## Requests at browser startup When a listener is registered with the `"blocking"` option and is registered during the exte

webRequest.onBeforeRequest

o cancel or redirect the request, first include `"blocking"` in the `extraInfoSpec` array argument to `addListener()`. Then, in the listener function, return a BlockingResponse object, setting the appropriate property: - to cancel the request, include a property `cancel` with the value `true`. - to redirect the request, include a property `redirectUrl` with the value set to the URL to which you want to redirect. If

webRequest.onAuthRequired

g"` in Chrome and Firefox or `"blocking"` in Firefox in the `extraInfoSpec` parameter - If `"blocking"` is provided, the extension can return a `webRequest.BlockingResponse` object or a Promise that resolves to a `webRequest.BlockingResponse` object - If `"asyncBlocking"` is provided, the event listener function receives an `asyncCallback` function as its second parameter. `asyncCallback` can be called asynch

webRequest.onBeforeSendHeaders

uestHeaders"` in the `extraInfoSpec` array. To modify the headers synchronously: pass `"blocking"` in `extraInfoSpec`, then in your event listener, return a [`BlockingResponse`](/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/BlockingResponse) with a property named `requestHeaders`, whose value is the set of request headers to send. To modify the headers asynchronously: pass `"blocking"` in `extraInfoSpec`, then

webRequest.onHeadersReceived

t`](#details). Details of the request. This will include response headers if you have included `"responseHeaders"` in `extraInfoSpec`. Returns: webRequest.BlockingResponse. If `"blocking"` is specified in the `extraInfoSpec` parameter, the event listener will return a `BlockingResponse` object, and can set its `responseHeaders` property. In Firefox, the return value can be a [`Promise`](/docs/Web/JavaScript/Refe

JSON results · Services directory