browser_link_preview.js connects to the real itisatrap.org when run twice in a row
Categories
(Core :: Machine Learning: Frontend, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
test_fetch_errors in browser_link_preview.js fetches https://itisatrap.org/firefox/its-a-trap.html to check the phishing error. build/pgo/server-locations.txt only proxies www.itisatrap.org, so this request goes to the real host.
Safe Browsing classification runs in parallel with the connection. On a first run the DNS lookup is slow enough that the channel is cancelled as phishing before connecting. When the test runs again in the same browser (mochitest-repeat jobs), the DNS is cached, and the socket connects before the cancel: FATAL ERROR: Non-local network connections are disabled and a connection attempt to itisatrap.org was made.
Fix: use www.itisatrap.org, as the other phishing tests do.
| Assignee | ||
Comment 1•5 days ago
|
||
itisatrap.org has no entry in server-locations.txt, so the request leaves the test proxy. Safe Browsing classifies in parallel with the connection: once a previous run has cached the host's DNS, the socket connects to the real host before the channel is cancelled as phishing.
Comment 3•5 days ago
|
||
| bugherder | ||
Description
•