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

Adding a runtime switch for Smart Tracking Protection #3888

Merged
merged 1 commit into from
Apr 18, 2019
Merged

Adding a runtime switch for Smart Tracking Protection #3888

merged 1 commit into from
Apr 18, 2019

Conversation

jumde
Copy link
Contributor

@jumde jumde commented Mar 25, 2019

fix #3025

Description

STP can cause webcompat issues, so gating this feature behind off-by-default runtime flag till the feature is thoroughly tested.

More details about the feature/switches is available here:
brave/brave-core#403

Please reach out if you have any questions.

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Verified that these changes build without errors on
    • Windows
    • macOS
    • Linux
  • Verified that these changes pass automated tests (npm test brave_unit_tests && npm test brave_browser_tests) on
    • Windows
    • macOS
    • Linux
  • Ran git rebase master (if needed).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Requested a security/privacy review as needed.

Test Plan:

The test plan for this change is covered in: brave/brave-core#403 (For Devs - Enable STP runtime and buildflags)

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions.

@jumde
Copy link
Contributor Author

jumde commented Mar 25, 2019

Opening instead of #3026 - to ease the CI workflow

@jumde jumde requested review from bridiver and bsclifton March 25, 2019 22:13
@jumde jumde self-assigned this Mar 25, 2019
@jumde jumde force-pushed the stp branch 2 times, most recently from 4dcb157 to 1418233 Compare April 3, 2019 17:12
package.json Outdated
@@ -13,7 +13,7 @@
"upload": "node ./scripts/commands.js upload",
"update_patches": "node ./scripts/commands.js update_patches",
"apply_patches": "node ./scripts/sync.js --run_hooks",
"start": "node ./scripts/commands.js start",
"start": "node ./scripts/commands.js start --enable-smart-tracking-protection",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To-Do: Revert before merge. STP will be disabled by default

package.json Outdated
@@ -42,7 +42,7 @@
},
"brave-core": {
"dir": "src/brave",
"branch": "master",
"branch": "stp",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To-Do: Revert before merge.

lib/config.js Outdated
@@ -84,6 +84,7 @@ Config.prototype.buildArgs = function () {
is_debug: this.buildConfig !== 'Release',
dcheck_always_on: this.buildConfig !== 'Release',
brave_channel: this.channel,
brave_stp_enabled: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To-Do: Revert before merge. STP will be disabled by default

@jumde jumde marked this pull request as ready for review April 3, 2019 19:12
@brave brave deleted a comment from layt40 Apr 3, 2019
@jumde jumde force-pushed the stp branch 8 times, most recently from f18f7c8 to 4e0388b Compare April 8, 2019 01:48
@jumde jumde force-pushed the stp branch 8 times, most recently from 94b5256 to ac521b8 Compare April 15, 2019 17:31
@jumde jumde mentioned this pull request Apr 16, 2019
17 tasks
@jumde jumde force-pushed the stp branch 3 times, most recently from ba6d006 to 4a64b04 Compare April 17, 2019 15:22
@jumde jumde requested a review from iefremov April 17, 2019 15:23
STP can cause webompat issues, gating this feature behind off-by-default
runtime flag till the feature is thoroughly tested for webcompat.

The switches are available here:
https://github.com/brave/brave-core/pull/403/files

auditors: @bridiver, @bsclifton, @iefremov
@jumde jumde merged commit a8f940f into master Apr 18, 2019
@jumde jumde added the QA/No label Apr 18, 2019
@jumde
Copy link
Contributor Author

jumde commented Apr 18, 2019

Marking QA/No since build flag is not enabled by default.

@jumde jumde added this to the 0.65.x - Nightly milestone Apr 18, 2019
@mihaiplesa mihaiplesa deleted the stp branch May 13, 2019 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add buildflag and runtime switch to disable STP by default
3 participants