搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

What does "browser.newtabpage.storageVersion" do?

  • 5 回覆
  • 5 有這個問題
  • 44 次檢視
  • 最近回覆由 Landis

more options

What does that pref do? If I make it 1, thumbnails folder in profile isn't created anymore (that exactly what I want)

But this not default about:config entry. Is there any documentation about it?

What does that pref do? If I make it 1, thumbnails folder in profile isn't created anymore (that exactly what I want) But this not default about:config entry. Is there any documentation about it?

所有回覆 (5)

more options

Version prefs are used internally, so Firefox can see which version was last last used with this current profile and if necessary upgrade some database files, so just leave them as they are.

You can create these Boolean prefs on the about:config page if you want to disable the thumbnails on the about:newtab page.

  • name: browser.pagethumbnails.capturing_disabled with value: true
  • name: pageThumbs.enabled with value: false
more options

If I do as you said, thumbnails are disabled, ok. But in profile folder, empty "thumbnails" folder is created every time.

I use these prefs for disabling thumbnails. (also re-creation of empty thumbnails folder)

user_pref("browser.newtabpage.enabled", false); user_pref("browser.newtabpage.storageVersion", "1"); user_pref("browser.pagethumbnails.capturing_disabled", true); user_pref("browser.pagethumbnails.storage_version", "2");

And if I right click on the pref "browser.newtabpage.storageVersion" and make default it. It is being deleted and it start empty folder named thumbnails in prfile folder.

more options

So, what is the StorageVersion or Storage_Version Numbers equate to? Values: 1 - 4 what type of storage is associated with each? http://www.whatwg.org/specs/web-apps/current-work/#dom-localstorage https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.pagethumbnails.capturing_disabled

Landis.

more options

Version numbers are used internally and show the current status of implemented features or data storage.
After major changes have been made to the code that involve how data is handled or stored then this value can be incremented to indicate that files have been updated.
It is best to leave such prefs alone and not modify or reset them.

You can do a search on the MXR site if you want to know how such version numbers are used (they are usually hard coded).

more options

Thank you.. i know what 'version number' is, but in the context of this specific 'Preference' in config.js ( 'about:config' ) i'm wondering if it isn't a 'type of' storage not unlike the tab close 'button' ( x ) 'style' is or could be 0, 1 or 3 (i can't figure out what 2 is)... that's it.

again, thanks. Landis.