Files
reverse-engineering-anything/scripts
Adolanium 777832eff5 fix(browser): reject a file URL with a hostname (#14792)
* fix(browser): reject a file URL with a hostname

A file URL names another host when its hostname is not empty. The navigation hook blocks that URL. An empty host stays allowed, including file://localhost, because the URL standard ignores that host.

* test(browser): cover a blocked file-host redirect

The file-host regression emits will-redirect for a remote file URL and a local file URL. Dropping the redirect check leaves preventDefault unset and fails the test.
2026-11-27 07:40:06 +08:00
..