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

Show firstparty protections ui #2684

Closed
wants to merge 7 commits into from

Conversation

ablanathtanalba
Copy link
Contributor

@ablanathtanalba ablanathtanalba commented Sep 16, 2020

Fixes #2482

This adds a new message to the badger popup when any of the first party scripts are being run on the user's current site. If in the future the first party scripts are doing things other than anchor tag scrubbing, then maybe we could change the messaging.... until then, this oughtta work!

@ablanathtanalba
Copy link
Contributor Author

Oh, and the link that the new text points to is the deeplinks blog post that describes PB's link tracking protections: https://www.eff.org/deeplinks/2018/05/privacy-badger-rolls-out-new-ways-fight-facebook-tracking

@ablanathtanalba
Copy link
Contributor Author

Rebased on master and added another commit to simplify messaging into one case for all variations of the popup, regardless of current detected tracker count.

@ablanathtanalba ablanathtanalba added the ui User interface modifications; related to but not the same as the "ux" label label Jan 13, 2021
Copy link
Member

@ghostwords ghostwords left a comment

Choose a reason for hiding this comment

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

Thank you, got some feedback.

src/js/popup.js Outdated
@@ -169,6 +169,11 @@ function init() {
$overlay.toggleClass('active');
}

// show firstparty link tracking protection if we scrub links on this tab host
if (POPUP_DATA.tabHost == 'www.facebook.com' || POPUP_DATA.tabHost == 'www.google.com') {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't cover all the domains we perform link unwrapping on. Take a look at domains we inject /firstparties/ content scripts into in manifest.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed this to pull down all domains from our manifest

src/skin/popup.html Outdated Show resolved Hide resolved
src/js/popup.js Outdated Show resolved Hide resolved
src/_locales/en_US/messages.json Outdated Show resolved Hide resolved
@ablanathtanalba
Copy link
Contributor Author

ablanathtanalba commented Jan 28, 2021

Cool, thanks for the feedback. I hit on each of the smaller points and added some dynamic checking to cover all first party urls and future ones.

@ablanathtanalba
Copy link
Contributor Author

here's an updated pic for how this change looks in the popup:
Screen Shot 2021-02-24 at 8 01 39 PM

@ablanathtanalba
Copy link
Contributor Author

This is gonna be wrapped up in #2748, so I'm closing this in favor of that one

@ghostwords ghostwords deleted the show_firstparty_protections_ui branch March 11, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui User interface modifications; related to but not the same as the "ux" label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indicate when first-party protections are active
2 participants