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

Cancel requests before Badger is ready #2566

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ghostwords
Copy link
Member

Fixes #1845. Part two of #2438.

This sets up an early chrome.onBeforeRequest listener to cancel all requests before Badger is done initializing, and reloads any tabs containing cancelled requests when Badger is ready.

Should guarantee catching all requests on startup in Firefox thanks to a "persistent" listener, and should catch more requests on startup in Chrome thanks to initializing a blocking listener faster.

Needs more testing (perhaps with mitmproxy) and resolution for #2438 (review) and #2438 (review)

Once Badged is finished initializing, reload any tabs with cancelled
requests.
Broken by updating onBeforeRequest() to listen to all URLs (instead of
just http and https URLs) in 0f408ef
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.

no Trackers detected in specified startup page (aka home page) in Firefox
1 participant