mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
15 lines
611 B
JavaScript
15 lines
611 B
JavaScript
|
|
let SocialService = Cu.import("resource://gre/modules/SocialService.jsm", {}).SocialService;
|
|
|
|
// this test ensures that any builtin providers have the builtin flag that we
|
|
// need to help with "install" of a builtin.
|
|
function test() {
|
|
let manifestPrefs = Services.prefs.getDefaultBranch("social.manifest.");
|
|
let prefs = manifestPrefs.getChildList("", []);
|
|
ok(prefs.length > 0, "we have builtin providers");
|
|
for (let pref of prefs) {
|
|
let manifest = JSON.parse(manifestPrefs.getComplexValue(pref, Ci.nsISupportsString).data);
|
|
ok(manifest.builtin, "manifest is builtin " + manifest.origin);
|
|
}
|
|
}
|