-
Notifications
You must be signed in to change notification settings - Fork 240
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
Don't create Tab objects for initial tabs until config is loaded. #1056
Don't create Tab objects for initial tabs until config is loaded. #1056
Conversation
Thanks for the review Konrad. 1/ When we create a new duckduckgo-privacy-extension/shared/js/background/utils.es6.js Lines 192 to 201 in 2082d08
This requires that we've already loaded the tds config, otherwise the feature list is always empty. If the list is empty then we consider the site 'broken' in the UI and show the warning:
This change moves the tab initialization code after we've done 2/ This looks like another bug with tabs created on browser start. I just pushed another commit to fix that. Usually, a |
803b93b
to
092d38f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks so much Sam!
@@ -163,10 +163,10 @@ function handleRequest (requestData) { | |||
// just default to true. | |||
const sameDomain = isSameDomainRequest(thisTab, requestData) | |||
|
|||
// only count trackers on pages with 200 response. Trackers on these sites are still | |||
// Trackers on these sites are still |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why we had this filtering, but as far as I can see this decision is >4y old, so we may never know.
Reviewer:
Description:
Fixes an issue where we incorrectly showed the message "temporarily disabled Privacy Protection" for all tabs which are open on extension start.
Steps to test this PR:
Automated tests:
Reviewer Checklist:
PR Author Checklist: