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

搜索 | 用户支持

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

详细了解

why does browser.newtabpage.rows reset to default 3 everytime firefox is restarted?

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

more options

using old design of "top sites" (browser.newtabpage.activity-stream.enabled = false) when changing browser.newtabpage.rows from default 3 to anything, I get results that I like, but when firefox is restarted value is set to 3 again. im using 57.0.4 (64-bit) quantum. extensions: adblock, ublock, flash video downloader

using old design of "top sites" (browser.newtabpage.activity-stream.enabled = false) when changing browser.newtabpage.rows from default 3 to anything, I get results that I like, but when firefox is restarted value is set to 3 again. im using 57.0.4 (64-bit) quantum. extensions: adblock, ublock, flash video downloader

所有回复 (7)

more options

https://support.mozilla.org/en-US/kb/how-to-fix-preferences-wont-save

Note: Some software, like Advanced SystemCare with Surfing Protection, can protect files in the Firefox profile folder against changes. If you have such software then check the settings or uninstall this software.

more options

This came up the other day, and it's probably a bug. Other thread: https://support.mozilla.org/questions/1187487

When I looked 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 if you started with

browser.newtabpage.rows = 4

then in about:config you should see:

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 in the old design, 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

FredMcD said

https://support.mozilla.org/en-US/kb/how-to-fix-preferences-wont-save Note: Some software, like Advanced SystemCare with Surfing Protection, can protect files in the Firefox profile folder against changes. If you have such software then check the settings or uninstall this software.

only software that would qualify as "system-helpers" on my pc are kaspersky and malwarebytes, and i dont think they are the culprits. besides, why only browser.newtabpage.rows resets then, and not browser.newtabpage.columns? which stays at the value i set. more importantly i think that jscher2000 wrote is correct. although i am not that tech-savy and my competence starts and ends and changing row/column values. i can only hope that mozilla acknowledges this as an official bug and fixes it in near feature.

more options

BoromiRofGeo said

i am not that tech-savy and my competence starts and ends and changing row/column values.

Hopefully one of the two workarounds I suggested will handle it until there is an official fix.

more options

That is how it appears to work with Activity Stream enabled.

Activity Stream uses its own way to display tiles and uses a maximum and automatically adjusts rows and columns. This maximum is calculated from the row and column settings when these prefs are found and once calculated they chose to reset the row pref to 3 instead of keeping its modified value. The only way to prevent this is to use a mozilla.cfg file to lock this specific pref.

Other threads about this issue:

more options

cor-el said

That is how it appears to work with Activity Stream enabled. Activity Stream uses its own way to display tiles and uses a maximum and automatically adjusts rows and columns. This maximum is calculated from the row and column settings when these prefs are found and once calculated they chose to reset the row pref to 3 instead of keeping its modified value. The only way to prevent this is to use a mozilla.cfg file to lock this specific pref. Other threads about this issue:

how do you think, is there any chance mozilla will fix this, or this is just a by-product of new design and here to stay for a foreseeable future?

more options

There is this bug mentioned in the threads, but no activity from devs:

  • bug 1406088 - browser.newtabpage.rows (manually config reset at each restart)

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)