mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-21 18:42:53 +00:00
LibWeb: Don't ask RequestServer to prefetch DNS for file: and data: URLs
This commit is contained in:
parent
41cc8e75f2
commit
3d78f86a2f
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/awesomekling
Commit: 3d78f86a2f
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ ResourceLoader::ResourceLoader(NonnullRefPtr<ResourceLoaderConnector> connector)
|
|||
|
||||
void ResourceLoader::prefetch_dns(URL::URL const& url)
|
||||
{
|
||||
if (url.scheme().is_one_of("file"sv, "data"sv))
|
||||
return;
|
||||
|
||||
if (ContentFilter::the().is_filtered(url)) {
|
||||
dbgln("ResourceLoader: Refusing to prefetch DNS for '{}': \033[31;1mURL was filtered\033[0m", url);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue