Here is my status report for July 2023.
Like the previous month, in July, I worked mainly on the transition to Firefox ESR 115 and the refactors of Torbutton.
For the ESR update, I kept working on our build system.
We stumbled upon a couple of reproducibility problems with LLVM. One  was already fixed in the main branch, but I had to git bisect to find the solution and backport it to 16.0.4, the version we and Mozilla use.
The other one was about the macOS binaries: they matched except for the UUID. Because this difference was limited and specific, I could quickly find the cause in the source code. This UUID is a hash, and its computation was split into as many workers as the available cores. Even though this is deterministic, it introduces a dependency of the result on the hardware used to produce it. So, I opened an issue , which was solved super fastly !
Then, I also worked on the Android part of the build system. Between 102 and 115, Mozilla unified the repositories for Android Components and Fenix . Therefore, we had to create a brand new project, and making it build successfully from start to end required a considerable time.
We had reproducibility problems also on Android, more precisely on the application services part. They were already known, so I just had to update the patch for 102 to 115.
I wanted to upstream these changes, but in Application Services 116, Mozilla did a big refactor on this code. So, I adapted our patch again, and it was accepted .
The tor-browser-build merge request for Android  is still under review, but we will need to merge it soon because we want to release 13.0a2 also for Android.
My other big work topic of July was the refactors to Torbutton. Our objective is to extract all the code that originally composed the extension and integrate it more with the rest of the browser code.
The first MR  moved about:tor to a patch on its own and included a modernization of its IPC mechanisms and a refactor to TorCheckService. It also removed old migration code that is not needed anymore since users are forced to pass through Tor Browser 11.5.8 if updating from older versions.
Torbutton also forced the value of a few preferences depending on whether PBM was always enabled . This MR removed this behavior.
In another MR , I removed direct uses of the Tor controller. We planned to centralize all these operations in a TorProvider class built around the browser's needs. The rationale is to create a common interface with a future ArtiProvider. We expect that we will have to review everything again in the future, but we preferred starting already to get the first part of the work done.
With this done, I could focus on refactoring the browser's Tor controller .
Other smaller tasks I worked on last month are:
- a fix to make NoScript and the browser communicate again 
- a fix to the bootstrap failing without any error 
- make the build system extract Firefox's PDB and distribute them to users interested in debugging the browser .
This sure was a long month for me, but I am very happy about the results we are getting. I hope you will appreciate them too.
In yesterday's weekly meeting, we decided to release alphas more often since we are still targeting the end of September for 13.0 stable.
So, I would like to invite you all to please test the Tor Browser alphas.
Thank you very much!
 Mar-tools aren't deterministic on 13.0a1 (#40907) · Issues · The Tor Project / Applications / tor-browser-build · GitLab
 MachO UUID dependency on `compute_thread_count` makes reproducing builds harder · Issue #63961 · llvm/llvm-project · GitHub
 GitHub - mozilla-mobile/firefox-android: This repository hosts the Firefox for Android (Fenix), Focus for Android, and Mozilla Android Components projects.
 Fix nimbus-fml breaking deterministic builds by PieroV · Pull Request #5736 · mozilla/application-services · GitHub
 Bug 40855&40867: Android part of the 115 migration (!762) · Merge requests · The Tor Project / Applications / tor-browser-build · GitLab
 Bug 41842, 41845 and more: move about:tor outside torbutton, remove old preferences and old logic (!695) · Merge requests · The Tor Project / Applications / Tor Browser · GitLab
 Stop forcing (bad) pref values for non-PBM users (#41845) · Issues · The Tor Project / Applications / Tor Browser · GitLab
 Bug 41844&40982: Stop using the control port directly and draft a backend for the circuit display and bridge settings (!699) · Merge requests · The Tor Project / Applications / Tor Browser · GitLab
 Bug 41926: Reimplement the control port (!709) · Merge requests · The Tor Project / Applications / Tor Browser · GitLab
 TB13 testbuild: NoScript seems to be blocking by default (#41877) · Issues · The Tor Project / Applications / Tor Browser · GitLab
 The bootstrap is interrupted without any errors if the process becomes ready when already bootstrapping (#41907) · Issues · The Tor Project / Applications / Tor Browser · GitLab
 Create and expose PDB files for Tor Browser debugging on Windows (#31546) · Issues · The Tor Project / Applications / tor-browser-build · GitLab
tor-project mailing list