为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

New tab page rows problem

  • 10 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

Upon the update to the new Firefox Quantum 57.0, i immediately change the new tab page to the classic version as shown here (https://support.mozilla.org/pt-PT/questions/1183195). The problem is in the fact that whenever i restart the firefox, while the number of columns remains as i chose , the number of rows goes back to the default 3. Thank you

Upon the update to the new Firefox Quantum 57.0, i immediately change the new tab page to the classic version as shown here (https://support.mozilla.org/pt-PT/questions/1183195). The problem is in the fact that whenever i restart the firefox, while the number of columns remains as i chose , the number of rows goes back to the default 3. Thank you

所有回复 (10)

more options

Bumped. Isn't there anyone out there who knows how to fix this problem?

more options

Show a screen of the error. I don't see the columns that your referring to.

more options

WestEnd disse

Show a screen of the error. I don't see the columns that your referring to.

I change the number of rows from 3 to 4. When i close and then reopen the firefox, the number or rows is again 3.

more options
more options

Firefox stores the changed value of browser.newtabpage.rows in the prefs.js file in your profile folder. Normally other software doesn't touch this file and your changes are retained indefinitely, unless you use the Refresh feature.

The following article lists some reasons for problems retaining changes in prefs.js, and also beware of external utilities that either clean up browser settings or protect against unwanted changes (they can't distinguish wanted from unwanted changes) such as Advanced SystemCare.

How to fix preferences that won't save

more options

jscher2000 disse

Firefox stores the changed value of browser.newtabpage.rows in the prefs.js file in your profile folder. Normally other software doesn't touch this file and your changes are retained indefinitely, unless you use the Refresh feature. The following article lists some reasons for problems retaining changes in prefs.js, How to fix preferences that won't save

That didn't solve the problem. The strange thing is that when i change the number of columns and then quit/restart the firefox, the changes are still there. The same thing doesn't happen to the number of rows.

jscher2000 disse

The following article lists some reasons for problems retaining changes in prefs.js, and also beware of external utilities that either clean up browser settings or protect against unwanted changes (they can't distinguish wanted from unwanted changes) such as Advanced SystemCare. How to fix preferences that won't save

In the previews version of firefox i didn't have this problem.

more options
more options

Wonder21 said

jscher2000 disse
Firefox stores the changed value of browser.newtabpage.rows in the prefs.js file in your profile folder. Normally other software doesn't touch this file and your changes are retained indefinitely, unless you use the Refresh feature.
The following article lists some reasons for problems retaining changes in prefs.js, How to fix preferences that won't save

That didn't solve the problem. The strange thing is that when i change the number of columns and then quit/restart the firefox, the changes are still there. The same thing doesn't happen to the number of rows.

In the previews version of firefox i didn't have this problem.

Now that I test it myself, mine behaves the same as yours. One typical workaround -- creating a text file in the profile folder named user.js in the profile folder with this line:

user_pref("browser.newtabpage.rows", 4);

-- doesn't have the anticipated effect of forcing the value.

When I look at the source code, the problem appears to be a "migration" feature which computes the number of "Activity Stream" top sites tiles by multiplying the browser.newtabpage.rows preference by 6. So most likely you have

browser.newtabpage.activity-stream.topSitesCount = 24

instead of the default value of 12. But the migratePref() function then resets the browser.newtabpage.rows value back to default. There's yer trouble.

I don't understand the code well enough to figure out whether there is a way to stop the migratePref() function from running.

Possible Workarounds

(A) Since the tiles "wrap" to fit the available space, can you work around this behavior by increasing browser.newtabpage.columns to multiply out to approximately the same number of tiles you wanted?

(B) Switch to using the New Tab Tools extension.

more options

There is a bug on file for this, and one comment indicated that you can override the value reset by using an Autoconfig file to lock the preference.

https://bugzilla.mozilla.org/show_bug.cgi?id=1406088#c2

I added a comment to the bug with references to where it happens in the source code. Hopefully that will advance the ball.

more options

See also: