-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the Font Loading API in MOZCENTRAL
builds, and GENERIC
builds for Firefox version 63 and above (issue 9945, bug 1088663)
#9982
Use the Font Loading API in MOZCENTRAL
builds, and GENERIC
builds for Firefox version 63 and above (issue 9945, bug 1088663)
#9982
Conversation
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/b431db91b057e35/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/62508676d6db318/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/b431db91b057e35/output.txt Total script time: 30.12 mins
|
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/62508676d6db318/output.txt Total script time: 35.88 mins
|
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/2a188b35bf07193/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/2a188b35bf07193/output.txt Total script time: 7.30 mins Published |
49e69ea
to
3ba0d79
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/83d65b3cdfa74ed/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/83d65b3cdfa74ed/output.txt Total script time: 7.05 mins Published |
3ba0d79
to
556c9a4
Compare
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/77b00c5d5431f46/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/34fa113572492dc/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.215.176.217:8877/77b00c5d5431f46/output.txt Total script time: 31.22 mins
Image differences available at: http://54.215.176.217:8877/77b00c5d5431f46/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/34fa113572492dc/output.txt Total script time: 36.37 mins
|
src/display/font_loader.js
Outdated
return null; | ||
} | ||
createNativeFontFace() { | ||
if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('MOZCENTRAL')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this need to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'uh, this is such a rookie mistake on my part; thank you for spotting this!
5cc1895
to
20a46f9
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/1dbb624d51433b0/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/3888a4b8650bb73/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/3888a4b8650bb73/output.txt Total script time: 24.49 mins
|
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/1dbb624d51433b0/output.txt Total script time: 57.65 mins
|
/botio-windows preview |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/12e74d2a4615639/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/12e74d2a4615639/output.txt Total script time: 4.31 mins Published |
c472879
to
cb29a68
Compare
fea36ee
to
fe69735
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/73db6c45a3dcfae/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/9f3266d8ef21648/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.215.176.217:8877/9f3266d8ef21648/output.txt Total script time: 24.72 mins
Image differences available at: http://54.215.176.217:8877/9f3266d8ef21648/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/73db6c45a3dcfae/output.txt Total script time: 36.22 mins
|
MOZCENTRAL
builds, and GENERIC
builds for Firefox version 63 and above (issue 9945)MOZCENTRAL
builds, and GENERIC
builds for Firefox version 63 and above (issue 9945, bug 1088663)
fe69735
to
f027494
Compare
Any progress on this? It would be nice to have the printing issues fixed. Thanks! |
I want to hold off on this until the end of the week so #9340 has more time to bake in Firefox Nightly. It was a pretty large change and it will be easier to see if any regression come from it or this change if they are spread out a bit. |
f027494
to
0fbd95a
Compare
Also changes `var` to `let`/`const` in code already touched in the patch, and makes use of template strings in a few spots.
….missingFile` property The `Font.loading` property is only ever used *once* in the code, whereas `Font.missingFile` is more widely used. Furthermore the name `loading` feels, at least to me, slight less clear than `missingFile`. Finally, note that these two properties are the inverse of each other.
The `started` timestamp is completely usused, and the `end` timestamp is currently[1] being used essentially like a boolean value. Hence this code can be simplified to use an actual boolean value instead, which avoids potentially hundreds (or even thousands) of unnecessary `Date.now()` calls. --- [1] Looking briefly at the history of this code, I cannot tell if the timestamps themselves were ever used for anything (except for tracking "boolean" state).
Also changes `var` to `let`/`const` in code already touched in the patch, and makes use of template strings in a few spots.
… for Firefox version 63 and above (issue 9945)
0fbd95a
to
d6f4d2f
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/d9d4519857d6576/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/fd237d43fc477b7/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/d9d4519857d6576/output.txt Total script time: 19.64 mins
|
From: Bot.io (Windows)FailedFull output at http://54.215.176.217:8877/fd237d43fc477b7/output.txt Total script time: 24.05 mins
Image differences available at: http://54.215.176.217:8877/fd237d43fc477b7/reftest-analyzer.html#web=eq.log |
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @brendandahl received. Current queue size: 0 Live output at: http://54.215.176.217:8877/52b4e3802f0ad74/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/52b4e3802f0ad74/output.txt Total script time: 24.03 mins
|
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @brendandahl received. Current queue size: 0 Live output at: http://54.215.176.217:8877/6ad32510d2e1809/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/6ad32510d2e1809/output.txt Total script time: 23.81 mins
|
I was feeling bored, so this is an attempt at fixing issue #9945.
This PR refactor/modernize/clean-up the font loading code, and then adds
MOZCENTRAL
support for the Font Loading API on top. /cc @brendandahlNote: For easier reviewing, I'd suggest looking at one commit at a time and also using the
?w=1
URL flag to reduce the size of the larger diffs.Fixes #9945.