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

Fix ENS resolution issues #5010

Merged
merged 2 commits into from
Aug 9, 2018
Merged

Fix ENS resolution issues #5010

merged 2 commits into from
Aug 9, 2018

Conversation

eduadiez
Copy link
Contributor

@eduadiez eduadiez commented Aug 9, 2018

The functionality introduced in v4.9.0 to resolve .eth domains doesn't check if the user's DNS is able to resolve a .eth or .test address. Therefore the extension prevents the user to access these sites even though the DNS is returning an IP address.

Also, the current implementation doesn't work in Firefox (tested on version 61.0.1) as it relies on a deprecated method: tabs.getSelected

Fixes #5009

`tabs.getSelected` is deprecated and it doesn't work in firefox replaced by `tabs.query({active: true}`
According to the current implementation any domain ending in .eth or .test will try to resolve through ENS even if the DNS is able to resolve it.
changing `onBeforeRequest` to `onErrorOccurred` will only resolve those .eth or .test domains that the DNS is not able to resolve.
Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried it out, is working fine, thanks for catching these issues!

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

Successfully merging this pull request may close these issues.

Loading ENS pages (.eth) overwrites DNS results and doesn't work on Firefox
3 participants