mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 05:00:13 -10:00
It may be that when the frame is reconstructed after load, the frame gets shorter, and the old scroll position cannot be restored, because it is out of bounds. In such a case, we don't want to keep mRestorePos tracking the old scroll position, because it can get incorrectly applied on a future frame reconstruction. Instead, for scroll position restorations during frame reconstructions, we just try the restore once and then clear mRestorePos. MozReview-Commit-ID: BHoJHz0mGmf