Chromium (Chrome, Edge, Brave, Opera)

Used by: Chrome, Edge, Brave, Opera, Vivaldi.

Helper library

The checker runs this engine's own PAC helper library, copied verbatim at cb6eb0e7cac0 (BSD-3-Clause (Chromium); JS body MPL-1.1/GPL-2.0/LGPL-2.1 (Mozilla-derived)). Upstream source.

Version ranges and quirks

Later ranges list only what changes compared with the range before.

Chrome ≤ 51 (<=51)

Chrome 51 and older pass the full URL to the script. The version boundary was read in the Chromium source; a lab run with an old build is still pending.

BehaviourValueSource
alert() outputnetlogcode, verified 2026-10-04
Non-ASCII result rejectedtruecode, verified 2026-10-04
DNS lookupsasync
Chrome and Edge stop the script at each name whose DNS answer is not at hand and run it again from the start once the answer is in. The answers of one request are kept in a table, so a repeated lookup of the same name is free, but after 20 different names every further lookup fails at once (dnsResolve returns null). The checker answers from your DNS table and runs the script once (code, Chromium 155; measured in Chromium 145 and Edge 155, 2026-10-14, and with the browser's own DNS client on 2026-10-15).
lab, verified 2026-10-15
dnsResolve is IPv4 onlytruecode, verified 2026-10-04
JavaScript level acceptedlatestcode, verified 2026-10-04
Calls FindProxyForURLEx if definedfalsecode, verified 2026-10-04
Microsoft *Ex functionstruecode, verified 2026-10-04
Global variables persist between callstruecode, verified 2026-10-04
International host names passed in punycode (xn--)true
The host reaches the script in its ASCII (punycode) form, in lower case.
code, verified 2026-10-15
Host lower-cased by the enginetrue
The host comes from the browser's canonicalised URL, so it is already lower-case. The host part of the url argument is lower-case too; the path keeps its case.
code, verified 2026-10-15
myIpAddress() sourcerouting_ipv4
The local address of the route towards the internet (8.8.8.8), whatever the destination. Adapter type and adapter order play no part; 127.0.0.1 when nothing is found.
lab, verified 2026-10-14
Functions built into the engine (native)alert, myIpAddress, dnsResolve, isPlainHostName, dnsResolveEx, myIpAddressEx, sortIpAddressList, isInNetEx
Read from the current Chromium source; assumed to be the same in old versions.
code, verified 2026-10-04
On exceptiondirectcode, verified 2026-10-04
On non-string / undefined resultdirectcode, verified 2026-10-04
URL passed to FindProxyForURLnone
Chrome 51 and older pass the full URL, including path and query, to FindProxyForURL.
code, verified 2026-10-04

Chrome ≥ 52 (>=52)

Also Edge, Brave, Opera and Vivaldi of the same Chromium version.

BehaviourValueSource
International host names passed in punycode (xn--)true
The host reaches the script in its ASCII form: an internationalised name such as Bücher.example arrives as xn--bcher-kva.example, in lower case, and so does the host part of url. A test against the Unicode spelling never matches; write the punycode form (measured in Chrome 155, Edge 155 and Chromium 145, 2026-10-15).
lab, verified 2026-10-15
Host lower-cased by the enginetrue
The host reaches the script in lower case, whatever case the address had, also for IPv6 addresses (FD00::A1 becomes fd00::a1, without brackets). In the url argument the scheme and host part are lower-case too, but the path and query keep their case (measured in Chrome 155, Edge 155 and Chromium 145, 2026-10-15).
lab, verified 2026-10-15
URL passed to FindProxyForURLhttps_path_query
For https:// and wss:// URLs the script sees only scheme, host and port, for example https://www.example.com/. For http:// URLs the path and the query reach the script. A user name and password and the #fragment are always removed (measured in Chromium 145, Edge 155 and Chrome 155, 2026-10-15).
lab, verified 2026-10-15

Function availability

Derived from each engine's vendored helper library plus its native bindings (see engines).
Functionchromium
<=51
chromium
>=52
firefox
all
pacparser
<=1.4.6
pacparser
>=1.5.1
winhttp
11-25H2
wininet
11-25H2
reference
all
isPlainHostNameyesyesyesyesyesyesyesyes
dnsDomainIsyesyesyesyesyesyesyesyes
localHostOrDomainIsyesyesyesyesyesyesyesyes
isResolvableyesyesyesyesyesyesyesyes
isInNetyesyesyesyesyesyesyesyes
dnsResolveyesyesyesyesyesyesyesyes
myIpAddressyesyesyesyesyesyesyesyes
dnsDomainLevelsyesyesyesyesyesyesyesyes
shExpMatchyesyesyesyesyesyesyesyes
weekdayRangeyesyesyesyesyesyesyesyes
dateRangeyesyesyesyesyesyesyesyes
timeRangeyesyesyesyesyesyesyesyes
alertyesyesyesnoyesyesyesyes
dnsResolveExyesyesnoyesyesyesyesno
myIpAddressExyesyesnoyesyesyesyesno
isResolvableExyesyesnoyesyesyesyesno
isInNetExyesyesnoyesyesyesyesno
sortIpAddressListyesyesnononoyesyesno

Rules with notes for chromium

  • PAC-C001Hostname pattern applied to url instead of host

    For https:// URLs the script sees only scheme://host:port/; path, query and fragment are removed (since Chrome 52; the opt-out was removed in Chrome 75). http:// URLs keep path and query. A user name and password before the host are always removed, for http too, so https://a.example:x@b.example/ reaches the script as https://b.example/. lab, verified 2026-10-12

  • PAC-C004Wildcard characters in dnsDomainIs or localHostOrDomainIs

    dnsDomainIs is a plain suffix comparison in the helper library. code, verified 2026-10-04 · ref

  • PAC-C011Very short or trailing-dot dnsDomainIs pattern

    A trailing dot in the address is kept in host and in the host part of url (http://case-dot.example.test.:8090/P arrives as host case-dot.example.test.); dnsDomainIs(host, ".example.test") is then false. In the source, url/url_canon_host.cc keeps the final dot and services/proxy_resolver/pac_js_library.h dnsDomainIs is a plain suffix comparison. lab, verified 2026-10-15

  • PAC-C012IPv4 loopback/private ranges handled, IPv6 equivalents not

    An IPv6 address in the URL reaches the script without brackets (http://[fd00::10]:8090/ arrives as host fd00::10). lab, verified 2026-10-15

  • PAC-C018Upper-case letters in a hostname pattern

    The host is passed lower-cased (Case-Http.Example.COM arrives as case-http.example.com, FD00::A1 as fd00::a1). The host part of url is lower-cased too; the path keeps its case. In the source, services/proxy_resolver/proxy_resolver_v8.cc passes the canonical URL's HostNoBrackets(). lab, verified 2026-10-15

  • PAC-C027Cloudflare Gateway proxy endpoint with PROXY instead of HTTPS

    "HTTPS host:port" opens TLS to the proxy; accepted PAC keyword. doc, verified 2026-10-04 · ref

  • PAC-C031IP address written with leading zeros, in hex, as one number or in short form

    Passes the host in plain dotted form (192.000.002.010 arrives as 192.0.2.8) and IPv6 without brackets in short form; reads proxy addresses the same way; isInNet reads leading zeros as decimal, dnsResolve as octal; drops a proxy entry that is no valid address. lab, verified 2026-10-11

  • PAC-D001PAC served over plain HTTP

    A certificate error on the PAC URL aborts the download; there is no warning to click through, and no PAC is used. code, verified 2026-10-13 · ref

  • PAC-D002Content-Type is not application/x-ns-proxy-autoconfig

    Content-Type is not enforced for PAC downloads; a type other than application/x-ns-proxy-autoconfig or application/x-javascript-config is only logged. code, verified 2026-10-13 · ref

  • PAC-D003No Cache-Control header on the PAC response

    The PAC file is fetched without the HTTP cache, so Cache-Control has no effect. Chromium loads it again after a change of IP address and checks a working script for changes every 12 hours. code, verified 2026-10-13 · ref

  • PAC-D007PAC distributed via WPAD DNS discovery

    Looks up only the single name wpad (http://wpad/wpad.dat) and lets the operating system apply the DNS suffix search paths; no devolution of its own. DHCP option 252 is tried first, on Windows only. code, verified 2026-10-10 · ref

  • PAC-D009PAC loaded from a file path or SMB share

    file: PAC URLs are not supported; a redirect to a file: URL is refused as well. code, verified 2026-10-13 · ref

  • PAC-D010PAC URL does not return 200

    Any status other than 200 counts as a failed download; redirects are followed (never to a file: URL); the download gives up after 30 seconds. Without a PAC the browser goes direct unless the ProxyPacMandatory policy is set. code, verified 2026-10-13 · ref

  • PAC-D011PAC file is larger than 1 MiB

    The PAC download stops with an error as soon as the body exceeds 1,048,576 bytes (counted after decompression); the PAC is then not used. code, verified 2026-10-13 · ref

  • PAC-D012PAC URL asks for a login

    When the server asks for a login, the PAC download is cancelled; no PAC is used. code, verified 2026-10-13 · ref

  • PAC-D013PAC file is served as UTF-16

    Without a charset in the Content-Type header, a UTF-16 or UTF-8 byte order mark selects the encoding; the file is converted and loads. code, verified 2026-10-13 · ref

  • PAC-E001PAC file does not parse

    Script load fails; requests go DIRECT unless the ProxyPacMandatory policy is set. doc, verified 2026-10-04 · ref

  • PAC-E002No FindProxyForURL function

    FindProxyForURL is required; its absence is a script error and connections go DIRECT. code, verified 2026-10-04 · ref

  • PAC-E005Call to a function that is not defined

    An exception inside FindProxyForURL fails the evaluation (ERR_PAC_SCRIPT_FAILED); the request falls back to DIRECT unless ProxyPacMandatory is set. code, verified 2026-10-04 · ref

  • PAC-E010isInNet called with an invalid address, mask or argument count

    isInNet returns false when the network or mask literal is not a valid dotted quad (isValidIpAddress check), also with only two arguments; non-contiguous masks are accepted and applied bitwise. lab, verified 2026-10-11 · ref

  • PAC-E011Return value is not a valid proxy string

    Entries that do not parse are skipped; if no valid entry remains the list is treated as DIRECT (ProxyList::SetFromPacString). Accepted keywords (case-insensitive) are PROXY, HTTPS, SOCKS, SOCKS4, SOCKS5, DIRECT. A non-ASCII return string fails the evaluation. code, verified 2026-10-04 · ref

  • PAC-E012Proxy port out of range or not numeric

    host:port that does not canonicalise to a valid port yields an invalid ProxyServer; the entry is dropped and the remaining list (empty = DIRECT) is used. code, verified 2026-10-04 · ref

  • PAC-E013File saved as UTF-16 instead of UTF-8 or ASCII

    A UTF-8 file with a byte order mark loads normally; the mark is removed when the file is downloaded. A UTF-16 file was not tested. lab, verified 2026-10-04

  • PAC-E014Non-ASCII characters in code

    A non-ASCII string returned by FindProxyForURL is rejected as a script error ("returned a non-ASCII string"); non-ASCII inside string literals that are not returned is not an error. An internationalised host arrives in lower-case punycode (BÜCHER-Case.example.test as xn--bcher-case-9db.example.test), in host and in url (lab 2026-10-15, Chrome 155, Edge 155, Chromium 145; url/url_canon_host.cc DoIdnHost). code, verified 2026-10-04 · ref

  • PAC-E018Browser or Node.js objects used in the PAC

    window, setTimeout and fetch are undefined in the PAC context; using them throws. lab, verified 2026-10-04

  • PAC-K001ES2015 to ES2017 syntax (let, const, arrow functions, template literals)

    V8; current ECMAScript syntax parses. code, verified 2026-10-04 · ref

  • PAC-K002alert() used in the PAC

    alert is bound (AlertCallback) and the message is forwarded to the resolver bindings, which record it in the network log; no dialog, no exception. code, verified 2026-10-04 · ref

  • PAC-K003IPv6 extension functions (isInNetEx, dnsResolveEx, myIpAddressEx)

    The Ex functions are implemented (isResolvableEx in the JS helper library, dnsResolveEx/myIpAddressEx/sortIpAddressList as native bindings in proxy_resolver_v8.cc). code, verified 2026-10-04 · ref

  • PAC-K004FindProxyForURLEx entry point

    Only FindProxyForURL is called. code, verified 2026-10-04 · ref

  • PAC-K005SOCKS keywords mean different versions on different engines

    Keywords SOCKS, SOCKS4 and SOCKS5 are accepted (case-insensitive); plain SOCKS is mapped to SOCKS4. code, verified 2026-10-04 · ref

  • PAC-K006HTTPS proxy keyword without a PROXY fallback

    "HTTPS host:port" is an accepted PAC return keyword (TLS to the proxy; HTTP/2 to the proxy is possible, QUIC is not selectable from PAC). doc, verified 2026-10-04 · ref

  • PAC-K007Time functions that answer differently per engine (weekdayRange, dateRange, timeRange)

    weekdayRange, dateRange and timeRange with hours and minutes wrap around (FRI to MON, DEC to JAN, 22:00 to 06:00); timeRange(22, 6) with two hours does not. lab, verified 2026-10-11 · ref

  • PAC-K009Case-sensitive host comparisons without lower-casing host

    The host is passed lower-cased (Case-Http.Example.COM arrives as case-http.example.com, FD00::A1 as fd00::a1). The host part of url is lower-cased too; the path keeps its case. In the source, services/proxy_resolver/proxy_resolver_v8.cc passes the canonical URL's HostNoBrackets(). lab, verified 2026-10-15

  • PAC-K012Engines return different results for the same URL

    Path and query of https URLs are not visible to the PAC (since Chrome 52); a user name and password are removed for every scheme. lab, verified 2026-10-12

  • PAC-K013Routing decided by myIpAddress()

    Ordered heuristic: (1) source address of a route to 8.8.8.8 / 2001:4860:4860::8888, (2) first address from resolving the machine's hostname (IPv4 preferred), (3) route to 10.0.0.0 / 172.16.0.0 / 192.168.0.0 / fc00::; link-local and loopback only as last resort; returns 127.0.0.1 on failure. Before M72 it was just getaddrinfo(gethostname). doc, verified 2026-10-04 · ref

  • PAC-K015Regular-expression syntax inside a shExpMatch pattern

    shExpMatch converts the glob to a RegExp without escaping ( ) | ; regex alternation works. code, verified 2026-10-04 · ref

  • PAC-K020JavaScript syntax newer than ES2017 (?., ??, object spread)

    V8; current ECMAScript syntax parses. code, verified 2026-10-04 · ref

  • PAC-K021Decision depends on the URL path or query

    Since Chrome 52, https URLs reach the PAC file cut to scheme, host and port (SanitizeUrl); path and query are removed. http URLs keep path and query. lab, verified 2026-10-12

  • PAC-K022console used in the PAC

    console is defined (an object); calls do not throw. lab, verified 2026-10-04

  • PAC-P001DNS function on the path of every request

    Each name whose answer is not at hand stops the script; it runs again from the start once the answer is in. Answers of one request are kept in a table, at most 20 different names. code, verified 2026-10-14 · ref

  • PAC-P002isInNet called with a hostname

    isInNet resolves a non-literal first argument via dnsResolve in the helper library. code, verified 2026-10-04 · ref

  • PAC-P004dnsResolve called repeatedly for the same host

    Keeps the answers of one request in a table, failures included, so a repeat of dnsResolve(host) costs no lookup. dnsResolve and dnsResolveEx for the same name are separate entries. Limit of 20 different names per request. code, verified 2026-10-14 · ref

  • PAC-P006PAC file is large

    A PAC file larger than 1 MiB is rejected when it is downloaded, and the browser then connects directly (lab, a file of 1,100,000 bytes). lab, verified 2026-10-04

  • PAC-X001No unconditional return at the end of FindProxyForURL

    A non-string result is reported as "FindProxyForURL() did not return a string." and the evaluation fails (ERR_PAC_SCRIPT_FAILED); the request then falls back to DIRECT unless ProxyPacMandatory is set. code, verified 2026-10-04 · ref

  • PAC-X003dnsDomainIs pattern without a leading dot matches look-alike domains

    Suffix comparison without boundary check (helper library implementation). code, verified 2026-10-04 · ref

  • PAC-X009Pattern with leading and trailing * is a substring match

    The query and path trick works for http (path and query reach the script); for https only https://host:port/ reaches it. The user-name trick does not work; user name and password are removed for http and https. lab, verified 2026-10-12

  • PAC-X013PROXY entry without a port

    Missing port is replaced by the scheme default (PROXY 80, HTTPS 443, SOCKS/SOCKS4/SOCKS5 1080; ProxyServer::GetDefaultPortForScheme). "host:" with an empty port is rejected as an invalid entry. code, verified 2026-10-04 · ref

  • PAC-X014DIRECT as fallback after a proxy

    When every listed proxy is unreachable and the list has no DIRECT, the request fails; the browser does not go direct on its own. lab, verified 2026-10-04

Last updated: