Draft: Bug 9173: Change the default Firefox profile directory to be TBB-relative (reworked).
My goal for this patch was making the current commit we have for #9173+#13252 (closed) (c0bf1a69) easier to rebase if anything changes between ESRs.
The changes we'd need for #40917 (closed) have not been included, I'll add them on top of these ones.
My original idea was adding a flag to make Firefox portable at compile time, but Mac makes it more complicated than it needs to be (#13252 (closed)).