question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Private Window with Tor" and Snowflake's `Volunteer to help other connect...` Settings options should be disabled when Tor is admin-disabled

See original GitHub issue

Description

“Private Window with Tor” and Snowflake’s Volunteer to help other connect... Settings options should be disabled when Tor is admin-disabled

Found while testing https://github.com/brave/brave-browser/issues/17530.

Steps to Reproduce

  1. write defaults write com.brave.Browser TorDisabled -integer 1 into a Terminal.app window and press enter
  2. new profile
  3. launch Brave
  4. click on the “hamburger” menu and notice there’s no New Private Window with Tor option
  5. load brave://policy and confirm TorDisabled is set to true
  6. open brave://settings/extensions and look at the Private Window with Tor option

Actual result:

Private Window with Tor is still toggle-able to on and off, and works.

example example
Screen Shot 2021-08-20 at 8 56 27 AM Screen Shot 2021-08-20 at 11 50 22 AM

Expected result:

Private Window with Tor should be disabled, like Windows and Linux.

Windows Linux
windows-tor-disabled Screen Shot 2021-08-20 at 11 38 58 AM

Reproduces how often:

100%

Brave version (brave://version info)

Brave 1.30.38 Chromium: 93.0.4577.51 (Official Build) nightly (x86_64)
Revision 762d21050e2da59930c784c09b134d0b0b148188-refs/branch-heads/4577@{#915}
OS macOS Version 11.5.2 (Build 20G95)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MrAshRhodescommented, Nov 23, 2022

@simonhong This actually worked for me.

Setting the following com.brave.Browser.plist file in /Library/Managed Preferences/$username

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
  <key>TorDisabled</key>
  <true/>
 </dict>
</plist>

image

It only applies to the current user rather than the machine

Moving from the $username for to /Library/Managed Preferences/

image

Made it mandatory for the whole machine.

The file that contains policies that are Recommended is

~/Library/Preferences/com.brave.Browser.plist

Hope this helps anyone.

0reactions
MadhaviSeelamcommented, Dec 13, 2022

Tested in Win 11 x64. Following have been found when TorDisabled is true:

  1. Install 1.47.121
  2. launch Brave
  3. opened brave://settings/privacy in a new-tab
  4. enabled Volunteer to help others connect to the Tor network toggle
  5. clicked on Extensions puzzle>>Snowflake
  6. opened brave://extensions in a new-tab
  7. Snowflake extension is shown
  8. close the browser
  9. opened Registry Editor
  10. created BraveSoftware/Brave key under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\
  11. create DWORD (32-bit) value named TorDisabled with value 1
  12. launch Brave
  13. open brave://policy
  14. confirmed TorDisabled is true
  15. open brave://settings/privacy
  16. click Extension puzzle>>Snowflake extension
  • Volunteer to help other connect... was toggled Off and greyed out
  • However Snowflake extension was NOT disabled
  • Private Window with Tor toggle is Off and Private Window with Tor option in the hamburger menu is not available
ex1 ex2 ex3
image image image
Read more comments on GitHub >

github_iconTop Results From Across the Web

TorDisabled key doesn't appear to disable Tor in MacOS
"Private Window with Tor" and Snowflake's Volunteer to help other connect... Settings options should be disabled when Tor is admin-disabled ...
Read more >
What is a Private Window with Tor Connectivity?
When you are inside a Private Window with Tor, Brave doesn't connect directly to a website like normal. Instead, you connect to a...
Read more >
The Tor Project on Twitter: "For Snowflake volunteers: If you ...
Snowflake is a new way to defeat internet censorship bundled in Tor Browser Alpha. You can help users in censored countries to connect...
Read more >
Use Brave Private Browsing with Tor to Hide IP Address
Open Brave if you haven't done so already · Pull down the “Brave” menu and choose “New Private Window with Tor” · Scroll...
Read more >
How to use Tor with Brave browser | Tech Help Knowledgebase
The Private Window with Tor feature makes it very difficult to track you ... Tor relays your connection through three different servers to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found