-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Conversation
@@ -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 */ |
There was a problem hiding this comment.
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.
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/a633f6163bd207a/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/a633f6163bd207a/output.txt Total script time: 0.77 mins Published |
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. |
TODO:
|
55c50f6
to
c9cb6a3
Compare
[api-minor] Replaces UnsupportedManager with callback.
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.