From d64580f9458798e1c49a14868732d8170762e190 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Fri, 29 Aug 2025 16:31:12 +0200 Subject: [PATCH 01/13] Inline "proxy" string configuration with Chromium implementation --- index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 365e67c4..16fe8559 100644 --- a/index.html +++ b/index.html @@ -1623,8 +1623,7 @@

Proxy

string Defines the proxy host for HTTP traffic when the proxyType is "manual". - A host and optional port for - scheme "http". + A proxy url. @@ -1640,8 +1639,7 @@

Proxy

string Defines the proxy host for encrypted TLS traffic when the proxyType is "manual". - A host and optional port for - scheme "https". + A proxy url. @@ -1649,7 +1647,7 @@

Proxy

string Defines the proxy host for a SOCKS proxy when the proxyType is "manual". - A host and optional port with an undefined scheme. + A proxy url. @@ -1662,12 +1660,14 @@

Proxy

-

A host and optional port for a scheme is - defined as being a valid host, optionally followed by a colon - and a valid port. The host may +

A proxy url is a valid host, optionally followed by a colon + and a valid port, and optionally prefixed by a scheme and + "://" string. The host may include credentials. If the - port is omitted and scheme has a default port, - this is the implied port. Otherwise, the port is left undefined. + scheme is omitted, the scheme is implied to be + "http". If the port is omitted and scheme has a + default port, this is the implied port. Otherwise, the port is left + undefined.

A proxyType of "direct" indicates that the browser should not use a proxy at all. From 4a7ee1badef52467a44b23d35ecf6fa18f6aeaf8 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Fri, 29 Aug 2025 16:55:42 +0200 Subject: [PATCH 02/13] restrict proxy schema --- index.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 16fe8559..264c32f3 100644 --- a/index.html +++ b/index.html @@ -1645,7 +1645,7 @@

Proxy

socksProxy string - Defines the proxy host for a SOCKS proxy + (deprecated) defines the proxy host for a SOCKS proxy when the proxyType is "manual". A proxy url. @@ -1653,22 +1653,34 @@

Proxy

socksVersion number - Defines the SOCKS proxy version + (deprecated) defines the SOCKS proxy version when the proxyType is "manual". Any integer between 0 and 255 inclusive. + + other + string + Defines the proxy for traffic which is not HTTP nor TLS + when the proxyType is "manual". + A proxy url. + +

A proxy url is a valid host, optionally followed by a colon - and a valid port, and optionally prefixed by a scheme and - "://" string. The host may + and a valid port, and optionally prefixed by a proxy schema + scheme and "://" string. The host may include credentials. If the scheme is omitted, the scheme is implied to be "http". If the port is omitted and scheme has a default port, this is the implied port. Otherwise, the port is left undefined. +

A proxy schema is defined as being one of the following strings: + "http", "https", "socks4", + "socks5". +

A proxyType of "direct" indicates that the browser should not use a proxy at all. From e6a351fe6aba3a3cb7a73a5d9db8e0d6f8620012 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Fri, 29 Aug 2025 17:14:41 +0200 Subject: [PATCH 03/13] roll back socksProxy --- index.html | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/index.html b/index.html index 264c32f3..6282ca4e 100644 --- a/index.html +++ b/index.html @@ -1645,27 +1645,11 @@

Proxy

socksProxy string - (deprecated) defines the proxy host for a SOCKS proxy + Defines the proxy host for a SOCKS proxy when the proxyType is "manual". A proxy url. - - socksVersion - number - (deprecated) defines the SOCKS proxy version - when the proxyType is "manual". - Any integer between 0 and 255 inclusive. - - - - other - string - Defines the proxy for traffic which is not HTTP nor TLS - when the proxyType is "manual". - A proxy url. - -

A proxy url is a valid host, optionally followed by a colon From 73f2d596078281d057e690531abd3c932c29fa11 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Fri, 12 Sep 2025 13:12:28 +0200 Subject: [PATCH 04/13] schemas --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 6282ca4e..07f503f8 100644 --- a/index.html +++ b/index.html @@ -1652,9 +1652,9 @@

Proxy

-

A proxy url is a valid host, optionally followed by a colon - and a valid port, and optionally prefixed by a proxy schema - scheme and "://" string. The host may +

A proxy url is an optional proxy schema and + "://" string, followed by a valid host, optionally + followed by a colon and a valid port. The host may include credentials. If the scheme is omitted, the scheme is implied to be "http". If the port is omitted and scheme has a @@ -1662,8 +1662,8 @@

Proxy

undefined.

A proxy schema is defined as being one of the following strings: - "http", "https", "socks4", - "socks5". + "http", "https", "socks", + "socks4", "socks5".

A proxyType of "direct" indicates that the browser should not use a proxy at all. From 3d84a8faa42f983d4db9d85e638353695e9e0095 Mon Sep 17 00:00:00 2001 From: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com> Date: Wed, 1 Oct 2025 10:16:00 +0200 Subject: [PATCH 05/13] Update index.html Co-authored-by: Henrik Skupin --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 07f503f8..6fce47c7 100644 --- a/index.html +++ b/index.html @@ -1652,10 +1652,10 @@

Proxy

-

A proxy url is an optional proxy schema and - "://" string, followed by a valid host, optionally - followed by a colon and a valid port. The host may - include credentials. If the +

A proxy url consists of an optional proxy scheme +followed by the string "://", a valid host, +and optionally a colon followed by a valid port. The host +may include credentials. If the scheme is omitted, the scheme is implied to be "http". If the port is omitted and scheme has a default port, this is the implied port. Otherwise, the port is left From 1e0853d0b498c0d5bba3d54e99dc03e0b60df99d Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Wed, 1 Oct 2025 10:34:05 +0200 Subject: [PATCH 06/13] s/schema/scheme --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 6fce47c7..81f586f6 100644 --- a/index.html +++ b/index.html @@ -1652,16 +1652,16 @@

Proxy

-

A proxy url consists of an optional proxy scheme -followed by the string "://", a valid host, -and optionally a colon followed by a valid port. The host +

A proxy url consists of an optional proxy scheme +followed by the string "://", a valid host, +and optionally a colon followed by a valid port. The host may include credentials. If the scheme is omitted, the scheme is implied to be "http". If the port is omitted and scheme has a default port, this is the implied port. Otherwise, the port is left undefined. -

A proxy schema is defined as being one of the following strings: +

A proxy scheme is defined as being one of the following strings: "http", "https", "socks", "socks4", "socks5". From b0a959b7211555d2b7a3e3bb6c9d3e2538eaaa99 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Wed, 1 Oct 2025 11:43:31 +0200 Subject: [PATCH 07/13] `socksVersion` defines the protocol version for `socks` protocol --- index.html | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 81f586f6..c26dff83 100644 --- a/index.html +++ b/index.html @@ -1645,21 +1645,37 @@

Proxy

socksProxy string - Defines the proxy host for a SOCKS proxy - when the proxyType is "manual". + Defines the proxy host for SOCKS traffic when the + proxyType is "manual". A proxy url. + + socksVersion + number + Defines the SOCKS proxy version when the proxy url's + proxy scheme is "socks". + Any integer between 0 and 255 inclusive. + + -

A proxy url consists of an optional proxy scheme -followed by the string "://", a valid host, -and optionally a colon followed by a valid port. The host -may include credentials. If the - scheme is omitted, the scheme is implied to be - "http". If the port is omitted and scheme has a - default port, this is the implied port. Otherwise, the port is left - undefined. +

A proxy url can be either "direct" or a string + consists of an optional proxy scheme scheme followed by the + string "://", a valid host host, and optionally + a colon followed by a valid port port. + +

    +
  1. The host may + include credentials. +

  2. If the port is omitted and scheme has a + default port, this is the implied port. Otherwise, the port + is left undefined. + +

  3. If the scheme is omitted and the port is 443, + the scheme is implied to be "https". Otherwise, the + scheme is implied to be "http". +

A proxy scheme is defined as being one of the following strings: "http", "https", "socks", @@ -1716,10 +1732,10 @@

Proxy

own property for "proxyAutoconfigUrl" return an error with error code invalid argument. -
  • If proxy has an own property for - "socksProxy" and does not have an own property - for "socksVersion" return an error with error - code invalid argument. +

  • If proxy contains proxy url with proxy scheme + "socks" and does not have an own property + for "socksVersion", return an error with error code + invalid argument.

  • Return success with data proxy. From b22e68f1162a7fb519d9e5e4ff9be7daa4fe7e36 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 9 Dec 2025 12:38:51 +0100 Subject: [PATCH 08/13] default proxy protocol to the protocol to proxy --- index.html | 51 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index c26dff83..03b500af 100644 --- a/index.html +++ b/index.html @@ -1623,7 +1623,7 @@

    Proxy

    string Defines the proxy host for HTTP traffic when the proxyType is "manual". - A proxy url. + A proxy url for "http". @@ -1639,7 +1639,7 @@

    Proxy

    string Defines the proxy host for encrypted TLS traffic when the proxyType is "manual". - A proxy url. + A proxy url "https". @@ -1647,7 +1647,7 @@

    Proxy

    string Defines the proxy host for SOCKS traffic when the proxyType is "manual". - A proxy url. + A proxy url for "socks". @@ -1660,21 +1660,38 @@

    Proxy

    -

    A proxy url can be either "direct" or a string - consists of an optional proxy scheme scheme followed by the - string "://", a valid host host, and optionally - a colon followed by a valid port port. +

    A proxy url for proxy scheme protocol can be + either "direct" or a string consists of an optional + proxy scheme scheme followed by the string + "://", a valid host host, and optionally a + colon followed by a valid port port. -

      -
    1. The host may - include credentials. -

    2. If the port is omitted and scheme has a - default port, this is the implied port. Otherwise, the port - is left undefined. - -

    3. If the scheme is omitted and the port is 443, - the scheme is implied to be "https". Otherwise, the - scheme is implied to be "http". +

      There scheme can be different from + protocol. If so it means that the protocol traffic will + be proxied via scheme. + +

        +
      1. If scheme is omitted, let scheme be null. + +

      2. If scheme is null and port is 80, + let scheme be "http". + +

      3. If scheme is null and port is 443, + let scheme be "https". + +

      4. If scheme is null and port is 1080, + let scheme be "socks". + +

      5. If scheme is null, let scheme be + protocol. + +

      6. If scheme is "http" or "https", + the host may + include credentials. + +

      7. If the port is omitted and scheme has a + default port, this is the implied port. Otherwise, the port + is left undefined.

      A proxy scheme is defined as being one of the following strings: From 63e21ca535e221173a702d4d64c5053dc99aa8f6 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 9 Dec 2025 15:02:39 +0100 Subject: [PATCH 09/13] fix note --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 03b500af..19d003af 100644 --- a/index.html +++ b/index.html @@ -1666,9 +1666,9 @@

      Proxy

      "://", a valid host host, and optionally a colon followed by a valid port port. -

      There scheme can be different from - protocol. If so it means that the protocol traffic will - be proxied via scheme. +

      The scheme can be different from protocol. + If so, it means that the protocol traffic will be proxied via + scheme.

      1. If scheme is omitted, let scheme be null. From 1cc6648c5097b356738a546cca0ce6da1eafc3ee Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 23 Dec 2025 14:17:40 +0100 Subject: [PATCH 10/13] proxy specifier --- index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 19d003af..1a72b3b8 100644 --- a/index.html +++ b/index.html @@ -1623,7 +1623,7 @@

        Proxy

        string Defines the proxy host for HTTP traffic when the proxyType is "manual". - A proxy url for "http". + A proxy specifier for "http". @@ -1639,7 +1639,7 @@

        Proxy

        string Defines the proxy host for encrypted TLS traffic when the proxyType is "manual". - A proxy url "https". + A proxy specifier "https". @@ -1647,21 +1647,21 @@

        Proxy

        string Defines the proxy host for SOCKS traffic when the proxyType is "manual". - A proxy url for "socks". + A proxy specifier for "socks". socksVersion number - Defines the SOCKS proxy version when the proxy url's + Defines the SOCKS proxy version when the proxy specifier's proxy scheme is "socks". Any integer between 0 and 255 inclusive. -

        A proxy url for proxy scheme protocol can be - either "direct" or a string consists of an optional +

        A proxy specifier for proxy scheme protocol can + be either "direct" or a string consists of an optional proxy scheme scheme followed by the string "://", a valid host host, and optionally a colon followed by a valid port port. @@ -1749,10 +1749,10 @@

        Proxy

        own property for "proxyAutoconfigUrl" return an error with error code invalid argument. -
      2. If proxy contains proxy url with proxy scheme - "socks" and does not have an own property - for "socksVersion", return an error with error code - invalid argument. +

      3. If proxy contains proxy specifier with + proxy scheme "socks" and does not have an + own property for "socksVersion", return an error + with error code invalid argument.

      4. Return success with data proxy.

      From d43a0ee4a63ea76873488eab02bb351383a106b2 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 23 Dec 2025 14:19:19 +0100 Subject: [PATCH 11/13] proxy configuration --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 1a72b3b8..9847a419 100644 --- a/index.html +++ b/index.html @@ -1621,7 +1621,7 @@

      Proxy

      httpProxy string - Defines the proxy host for HTTP traffic when + Defines the proxy configuration for HTTP traffic when the proxyType is "manual". A proxy specifier for "http". @@ -1637,7 +1637,7 @@

      Proxy

      sslProxy string - Defines the proxy host for encrypted TLS traffic + Defines the proxy configuration for encrypted TLS traffic when the proxyType is "manual". A proxy specifier "https". @@ -1645,7 +1645,7 @@

      Proxy

      socksProxy string - Defines the proxy host for SOCKS traffic when the + Defines the proxy configuration for SOCKS traffic when the proxyType is "manual". A proxy specifier for "socks". From df77dbc965ba3851e721fcc9eb6042742e893936 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 23 Dec 2025 14:20:43 +0100 Subject: [PATCH 12/13] remove detecting protocol by port --- index.html | 9 --------- 1 file changed, 9 deletions(-) diff --git a/index.html b/index.html index 9847a419..bf5ed475 100644 --- a/index.html +++ b/index.html @@ -1673,15 +1673,6 @@

      Proxy

      1. If scheme is omitted, let scheme be null. -

      2. If scheme is null and port is 80, - let scheme be "http". - -

      3. If scheme is null and port is 443, - let scheme be "https". - -

      4. If scheme is null and port is 1080, - let scheme be "socks". -

      5. If scheme is null, let scheme be protocol. From e370abf7bbb6db5e4ef911f3bdd229d7089ec30b Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 23 Dec 2025 14:23:50 +0100 Subject: [PATCH 13/13] default port --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index bf5ed475..ae997f29 100644 --- a/index.html +++ b/index.html @@ -1677,12 +1677,12 @@

        Proxy

        protocol.
      6. If scheme is "http" or "https", - the host may - include credentials. + the host may + include credentials.

      7. If the port is omitted and scheme has a - default port, this is the implied port. Otherwise, the port - is left undefined. + default port, then remote end should use this port. Otherwise, + the port is left undefined.

      A proxy scheme is defined as being one of the following strings: