You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then following the STR above, starting with step 2
Furthermore, it seems that this is somehow related to the TESTING build-flag, since if you instead run TESTING=true gulp generic everything works as expected. To me, this would suggest that the QuickJS code somehow (accidentally) depends on the value of parameters that's set when TESTING == true in https://github.com/mozilla/pdf.js/blob/master/src/pdf.sandbox.js
Attach (recommended) or Link to PDF file here: 160F-2019.pdf (from the repository).
Configuration:
2.8.3
(but the issue is older, possibly from PR In order to simplify m-c code, move some in pdf.js #12689)Steps to reproduce the problem:
PDFViewerApplication.preferences.set("enableScripting", true);
160F-2019.pdf
file.pdf.sandbox.js
file loads successfully, but trying to execute any code in the sandbox fails with:What is the expected behavior? (add screenshot)
The
pdf.sandbox.js
file both loads and correctly executes the code.What went wrong? (add screenshot)
Errors in the
QuickJS
implementation, and scripting doesn't work.Note that this can easily be reproduced locally, to aid debugging and manual testing, by simply:
gulp server
and thengulp generic
Furthermore, it seems that this is somehow related to the
TESTING
build-flag, since if you instead runTESTING=true gulp generic
everything works as expected. To me, this would suggest that theQuickJS
code somehow (accidentally) depends on the value of parameters that's set whenTESTING == true
in https://github.com/mozilla/pdf.js/blob/master/src/pdf.sandbox.js/cc @calixteman
The text was updated successfully, but these errors were encountered: