[tor-bugs] #30429 [Applications/Tor Browser]: Rebase Tor Browser patches for Firefox ESR 68

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Aug 20 13:46:08 UTC 2019


#30429: Rebase Tor Browser patches for Firefox ESR 68
-------------------------------------------------+-------------------------
 Reporter:  gk                                   |          Owner:  tbb-
                                                 |  team
     Type:  task                                 |         Status:
                                                 |  needs_revision
 Priority:  Very High                            |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  ff68-esr, tbb-9.0-must-nightly,      |  Actual Points:
  TorBrowserTeam201908R                          |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by mcs):

 Replying to [comment:33 acat]:
 > Some comments on the updater patches:
 >
 > 9f9017a63b156e11af23b55fde36223b74d859e4 (Bug 13379: Sign our MAR
 files.) -
 > - In the original esr60 patch, `AppendToLibPath` is called for Windows,
 Mac and Linux, while in the new patch it's only used for  Mac. Is this not
 needed anymore for Linux and Windows? In #29818 it says that in Linux now
 `-rpath=$ORIGIN` is used, but I did not see anything about Windows.

 We do not think it will be needed on Windows because Mozilla no longer
 copies `updater.exe` to a new location and the DLLs it depends on are in
 the same directory as that exe. But we will find out for sure when we are
 able to test the ESR68-based updater on Windows (we are waiting for
 Windows nightlies to be available before we do that testing).

 > 9aa2a90005dde6a7ea2bf58b63241d27912a78eb (Bug 4234: Use the Firefox
 Update Process for Tor Browser.)
 >       - `TOR_BROWSER_VERSION` is now mandatory, if I understand it
 correctly. But I still see some cases that are checking whether
 `TOR_BROWSER_VERSION_QUOTED` is defined:
 > ...

 We will remove the #ifdefs.

 > {{{
 > +#ifdef TOR_BROWSER_VERSION_QUOTED
 > +  nsAutoCString tbVersion(TOR_BROWSER_VERSION_QUOTED);
 > +  rv = parser.GetString("Compatibility", "LastTorBrowserVersion", buf);
 > +  if (NS_FAILED(rv) || !tbVersion.Equals(buf)) return false;
 > +#endif
 > }}}
 >
 > {{{
 > +#ifdef TOR_BROWSER_VERSION_QUOTED
 > +  nsAutoCString tbVersion(TOR_BROWSER_VERSION_QUOTED);
 > +  static const char kTorBrowserVersionHeader[] =
 > +      NS_LINEBREAK "LastTorBrowserVersion=";
 > +  PR_Write(fd, kTorBrowserVersionHeader,
 sizeof(kTorBrowserVersionHeader) - 1);
 > +  PR_Write(fd, tbVersion.get(), tbVersion.Length());
 > +#endif
 > +
 > }}}
 >       Can these checks be removed?
 >
 >       - `AdjustPathForUpdater` in `toolkit/xre/nsUpdateDriver.cpp` is
 removed, similar to comment above, is this not needed anymore for Windows?

 It should not be needed. Also see what I said about
 `AdjustPathForUpdater()` in comment:31.

 > ...
 > 89177dd51ae361d5360abae00387a1d75c15a1be (fixup! TB4: Tor Browser's
 Firefox preference overrides.)
 >     - Since `TOR_BROWSER_VERSION` is now mandatory, can the ifdef check
 be removed?
 >
 > 55b4bcecc587bb03ce32933096b12fbfb5ceb146 (fixup! Bug 16940: After
 update, load local change notes.)
 >       - Since `TOR_BROWSER_VERSION` is now mandatory, can the ifdef
 check be removed?

 Yes and yes.

 We will revise the patches.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30429#comment:40>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list