I think that when SHIP is enabled, we can clear the layout history state of the entry that we're reloading in `CanonicalBrowsingContext::NotifyOnHistoryReload`.
Bug 1825222 Comment 9 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I think that when SHIP is enabled, we can clear the layout history state of the entry that we're reloading in `CanonicalBrowsingContext::NotifyOnHistoryReload`. And get rid of `nsDocShell::ShouldDiscardLayoutState`. Still need to verify where we need changes when SHIP is not enabled.