From 97f68a4492bac53cb9bf6b0ae1a728f628eab143 Mon Sep 17 00:00:00 2001 From: Pranjal Jumde Date: Sun, 20 Jan 2019 12:38:48 -0800 Subject: [PATCH] Issue 3025: Add a buildflag/runtime switch to disable STP by default 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 --- lib/start.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/start.js b/lib/start.js index d0efaf0b7ffe..c5e6d85bc21e 100644 --- a/lib/start.js +++ b/lib/start.js @@ -40,6 +40,9 @@ const start = (passthroughArgs, buildConfig = config.defaultBuildConfig, options // This only has meaning with MacOS and official build. braveArgs.push('--disable-brave-update') } + if (options.enable_smart_tracking_protection) { + braveArgs.push('--enable-smart-tracking-protection') + } if (options.single_process) { braveArgs.push('--single-process') }