pdf.js/src/display
Jonas Jenwald 6d192f987e Prevent Uncaught (in promise) AbortException when running the unit-tests
These errors can/will occur if data is still loading when the document is destroyed, which is the case in the API unit-tests that load the `tracemonkey.pdf` file.
While this patch prevents these kind of problems, and thus allows us to update Jasmine again, I cannot help but thinking that it's slightly "hacky". Basically, we'll simply catch and ignore (some) rejected promises once the document is destroyed and/or its data loading is aborted. However, I don't *think* that these changes should cause issues in general, since we don't really care about errors once document destruction has started (note e.g. the fair number of `catch` handlers ignoring `AbortException`s already).
2020-07-31 23:29:05 +02:00
..
annotation_layer.js Add support for checkboxes printing 2020-07-29 16:42:57 +02:00
annotation_storage.js Add an annotation storage in order to save annotation data in acroforms 2020-07-24 10:50:11 +02:00
api_compatibility.js [api-minor] Remove the disableCreateObjectURL option from the getDocument parameters, since it's now unused in the API 2020-05-22 00:22:48 +02:00
api.js Prevent Uncaught (in promise) AbortException when running the unit-tests 2020-07-31 23:29:05 +02:00
canvas.js Stop special-casing the (very unlikely) "no /XObject found"-scenario, when parsing OPS.paintXObject operators, in PartialEvaluator.{getOperatorList, getTextContent} 2020-07-12 21:59:59 +02:00
content_disposition.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils.js [api-minor] Use the NodeCanvasFactory/NodeCMapReaderFactory classes as defaults in Node.js environments (issue 11900) 2020-07-02 04:44:23 +02:00
fetch_stream.js Ignore fetch() errors, in PDFFetchStreamRangeReader, once the request has been aborted 2020-07-28 17:18:49 +02:00
font_loader.js Add more categories of unsupported features. 2020-05-04 11:02:16 -07:00
metadata.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
network_utils.js Enable the unicorn/prefer-starts-ends-with ESLint plugin rule 2020-02-16 12:41:53 +01:00
network.js Remove unused methods from NetworkManager, in src/display/network.js 2020-06-07 16:03:32 +02:00
node_stream.js Re-factor setPDFNetworkStreamFactory, in src/display/api.js, to also accept an asynchronous function 2020-05-20 13:18:18 +02:00
node_utils.js [api-minor] Use the NodeCanvasFactory/NodeCMapReaderFactory classes as defaults in Node.js environments (issue 11900) 2020-07-02 04:44:23 +02:00
pattern_helper.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
svg.js Update SVGGraphics to account for globally cached images (PR 11912 follow-up) 2020-06-10 15:31:26 +02:00
text_layer.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
transport_stream.js Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments 2020-05-05 13:40:05 +02:00
webgl.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
worker_options.js Update the GlobalWorkerOptions.workerSrc JSDoc comment 2020-01-19 12:44:42 +01:00
xml_parser.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00