While investigating #23016 (moved) it turned out that the newly enabled content sandboxing prevents from printing to a file not only on particular Linux setups but outright denies it.
We should have one commit per Mozilla commit. This makes it easier to review the backport at least. It might even make it easier to narrow problems down during bisecting if we don't have just a big patch comprising all the changesets.
The backport looks good. I think we should somehow keep the original Mozilla bug number at least (maybe even the patch author information) as this helps us finding patches in our tree. Especially in the case where you are referencing the mercurial patch while we are working with git. There are probably more folks who have mozilla-central as a git remote then an additional mercurial checkout of that branch. See comment:10:ticket:22084 for a workflow that works for me at least (not a thing you must or should follow, just something that makes it easy to deal with tor-browser and Mozilla's code in a git repository).
I know you are at the All Hands meeting. If you could find time to add at least the Mozilla bug number until Monday, great. Otherwise I'd take the patches as-is as I want to have that in the next alpha.