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 proxy.onRequest.

Developer library 6

Chrome incompatibilities

APIs is incompatible. - **In Firefox**: Proxies are set using the [proxy.settings](/docs/Mozilla/Add-ons/WebExtensions/API/proxy/settings) property or [proxy.onRequest](/docs/Mozilla/Add-ons/WebExtensions/API/proxy/onRequest) to provide [ProxyInfo](/docs/Mozilla/Add-ons/WebExtensions/API/proxy/ProxyInfo) dynamically. See [proxy](/docs/Mozilla/Add-ons/WebExtensions/API/proxy) for more information on the API. - **I

Work with documentId

ents**: Navigation events (webNavigation.onCommitted, webNavigation.onCompleted, and others), request events (webRequest.onBeforeRequest and others), and proxy.onRequest all include `tabId` and `frameId` to identify where an event occurred. Because `frameId` identifies the frame rather than its content, there is a potential race condition. After your extension has obtained the `tabId` and `frameId`, the loaded docum

proxy

Use the proxy API to proxy web requests. You can use the proxy.onRequest event listener to intercept web requests, and return an object that describes whether and how to proxy them. The advantage of the proxy.onRequest approach is that the code that implements your proxy policy runs in your extension's background script, so it gets full access to the WebExtension APIs available to your extension (including, for exam

proxy.onRequest

able). By default, the request fails over to any browser-defined proxy unless a `null` object or an array ending in a `null` object is returned. To use `proxy.onRequest`, an extension must have the "proxy" [API permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#api_permissions) and the [host permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#host_permissions) for the URL

proxy.ProxyInfo

Contains information about a proxy. This object, or an array of these objects, is returned from the listener to proxy.onRequest. It instructs the browser whether to proxy the request, and if so, which proxy to use. ## Type Values of this type are objects. They contain the following properties: - `type` - : `string`. This describes whether to proxy at all, and if so, what kind of proxy to use. It may take one of

proxy.onError

Fired when there is an error evaluating the PAC file or the `onRequest` listener. The error can be triggered by throwing or returning an invalid value in the proxy.onRequest event handler. ## Syntax ```js-nolint browser.proxy.onError.addListener(listener) browser.proxy.onError.removeListener(listener) browser.proxy.onError.hasListener(listener) ``` Events have three functions: - `addListener(listener)` - : Add

JSON results · Services directory