Commit Graph

  • e6e2809825
    Merge pull request #12702 from calixteman/doc_actions calixteman 2020-12-18 21:33:32 +01:00
  • 6efd350993
    Merge pull request #12747 from Snuffleupagus/pageopen-pageclose Tim van der Meij 2020-12-18 21:31:20 +01:00
  • b7fc916f48
    Merge pull request #12753 from Snuffleupagus/issue-12752 Tim van der Meij 2020-12-18 21:14:06 +01:00
  • f2378eb715
    Merge pull request #12754 from calixteman/event_sb_creation Tim van der Meij 2020-12-18 21:09:35 +01:00
  • 1e2173f038 JS - Collect and execute actions at doc and pages level * the goal is to execute actions like Open or OpenAction * can be tested with issue6106.pdf (auto-print) * once #12701 is merged, we can add page actions Calixte Denizet 2020-12-07 19:22:14 +01:00
  • 4ae9064d60 Dispatch an event on sandbox creation * the goal is to be able to know when the sandbox is ready for mochitest in m-c Calixte Denizet 2020-12-18 17:20:40 +01:00
  • 142f131ee1
    Merge pull request #12741 from calixteman/global_eval calixteman 2020-12-18 19:08:36 +01:00
  • 48a76aea2b Ignore, rather than throwing on, Coding style component (COC) markers in JPEG 2000 images (issue 12752) Jonas Jenwald 2020-12-18 15:42:28 +01:00
  • 167ff1a7fc JS -- Actions must be evaluated in global scope * All the public properties of doc are injected into globalThis, in order to make them available through this * Put event in the global scope too. Calixte Denizet 2020-12-16 14:04:22 +01:00
  • c366390f6b
    Merge pull request #12689 from calixteman/mv_stuff_from_mc calixteman 2020-12-17 21:54:29 +01:00
  • 0e69973d71 Add a new "pagesdestroy" event, dispatched *before* the BaseViewer removes an existing document Jonas Jenwald 2020-12-15 17:20:15 +01:00
  • 2a83c965e8 Add new "pageopen"/"pageclose" events for usage with JavaScript actions Jonas Jenwald 2020-12-09 20:08:49 +01:00
  • 8bff4f1ea9 In order to simplify m-c code, move some in pdf.js * move set/clear|Timeout/Interval and crackURL code in pdf.js * remove the "backdoor" in the proxy (used to dispatch event) and so return the dispatch function in the initializer * remove listeners if an error occured during sandbox initialization * add support for alert and prompt in the sandbox * add a function to eval in the global scope Calixte Denizet 2020-12-04 00:39:50 +01:00
  • 3447f7c703
    Merge pull request #12742 from calixteman/map Brendan Dahl 2020-12-16 11:15:16 -08:00
  • 03814bd6a2 Don't use 'in' operator to check if key is in a Map Calixte Denizet 2020-12-16 16:00:12 +01:00
  • 3c603fb28b
    Merge pull request #12635 from calixteman/js_display_evts Brendan Dahl 2020-12-15 21:24:55 -08:00
  • 0655f50810
    Merge pull request #12737 from Snuffleupagus/Safari-10 Tim van der Meij 2020-12-15 22:58:23 +01:00
  • 6502ae889d JS -- Send events to the sandbox from annotation layer Calixte Denizet 2020-11-18 14:59:57 +01:00
  • 499d865ebf Change the minimum "supported" version of the Safari-browser to Safari 10 Jonas Jenwald 2020-12-14 16:01:20 +01:00
  • 640a08444c
    Merge pull request #12724 from calixteman/follow-up-12707 Tim van der Meij 2020-12-15 00:04:10 +01:00
  • c6c9cc96bf Follow-up of #12707: Add an integration test for checkboxes as radio buttons * Integration tests: Add a function to load a pdf and wait for a selected element * Integration tests: Add a function to close all the open pages Calixte Denizet 2020-12-10 22:45:14 +01:00
  • a825b9195b
    Merge pull request #12700 from calixteman/12699 Tim van der Meij 2020-12-14 23:39:48 +01:00
  • 5354a97025
    Merge pull request #12736 from Snuffleupagus/rm-IE-polyfills Tim van der Meij 2020-12-14 23:36:36 +01:00
  • 785487c558 Fix automatic zoom under spread mode (#12699) Calixte Denizet 2020-12-06 20:59:10 +01:00
  • a2874b380a Remove the remaining IE 11 polyfills Jonas Jenwald 2020-12-14 13:52:11 +01:00
  • 959dc379ee
    Merge pull request #12733 from Snuffleupagus/bug-1292316-test Tim van der Meij 2020-12-13 13:38:40 +01:00
  • 61d9269201
    Merge pull request #12734 from Snuffleupagus/update-packages Tim van der Meij 2020-12-13 13:36:36 +01:00
  • 3655777db7 Enable the ESLint no-unsafe-optional-chaining rule Jonas Jenwald 2020-12-13 11:46:32 +01:00
  • ad91972eb2 Update l10n files Jonas Jenwald 2020-12-13 11:43:49 +01:00
  • e09f2a462d Update npm packages Jonas Jenwald 2020-12-13 11:38:37 +01:00
  • e3caa29239
    Merge pull request #12732 from Snuffleupagus/scripting_spec-fail Tim van der Meij 2020-12-12 13:33:28 +01:00
  • 7f89be5dbf Add a test-case for bug 1292316 Jonas Jenwald 2020-12-12 13:08:03 +01:00
  • 9adb225a7d Call done.fail correctly in the scripting_spec.js unit-tests Jonas Jenwald 2020-12-12 12:41:47 +01:00
  • d1848f5022
    Merge pull request #12725 from brendandahl/remeasure-std Tim van der Meij 2020-12-11 20:36:19 +01:00
  • 217a00ee3a
    Merge pull request #12718 from Snuffleupagus/issue-12705 Tim van der Meij 2020-12-11 20:19:49 +01:00
  • 8beb62e397
    Merge pull request #12728 from Snuffleupagus/gulpfile-move-timezone Tim van der Meij 2020-12-11 20:08:52 +01:00
  • 67e5db75d8 Ignore color-operators in Type3 glyphs beginning with a d1 operator (issue 12705) Jonas Jenwald 2020-12-10 14:22:05 +01:00
  • 20557d8199 [gulpfile.js] Move the time-zone hack to the testing-pre task, such that *all* tests work regardless of the current time-zone Jonas Jenwald 2020-12-11 12:11:01 +01:00
  • 45d9ab6e45 Use widths defined by font for standard fonts. Brendan Dahl 2020-12-10 15:29:07 -08:00
  • 00b4f86db3
    Merge pull request #12717 from Snuffleupagus/issue-12714 Tim van der Meij 2020-12-10 23:06:59 +01:00
  • 954ac3d944
    Merge pull request #12719 from calixteman/emailvalidate Tim van der Meij 2020-12-10 22:19:37 +01:00
  • e53ae01330
    Merge pull request #12723 from mozilla/dependabot/npm_and_yarn/ini-1.3.7 Tim van der Meij 2020-12-10 22:08:53 +01:00
  • 31ea30ab25
    Merge pull request #12668 from calixteman/interaction Brendan Dahl 2020-12-10 12:52:03 -08:00
  • f94269c0d1 JS -- add function eMailValidate used to validate an email address Calixte Denizet 2020-12-10 15:38:31 +01:00
  • 7a0d89b3c0
    Bump ini from 1.3.5 to 1.3.7 dependabot[bot] 2020-12-10 20:48:56 +00:00
  • 7097114e0c
    Merge pull request #12720 from calixteman/fix_co Tim van der Meij 2020-12-10 21:43:35 +01:00
  • 85ab53fef0
    Merge pull request #12722 from calixteman/printf Tim van der Meij 2020-12-10 21:41:11 +01:00
  • 5b42ac364a Add some integration tests using puppeteer and Jasmine * run with gulp integrationtest Calixte Denizet 2020-11-30 18:11:28 +01:00
  • c7b09b8efc JS -- fix printd issue with negative number Calixte Denizet 2020-12-10 18:43:04 +01:00
  • 25bf504ff5 Be sure that CalculationOrder is either null or a non-empty array Calixte Denizet 2020-12-10 16:02:11 +01:00
  • 796a0d3155 Ensure that the /Annots-entry, on /Page-instances, is actually an Array (issue 12714) Jonas Jenwald 2020-12-10 11:31:46 +01:00
  • 93b3ba2abb
    Merge pull request #12712 from Snuffleupagus/issue-12704 Tim van der Meij 2020-12-09 23:43:07 +01:00
  • f48cfba945
    Merge pull request #12707 from calixteman/radio_check Tim van der Meij 2020-12-09 23:29:03 +01:00
  • 0629a8f553
    Merge pull request #12703 from Snuffleupagus/GenericScripting-rm-scriptElement Tim van der Meij 2020-12-09 23:09:06 +01:00
  • 6218b9a512 Re-factor/re-name the scripting getter, on the externalServices-implementations, to a createScripting method Jonas Jenwald 2020-12-07 18:23:34 +01:00
  • a7230eb033 Move the GenericScripting class to its own file, such that it can be used in the Chromium-extension Jonas Jenwald 2020-12-07 18:15:24 +01:00
  • 6c807f3f86 Move destroying of the scripting-instance from PDFViewerApplication.close and into its own helper method Jonas Jenwald 2020-12-07 17:54:44 +01:00
  • 8d72981c18 Move cancelling of idleCallbacks from PDFViewerApplication.close and into its own helper method Jonas Jenwald 2020-12-07 17:21:49 +01:00
  • 7ce6634c51 Ensure that the pdf.sandbox.js scriptElement is also removed from the DOM (PR 12695 follow-up) Jonas Jenwald 2020-12-07 17:11:32 +01:00
  • 09f79ffa92 Attempt to handle collapsed outline items, in the default viewer, according to the specification (issue 12704, PR 10890 follow-up) Jonas Jenwald 2020-12-09 20:48:36 +01:00
  • 1fcffe8034 Checkboxes with the same name must behave like a radio buttons group * aims to fix issue #12706 Calixte Denizet 2020-12-08 15:50:16 +01:00
  • b194c820bf
    Merge pull request #12634 from calixteman/aform Brendan Dahl 2020-12-07 11:35:23 -08:00
  • 0f899edfc8 JS -- Add aform functions * These functions aren't in the PDF specs but seems to be widely used * So the specs for these functions are: * http://www.sfu.ca/~wcs/ForGraham/Aladdin%20stuff/Acrobat%20Reader%205.0/Contents/MacOS/JavaScripts/AForm.js * pdfium source code Calixte Denizet 2020-11-17 18:34:44 +01:00
  • d784af3f38
    Merge pull request #12696 from timvandermeij/annotation-quadpoints Tim van der Meij 2020-12-06 16:52:33 +01:00
  • 3df72c3fac
    Merge pull request #12695 from Snuffleupagus/sandbox-build Tim van der Meij 2020-12-06 16:51:41 +01:00
  • 012e15f7a3
    Fix non-standard quadpoints orders for annotations Tim van der Meij 2020-12-05 21:27:38 +01:00
  • b2dfb55136 Re-factor the scripting getter in GENERIC-builds, since using the same sandbox for *multiple* PDF documents seems highly questionable Jonas Jenwald 2020-12-06 14:11:06 +01:00
  • 1e007f9285 Actually remove a scripting-instance, and its global events, upon document closing Jonas Jenwald 2020-12-06 13:57:24 +01:00
  • f4d8a427f0 Ensure that the *correct* PDF document is still active after *every* asynchronous API-call in PDFViewerApplication._initializeJavaScript Jonas Jenwald 2020-12-06 13:19:14 +01:00
  • 1f2f8c907b Tweak the "filesize" handling in PDFViewerApplication._initializeJavaScript Jonas Jenwald 2020-12-06 13:00:34 +01:00
  • bfdb39a1e6 Stop re-fetching the metadata unconditionally in PDFViewerApplication._initializeJavaScript Jonas Jenwald 2020-12-06 12:42:56 +01:00
  • f8ea83609f Dispatch a metadataloaded event once the PDFViewerApplication._initializeMetadata method is done Jonas Jenwald 2020-12-06 12:30:33 +01:00
  • c549069ebd Replace the testMode parameter in src/pdf.sandbox.js with a constant, set using the pre-processor Jonas Jenwald 2020-12-05 16:35:49 +01:00
  • c39f1aedb2 Re-implement working dev-sandbox/watch-dev-sandbox gulp-tasks Jonas Jenwald 2020-12-05 15:51:39 +01:00
  • 13d7244529 Re-factor how the pdf.sandbox.js file is built (PR 12604 follow-up) Jonas Jenwald 2020-12-05 13:59:46 +01:00
  • 1f29d27474 Change how we're passing pdf.sandbox.js-specific options to createWebpackConfig in gulpfile.js Jonas Jenwald 2020-12-04 15:49:13 +01:00
  • e3b6a9fb23
    Implement quadpoints rendering for link annotations Tim van der Meij 2020-12-05 20:29:21 +01:00
  • 7be4a14d87
    Move documentation of the render methods to the AnnotationElement class Tim van der Meij 2020-12-05 20:16:40 +01:00
  • cb422a80b0
    Move quadrilateral rendering logic into a method on the AnnotationElement class Tim van der Meij 2020-12-05 19:32:13 +01:00
  • 0273080031
    Move quadrilateral creation logic to the constructor of the AnnotationElement class Tim van der Meij 2020-12-05 19:48:05 +01:00
  • d742e3cde8 Actually utilize the PDF.js build-system fully when bundling the pdf.sandbox.js file Jonas Jenwald 2020-12-04 13:03:24 +01:00
  • 715b8aa389 Move, and rename, the src/scripting_api/quickjs-sandbox.js file to src/pdf.sandbox.js Jonas Jenwald 2020-12-04 12:34:09 +01:00
  • 54ca67d628
    Merge pull request #12693 from Snuffleupagus/mv-ColorConverters Tim van der Meij 2020-12-04 20:49:39 +01:00
  • 155c17c99a [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) Jonas Jenwald 2020-12-04 13:46:32 +01:00
  • c1f41df4ad
    Merge pull request #12685 from calixteman/12684 calixteman 2020-12-03 14:45:56 +01:00
  • d4f4b43d29 Fix issue #12684: replace bitwise ORs by ORs Calixte Denizet 2020-12-02 23:02:11 +01:00
  • a618b02e62
    Merge pull request #12682 from Snuffleupagus/findbar-notFound Tim van der Meij 2020-12-02 22:00:41 +01:00
  • 7a60824f2e
    Merge pull request #12681 from Snuffleupagus/pr-8808-update-test Tim van der Meij 2020-12-02 21:53:24 +01:00
  • 7325382db3
    Merge pull request #12679 from Snuffleupagus/pr-12666-followup Tim van der Meij 2020-12-02 21:51:02 +01:00
  • 313ee28436 [Generic viewer] Re-factor how the notFound appearance is set on the "findInput" in the PDFFindBar Jonas Jenwald 2020-12-02 15:23:20 +01:00
  • dc84c8a02a Update the link for the "pr8808" test-case (issue 12680) Jonas Jenwald 2020-12-02 14:56:55 +01:00
  • 488a81a7bc Fix the treeitem-expanded/treeitem-collapsed images in dark-mode (PR 12666 follow-up) Jonas Jenwald 2020-12-02 11:48:32 +01:00
  • 956fcab967
    Merge pull request #12631 from calixteman/app Brendan Dahl 2020-12-01 16:50:16 -08:00
  • db6b67c072
    Merge pull request #12673 from calixteman/split Tim van der Meij 2020-12-01 23:45:13 +01:00
  • b43b5caf83
    Merge pull request #12666 from Snuffleupagus/rm-dark-images Tim van der Meij 2020-12-01 23:31:20 +01:00
  • 830070ca41 Split underline, strikeout, squiggly annotions div into multiple divs * Follow up of #12505 * Fix bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1679696 Calixte Denizet 2020-12-01 16:04:43 +01:00
  • f2ec546cbb Use the same SVG images, in the default viewer, regardless of the CSS theme Jonas Jenwald 2020-11-29 15:32:15 +01:00
  • 43550be484
    Merge pull request #12665 from Snuffleupagus/update-packages Tim van der Meij 2020-11-29 15:35:43 +01:00
  • c42029489e Run gulp lint --fix, to account for changes in Prettier version 2.2.1 Jonas Jenwald 2020-11-29 09:59:03 +01:00
  • cd2e6d803a Update l10n files Jonas Jenwald 2020-11-29 09:50:36 +01:00