Skip to content

Commit 1149efa

Browse files
committed
Bug 1977168 - [bidi] Proxy all kind of traffic when a proxy is set with "browser.createUserContext". r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D257652
1 parent feefecc commit 1149efa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

remote/webdriver-bidi/ProxyPerUserContextManager.sys.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,23 @@ export class ProxyPerUserContextManager {
116116
return;
117117
}
118118

119-
if (channelURI.schemeIs("http") && proxyInfo.httpProxy) {
119+
if (proxyInfo.httpProxy) {
120120
this.#addProxyFilter(proxyFilter, {
121121
host: proxyInfo.httpProxy,
122122
port: proxyInfo.httpProxyPort,
123123
type: "http",
124124
});
125125
}
126126

127-
if (channelURI.schemeIs("https") && proxyInfo.sslProxy) {
127+
if (proxyInfo.sslProxy) {
128128
this.#addProxyFilter(proxyFilter, {
129129
host: proxyInfo.sslProxy,
130130
port: proxyInfo.sslProxyPort,
131131
type: "https",
132132
});
133133
}
134134

135-
if (channelURI.schemeIs(undefined) && proxyInfo.socksProxy) {
135+
if (proxyInfo.socksProxy) {
136136
this.#addProxyFilter(proxyFilter, {
137137
host: proxyInfo.socksProxy,
138138
port: proxyInfo.socksProxyPort,

0 commit comments

Comments
 (0)