Skip to content
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

[api-minor] Stop setting an id on the styleElement used with CSS font-loading #15534

Merged
merged 2 commits into from
Oct 2, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

This is yet another small piece of clean-up of the FontLoader-code, since we've not used this id-property for anything ever since PR #6571 (which landed almost seven years ago). Furthermore, by default we're also not even using that code-path now since the Font Loading API will always be used when available.

Please note: This is tagged [api-minor] since it's technically observable from the outside, however no user ought to be directly interacting with these CSS font rules.

…nt-loading

This is yet another small piece of clean-up of the `FontLoader`-code, since we've not used this `id`-property for anything ever since PR 6571 (which landed almost seven years ago). Furthermore, by default we're also not even using that code-path now since the Font Loading API will always be used when available.

*Please note:* This is tagged `[api-minor]` since it's technically observable from the outside, however no user ought to be directly interacting with these CSS font rules.
…tests

Given that `PDFDocumentProxy.destroy` is nothing but an alias for `PDFDocumentLoadingTask.destroy` calling both methods is obviously not useful.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2022

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/0d81cde8f80e958/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2022

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/b34db1ca32e5140/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/0d81cde8f80e958/output.txt

Total script time: 25.33 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 9
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/0d81cde8f80e958/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/b34db1ca32e5140/output.txt

Total script time: 28.89 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/b34db1ca32e5140/reftest-analyzer.html#web=eq.log

@Snuffleupagus Snuffleupagus changed the title Stop setting an id on the styleElement used with CSS font-loading [api-minor] Stop setting an id on the styleElement used with CSS font-loading Oct 2, 2022
@timvandermeij timvandermeij merged commit 4e58dab into mozilla:master Oct 2, 2022
@timvandermeij
Copy link
Contributor

Nice find!

@Snuffleupagus Snuffleupagus deleted the FontLoader-cleanup-3 branch October 2, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants