Skip to content

Improve error handling when parsing page-structTrees #19824

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

Conversation

Snuffleupagus
Copy link
Collaborator

  • Catch, and ignore, errors during Page.prototype.getStructTree

    This way any errors thrown during parsing of the page-structTree will not be forwarded to the viewer.

  • Ensure that the /P-entry is actually a dictionary in StructTreePage.prototype.addNode

    This may fix issue [Bug]: UnknownErrorException: parent.get is not a function #19822, but without a test-case it's simply impossible to know for sure.

This way any errors thrown during parsing of the page-structTree will not be forwarded to the viewer.
…prototype.addNode`

This may fix issue 19822, but without a test-case it's simply impossible to know for sure.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/8008dfec747050e/output.txt

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/e4e334761d5dcd7/output.txt

Total script time: 30.04 mins

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/8008dfec747050e/output.txt

Total script time: 59.70 mins

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

@Snuffleupagus Snuffleupagus merged commit f1e20cd into mozilla:master Apr 17, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the getStructTree-catch-errors branch April 17, 2025 13:22
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