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

[api-minor] Replaces UnsupportedManager with callback. #6698

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

yurydelendik
Copy link
Contributor

UnsupportedManager is only global variable we are using and blocks SharedWorker refactoring. This PR deprecated this API and (temporary?) replaces with PDFDocumentLoadingTask callback.

I don't think we need to use it at the error() function -- we need to pass or exception to the UI via promises, or handle them in the evaluator and send UnsupportedFeature message if needed.

@@ -15,7 +15,7 @@
/* globals IDENTITY_MATRIX, FONT_IDENTITY_MATRIX, TextRenderingMode, ImageData,
ImageKind, PDFJS, Uint32ArrayView, error, WebGLUtils, OPS, warn,
shadow, isNum, Util, TilingPattern, getShadingPatternFromIR, isArray,
info, assert, UnsupportedManager, UNSUPPORTED_FEATURES */
info, assert, UNSUPPORTED_FEATURES */
Copy link
Contributor

Choose a reason for hiding this comment

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

The UNSUPPORTED_FEATURES global is now also unused and can be removed.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/a633f6163bd207a/output.txt

@Snuffleupagus
Copy link
Collaborator

I've just tested the built (Firefox) extension, and the fallback bar is no longer shown for e.g. the PDF files in issues #3795 and #6342. Is that really intended, or does it point to a bug in the PR?

@yurydelendik
Copy link
Contributor Author

the fallback bar is no longer shown for e.g. the PDF files in issues #3795 and #6342.

I don't think we shall show a warning bar in this case, we know how to workaround those bad cases and we can resume properly. However, we might trigger that bar for cases, e.g. when fonts are corrupted, but in this case we know the reason.

@yurydelendik
Copy link
Contributor Author

TODO:

brendandahl added a commit that referenced this pull request Dec 2, 2015
[api-minor] Replaces UnsupportedManager with callback.
@brendandahl brendandahl merged commit 376788f into mozilla:master Dec 2, 2015
brendandahl added a commit to brendandahl/pdf.js that referenced this pull request Dec 3, 2015
…tedManager"

This reverts commit 376788f, reversing
changes made to 5f56a20.
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.

5 participants