mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
Remove telemetry experiments framework
This commit is contained in:
parent
e5c504fca6
commit
9d2e0ff0c4
38 changed files with 2 additions and 8345 deletions
|
|
@ -12,13 +12,6 @@ Cu.import("resource://gre/modules/AddonManager.jsm");
|
|||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/AppConstants.jsm");
|
||||
|
||||
var Experiments;
|
||||
try {
|
||||
Experiments = Cu.import("resource:///modules/experiments/Experiments.jsm").Experiments;
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
|
||||
// We use a preferences whitelist to make sure we only show preferences that
|
||||
// are useful for support and won't compromise the user's privacy. Note that
|
||||
// entries are *prefixes*: for example, "accessibility." applies to all prefs
|
||||
|
|
@ -263,18 +256,6 @@ var dataProviders = {
|
|||
});
|
||||
},
|
||||
|
||||
experiments: function experiments(done) {
|
||||
if (Experiments === undefined) {
|
||||
done([]);
|
||||
return;
|
||||
}
|
||||
|
||||
// getExperiments promises experiment history
|
||||
Experiments.instance().getExperiments().then(
|
||||
experiments => done(experiments)
|
||||
);
|
||||
},
|
||||
|
||||
modifiedPreferences: function modifiedPreferences(done) {
|
||||
done(getPrefList(name => Services.prefs.prefHasUserValue(name)));
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue