Draft: 40236: Rebase tor-browser patches to 84.0b1
Closes #40236 (closed).
There were many conflicts due to python style changes in https://bugzilla.mozilla.org/show_bug.cgi?id=1654103.
I adapted our patches style with
./mach lint --linter black --fix.