uBlock Origin Legacy DNS prefetching

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: Lootyhoof, FranklinDM

Michaell
Lunatic
Lunatic
Posts: 356
Joined: 2018-05-26, 18:13

uBlock Origin Legacy DNS prefetching

Post by Michaell » 2025-03-19, 02:49

Does "Don't disable DNS prefetching" mean it leaves that up to the browser setting? (I want DNS and all forms of prefetching blocked unless we can allow specific source and target pairs.)
Win10home(1709), PM33.8.0-portable as of July 1, 2025

User avatar
UCyborg
Lunatic
Lunatic
Posts: 386
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: uBlock Origin Legacy DNS prefetching

Post by UCyborg » 2025-03-19, 11:51

Yes, I changed that part because of the discussion here.

Does anyone want a separate switch badly also in uBO's GUI?

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2900
Joined: 2012-08-19, 20:32

Re: uBlock Origin Legacy DNS prefetching

Post by back2themoon » 2025-03-19, 12:40

We are still talking about DNS prefetching, right? Isn't that switch already present in UBO? (first setting under Privacy)

What has recently changed was the default Pale Moon setting, which was getting toggled by uBO's default setting (which was now different).

Pale Moon: DNS prefetching = ON
uBO = OFF

My only suggestion would be to conform uBO's default setting with Pale Moon's. If anyone wants to change it, it's best done manually to avoid confusion. (either in uBO or about:config - shouldn't matter). Or wait, I think you already changed the default in your recent version? (thanks again)

User avatar
UCyborg
Lunatic
Lunatic
Posts: 386
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: uBlock Origin Legacy DNS prefetching

Post by UCyborg » 2025-03-19, 12:56

The checkbox in uBO Disable pre-fetching (to prevent any connection for blocked network requests) doesn't touch network.dns.disablePrefetch perference anymore, which is tied to the checkbox you find in Pale Moon's preferences dialog (Prefetch DNS lookups).

Note that the checkbox in uBO was only meant to enforce disablement of prefetching (web content), if you turn the checkbox in uBO off, it won't actually enable prefetching in Pale Moon, it would only do that if browser per-fetched by default or you turned prefetching on manually by fiddling in about:config. Pale Moon does not prefetch by default.

Edit: I edited the post bunch of times to make it clear which checkbox is talked about.

User avatar
UCyborg
Lunatic
Lunatic
Posts: 386
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: uBlock Origin Legacy DNS prefetching

Post by UCyborg » 2025-03-19, 13:04

UCyborg wrote:
2025-03-19, 12:56
Note that the checkbox in uBO was only meant to enforce disablement of prefetching (web content)
At least that's how the code works.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2900
Joined: 2012-08-19, 20:32

Re: uBlock Origin Legacy DNS prefetching

Post by back2themoon » 2025-03-19, 15:32

Perfect, thanks for the clarification.

User avatar
Donieck69
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: 2024-05-18, 10:35

Re: uBlock Origin Legacy DNS prefetching

Post by Donieck69 » 2025-04-06, 16:52

UCyborg wrote:
2025-03-19, 13:04
UCyborg wrote:
2025-03-19, 12:56
Note that the checkbox in uBO was only meant to enforce disablement of prefetching (web content)
At least that's how the code works.
Hi, I'm learning PHP and Javascript. Will i help you in improving uBlock Origin for Firefox legacy?

User avatar
Donieck69
Hobby Astronomer
Hobby Astronomer
Posts: 17
Joined: 2024-05-18, 10:35

Re: uBlock Origin Legacy DNS prefetching

Post by Donieck69 » 2025-04-09, 07:35

I forked https://github.com/Donieck/uBlockUXP, so maybe I will improve it, but I still lerninng PHP and Javascript. Suggestions nice seeing.