TPS Pref Lists 编辑
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论