Isis and Sherief -- Kathy and I value your opinion on these changes, especially:
"bridge " will no longer be shown in Tor Launcher's custom bridges textbox.
Lines within that textbox will not wrap, which means users may need to scroll horizontally to see long bridge lines (but Kathy and I think that is less confusing than wrapping).
Trac: Status: new to needs_review Cc: mcs to mcs, isis, sherief Keywords: N/Adeleted, tbb-usability, TorBrowserTeam201503R added
Isis and Sherief -- Kathy and I value your opinion on these changes, especially:
"bridge " will no longer be shown in Tor Launcher's custom bridges textbox.
Shown in the textbox? Or re-added to the beginning of the line? Because if the "bridge " prefix is being stripped once from the beginning of the line in parseAndValidateBridges(), and then not re-added again in setBridgeListElemValue():
@@ -1406,11 +1407,7 @@ function setBridgeListElemValue(aBridgeArray) { var s = aBridgeArray[i].trim(); if (s.length > 0)- {- if (s.toLowerCase().indexOf("bridge") != 0)- s = "bridge " + s; bridgeList.push(s);- } } }
Then tor won't be able to set the "Bridge" config line.
Lines within that textbox will not wrap, which means users may need to scroll horizontally to see long bridge lines (but Kathy and I think that is less confusing than wrapping).
I agree. (I also added a similar change recently in BridgeDB because of the obfs4 lines being huge.)
Shown in the textbox? Or re-added to the beginning of the line? Because if the "bridge " prefix is being stripped once from the beginning of the line in parseAndValidateBridges(), and then not re-added again in setBridgeListElemValue():
...
Then tor won't be able to set the "Bridge" config line.
The lines contained in the textbox are not directly passed to the control port via SETCONF.
TorSetConf() inside src/components/tl-protocol.js uses a JS object to construct a SETCONF command.
For the bridge config., getAndValidateBridgeSettings() inside network-settings.js creates the JS object. It contains two properties: "Bridge" (which is an array that contains the lines from the textbox) and "UseBridges" (which is a Boolean). So the "Bridge" part really comes from the property name and does not depend on what is in the textbox (in the current code, parseAndValidateBridges() removes "bridge" everywhere within the text; this patch changes things to remove it on a line-by-line basis).
Does the above make sense?
Lines within that textbox will not wrap, which means users may need to scroll horizontally to see long bridge lines (but Kathy and I think that is less confusing than wrapping).
I agree. (I also added a similar change recently in BridgeDB because of the obfs4 lines being huge.)