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 a couple of unnecessary PDFJSDev checks from the viewer #12114

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

  • Given the DefaultExternalServices implementation, the PDFViewerApplication.supportsDocumentFonts getter is guaranteed to be defined and we can thus remove some (now) unnecessary PDFJSDev checks from the webViewerInitialized function.
  • By slightly tweaking the "pdfBugEnabled" definition in web/app_options, similar to the existing ones for "workerSrc" and "cMapUrl", we can remove some PDFJSDev checks from the PDFViewerApplication._parseHashParameters method.

 - Given the `DefaultExternalServices` implementation, the `PDFViewerApplication.supportsDocumentFonts` getter is guaranteed to be defined and we can thus remove some (now) unnecessary `PDFJSDev` checks from the `webViewerInitialized` function.
 - By slightly tweaking the "pdfBugEnabled" definition in `web/app_options`, similar to the existing ones for "workerSrc" and "cMapUrl", we can remove some `PDFJSDev` checks from the `PDFViewerApplication._parseHashParameters` method.
@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.67.70.0:8877/659c7ea43af6baa/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/659c7ea43af6baa/output.txt

Total script time: 3.30 mins

Published

@timvandermeij timvandermeij merged commit 7b0c52f into mozilla:master Jul 23, 2020
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the viewer-PDFJSDev-cleanup branch July 24, 2020 08:57
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