A user reports that the text on bridges.torproject.org is confusing for blind users, and users with slow connections / users who block images.
On bridges.torproject.org, blind users will be hearing a couple of references in their screen-readers to bridge entries and bridge addresses:
As an example, you'll get a bridge entry that looks like the following: bridge 141.[etc.]
Here are your bridge relays: bridge 60.[etc.]
On bridges.html.en, we have an image illustrating how to add a bridge to Vidalia:
Add each bridge address one at a time in the Vidalia Network settings page, by pasting it into the 'Add a Bridge' window and then clicking the '+' sign. Adding a bridge is pictured below:
... but users will not see the picture and will not know whether to include bridge or not.
Updating bridges.html.en is easy to do, but can we please do something about bridges.tpo as well? Is there a good reason for printing the bridge lines with the word bridge in front of each one?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I can remove the substring 'bridge' easily. I don't recall any good reason why this shouldn't be done.
Note that this would change the entries written to bridgedb's logfile.
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.pyindex 358e362..736cdbd 100644--- a/lib/bridgedb/Bridges.py+++ b/lib/bridgedb/Bridges.py@@ -138,9 +138,9 @@ class Bridge: def getConfigLine(self,includeFingerprint=False): """Return a line describing this bridge for inclusion in a torrc.""" if includeFingerprint:- return "bridge %s:%d %s" % (self.ip, self.orport, self.fingerprint)+ return "%s:%d %s" % (self.ip, self.orport, self.fingerprint) else:- return "bridge %s:%d" % (self.ip, self.orport)+ return "%s:%d" % (self.ip, self.orport) def assertOK(self): assert is_valid_ip(self.ip)diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.pyindex 8ef6fc0..b35b4be 100644--- a/lib/bridgedb/Main.py+++ b/lib/bridgedb/Main.py@@ -329,6 +329,7 @@ def startup(cfg): logging.info("Here are all known bridges in the category section:") for r in ipDistributor.categoryRings: for name, b in r.bridges.items():+ #XXX #5841: removal of 'bridge' substring changes the log output logging.info("%s" % b.getConfigLine(True)) # Dump bridge pool assignments to disk.
Hey, neat. I'm not familiar with Vidalia's source, but if the above patch works, it would allow both TBB-2.x with Vidalia and TBB-3.x with TorLauncher to accept lines regardless of the bridge prefix.
Because the interface of BridgeDB was revised, and this ticket contains valuable information about other programs parsing BridgeDB's output, I am changing the title and setting as a child of #9156 (moved).
Trac: Owner: N/Ato isis Keywords: N/Adeleted, bridgedb-email, bridgedb-ui, bridgedb-dist added Summary: Improve bridges.torproject.org and bridges.html.en for blind users to Make BridgeDB's output compatible with both Vidalia & TorLauncher Status: new to assigned Parent: N/Ato#9156 (moved) Cc: aagbsn, chiiph to aagbsn, chiiph, isis@torproject.org
None worked. The first line worked when the fingerprint was removed, meaning that Vidalia won't handle fingerprints, in addition to not handling the "bridge " prefix.
This means that if #9499 (moved) is fixed, it also breaks Vidalia.
We can either try to also fix this in Vidalia, or else make a page which explains that "If you're using Vidalia, you should only copy+paste the ip:port pair into Vidalia. You're also may be subject to MITM attacks, and you should upgrade your TBB to a 3.x version ASAP."
Since TBB-3.5 is about to be released, Vidalia will be deprecated. I think we should no longer try to support both Vidalia and TorLauncher simultaneously; we should only support up-to-date TBBs and tell users running Vidalia to switch.
Open question, likely for a new ticket if anyone cares: Will this cause trouble for TAILS users? Since TorLauncher can handle bridge lines regardless of whether or not they are prefixed with "bridge ", we can still leave them out as we are currently. (Or add them back in, if somehow that makes it easier for TAILS users.)
For the record:
The "bridge " prefix was removed from regular bridge lines in commit 792cfd99bb3a4
The "bridge " prefix was removed from PT lines in commit 20d6171844d
Three failing unittests from the old tests in lib/bridgebd/Tests.py were failing due to these changes, and these unittests were fixed in commit 514e93753dd3
I am closing this ticket, for the following reasons:
We are about to no longer support Vidalia and TBB-2.x
We are about to deprecate Vidalia entirely
Vidalia doesn't handle bridge fingerprints correctly (see #9499 (moved))