diff --git a/gfx/thebes/gfxUserFontSet.cpp b/gfx/thebes/gfxUserFontSet.cpp index 6ea4ba03fa9c..ceebd7802b09 100644 --- a/gfx/thebes/gfxUserFontSet.cpp +++ b/gfx/thebes/gfxUserFontSet.cpp @@ -839,18 +839,7 @@ void gfxUserFontEntry::FontDataDownloadComplete( // download successful, make platform font using font data if (NS_SUCCEEDED(aDownloadStatus) && mFontDataLoadingState != LOADING_TIMED_OUT) { - if (StaticPrefs::gfx_downloadable_fonts_sanitize_omt()) { - LoadPlatformFontAsync(aSrcIndex, aFontData, aLength, aCallback); - } else { - bool loaded = LoadPlatformFontSync(aSrcIndex, aFontData, aLength); - aFontData = nullptr; - if (loaded) { - IncrementGeneration(); - aCallback->FontLoadComplete(); - } else { - FontLoadFailed(aCallback); - } - } + LoadPlatformFontAsync(aSrcIndex, aFontData, aLength, aCallback); return; } diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index f76cf6232d26..d1028826409b 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -5978,12 +5978,6 @@ value: false 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. - name: gfx.downloadable_fonts.validate_variation_tables type: RelaxedAtomicBool