Bug 1853262 - Remove gfx.downloadable_fonts.sanitize_omt pref r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D188314
This commit is contained in:
Gregory Pappas 2023-09-15 15:57:31 +00:00
Родитель 6f915c0111
Коммит e5c7fdab51
2 изменённых файлов: 1 добавлений и 18 удалений

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

@ -839,18 +839,7 @@ void gfxUserFontEntry::FontDataDownloadComplete(
// download successful, make platform font using font data // download successful, make platform font using font data
if (NS_SUCCEEDED(aDownloadStatus) && if (NS_SUCCEEDED(aDownloadStatus) &&
mFontDataLoadingState != LOADING_TIMED_OUT) { mFontDataLoadingState != LOADING_TIMED_OUT) {
if (StaticPrefs::gfx_downloadable_fonts_sanitize_omt()) { LoadPlatformFontAsync(aSrcIndex, aFontData, aLength, aCallback);
LoadPlatformFontAsync(aSrcIndex, aFontData, aLength, aCallback);
} else {
bool loaded = LoadPlatformFontSync(aSrcIndex, aFontData, aLength);
aFontData = nullptr;
if (loaded) {
IncrementGeneration();
aCallback->FontLoadComplete();
} else {
FontLoadFailed(aCallback);
}
}
return; return;
} }

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

@ -5978,12 +5978,6 @@
value: false value: false
mirror: always mirror: always
# Whether font sanitization is performed on the main thread or not.
- name: gfx.downloadable_fonts.sanitize_omt
type: RelaxedAtomicBool
value: true
mirror: always
# Whether to validate OpenType variation tables in fonts. # Whether to validate OpenType variation tables in fonts.
- name: gfx.downloadable_fonts.validate_variation_tables - name: gfx.downloadable_fonts.validate_variation_tables
type: RelaxedAtomicBool type: RelaxedAtomicBool