Feature #8711: Investigate how we could improve the error message when browsing LAN from usual Tor Browser
Check how FoxyProxy injects content to the Firefox error pages
In the "The proxy server is refusing connections" page FoxyProxy injects something like an ad: "Consider using fast and reliable proxy servers from FoxyProxy. (Hint: Please disable your current proxy if you get this error page while trying to load FoxyProxy's proxy service website)"
Let's see how it's done, and if we can use the same method to add a useful message to the "Unable to connect" page shown when trying to access LAN in the Tor Browser. Bonus points if the message is only shown when trying to access the LAN instead of all the time.
#2 Updated by anonym over 4 years ago
- Status changed from Confirmed to Resolved
- Assignee deleted (
- % Done changed from 0 to 100
For FoxyProxy's method, see
errorPageCheck function. Note that whatever message we want added can be translated!
So if we want to do this we should instead of
about:neterror?e=proxyConnectFailure modify the page for
about:neterror?e=connectionFailure. We could even look further in the URI for the destination and look if it's a LAN address and only add the message in that case. For reference, this is the full URI I got when trying to open
10.1.1.1 (without prefixing it with
http://) in Tor Browser:
(To see it yourself, open the Developer Tools -> Console ->