Skip to content

Simplify the loadXfaImages method and related code#19885

Merged
timvandermeij merged 1 commit intomozilla:masterfrom
Snuffleupagus:loadXfaImages-simplify
May 4, 2025
Merged

Simplify the loadXfaImages method and related code#19885
timvandermeij merged 1 commit intomozilla:masterfrom
Snuffleupagus:loadXfaImages-simplify

Conversation

@Snuffleupagus
Copy link
Collaborator

Currently we create an intermediate Dict during parsing, however that seems unnecessary since (note especially the second point):

  • The NameOrNumberTree.prototype.getAll method will already resolve any references, as needed, during parsing.
  • The Catalog.prototype.xfaImages getter is invoked, via the BasePdfManager-instance, such that any MissingDataExceptions are already handled correctly.

Currently we create an intermediate `Dict` during parsing, however that seems unnecessary since (note especially the second point):
 - The `NameOrNumberTree.prototype.getAll` method will already resolve any references, as needed, during parsing.
 - The `Catalog.prototype.xfaImages` getter is invoked, via the `BasePdfManager`-instance, such that any `MissingDataException`s are already handled correctly.
@Snuffleupagus
Copy link
Collaborator Author

/botio xfatest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/59c66ae7d8d3873/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/9b72fd4c345a696/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/9b72fd4c345a696/output.txt

Total script time: 17.30 mins

  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/59c66ae7d8d3873/output.txt

Total script time: 40.01 mins

  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit 5ca57fb into mozilla:master May 4, 2025
9 checks passed
@timvandermeij
Copy link
Contributor

Thank you for simplifying this!

@Snuffleupagus Snuffleupagus deleted the loadXfaImages-simplify branch May 5, 2025 15:01
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