Rebase tor-browser patches to 94.0
Closes #40675 (closed).
I rebased from !212 (closed).
I skipped the following commits which had conflicts that are not easy to resolve, and I think not used on Android:
There are more non-android commits that we could skip.