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

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

Firefox (all)

Profile of current Firefox releases; older versions are not modelled separately.

BehaviourValueSource
alert() outputconsolecode, verified 2026-10-04
Non-ASCII result rejectedfalse
The returned string is used as is; non-ASCII characters are not rejected.
code, verified 2026-10-04
DNS lookupssync
The script runs once and waits on each lookup. Firefox keeps no table of its own in the PAC engine; repeats are answered from the browser's DNS cache, which keeps an answer for as long as the DNS record allows on Windows and for 60 s on Linux and macOS, then serves it up to 600 s longer while it refreshes, and keeps a failure for 60 s (code, Firefox 157; measured 2026-10-14).
code, verified 2026-10-14
dnsResolve is IPv4 onlyfalse
Whether dnsResolve can return IPv6 addresses in current Firefox has not been checked.
expert, unverified
JavaScript level acceptedlatestcode, verified 2026-10-04
Calls FindProxyForURLEx if definedfalsecode, verified 2026-10-04
Microsoft *Ex functionsfalsecode, verified 2026-10-04
Global variables persist between callstrueexpert, unverified
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 (measured in Firefox 157, 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). The host part of the url argument is lower-case too, but a user name and password written before the host keep their case (https://UsEr:PaSs@Example.com/ reaches the script as https://UsEr:PaSs@example.com/); Firefox removes the path anyway (measured in Firefox 157, 2026-10-15).
lab, verified 2026-10-15
myIpAddress() sourcerouting_ipv4
The local address of the route towards the internet (8.8.8.8). For a URL whose host is an IP address, the route towards that address, so requests from one page can get different answers.
lab, verified 2026-10-14
Functions built into the engine (native)dnsResolve, myIpAddress, alertcode, verified 2026-10-04
On exceptiondirect
If FindProxyForURL throws, the request goes DIRECT.
code, verified 2026-10-04
On non-string / undefined resultdirect
A result that is not a string (for example a missing return) makes the request go DIRECT.
code, verified 2026-10-04
URL passed to FindProxyForURLall_path_query
Firefox removes the path, the query and the #fragment for every scheme, http as well as https, so the script sees only scheme://host:port/. A user name and password written before the host are not removed: in https://user:pw@host/ the script sees https://user:pw@host/ (measured in Firefox 157 and 140 ESR, and in Firefox 156 and 157 on Windows, 2026-10-12).
lab, verified 2026-10-12

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 firefox

Last updated: