Bug 1784489 - Pref on text recognition for nightly and early beta; r=nordzilla

Differential Revision: https://phabricator.services.mozilla.com/D154532
This commit is contained in:
Greg Tatum 2022-08-17 13:12:12 +00:00
Родитель 0ebe2e3519
Коммит 7955da4416
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -180,8 +180,14 @@ pref("dom.keyboardevent.keypress.hack.use_legacy_keycode_and_charcode.addl", "")
// explanation for the detail.
pref("dom.mouseevent.click.hack.use_legacy_non-primary_dispatch", "");
// Enable experimental text recognition features for supported OSes.
pref("dom.text-recognition.enabled", false);
// Text recognition is a macOS 10.15+ feature that is currently in development.
// It is surfaced through the browser's context menu. There is no need to pref it
// on by OS, as there is a specific check if that version of the OS supports the feature.
#ifdef EARLY_BETA_OR_EARLIER
pref("dom.text-recognition.enabled", true);
#else
pref("dom.text-recognition.enabled", false);
#endif
// Fastback caching - if this pref is negative, then we calculate the number
// of content viewers to cache based on the amount of available memory.