Open Bug 1778794 Opened 3 years ago Updated 3 years ago

Could browser.dns.resolve support to resolve HTTPS records?

Categories

(WebExtensions :: General, enhancement)

Firefox 102
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: fantasyfate, Unassigned)

Details

(Whiteboard: [necko-triaged])

Steps to reproduce:

Browsing any website with uBlock Origin installed and DoH enabled

Actual results:

Currently, if browser.dns.resolve is used, Firefox only resolves A and AAAA records for it (https://searchfox.org/mozilla-central/source/toolkit/components/extensions/parent/ext-dns.js#74 and https://searchfox.org/mozilla-central/source/netwerk/dns/nsIDNSService.idl#34-42), then resolves A, AAAA, and HTTPS records. In the first step, A and AAAA records are cached by DNS resolver, so resolving DNS HTTPS records is possibly slower than A and AAAA records, and HTTPS upgrade or HTTP/3 upgrade brought by HTTPS records could be more likely to fail to work.

Expected results:

The browser.dns.resolve supports to resolve HTTPS records.

The Bugbug bot thinks this bug should belong to the 'Core::Networking: DNS' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Networking: DNS
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]

Furthermore, is it possible to make website and browser.dns.resolve share the DNS cache in the browser? If so, superfluous DNS requests could be eliminated.

To support this, most of work needs to be done in toolkit/components/extensions/parent/ext-dns.js, so change the component to WebExtensions.

Severity: S3 → N/A
Component: Networking: DNS → General
Priority: P2 → --
Product: Core → WebExtensions
You need to log in before you can comment on or make changes to this bug.