exclude FF from COLR font check

pull/21833/head
Bruno Windels 2019-05-22 11:08:11 +02:00
parent 0024a88daf
commit 9f4eb7782c
1 changed files with 6 additions and 0 deletions

View File

@ -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');