pdf.js/src/display
Jonas Jenwald dc926ffc0f Check isEvalSupported, and test that eval is actually supported, before attempting to use the PostScriptCompiler (issue 5573)
Currently `PDFFunction` is implemented (basically) like a class with only `static` methods. Since it's used directly in a number of different `src/core/` files, attempting to pass in `isEvalSupported` would result in code that's *very* messy, not to mention difficult to maintain (since *every* single `PDFFunction` method call would need to include a `isEvalSupported` argument).

Rather than having to wait for a possible re-factoring of `PDFFunction` that would avoid the above problems by design, it probably makes sense to at least set `isEvalSupported` globally for `PDFFunction`.

Please note that there's one caveat with this solution: If `PDFJS.getDocument` is used to open multiple files simultaneously, with *different* `PDFJS.isEvalSupported` values set before each call, then the last one will always win.
However, that seems like enough of an edge-case that we shouldn't have to worry about it. Besides, since we'll also test that `eval` is actually supported, it should be fine.

Fixes 5573.
2017-09-15 12:02:45 +02:00
..
annotation_layer.js Merge pull request #8691 from timvandermeij/square-circle-annotations 2017-09-09 22:56:54 +02:00
api.js Check isEvalSupported, and test that eval is actually supported, before attempting to use the PostScriptCompiler (issue 5573) 2017-09-15 12:02:45 +02:00
canvas.js Replace the isArray helper function with the native Array.isArray function 2017-09-01 20:27:13 +02:00
dom_utils.js Introduce DOMSVGFactory 2017-09-09 21:36:27 +02:00
fetch_stream.js Fix #8888: Change behaviour of fetch to make it compatible with XHR. 2017-09-14 23:53:06 +05:30
font_loader.js Fix inconsistent spacing and trailing commas in objects in remaining src/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on 2017-06-02 12:32:18 +02:00
global.js Moves global scope out of shared/util. 2017-08-22 18:20:52 -05:00
metadata.js Removes error() 2017-07-07 09:40:24 -05:00
network_utils.js Correctly validate the response status for non-HTTP fetch requests (PR 8768 follow-up) 2017-09-05 17:07:44 +02:00
network.js Adds fetch stream logic for networking part of PDF.js 2017-08-29 22:56:48 +05:30
node_stream.js Fixes fetch and node behavior when disableAutoFetch adn disableStream is used. 2017-08-30 10:53:38 -05:00
pattern_helper.js Fix color of image masks inside uncolored patterns 2017-09-06 13:41:48 +03:00
svg.js Merge pull request #8691 from timvandermeij/square-circle-annotations 2017-09-09 22:56:54 +02:00
text_layer.js Properly cancel streams and guard at getTextContent. 2017-08-03 16:36:46 -05:00
transport_stream.js Adds Streams API support for networking task of PDF.js project. 2017-07-28 02:32:30 +05:30
webgl.js Fix inconsistent spacing and trailing commas in objects in remaining src/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on 2017-06-02 12:32:18 +02:00