Closed Bug 1625213 Opened 5 years ago Closed 5 years ago

Refactor DNS code to remove OnLookupByTypeComplete

Categories

(Core :: Networking: DNS, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(3 files)

We can pass TXT records via onLookupComplete without any issues of we make nsIDNSByTypeRecord extend nsIDNSRecord

This patch makes nsIDNSByTypeRecord extend nsIDNSRecord, but implementations
will safely forward the nsIDNSRecord methods to nullptr, meaning they will
throw an error when called.

Consumers should try to QI the nsIDNSRecord to nsIDNSByTypeRecord (or any
future types) and use that.

Depends on D69325

It seems there was no unit test exercising this code in e10s.
This copies the simple test from test_esni_dns_fetch.js to make sure
we have a little code coverage for the IPC code too.

Depends on D69326

Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/20045db24ba9 Get rid of ChildDNSRecord.mLength r=dragana https://hg.mozilla.org/integration/autoland/rev/b6cc4ee41f8b Make txt records be resolved with onLookupComplete r=dragana https://hg.mozilla.org/integration/autoland/rev/d90108f9a85d Add simple e10s ESNI test r=dragana
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/3f497398788d Port bug 1625213 - Removal of onLookupByTypeComplete from nsIDNSListener. rs=bustage-fix
Regressions: 1628218
Regressions: 1628247
Regressions: 1628312
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: