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

Remove PDFViewerApplication.initPassiveLoading and directly invoke the open-method from the extension-specific code #17813

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

  • Move the error message localization into PDFViewerApplication._otherError

    When reporting errors in the viewer we currently localize the error messages "manually" at every call-site, which seems like unnecessary repetition.

  • Remove PDFViewerApplication.initPassiveLoading and directly invoke the open-method from the extension-specific code

    This old method is essentially just adding, a small amount of, unnecessary indirection and we can easily invoke PDFViewerApplication.open directly from the extension-specific code instead.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/5cb8d72276526b2/output.txt

Total script time: 1.22 mins

Published

@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/b46514e77a9bdf9/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

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

Total script time: 6.95 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

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

Total script time: 18.93 mins

  • Integration Tests: Passed

Copy link
Contributor

@timvandermeij timvandermeij left a comment

Choose a reason for hiding this comment

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

Looks good to me, with this comment addressed.

web/app.js Outdated Show resolved Hide resolved
…Error`

When reporting errors in the viewer we currently localize the error messages "manually" at every call-site, which seems like unnecessary repetition.
…the `open`-method from the extension-specific code

This old method is essentially just adding, a small amount of, unnecessary indirection and we can easily invoke `PDFViewerApplication.open` directly from the extension-specific code instead.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/4c4303e89f71809/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/4c4303e89f71809/output.txt

Total script time: 1.21 mins

Published

@timvandermeij timvandermeij merged commit e7203f5 into mozilla:master Mar 22, 2024
7 checks passed
@timvandermeij
Copy link
Contributor

Looks like a good simplification; thanks!

@Snuffleupagus Snuffleupagus deleted the initPassiveLoading-simplify branch March 22, 2024 09:58
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.

3 participants