[Editor] Change the enableML pref for enableAltText (bug 1905923)

We want to use this pref to make a Nimbus experiment in the next weeks.
This commit is contained in:
Calixte Denizet 2024-07-05 17:56:41 +02:00
parent e777ae2258
commit 0fba6e570e
8 changed files with 29 additions and 10 deletions

View file

@ -303,6 +303,16 @@ class FirefoxScripting {
}
class MLManager {
#enabled = new Map();
constructor({ enableAltText }) {
this.#enabled.set("altText", enableAltText);
}
isEnabledFor(name) {
return this.#enabled.get(name);
}
guess(data) {
return FirefoxCom.requestAsync("mlGuess", data);
}