Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch chrome.dns.resolve to support canonical_name flag #7117

Open
jonathansampson opened this issue Nov 27, 2019 · 1 comment
Open

Patch chrome.dns.resolve to support canonical_name flag #7117

jonathansampson opened this issue Nov 27, 2019 · 1 comment

Comments

@jonathansampson
Copy link

@jonathansampson jonathansampson commented Nov 27, 2019

Description

Chromium presently supports IP address resolution:

chrome.dns.resolve('www.brave.com', response => {
  console.log(response.address)
})

In order to combat CNAME-trackers, uBO and others are evaluating Firefox's implementation of the DNS API, which supports passing optional flags:

chrome.dns.resolve('www.brave.com', ['canonical_name']).then( response => {
  console.log(response.canonicalName)
})

There are many other optional flags, but CNAME appears to be the most necessary for now.

Note: Chromium expects a callback as the second argument. Firefox, however, returns a promise.

@ryanbr
Copy link
Collaborator

@ryanbr ryanbr commented Mar 8, 2020

Related Ubo CNAME issues: easylist/easylist#5039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.