From 9f4eb7782c77b53b8833ae18277dff836bc592dc Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 22 May 2019 11:08:11 +0200 Subject: [PATCH] exclude FF from COLR font check --- src/utils/FontManager.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/FontManager.js b/src/utils/FontManager.js index df8e43f2af..3b4450f378 100644 --- a/src/utils/FontManager.js +++ b/src/utils/FontManager.js @@ -28,6 +28,12 @@ async function isColrFontSupported() { return colrFontSupported; } + // Firefox has supported COLR fonts since version 26 + // but doesn't support the check below with content blocking enabled. + if (navigator.userAgent.includes("Firefox")) { + return true; + } + try { const canvas = document.createElement('canvas'); const context = canvas.getContext('2d');