Here is am edited copy of Firefox proxy schema to show the suggested changes.
It shows the addition of 1 property (browser pref) and removal of 7 properties.
```js
[
{
"namespace": "manifest",
"types": [
{
"$extend": "OptionalPermission",
"choices": [
{
"type": "string",
"enum": ["proxy"]
}
]
}
]
},
{
"namespace": "proxy",
"description": "Provides access to global proxy settings for Firefox and proxy event listeners to handle dynamic proxy implementations.",
"permissions": ["proxy"],
"types": [
{
"id": "ProxyConfig",
"type": "object",
"description": "An object which describes proxy settings.",
"properties": {
// "mode" in Chrome
// "enum": ["direct", "auto_detect", "pac_script", "fixed_servers", "system"]
"proxyType": {
"type": "string",
"optional": true,
"enum": ["none", "autoDetect", "system", "manual", "autoConfig"],
"description": "The type of proxy to use."
},
// --- additions based on chrome property
"Scheme": {
"type": "string",
"enum": ["http", "https", "quic", "socks4", "socks5"]
},
"singleProxy": {
"type": "object",
"optional": true,
"description": "The proxy server to be used for all per-URL requests.",
"properties": {
"scheme": {"$ref": "Scheme", "optional": true, "description": "The scheme (protocol) of the proxy server itself. Defaults to 'http'."},
"host": {"type": "string", "description": "The hostname or IP address of the proxy server. Hostnames must be in ASCII (in Punycode format). IDNA is not supported, yet."},
"port": {"type": "integer", "optional": true, "description": "The port of the proxy server. Defaults to a port that depends on the scheme."}
// default port http 80, https 443, socks 1080
}
},
// --- /additions based on chrome
// --- remove from UI, keep alias (mapped to singleProxy) for backward compatibility
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"http": {
"type": "string",
"optional": true,
"description": "The address of the http proxy, can include a port."
},
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"httpProxyAll": {
"type": "boolean",
"optional": true,
"description": "Use the http proxy server for all protocols."
},
// RIP
"ftp": {
"type": "string",
"optional": true,
"deprecated": true,
"description": "The address of the ftp proxy, can include a port. Deprecated since Firefox 88."
},
// map to "singleProxy" {"scheme": "https", "host": "this-value", "port": "this-port or 443"}
"ssl": {
"type": "string",
"optional": true,
"description": "The address of the ssl proxy, can include a port."
},
// map to "singleProxy" {"scheme": "socks-socksVersion", "host": "this-value", "port": "this-port or 1080"}
"socks": {
"type": "string",
"optional": true,
"description": "The address of the socks proxy, can include a port."
},
// see "socks"
"socksVersion": {
"type": "integer",
"optional": true,
"description": "The version of the socks proxy.",
"minimum": 4,
"maximum": 5
},
// should be removed
"proxyDNS": {
"type": "boolean",
"optional": true,
"description": "Proxy DNS when using SOCKS. DNS queries get leaked to the network when set to false. True by default for SOCKS v5. False by default for SOCKS v4."
},
// --- /remove from UI, keep alias (mapped to singleProxy) for backward compatibility
"passthrough": {
"type": "string",
"optional": true,
"description": "A list of hosts which should not be proxied."
},
"autoConfigUrl": {
"type": "string",
"optional": true,
"description": "A URL to use to configure the proxy."
},
"autoLogin": {
"type": "boolean",
"optional": true,
"description": "Do not prompt for authentication if password is saved."
},
"respectBeConservative": {
"type": "boolean",
"optional": true,
"default": true,
"description": " If true (the default value), do not use newer TLS protocol features that might have interoperability problems on the Internet. This is intended only for use with critical infrastructure like the updates, and is only available to privileged addons."
}
}
}
],
"properties": {
"settings": {
"$ref": "types.Setting",
"description": "Configures proxy settings. This setting's value is an object of type ProxyConfig."
}
},
// --- no change
"events": [
{
"name": "onRequest",
"type": "function",
"description": "Fired when proxy data is needed for a request.",
"parameters": [
{
"type": "object",
"name": "details",
"properties": {
"requestId": {
"type": "string",
"description": "The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request."
},
"url": { "type": "string" },
"method": {
"type": "string",
"description": "Standard HTTP method."
},
"frameId": {
"type": "integer",
"description": "The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>), <code>frameId</code> indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab."
},
"parentFrameId": {
"type": "integer",
"description": "ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists."
},
"incognito": {
"type": "boolean",
"optional": true,
"description": "True for private browsing requests."
},
"cookieStoreId": {
"type": "string",
"optional": true,
"description": "The cookie store ID of the contextual identity."
},
"originUrl": {
"type": "string",
"optional": true,
"description": "URL of the resource that triggered this request."
},
"documentUrl": {
"type": "string",
"optional": true,
"description": "URL of the page into which the requested resource will be loaded."
},
"tabId": {
"type": "integer",
"description": "The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab."
},
"type": {
"$ref": "webRequest.ResourceType",
"description": "How the requested resource will be used."
},
"timeStamp": {
"type": "number",
"description": "The time when this signal is triggered, in milliseconds since the epoch."
},
"fromCache": {
"type": "boolean",
"description": "Indicates if this response was fetched from disk cache."
},
"requestHeaders": {
"$ref": "webRequest.HttpHeaders",
"optional": true,
"description": "The HTTP request headers that are going to be sent out with this request."
},
"urlClassification": {
"$ref": "webRequest.UrlClassification",
"description": "Url classification if the request has been classified."
},
"thirdParty": {
"type": "boolean",
"description": "Indicates if this request and its content window hierarchy is third party."
}
}
}
],
"extraParameters": [
{
"$ref": "webRequest.RequestFilter",
"name": "filter",
"description": "A set of filters that restricts the events that will be sent to this listener."
},
{
"type": "array",
"optional": true,
"name": "extraInfoSpec",
"description": "Array of extra information that should be passed to the listener function.",
"items": {
"type": "string",
"enum": ["requestHeaders"]
}
}
]
},
{
"name": "onError",
"type": "function",
"description": "Notifies about errors caused by the invalid use of the proxy API.",
"parameters": [
{
"name": "error",
"type": "object"
}
]
}
]
}
]
```
Bug 1947229 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Here is an edited copy of Firefox proxy schema to show the suggested changes.
It shows the addition of 1 property (browser pref) and removal of 7 properties.
```js
[
{
"namespace": "manifest",
"types": [
{
"$extend": "OptionalPermission",
"choices": [
{
"type": "string",
"enum": ["proxy"]
}
]
}
]
},
{
"namespace": "proxy",
"description": "Provides access to global proxy settings for Firefox and proxy event listeners to handle dynamic proxy implementations.",
"permissions": ["proxy"],
"types": [
{
"id": "ProxyConfig",
"type": "object",
"description": "An object which describes proxy settings.",
"properties": {
// "mode" in Chrome
// "enum": ["direct", "auto_detect", "pac_script", "fixed_servers", "system"]
"proxyType": {
"type": "string",
"optional": true,
"enum": ["none", "autoDetect", "system", "manual", "autoConfig"],
"description": "The type of proxy to use."
},
// --- additions based on chrome property
"Scheme": {
"type": "string",
"enum": ["http", "https", "quic", "socks4", "socks5"]
},
"singleProxy": {
"type": "object",
"optional": true,
"description": "The proxy server to be used for all per-URL requests.",
"properties": {
"scheme": {"$ref": "Scheme", "optional": true, "description": "The scheme (protocol) of the proxy server itself. Defaults to 'http'."},
"host": {"type": "string", "description": "The hostname or IP address of the proxy server. Hostnames must be in ASCII (in Punycode format). IDNA is not supported, yet."},
"port": {"type": "integer", "optional": true, "description": "The port of the proxy server. Defaults to a port that depends on the scheme."}
// default port http 80, https 443, socks 1080
}
},
// --- /additions based on chrome
// --- remove from UI, keep alias (mapped to singleProxy) for backward compatibility
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"http": {
"type": "string",
"optional": true,
"description": "The address of the http proxy, can include a port."
},
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"httpProxyAll": {
"type": "boolean",
"optional": true,
"description": "Use the http proxy server for all protocols."
},
// RIP
"ftp": {
"type": "string",
"optional": true,
"deprecated": true,
"description": "The address of the ftp proxy, can include a port. Deprecated since Firefox 88."
},
// map to "singleProxy" {"scheme": "https", "host": "this-value", "port": "this-port or 443"}
"ssl": {
"type": "string",
"optional": true,
"description": "The address of the ssl proxy, can include a port."
},
// map to "singleProxy" {"scheme": "socks-socksVersion", "host": "this-value", "port": "this-port or 1080"}
"socks": {
"type": "string",
"optional": true,
"description": "The address of the socks proxy, can include a port."
},
// see "socks"
"socksVersion": {
"type": "integer",
"optional": true,
"description": "The version of the socks proxy.",
"minimum": 4,
"maximum": 5
},
// should be removed
"proxyDNS": {
"type": "boolean",
"optional": true,
"description": "Proxy DNS when using SOCKS. DNS queries get leaked to the network when set to false. True by default for SOCKS v5. False by default for SOCKS v4."
},
// --- /remove from UI, keep alias (mapped to singleProxy) for backward compatibility
"passthrough": {
"type": "string",
"optional": true,
"description": "A list of hosts which should not be proxied."
},
"autoConfigUrl": {
"type": "string",
"optional": true,
"description": "A URL to use to configure the proxy."
},
"autoLogin": {
"type": "boolean",
"optional": true,
"description": "Do not prompt for authentication if password is saved."
},
"respectBeConservative": {
"type": "boolean",
"optional": true,
"default": true,
"description": " If true (the default value), do not use newer TLS protocol features that might have interoperability problems on the Internet. This is intended only for use with critical infrastructure like the updates, and is only available to privileged addons."
}
}
}
],
"properties": {
"settings": {
"$ref": "types.Setting",
"description": "Configures proxy settings. This setting's value is an object of type ProxyConfig."
}
},
// --- no change
"events": [
{
"name": "onRequest",
"type": "function",
"description": "Fired when proxy data is needed for a request.",
"parameters": [
{
"type": "object",
"name": "details",
"properties": {
"requestId": {
"type": "string",
"description": "The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request."
},
"url": { "type": "string" },
"method": {
"type": "string",
"description": "Standard HTTP method."
},
"frameId": {
"type": "integer",
"description": "The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>), <code>frameId</code> indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab."
},
"parentFrameId": {
"type": "integer",
"description": "ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists."
},
"incognito": {
"type": "boolean",
"optional": true,
"description": "True for private browsing requests."
},
"cookieStoreId": {
"type": "string",
"optional": true,
"description": "The cookie store ID of the contextual identity."
},
"originUrl": {
"type": "string",
"optional": true,
"description": "URL of the resource that triggered this request."
},
"documentUrl": {
"type": "string",
"optional": true,
"description": "URL of the page into which the requested resource will be loaded."
},
"tabId": {
"type": "integer",
"description": "The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab."
},
"type": {
"$ref": "webRequest.ResourceType",
"description": "How the requested resource will be used."
},
"timeStamp": {
"type": "number",
"description": "The time when this signal is triggered, in milliseconds since the epoch."
},
"fromCache": {
"type": "boolean",
"description": "Indicates if this response was fetched from disk cache."
},
"requestHeaders": {
"$ref": "webRequest.HttpHeaders",
"optional": true,
"description": "The HTTP request headers that are going to be sent out with this request."
},
"urlClassification": {
"$ref": "webRequest.UrlClassification",
"description": "Url classification if the request has been classified."
},
"thirdParty": {
"type": "boolean",
"description": "Indicates if this request and its content window hierarchy is third party."
}
}
}
],
"extraParameters": [
{
"$ref": "webRequest.RequestFilter",
"name": "filter",
"description": "A set of filters that restricts the events that will be sent to this listener."
},
{
"type": "array",
"optional": true,
"name": "extraInfoSpec",
"description": "Array of extra information that should be passed to the listener function.",
"items": {
"type": "string",
"enum": ["requestHeaders"]
}
}
]
},
{
"name": "onError",
"type": "function",
"description": "Notifies about errors caused by the invalid use of the proxy API.",
"parameters": [
{
"name": "error",
"type": "object"
}
]
}
]
}
]
```
Here is an edited copy of Firefox proxy schema to show the suggested changes.
It shows the addition of 1 property (browser pref) and removal of 7 properties.
```js
[
{
"namespace": "manifest",
"types": [
{
"$extend": "OptionalPermission",
"choices": [
{
"type": "string",
"enum": ["proxy"]
}
]
}
]
},
{
"namespace": "proxy",
"description": "Provides access to global proxy settings for Firefox and proxy event listeners to handle dynamic proxy implementations.",
"permissions": ["proxy"],
"types": [
{
"id": "ProxyConfig",
"type": "object",
"description": "An object which describes proxy settings.",
"properties": {
// "mode" in Chrome
// "enum": ["direct", "auto_detect", "pac_script", "fixed_servers", "system"]
"proxyType": {
"type": "string",
"optional": true,
"enum": ["none", "autoDetect", "system", "manual", "autoConfig"],
"description": "The type of proxy to use."
},
// --- additions based on chrome property
// there are ambiguities when "socks" keyword is used
// in some places it refers to socks4, and in others to socks5
// Using "socks4" & "socks5" eliminates any ambiguity
"Scheme": {
"type": "string",
"enum": ["http", "https", "quic", "socks4", "socks5"]
},
"singleProxy": {
"type": "object",
"optional": true,
"description": "The proxy server to be used for all per-URL requests.",
"properties": {
"scheme": {"$ref": "Scheme", "optional": true, "description": "The scheme (protocol) of the proxy server itself. Defaults to 'http'."},
"host": {"type": "string", "description": "The hostname or IP address of the proxy server. Hostnames must be in ASCII (in Punycode format). IDNA is not supported, yet."},
"port": {"type": "integer", "optional": true, "description": "The port of the proxy server. Defaults to a port that depends on the scheme."}
// default port http 80, https 443, socks 1080
}
},
// --- /additions based on chrome
// --- remove from UI, keep alias (mapped to singleProxy) for backward compatibility
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"http": {
"type": "string",
"optional": true,
"description": "The address of the http proxy, can include a port."
},
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"httpProxyAll": {
"type": "boolean",
"optional": true,
"description": "Use the http proxy server for all protocols."
},
// RIP
"ftp": {
"type": "string",
"optional": true,
"deprecated": true,
"description": "The address of the ftp proxy, can include a port. Deprecated since Firefox 88."
},
// map to "singleProxy" {"scheme": "https", "host": "this-value", "port": "this-port or 443"}
"ssl": {
"type": "string",
"optional": true,
"description": "The address of the ssl proxy, can include a port."
},
// map to "singleProxy" {"scheme": "socks-socksVersion", "host": "this-value", "port": "this-port or 1080"}
"socks": {
"type": "string",
"optional": true,
"description": "The address of the socks proxy, can include a port."
},
// see "socks"
"socksVersion": {
"type": "integer",
"optional": true,
"description": "The version of the socks proxy.",
"minimum": 4,
"maximum": 5
},
// should be removed
"proxyDNS": {
"type": "boolean",
"optional": true,
"description": "Proxy DNS when using SOCKS. DNS queries get leaked to the network when set to false. True by default for SOCKS v5. False by default for SOCKS v4."
},
// --- /remove from UI, keep alias (mapped to singleProxy) for backward compatibility
"passthrough": {
"type": "string",
"optional": true,
"description": "A list of hosts which should not be proxied."
},
"autoConfigUrl": {
"type": "string",
"optional": true,
"description": "A URL to use to configure the proxy."
},
"autoLogin": {
"type": "boolean",
"optional": true,
"description": "Do not prompt for authentication if password is saved."
},
"respectBeConservative": {
"type": "boolean",
"optional": true,
"default": true,
"description": " If true (the default value), do not use newer TLS protocol features that might have interoperability problems on the Internet. This is intended only for use with critical infrastructure like the updates, and is only available to privileged addons."
}
}
}
],
"properties": {
"settings": {
"$ref": "types.Setting",
"description": "Configures proxy settings. This setting's value is an object of type ProxyConfig."
}
},
// --- no change
"events": [
{
"name": "onRequest",
"type": "function",
"description": "Fired when proxy data is needed for a request.",
"parameters": [
{
"type": "object",
"name": "details",
"properties": {
"requestId": {
"type": "string",
"description": "The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request."
},
"url": { "type": "string" },
"method": {
"type": "string",
"description": "Standard HTTP method."
},
"frameId": {
"type": "integer",
"description": "The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>), <code>frameId</code> indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab."
},
"parentFrameId": {
"type": "integer",
"description": "ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists."
},
"incognito": {
"type": "boolean",
"optional": true,
"description": "True for private browsing requests."
},
"cookieStoreId": {
"type": "string",
"optional": true,
"description": "The cookie store ID of the contextual identity."
},
"originUrl": {
"type": "string",
"optional": true,
"description": "URL of the resource that triggered this request."
},
"documentUrl": {
"type": "string",
"optional": true,
"description": "URL of the page into which the requested resource will be loaded."
},
"tabId": {
"type": "integer",
"description": "The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab."
},
"type": {
"$ref": "webRequest.ResourceType",
"description": "How the requested resource will be used."
},
"timeStamp": {
"type": "number",
"description": "The time when this signal is triggered, in milliseconds since the epoch."
},
"fromCache": {
"type": "boolean",
"description": "Indicates if this response was fetched from disk cache."
},
"requestHeaders": {
"$ref": "webRequest.HttpHeaders",
"optional": true,
"description": "The HTTP request headers that are going to be sent out with this request."
},
"urlClassification": {
"$ref": "webRequest.UrlClassification",
"description": "Url classification if the request has been classified."
},
"thirdParty": {
"type": "boolean",
"description": "Indicates if this request and its content window hierarchy is third party."
}
}
}
],
"extraParameters": [
{
"$ref": "webRequest.RequestFilter",
"name": "filter",
"description": "A set of filters that restricts the events that will be sent to this listener."
},
{
"type": "array",
"optional": true,
"name": "extraInfoSpec",
"description": "Array of extra information that should be passed to the listener function.",
"items": {
"type": "string",
"enum": ["requestHeaders"]
}
}
]
},
{
"name": "onError",
"type": "function",
"description": "Notifies about errors caused by the invalid use of the proxy API.",
"parameters": [
{
"name": "error",
"type": "object"
}
]
}
]
}
]
```
Here is an edited copy of Firefox proxy schema to show the suggested changes.
It shows the addition of 1 property (browser pref) and removal of 7 properties.
```js
[
{
"namespace": "manifest",
"types": [
{
"$extend": "OptionalPermission",
"choices": [
{
"type": "string",
"enum": ["proxy"]
}
]
}
]
},
{
"namespace": "proxy",
"description": "Provides access to global proxy settings for Firefox and proxy event listeners to handle dynamic proxy implementations.",
"permissions": ["proxy"],
"types": [
{
"id": "ProxyConfig",
"type": "object",
"description": "An object which describes proxy settings.",
"properties": {
// "mode" in Chrome
// "enum": ["direct", "auto_detect", "pac_script", "fixed_servers", "system"]
"proxyType": {
"type": "string",
"optional": true,
"enum": ["none", "autoDetect", "system", "manual", "autoConfig"],
"description": "The type of proxy to use."
},
// --- additions based on chrome
// there are ambiguities when "socks" keyword is used
// in some places it refers to socks4, and in others to socks5
// Using "socks4" & "socks5" eliminates any ambiguity
"Scheme": {
"type": "string",
"enum": ["http", "https", "quic", "socks4", "socks5"]
},
"singleProxy": {
"type": "object",
"optional": true,
"description": "The proxy server to be used for all per-URL requests.",
"properties": {
"scheme": {"$ref": "Scheme", "optional": true, "description": "The scheme (protocol) of the proxy server itself. Defaults to 'http'."},
"host": {"type": "string", "description": "The hostname or IP address of the proxy server. Hostnames must be in ASCII (in Punycode format). IDNA is not supported, yet."},
"port": {"type": "integer", "optional": true, "description": "The port of the proxy server. Defaults to a port that depends on the scheme."}
// default port http 80, https 443, socks 1080
}
},
// --- /additions based on chrome
// --- remove from UI, keep alias (mapped to singleProxy) for backward compatibility
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"http": {
"type": "string",
"optional": true,
"description": "The address of the http proxy, can include a port."
},
// map to "singleProxy" {"scheme": "http", "host": "this-value", "port": "this-port or 80"}
"httpProxyAll": {
"type": "boolean",
"optional": true,
"description": "Use the http proxy server for all protocols."
},
// RIP
"ftp": {
"type": "string",
"optional": true,
"deprecated": true,
"description": "The address of the ftp proxy, can include a port. Deprecated since Firefox 88."
},
// map to "singleProxy" {"scheme": "https", "host": "this-value", "port": "this-port or 443"}
"ssl": {
"type": "string",
"optional": true,
"description": "The address of the ssl proxy, can include a port."
},
// map to "singleProxy" {"scheme": "socks-socksVersion", "host": "this-value", "port": "this-port or 1080"}
"socks": {
"type": "string",
"optional": true,
"description": "The address of the socks proxy, can include a port."
},
// see "socks"
"socksVersion": {
"type": "integer",
"optional": true,
"description": "The version of the socks proxy.",
"minimum": 4,
"maximum": 5
},
// should be removed
"proxyDNS": {
"type": "boolean",
"optional": true,
"description": "Proxy DNS when using SOCKS. DNS queries get leaked to the network when set to false. True by default for SOCKS v5. False by default for SOCKS v4."
},
// --- /remove from UI, keep alias (mapped to singleProxy) for backward compatibility
"passthrough": {
"type": "string",
"optional": true,
"description": "A list of hosts which should not be proxied."
},
"autoConfigUrl": {
"type": "string",
"optional": true,
"description": "A URL to use to configure the proxy."
},
"autoLogin": {
"type": "boolean",
"optional": true,
"description": "Do not prompt for authentication if password is saved."
},
"respectBeConservative": {
"type": "boolean",
"optional": true,
"default": true,
"description": " If true (the default value), do not use newer TLS protocol features that might have interoperability problems on the Internet. This is intended only for use with critical infrastructure like the updates, and is only available to privileged addons."
}
}
}
],
"properties": {
"settings": {
"$ref": "types.Setting",
"description": "Configures proxy settings. This setting's value is an object of type ProxyConfig."
}
},
// --- no change
"events": [
{
"name": "onRequest",
"type": "function",
"description": "Fired when proxy data is needed for a request.",
"parameters": [
{
"type": "object",
"name": "details",
"properties": {
"requestId": {
"type": "string",
"description": "The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request."
},
"url": { "type": "string" },
"method": {
"type": "string",
"description": "Standard HTTP method."
},
"frameId": {
"type": "integer",
"description": "The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>), <code>frameId</code> indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab."
},
"parentFrameId": {
"type": "integer",
"description": "ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists."
},
"incognito": {
"type": "boolean",
"optional": true,
"description": "True for private browsing requests."
},
"cookieStoreId": {
"type": "string",
"optional": true,
"description": "The cookie store ID of the contextual identity."
},
"originUrl": {
"type": "string",
"optional": true,
"description": "URL of the resource that triggered this request."
},
"documentUrl": {
"type": "string",
"optional": true,
"description": "URL of the page into which the requested resource will be loaded."
},
"tabId": {
"type": "integer",
"description": "The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab."
},
"type": {
"$ref": "webRequest.ResourceType",
"description": "How the requested resource will be used."
},
"timeStamp": {
"type": "number",
"description": "The time when this signal is triggered, in milliseconds since the epoch."
},
"fromCache": {
"type": "boolean",
"description": "Indicates if this response was fetched from disk cache."
},
"requestHeaders": {
"$ref": "webRequest.HttpHeaders",
"optional": true,
"description": "The HTTP request headers that are going to be sent out with this request."
},
"urlClassification": {
"$ref": "webRequest.UrlClassification",
"description": "Url classification if the request has been classified."
},
"thirdParty": {
"type": "boolean",
"description": "Indicates if this request and its content window hierarchy is third party."
}
}
}
],
"extraParameters": [
{
"$ref": "webRequest.RequestFilter",
"name": "filter",
"description": "A set of filters that restricts the events that will be sent to this listener."
},
{
"type": "array",
"optional": true,
"name": "extraInfoSpec",
"description": "Array of extra information that should be passed to the listener function.",
"items": {
"type": "string",
"enum": ["requestHeaders"]
}
}
]
},
{
"name": "onError",
"type": "function",
"description": "Notifies about errors caused by the invalid use of the proxy API.",
"parameters": [
{
"name": "error",
"type": "object"
}
]
}
]
}
]
```
I am removing extension related data as it has lead to misunderstanding. Once necko-proxy is updated, the extension API can reflect the changes accordingly.
I am removing extension related data as it has lead to a misunderstanding. Once necko-proxy is updated, the extension API can reflect the changes accordingly.
I am removing extension related data as it has led to a misunderstanding. Once necko-proxy is updated, the extension API can reflect the changes accordingly.