exclude FF from COLR font check

pull/21833/head
Bruno Windels 2019-05-22 11:08:11 +02:00
父節點 0024a88daf
當前提交 9f4eb7782c
共有 1 個檔案被更改,包括 6 行新增0 行删除

查看文件

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