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.RequestDetails.
Developer library 6
Work with documentId
ct, webRequest.onResponseStarted, webRequest.onCompleted, and webRequest.onErrorOccurred — include `documentId` and `parentDocumentId` when applicable. - proxy.RequestDetails includes `documentId` and `parentDocumentId` when applicable. - declarativeNetRequest.onRuleMatchedDebug includes `documentId` when applicable. ### documentId for targeting - scripting.InjectionTarget supports `documentIds` to target specific
proxy
FrameId`, etc. are inaccurate. These connections have a webRequest.ResourceType of `speculative`. ## Types - proxy.ProxyInfo - : Describes a proxy. - proxy.RequestDetails - : Contains information about a web request that the browser is about to make. ## Properties - proxy.settings - : Get and set proxy settings. ## Events - proxy.onError - : Fired when the system encounters an error running the PAC scri
proxy.onRequest
e. ## addListener syntax ### Parameters - `listener` - : The function called when this event occurs. The function is passed one argument, which is a proxy.RequestDetails object containing details of the request. The listener can return any of: - a proxy.ProxyInfo object. - an array of proxy.ProxyInfo objects. - a `Promise` that resolves to a `ProxyInfo` object. - a `Promise` that resolves to
proxy.RequestDetails
Contains information about a web request. An instance of this object is passed into the proxy.onRequest listener. ## Type Values of this type are objects. They contain the following properties: - `cookieStoreId` - : `string`. The cookie store ID of the current context. See [Work with contextual identities](/docs/Mozilla/Add-ons/WebExtensions/Work_with_contextual_identities) for more information. - `documentId`
webRequest.onBeforeRequest
e URL for every resource requested which matches the [\<all_urls>](/docs/Mozilla/Add-ons/WebExtensions/Match_patterns#all_urls) pattern: ```js function logURL(requestDetails) { console.log(`Loading: ${requestDetails.url}`); } browser.webRequest.onBeforeRequest.addListener(logURL, { urls: ["<all_urls>"], }); ``` This code cancels requests for images that are made to URLs under "https\://developer.mozilla.org/"
webRequest.onAuthRequired
isplayed. ## Examples This code observes authentication requests for the target URL: ```js const target = "https://intranet.company.com/"; function observe(requestDetails) { console.log(`observing: ${requestDetails.requestId}`); } browser.webRequest.onAuthRequired.addListener(observe, { urls: [target] }); ``` This code cancels authentication requests for the target URL: ```js const target = "https://intranet