When Tor is disabled via buildflag, settings errors from braveTorDisabledByPolicy check (#31900)

Don't check braveTorDisabledByPolicy from settings when !enable_tor
This commit is contained in:
Brian R. Bondy
2025-10-20 12:52:41 -04:00
committed by GitHub
parent e1d9a4b227
commit 85bd5d8b04
@@ -104,8 +104,10 @@ function getPageVisibility () {
// <if expr="enable_speedreader">
speedreader: loadTimeData.getBoolean('isSpeedreaderAllowed'),
// </if>
// <if expr="enable_tor">
braveTor: !loadTimeData.getBoolean('braveTorDisabledByPolicy') ||
loadTimeData.getBoolean('shouldExposeElementsForTesting'),
// </if>
origin: loadTimeData.getBoolean('isOriginAllowed'),
}
// Proxy so we can respond to any other property