[tbb-bugs] #27111 [Applications/Tor Browser]: TBA: Implement about:tor
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Oct 18 17:33:40 UTC 2018
#27111: TBA: Implement about:tor
-------------------------------------------------+-------------------------
Reporter: igt0 | Owner: tbb-
| team
Type: defect | Status:
| needs_revision
Priority: Medium | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-mobile, TBA-a2, | Actual Points:
TorBrowserTeam201810R |
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Changes (by sysrqb):
* status: needs_review => needs_revision
Comment:
Partially unrelated, but ideally, when the new tb-manual is available for
TBA, then we'll probably need to adjust the URL construction within
`src/chrome/content/aboutTor/aboutTor-content.js:onLocaleChange()`. (I
guess this is similar to option 1 in #20739). We'll need a new mockup for
this, too.
---
In `src/chrome/content/torbutton.js:torbutton_init()`:
{{{
+ if (torbutton_is_mobile()) {
+ torbutton_abouttor_message_handler.updateAllOpenPages();
+ }
+
}}}
Can you add a comment about why this is needed only on mobile?
----
We should set the homepage as `about:tor`, too. Fennec doesn't respect
`browser.startup.homepage`, so we must hardcode it :/
The easiest option may be modifying
`mobile/android/base/java/org/mozilla/gecko/AboutPages.java:HOME`.
Unfortunately, this won't work well until torbutton is integrated and
there's no longer the need of restarting the app before torbutton fully
installs. Another option is adding in a check for
`browser.startup.homepage`, and that overrides `AboutPages:HOME`.
----
This patch doesn't provide the same view as the mockup with the virtual
keyboard opened (right-side of
https://trac.torproject.org/projects/tor/attachment/ticket/25696/24309%20-%20TBA%20-%20Welcome%20Page.png).
This'll require a tor-browser patch, as well, because Fennec automatically
opens the ActivityStream HomePager every time the URL bar is focused.
----
Overall, I don't see any problems with this torbutton patch. This should
be reviewed by someone else (in particular someone with more knowledge of
this code) - making sure this doesn't break anything on desktop. I'm
setting to needs_revision because I think explaining why about:tor
requires an explicit signal on mobile during init() is helpful for
reviewing this.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27111#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tbb-bugs
mailing list