Skip to content

Always prefer abbreviated keys, over full ones, when doing any dictionary lookups (issue 14256) #14258

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

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

Note that issue #14256 was specifically about inline images, please refer to:

However, during review of the initial PR in #14257 (comment), it was suggested that we instead do this unconditionally for all dictionary lookups.
In addition to re-ordering the existing call-sites in the src/core-code, and adding non-PRODUCTION/TESTING asserts to catch future errors, for consistency a number of existing if/switch-blocks were re-factored to also check the abbreviated keys first.

@Snuffleupagus Snuffleupagus linked an issue Nov 10, 2021 that may be closed by this pull request
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/77670f9e95cb178/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/77670f9e95cb178/output.txt

Total script time: 4.45 mins

Published

@mozilla mozilla deleted a comment from pdfjsbot Nov 10, 2021
@mozilla mozilla deleted a comment from pdfjsbot Nov 10, 2021
@mozilla mozilla deleted a comment from pdfjsbot Nov 10, 2021
@mozilla mozilla deleted a comment from pdfjsbot Nov 10, 2021
…nary lookups (issue 14256)

Note that issue 14256 was specifically about *inline* images, please refer to:
 - https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#G7.1852045
 - https://www.pdfa.org/safedocs-unearths-pdf-inline-image-issue/
 - https://pdf-issues.pdfa.org/32000-2-2020/clause08.html#H8.9.7

However, during review of the initial PR in mozilla#14257 (comment), it was suggested that we instead do this *unconditionally for all* dictionary lookups.
In addition to re-ordering the existing call-sites in the `src/core`-code, and adding non-PRODUCTION/TESTING asserts to catch future errors, for consistency a number of existing `if`/`switch`-blocks were re-factored to also check the abbreviated keys first.
@pdfjsbot
Copy link

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/34b9e1b40f7e94f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/25d013c12594004/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/34b9e1b40f7e94f/output.txt

Total script time: 23.68 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/25d013c12594004/output.txt

Total script time: 41.71 mins

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

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

@brendandahl
Copy link
Contributor

/botio makeref

Looks good, thanks!

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

Live output at: http://54.241.84.105:8877/965515d1af7a598/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

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

@brendandahl brendandahl merged commit 3a31b7e into mozilla:master Nov 11, 2021
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/965515d1af7a598/output.txt

Total script time: 21.38 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

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

Total script time: 38.51 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the issue-14256-2 branch November 11, 2021 23:12
@timvandermeij timvandermeij removed the request for review from brendandahl November 13, 2021 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline images with both abbreviated and full keys
3 participants