Skip to content

Filter out HubSpot email trackers from query string #5554

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

Merged
merged 1 commit into from
May 22, 2020

Conversation

fmarier
Copy link
Member

@fmarier fmarier commented May 14, 2020

Resolves brave/brave-browser#9019.

Submitter Checklist:

Test Plan:

Go to https://brave.com/?_hsenc=1 and confirm that the URL bar shows https://brave.com/ (no query string parameter).

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@fmarier fmarier added this to the 1.11.x - Nightly milestone May 14, 2020
@fmarier fmarier requested a review from jumde May 14, 2020 18:19
@fmarier fmarier requested a review from iefremov as a code owner May 14, 2020 18:19
@fmarier fmarier self-assigned this May 14, 2020
@fmarier fmarier force-pushed the francois-hubspot-email-trackers-9019 branch from b3d7987 to 544a1af Compare May 15, 2020 02:19
@@ -35,7 +35,10 @@ namespace {

const std::string& GetQueryStringTrackers() {
static const base::NoDestructor<std::string> trackers(base::JoinString(
std::vector<std::string>({"fbclid", "gclid", "msclkid", "mc_eid"}), "|"));
std::vector<std::string>({"fbclid", "gclid", "msclkid", "mc_eid",
"_hsenc", "__hssc", "__hstc", "__hsfp",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would be happy to also have an issue link here

Copy link
Member Author

Choose a reason for hiding this comment

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

@iefremov Do you mean as comment at the end of the line?

Something like this?

"_hsenc", "__hssc", "__hstc", "__hsfp",  // brave/brave-browser#9019

Copy link
Contributor

Choose a reason for hiding this comment

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

What works best for you.
I prefer either full links or issues/9019 for ease of copypasting :)

@fmarier fmarier force-pushed the francois-hubspot-email-trackers-9019 branch from 544a1af to 75517c7 Compare May 21, 2020 00:30
@fmarier fmarier merged commit a63c567 into master May 22, 2020
@fmarier fmarier deleted the francois-hubspot-email-trackers-9019 branch May 22, 2020 01:47
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.

Filter out HubSpot's email trackers from URLs
2 participants