Disable AI/ML features using Firefox preferences for testing

We don't need AI/ML features in the tests, so this should reduce CPU
usage by not having the inference process running. Moreover, it prevents
the following lines from being logged in the test output:

```
JavaScript error: resource://gre/actors/MLEngineParent.sys.mjs, line 509: Error: Unable to get the ML engine from Remote Settings.
JavaScript error: resource://gre/actors/MLEngineParent.sys.mjs, line 1279: TypeError: can't access property "postMessage", this[#port] is null
```
This commit is contained in:
Tim van der Meij 2025-08-17 14:41:04 +02:00
parent a05dc9c1c5
commit 844681a2fa
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -955,6 +955,12 @@ async function startBrowser({
"browser.topsites.contile.enabled": false,
// Disable logging for remote settings.
"services.settings.loglevel": "off",
// Disable AI/ML functionality.
"browser.ml.enable": false,
"browser.ml.chat.enabled": false,
"browser.ml.linkPreview.enabled": false,
"browser.tabs.groups.smart.enabled": false,
"browser.tabs.groups.smart.userEnabled": false,
...extraPrefsFirefox,
};
}