# Firefox

Source: https://findproxyforurl.net/engines/firefox/ · last updated 2026-10-15

Used by: Firefox, Thunderbird, Tor Browser.


## Firefox (all)

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


- alert() output: console (source: code, verified 2026-10-04)
- Non-ASCII result rejected: false. The returned string is used as is; non-ASCII characters are not rejected. (source: code, verified 2026-10-04)
- DNS lookups: sync. 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). (source: code, verified 2026-10-14)
- dnsResolve is IPv4 only: false. Whether dnsResolve can return IPv6 addresses in current Firefox has not been checked. (source: expert, unverified)
- JavaScript level accepted: latest (source: code, verified 2026-10-04)
- Calls FindProxyForURLEx if defined: false (source: code, verified 2026-10-04)
- Microsoft *Ex functions: false (source: code, verified 2026-10-04)
- Global variables persist between calls: true (source: expert, 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). (source: lab, verified 2026-10-15)
- Host lower-cased by the engine: true. 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). (source: lab, verified 2026-10-15)
- myIpAddress() source: routing_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. (source: lab, verified 2026-10-14)
- Functions built into the engine (native): dnsResolve, myIpAddress, alert (source: code, verified 2026-10-04)
- On exception: direct. If FindProxyForURL throws, the request goes DIRECT. (source: code, verified 2026-10-04)
- On non-string / undefined result: direct. A result that is not a string (for example a missing return) makes the request go DIRECT. (source: code, verified 2026-10-04)
- URL passed to FindProxyForURL: all_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). (source: lab, verified 2026-10-12)
