Merge pull request #6141 from skalnik/fix-font-csp-issues

Provide a fallback for font rendering when not allowed to use `eval`
This commit is contained in:
Yury Delendik 2015-08-18 18:50:11 -05:00
commit c56dc9a093
3 changed files with 83 additions and 34 deletions

View file

@ -177,6 +177,14 @@ PDFJS.openExternalLinksInNewWindow = (
PDFJS.openExternalLinksInNewWindow === undefined ?
false : PDFJS.openExternalLinksInNewWindow);
/**
* Determines if we can eval strings as JS. Primarily used to improve
* performance for font rendering.
* @var {boolean}
*/
PDFJS.isEvalSupported = (PDFJS.isEvalSupported === undefined ?
true : PDFJS.isEvalSupported);
/**
* Document initialization / loading parameters object.
*