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

Chromium duplicates recovery tab #805

Closed
lidel opened this issue Oct 28, 2019 · 0 comments · Fixed by #807
Closed

Chromium duplicates recovery tab #805

lidel opened this issue Oct 28, 2019 · 0 comments · Fixed by #807
Assignees
Labels
area/chromium Issues related to Chromium-based browsers kind/bug A bug in existing code (including security flaws)

Comments

@lidel
Copy link
Member

lidel commented Oct 28, 2019

DNS recovery was added in #800

https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dead-domain-within-ok-tld.link/ fails and gets recovered by code added in #802

However, when original tab (with failed request) is clicked on, recovery code is sometimes executed again, resulting in duplicated tabs for recovered content. This happens on Chromium, was unable to reproduce on Firefox.

See also #804 (both may require similar fix)

@lidel lidel added kind/bug A bug in existing code (including security flaws) UX area/chromium Issues related to Chromium-based browsers labels Oct 28, 2019
@lidel lidel self-assigned this Oct 30, 2019
lidel added a commit that referenced this issue Oct 30, 2019
- listen only for webRequest.ResourceType=main_frame
- reuse existing tab
- deduplicate onErrorOccurred events on Chrome

Closes #805
lidel added a commit that referenced this issue Oct 30, 2019
This 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chromium Issues related to Chromium-based browsers kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant