The problem is https://searchfox.org/mozilla-central/source/dom/events/EventStateManager.cpp#2319 requireUserInteraction seems to be always true when calling webNav->GoBack(GoForward)
Bug 1666095 Comment 10 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The problem is https://searchfox.org/mozilla-central/source/dom/events/EventStateManager.cpp#2319 requireUserInteraction seems to be always true when calling webNav->GoBack(GoForward), so we hit the underlying bug like bug 1644914.