Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Prevent Firefox from recovering scroll position from previous sessions.

more options

I do not want Firefox to attempt to recover the scroll position from a previous session. In other words, if I load a page, scroll halfway down the page, close Firefox and open it again, I do not want Firefox to try to jump halfway down the page. What is happening is I am loading up a tab from my previous session, trying to click on something at the top of the page that interests me, and Firefox jumps somewhere else right before I can click. It is disorienting and frustrating. Plus, it does not work correctly with websites that dynamically load more content as you reach the bottom.

I do not want Firefox to attempt to recover the scroll position from a previous session. In other words, if I load a page, scroll halfway down the page, close Firefox and open it again, I do not want Firefox to try to jump halfway down the page. What is happening is I am loading up a tab from my previous session, trying to click on something at the top of the page that interests me, and Firefox jumps somewhere else right before I can click. It is disorienting and frustrating. Plus, it does not work correctly with websites that dynamically load more content as you reach the bottom.

所有回复 (2)

more options
more options

The scroll position is stored as part of the "state" information for a tab in the session history file. You could prevent this from being stored by disabling state information storage, but that also could stop Firefox from storing session cookies, so on sites that use such cookies to keep you logged in, you would need to log in again. So that probably is overkill for this problem. But if you want to try it:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) Double-click the browser.sessionstore.privacy_level preference to display a dialog where you can change the value from 0 to 2 and click OK

In my test, this did not take effect until after I exited Firefox (it took effect with the next session).


As you may know, the session history files are compressed. Thus, it is not easy to strip out just the scroll information between sessions, although it does seem theoretically possible for an external utility to do that.

It might be possible for an add-on to reset the scroll position of a restored tab to the top of the page after it loads, but this might still involve Firefox first scrolling down before control is turned over to the extension. ???