I'm building torbrowser from source on gentoo. Reverting two patches to have the profile directory in $HOME
TOR_SKIP_LAUNCH=1 TOR_SKIP_CONTROLPORTTEST=1 TOR_SOCKS_HOST=127.0.0.1 TOR_SOCKS_PORT=9050 /usr/lib64/torbrowser/torbrowser is working as expected.
TOR_SKIP_LAUNCH=1 TOR_SKIP_CONTROLPORTTEST=1 TOR_SOCKS_IPC_PATH=/run/tor/socks /usr/lib64/torbrowser/torbrowser gets me the "Something Went Wrong!" message
Connecting to the socket works after setting network.proxy.socks to file:///run/tor/socks manually in about:config
We migrated the tor-launcher source to tor-browser itself so its definitely possible this broke during the migration.
And slightly off-topic, how are you handling pluggable-transports in your gentoo port? IE do you build and deploy them as well, or are a lot of the about:preferences#connection settings just broken/not honored?
There's definitely some spaghetti but TOR_SKIP_LAUNCH is what eventually is returned by enabled in browser/components/torpreferences/content/connectionPane.js: enabled calls TorMonitorService.ownsTorDaemon, which returns TorLauncherUtil.shouldStartAndOwnTor, that checks the environment variable and the preferences.
And slightly off-topic, how are you handling pluggable-transports in your gentoo port? IE do you build and deploy them as well, or are a lot of the about:preferences#connection settings just broken/not honored?
about:preferences#connection is just broken. I even used to set the TOR_NO_DISPLAY_NETWORK_SETTINGS option. I don't think it's available anymore though.
I do provide a separate build for the snowflake client and proxy
about:preferences#connection is just broken. I even used to set the TOR_NO_DISPLAY_NETWORK_SETTINGS option. I don't think it's available anymore though. I do provide a separate build for the snowflake client and proxy
Is it visible in about:preferences's sidebar? Or are you opening it manually?
I even used to set the TOR_NO_DISPLAY_NETWORK_SETTINGS option. I don't think it's available anymore though.
Could you please check for errors and or warnings in the Browser console (Ctrl+Shift+J, or start Tor Browser/Firefox with -jsconsole)?
14:37:30.332 1670855850332 addons.xpi WARN Checking /usr/lib64/torbrowser/distribution/extensions for addons14:37:30.692 SecurityLevel: Listening for messages from NoScript. SecurityLevel.jsm:25714:37:30.692 SecurityLevel: Initializing security-prefs.js SecurityLevel.jsm:35814:37:30.693 SecurityLevel: security-prefs.js initialization complete SecurityLevel.jsm:39214:37:30.695ReferenceError: FileUtils is not definedstartup-observer.js:121:11 setProxySettings jar:file:///usr/lib64/torbrowser/omni.ja!/chrome/torbutton/components/startup-observer.js:121 observe jar:file:///usr/lib64/torbrowser/omni.ja!/chrome/torbutton/components/startup-observer.js:17514:37:30.695 [12-12 14:37:30] Torbutton NOTE: Early proxy change failed. Will try again at profile load. Error: ReferenceError: FileUtils is not defined14:37:30.907 TorProtocolService: SOCKS port type: IPC TorProtocolService.jsm:50014:37:30.907 TorProtocolService: ipcFile: /run/tor/socks TorProtocolService.jsm:50214:37:30.963 TorProtocolService: TorProtocolService initialized TorProtocolService.jsm:10014:37:30.970 TorMonitorService: Not starting the event monitor, as we do not own the Tor daemon. TorMonitorService.jsm:9614:37:30.970 TorMonitorService: TorMonitorService initialized TorMonitorService.jsm:10014:37:30.976 TorConnect: init() TorConnect.jsm:836:1514:37:30.976 TorConnect: Entering Initial state TorConnect.jsm:204:1314:37:30.976 TorConnect: Try transitioning from Initial to Disabled TorConnect.jsm:805:1514:37:30.976 TorConnect: Exited Initial state TorConnect.jsm:209:1514:37:30.976 TorConnect: Entering Disabled state TorConnect.jsm:204:1314:37:31.092 Bootstrapped manifest not allowed to use 'resource' directive. chrome.manifest:214:37:31.495[Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIAppStartup.secondsSinceLastOSRestart]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource:///modules/BrowserGlue.jsm :: _collectStartupConditionsTelemetry :: line 1642" data: no] BrowserGlue.jsm:1642:9 _collectStartupConditionsTelemetry resource:///modules/BrowserGlue.jsm:1642 BG__onFirstWindowLoaded resource:///modules/BrowserGlue.jsm:1748 BG_observe resource:///modules/BrowserGlue.jsm:976 _delayedStartup chrome://browser/content/browser.js:2178 _delayedStartup self-hosted:111514:37:31.514 SearchSettings: get: No settings file exists, new profile? DOMException: Could not open the file at /home/poncho/.mozilla/torbrowser/ii6jws4v.default/search.json.mozlz4 SearchSettings.jsm:108:1814:37:31.623 [12-12 14:37:31] Torbutton NOTE: no SOCKS credentials found for current document.14:37:31.674 [NoScript]:1 Including /bg/LifeCycle.js log.js:32:1314:37:31.856 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused 214:37:31.866 This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.default-bookmarks.html14:37:31.869 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused 214:37:31.879 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.882 Error: Could not get children of file(/home/poncho/.mozilla/torbrowser/ii6jws4v.default/thumbnails) because it does not exist PromiseWorker.jsm:10614:37:31.883 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.885 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.891 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused 214:37:31.896 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.898 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.903 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.910 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.916 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused 214:37:31.919 [NoScript]:2 Including /legacy/Legacy.js log.js:32:1314:37:31.921 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.921 [NoScript]:3 Including /legacy/defaults.js log.js:32:1314:37:31.923 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.927 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.929 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.935 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused14:37:31.938 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused 214:37:31.942 [12-12 14:37:31] Torbutton WARN: Tor test failed. Proxy connection refused
Neither. It is not visible in the side bar and about:preferences#connection redirects to about:preferences#general
Then why are you saying it's broken?
This is the intended behavior .
ReferenceError: FileUtils is not defined startup-observer.js:121:11 setProxySettings jar:file:///usr/lib64/torbrowser/omni.ja!/chrome/torbutton/components/startup-observer.js:121 observe jar:file:///usr/lib64/torbrowser/omni.ja!/chrome/torbutton/components/startup-observer.js:175
Yes, this was the error the first patch you linked solves.
I wonder if it prevents the whole StartupObserver to run as intended.