Firefox
Used by: Firefox, Thunderbird, Tor Browser.
Helper library
The checker runs this engine's own PAC helper library, copied verbatim at 3f73c528a1ae (MPL-2.0).
Upstream source.
Version ranges and quirks
Firefox
| Behaviour | Value | Source |
|---|---|---|
| alert() output | console | code, verified 2026-10-04 |
| Non-ASCII result rejected | false | code, verified 2026-10-04 |
| DNS lookups | sync | code, verified 2026-10-14 |
| dnsResolve is IPv4 only | false | expert, unverified |
| JavaScript level accepted | latest | code, verified 2026-10-04 |
| Calls FindProxyForURLEx if defined | false | code, verified 2026-10-04 |
| Microsoft *Ex functions | false | code, verified 2026-10-04 |
| Global variables persist between calls | true | expert, unverified |
| International host names passed in punycode (xn--) | true | lab, verified 2026-10-15 |
| Host lower-cased by the engine | true | lab, verified 2026-10-15 |
| myIpAddress() source | routing_ipv4 | lab, verified 2026-10-14 |
| Functions built into the engine (native) | dnsResolve, myIpAddress, alert | code, verified 2026-10-04 |
| On exception | direct | code, verified 2026-10-04 |
| On non-string / undefined result | direct | code, verified 2026-10-04 |
| URL passed to FindProxyForURL | all_path_query | lab, verified 2026-10-12 |
Function availability
| Function | chromium | chromium | firefox | pacparser | pacparser | winhttp | wininet | reference |
|---|---|---|---|---|---|---|---|---|
isPlainHostName | yes | yes | yes | yes | yes | yes | yes | yes |
dnsDomainIs | yes | yes | yes | yes | yes | yes | yes | yes |
localHostOrDomainIs | yes | yes | yes | yes | yes | yes | yes | yes |
isResolvable | yes | yes | yes | yes | yes | yes | yes | yes |
isInNet | yes | yes | yes | yes | yes | yes | yes | yes |
dnsResolve | yes | yes | yes | yes | yes | yes | yes | yes |
myIpAddress | yes | yes | yes | yes | yes | yes | yes | yes |
dnsDomainLevels | yes | yes | yes | yes | yes | yes | yes | yes |
shExpMatch | yes | yes | yes | yes | yes | yes | yes | yes |
weekdayRange | yes | yes | yes | yes | yes | yes | yes | yes |
dateRange | yes | yes | yes | yes | yes | yes | yes | yes |
timeRange | yes | yes | yes | yes | yes | yes | yes | yes |
alert | yes | yes | yes | no | yes | yes | yes | yes |
dnsResolveEx | yes | yes | no | yes | yes | yes | yes | no |
myIpAddressEx | yes | yes | no | yes | yes | yes | yes | no |
isResolvableEx | yes | yes | no | yes | yes | yes | yes | no |
isInNetEx | yes | yes | no | yes | yes | yes | yes | no |
sortIpAddressList | yes | yes | no | no | no | yes | yes | no |
Rules with notes for firefox
- PAC-C001Hostname pattern applied to url instead of host
Path, query and fragment are removed for every scheme, http too (preference network.proxy.autoconfig_url.include_path, default false). A user name and password before the host are kept, so https://a.example:x@b.example/x reaches the script as https://a.example:x@b.example/ and shExpMatch(url, "*a.example*") is true. lab, verified 2026-10-12
- PAC-C011Very short or trailing-dot dnsDomainIs pattern
A trailing dot is kept in host and url, as in Chromium; dnsDomainIs(host, ".example.test") is false. In the source, netwerk/base/nsPACMan.cpp takes GetAsciiHost(), which keeps the dot. 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), and so is the host part of url. In the source, netwerk/base/nsPACMan.cpp takes the normalised URI's GetAsciiHost(). lab, verified 2026-10-15
- PAC-C027Cloudflare Gateway proxy endpoint with PROXY instead of HTTPS
Supports the HTTPS proxy type through a PAC file (Cloudflare lists Firefox as supported). doc, verified 2026-10-04 · ref
- PAC-C031IP address written with leading zeros, in hex, as one number or in short form
Same as Chromium for the host and for proxy addresses; isInNet reads leading zeros as decimal, dnsResolve as octal. lab, verified 2026-10-11
- PAC-D002Content-Type is not application/x-ns-proxy-autoconfig
The PAC download does not check the Content-Type; only the HTTP status and the download result decide. code, verified 2026-10-13 · ref
- PAC-D003No Cache-Control header on the PAC response
The PAC file is fetched past the HTTP cache, so Cache-Control has no effect. Firefox loads it again after a network change and does not fetch a working file again on a timer. code, verified 2026-10-13 · ref
- PAC-D007PAC distributed via WPAD DNS discovery
Looks up only the single name wpad (http://wpad/wpad.dat); the source states that it does not walk the host's FQDN because the list of TLDs is incomplete. DHCP option 252 first, Windows only. code, verified 2026-10-10 · ref
- PAC-D010PAC URL does not return 200
A redirect is followed; any status outside 200-299 counts as a failed download, and the download is retried later. code, verified 2026-10-13 · ref
- PAC-D012PAC URL asks for a login
The PAC download can show the normal login dialog; without an answer the PAC is not loaded. code, verified 2026-10-13 · ref
- PAC-D013PAC file is served as UTF-16
The file is compiled as UTF-8 when it is valid UTF-8, otherwise as Latin-1; UTF-16 is not recognised, so the zero bytes break the script. code, verified 2026-10-13 · ref
- PAC-E010isInNet called with an invalid address, mask or argument count
Same check as Chromium; invalid pattern or mask and a missing mask give false. lab, verified 2026-10-11
- PAC-E014Non-ASCII characters in code
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. In the source, netwerk/base/nsPACMan.cpp takes GetAsciiHost() and GetAsciiSpec(). lab, verified 2026-10-15
- 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-12
- PAC-K001ES2015 to ES2017 syntax (let, const, arrow functions, template literals)
SpiderMonkey; current ECMAScript syntax parses. expert, unverified
- PAC-K002alert() used in the PAC
Message is written to the browser console; no dialog. expert, unverified
- PAC-K003IPv6 extension functions (isInNetEx, dnsResolveEx, myIpAddressEx)
Ex functions are not implemented; dnsResolveEx, isInNetEx, myIpAddressEx, sortIpAddressList, isResolvableEx and getClientVersion are undefined. lab, verified 2026-10-12
- PAC-K005SOCKS keywords mean different versions on different engines
Reported to treat plain SOCKS as SOCKS5; versioned keywords unverified. expert, unverified
- PAC-K006HTTPS proxy keyword without a PROXY fallback
"HTTPS host:port" is read as a proxy reached over TLS; in the lab Firefox 157 sent the request inside the TLS connection. Firefox drops such entries only when the preference network.proxy.proxy_over_tls is turned off. When the proxy's certificate did not match, Firefox showed an error and did not try the PROXY entry after it (lab, 2026-10-15). code, verified 2026-10-15 · ref
- PAC-K007Time functions that answer differently per engine (weekdayRange, dateRange, timeRange)
Same as Chromium. lab, verified 2026-10-11
- 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), and so is the host part of url. In the source, netwerk/base/nsPACMan.cpp takes the normalised URI's GetAsciiHost(). lab, verified 2026-10-15
- PAC-K012Engines return different results for the same URL
Path and query are not visible to the PAC for any scheme; a user name and password before the host are visible. lab, verified 2026-10-12
- PAC-K013Routing decided by myIpAddress()
Local address of the route towards 8.8.8.8; for a URL whose host is an IP address, the route towards that address (with pacUseMultihomedDNS = true, towards the resolved host). Does not look at the adapter type or order. lab, verified 2026-10-14
- PAC-K015Regular-expression syntax inside a shExpMatch pattern
Same helper-library approach (ascii_pac_utils.js); regex alternation works. code, unverified
- PAC-K020JavaScript syntax newer than ES2017 (?., ??, object spread)
SpiderMonkey; current ECMAScript syntax parses (no language restriction for PAC scripts). code, verified 2026-10-04 · ref
- PAC-K021Decision depends on the URL path or query
Path, query and fragment are removed for every scheme, http too (preference network.proxy.autoconfig_url.include_path, default false), so a path test is never true. lab, verified 2026-10-12
- PAC-K022console used in the PAC
console is undefined; a call throws and the request is handled as a script failure. lab, verified 2026-10-12
- PAC-P001DNS function on the path of every request
dnsResolve blocks the PAC thread until the browser's DNS service answers; there is no table in the PAC engine, the browser's DNS cache answers repeats. code, verified 2026-10-14 · ref
- PAC-P004dnsResolve called repeatedly for the same host
No table in the PAC engine; every call asks the browser's DNS cache, which answers repeats and keeps a failure for 60 s. 150 calls for one name sent one query in the lab. lab, verified 2026-10-14 · ref
- PAC-X001No unconditional return at the end of FindProxyForURL
undefined is treated as DIRECT. expert, unverified
- PAC-X009Pattern with leading and trailing * is a substring match
The user-name trick works for http and https (https://example.com:x@evil.test/ reaches the script unchanged). The query and path trick does not; path and query are removed for every scheme. lab, verified 2026-10-12
- PAC-X013PROXY entry without a port
Reported to reject the entry; needs lab confirmation. expert, unverified