This might be enough to fix it. Can't test on Mac.
Bug 1729741 Comment 14 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This might be enough to fix it. Can't test on Mac. I'm assuming that it's the popup which gets the focus when context menu triggers focusout event on Mac. Otherwise just substitute the context menu ID with whichever element gets focus.