TPS Pref Lists

この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

A prefs asset list is an array of objects with name and value keys, representing browser preferences. For example:

var prefs1 = [
  { name: "browser.startup.homepage",
    value: "http://www.getfirefox.com"
  },
  { name: "browser.urlbar.maxRichResults",
    value: 20
  },
  { name: "browser.tabs.autoHide",
    value: true
  }
];

Pref lists and phase actions

The only actions supported for preference asset lists are modify and verify:

  • Prefs.modify
  • Prefs.verify

Sync only syncs certain preferences. To find the list of valid preferences, go to about:config on a browser that has Weave installed, and search for services.sync.prefs.sync.

For a more detailed test example, see the TPS prefs unit test.

Document Tags and Contributors

タグ:
Contributors to this page: jgriffin
最終更新者: jgriffin,