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: recovery quirks in Firefox and Chromium #807

Merged
merged 2 commits into from
Oct 30, 2019

Conversation

lidel
Copy link
Member

@lidel lidel commented Oct 30, 2019

This PR fixes small quirks that did not break recovery, but made it bit confusing or inefficient.

fix: duplicated recovery tabs in Chromium

Deduplicate onErrorOccurred events: sometimes Chrome produces two, possibly due to lack of async functions in webRequest APIs

Closes #805

fix: skip requests from DNS fixup logic in Firefox

Firefox automatically adds 'www.' to TLD+1 names if initial DNS lookup failed.
This produced bogus request+error which recovery logic is now aware of and ignores.

Closes #804

Other

  • make onErrorOccurred non-async (only Firefox supports those)
  • listen only for errors when webRequest.ResourceType=main_frame
  • reuse existing tab

lidel added 2 commits October 30, 2019 13:49
- listen only for webRequest.ResourceType=main_frame
- reuse existing tab
- deduplicate onErrorOccurred events on Chrome

Closes #805
Firefox automatically adds 'www.' to TLD+1 names if initial DNS lookup failed.
This produced bogus request+error which recovery  logic should ignore.

Closes #804
@lidel lidel merged commit 04a8ca2 into master Oct 30, 2019
@lidel lidel deleted the fix/duplicated-recovery-tabs branch October 30, 2019 13:29
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.

Chromium duplicates recovery tab Firefox DNS recovery clashes with IPFS recovery
1 participant