Commit Graph

  • 47c1f625f3
    Merge pull request #11428 from wojtekmaj/ui-utils-const Tim van der Meij 2019-12-23 22:38:26 +01:00
  • 8638b0c88a
    Merge pull request #11427 from wojtekmaj/view-history-const Tim van der Meij 2019-12-23 22:33:11 +01:00
  • 2de0447e63
    Merge pull request #11426 from wojtekmaj/viewer-const Tim van der Meij 2019-12-23 22:29:15 +01:00
  • d96d8c55e1
    Merge pull request #11425 from wojtekmaj/viewer-compatibility-const Tim van der Meij 2019-12-23 22:25:30 +01:00
  • 0330d1d286
    Update webpack-stream to fix vulnerabiliy reported by npm Wojciech Maj 2019-12-22 18:36:06 +01:00
  • d40d33682b
    Extract & use createHeaders helper in src/display/fetch_stream.js Wojciech Maj 2019-12-22 22:04:25 +01:00
  • 74e442ef4c
    Use const in pdf_thumbnail_viewer.js Wojciech Maj 2019-12-22 18:22:02 +01:00
  • de6982e58e
    Use const in preferences.js Wojciech Maj 2019-12-22 18:21:04 +01:00
  • 5ea9127391
    Use const in secondary_toolbar.js Wojciech Maj 2019-12-22 18:20:30 +01:00
  • 8a8f75cf68
    Use const in text_layer_builder.js Wojciech Maj 2019-12-22 18:18:29 +01:00
  • 790b0aede6
    Use const in toolbar.js Wojciech Maj 2019-12-22 18:17:14 +01:00
  • cf5af97b02
    Use const in view_history.js Wojciech Maj 2019-12-22 18:15:48 +01:00
  • 276631db30
    Use const in viewer.js Wojciech Maj 2019-12-22 18:15:23 +01:00
  • b777e775f4
    Use const in viewer_compatibility.js Wojciech Maj 2019-12-22 18:14:52 +01:00
  • cd03fe014d
    Use const in ui_utils.js Wojciech Maj 2019-12-22 18:16:32 +01:00
  • ad0b0d60a5 Ignore Metadata entries with incorrectly encoded characters, when setting the viewer title (bug 1605526) Jonas Jenwald 2019-12-21 18:54:35 +01:00
  • eeaea85294 Re-factor how the viewer title is determined, based on the Info/Metadata data Jonas Jenwald 2019-12-21 17:43:53 +01:00
  • 6316b2a195
    Merge pull request #11422 from Snuffleupagus/issue-10768 Tim van der Meij 2019-12-21 13:37:22 +01:00
  • 04df367ab6
    Merge pull request #11418 from Snuffleupagus/simplify-fakeWorkerLoader Tim van der Meij 2019-12-21 13:24:51 +01:00
  • 3783eccfa4 Use the strict mode assert in the pdf2png Node.js example (issue 10768) Jonas Jenwald 2019-12-21 13:24:13 +01:00
  • d370037618 [api-minor] Tweak the Node.js fake worker loader to prevent Critical dependency: ... warnings from Webpack Jonas Jenwald 2019-12-19 18:32:51 +01:00
  • 8519f87efb Re-factor the setupFakeWorkerGlobal function (in src/display/api.js), and the loadFakeWorker function (in web/app.js) Jonas Jenwald 2019-12-19 18:11:56 +01:00
  • a5485e1ef7 [api-minor] Support loading the fake worker from GlobalWorkerOptions.workerSrc in Node.js Jonas Jenwald 2019-12-19 17:39:55 +01:00
  • 591e754831 Move the fake worker loader code into the PDFWorkerClosure Jonas Jenwald 2019-12-19 17:36:36 +01:00
  • aab0f91740 [api-minor] Simplify the *fallback* fake worker loader code in src/display/api.js Jonas Jenwald 2019-12-19 16:37:03 +01:00
  • 693240cf06
    Merge pull request #11415 from Snuffleupagus/update-packages Tim van der Meij 2019-12-19 23:51:55 +01:00
  • 9386544555 Update l10n files Jonas Jenwald 2019-12-19 11:30:57 +01:00
  • be43001b29 Update npm packages Jonas Jenwald 2019-12-19 11:28:13 +01:00
  • cf3f342373
    Merge pull request #11413 from Snuffleupagus/gulp-npm-test Tim van der Meij 2019-12-18 22:39:48 +01:00
  • f406263fc2 Re-factor the npm test command, used by Travis, to avoid running the 'default_preferences' tasks concurrently (issue 10732) Jonas Jenwald 2019-12-18 21:26:44 +01:00
  • 7ceb394c43
    Merge pull request #11380 from Snuffleupagus/PDFHistory-reset Tim van der Meij 2019-12-15 16:45:53 +01:00
  • e09fe7226d
    Merge pull request #11406 from Snuffleupagus/find-scanBytes Tim van der Meij 2019-12-15 16:26:42 +01:00
  • dbb82f05fc Re-factor the find helper function, in src/core/document.js, to search through the raw bytes rather than a string Jonas Jenwald 2019-12-13 13:42:07 +01:00
  • 8b35bba347
    Merge pull request #11407 from mozilla/dependabot/npm_and_yarn/npm-6.13.4 Tim van der Meij 2019-12-13 23:37:11 +01:00
  • 80d7b4d8ab
    Bump npm from 6.13.0 to 6.13.4 dependabot[bot] 2019-12-13 17:30:33 +00:00
  • 1fab637247 Prevent if (!state || false) { in the output, in PDFHistory._popState, for e.g. MOZCENTRAL builds Jonas Jenwald 2019-12-03 20:53:00 +01:00
  • c5f2f870cb Move the parseCurrentHash helper function into PDFHistory Jonas Jenwald 2019-12-03 16:29:14 +01:00
  • d621899d50 Add a reset method to the PDFHistory implementation Jonas Jenwald 2019-12-03 12:04:49 +01:00
  • 903bf177cb
    Merge pull request #11404 from Snuffleupagus/global-ReadableStream Tim van der Meij 2019-12-12 00:05:58 +01:00
  • e24050fa13 [api-minor] Move the ReadableStream polyfill to the global scope Jonas Jenwald 2019-10-14 13:19:41 +02:00
  • af4ba75f68
    Merge pull request #11398 from Snuffleupagus/issue-5887 Tim van der Meij 2019-12-09 22:08:08 +01:00
  • b00835f589 Attempt to improve the PDFDocument error message for empty files (issue 5887) Jonas Jenwald 2019-12-09 15:00:45 +01:00
  • a6db045789
    Merge pull request #11387 from Snuffleupagus/issue-11385 Tim van der Meij 2019-12-08 20:27:46 +01:00
  • 16778118f6
    Merge pull request #11391 from Snuffleupagus/globalThis Tim van der Meij 2019-12-08 20:23:19 +01:00
  • 71d61e4c6f Re-factor getMainThreadWorkerMessageHandler to support arbitrary global scopes, rather than only window Jonas Jenwald 2019-12-08 14:03:32 +01:00
  • a8fc306b6e Replace globalScope with the standard globalThis property instead Jonas Jenwald 2019-12-08 13:46:21 +01:00
  • 07212bf5f2
    Merge pull request #11390 from Snuffleupagus/checkFirstPage-await-cleanup Tim van der Meij 2019-12-08 20:13:00 +01:00
  • 7b503c8923
    Merge pull request #11388 from Snuffleupagus/rm-PDFPresentationMode-viewer-option Tim van der Meij 2019-12-08 19:55:43 +01:00
  • 3d549f12fa
    Merge pull request #11382 from Snuffleupagus/pr-10217-follow-up Tim van der Meij 2019-12-08 19:52:48 +01:00
  • a02122e984 Ensure that PDFDocument.checkFirstPage waits for cleanup to complete (PR 10392 follow-up) Jonas Jenwald 2019-12-07 12:20:26 +01:00
  • 1c466b4648 Remove the viewer option from the PDFPresentationMode constructor Jonas Jenwald 2019-12-06 00:20:56 +01:00
  • 5c0336872e Handle corrupt ASCII85Decode inline images with truncated EOD markers (issue 11385) Jonas Jenwald 2019-12-05 15:44:51 +01:00
  • 06b1f619c6 Fix an incorrect condition in BaseViewer.isPageVisible (PR 10217 follow-up) Jonas Jenwald 2019-12-04 13:38:07 +01:00
  • 514b500a6c
    Merge pull request #11374 from Snuffleupagus/set-first-pdfPage Tim van der Meij 2019-12-01 13:34:36 +01:00
  • ded56f2fe4
    Merge pull request #11373 from Snuffleupagus/fetch-cacheMap-rm-has Tim van der Meij 2019-12-01 13:23:53 +01:00
  • 6732df6aae Set the first pdfPage immediately in {BaseViewer, PDFThumbnailViewer}.setDocument Jonas Jenwald 2019-12-01 12:21:47 +01:00
  • c3b1c8f857 Slightly simplify the XRef cache lookup in XRef.fetch Jonas Jenwald 2019-11-30 13:12:48 +01:00
  • 62ec8109b5
    Merge pull request #11370 from Snuffleupagus/fetchCompressed-isStream Tim van der Meij 2019-11-30 14:56:47 +01:00
  • 168c6aecae Stop caching Streams in XRef.fetchCompressed Jonas Jenwald 2019-11-28 16:16:04 +01:00
  • 06412a557b Slighthly re-factor XRef.fetchCompressed Jonas Jenwald 2019-11-28 16:13:55 +01:00
  • b0aee6b1f0
    Merge pull request #11363 from Snuffleupagus/fetchUncompressed-isInteger-checks Tim van der Meij 2019-11-29 22:27:38 +01:00
  • 725566cfea Remove the Number.isInteger checks from XRef.fetchUncompressed (PR 8857 follow-up) Jonas Jenwald 2019-11-27 13:42:07 +01:00
  • dcf998a1c1
    Merge pull request #11356 from Snuffleupagus/rm-wrong-PDFDocument-comment Tim van der Meij 2019-11-25 22:24:54 +01:00
  • cc76132c24 Remove outdated, and misleading, JSDoc comment from the PDFDocument class Jonas Jenwald 2019-11-25 11:25:57 +01:00
  • 827eb64b75
    Merge pull request #11354 from Snuffleupagus/eslint-more-rules Tim van der Meij 2019-11-23 14:03:51 +01:00
  • 1319c9f13b Update l10n files Jonas Jenwald 2019-11-23 12:02:31 +01:00
  • a965662184 Enable the getter-return, no-dupe-else-if, and no-setter-return ESLint rules Jonas Jenwald 2019-11-23 11:28:29 +01:00
  • b8f0cf0bc0 Update npm packages Jonas Jenwald 2019-11-23 11:25:24 +01:00
  • 2feb3170bf
    Merge pull request #11325 from smohtadi/custom-file-transform Tim van der Meij 2019-11-22 23:02:34 +01:00
  • 79aa936f33
    Merge pull request #11353 from Snuffleupagus/rm-attachEvent Tim van der Meij 2019-11-22 22:54:55 +01:00
  • e09310d7a4 Remove document.attachEvent code from web/pdf_print_service.js since it's only necessary for old IE versions Jonas Jenwald 2019-11-22 13:46:44 +01:00
  • 96c595411a
    Merge pull request #11350 from Snuffleupagus/_pagesRequests-WeakMap Tim van der Meij 2019-11-21 23:41:54 +01:00
  • 0f73758222 Convert {BaseViewer, PDFThumbnailViewer}._pagesRequests from an Array to a WeakMap Jonas Jenwald 2019-11-19 14:12:47 +01:00
  • ef1cd11908
    Merge pull request #11338 from Snuffleupagus/toolbar-buttons-init Tim van der Meij 2019-11-19 23:59:14 +01:00
  • 026121286c
    Merge pull request #11346 from Snuffleupagus/pageViewsReady-printing Tim van der Meij 2019-11-19 23:46:51 +01:00
  • 0b0bf71ad0 Ensure that attempting to print with disableAutoFetch set will fail gracefully (issue 11339) Jonas Jenwald 2019-11-19 11:58:19 +01:00
  • 07473e9e2a Inline the Toolbar._localized method in the 'localized' event handler Jonas Jenwald 2019-11-17 14:02:33 +01:00
  • eaa2e216f4 Use for...of in a couple of loops in web/toolbar.js and web/secondary_toolbar.js Jonas Jenwald 2019-11-15 23:23:14 +01:00
  • 3edaebbded Reduce duplication when registering event listeners for the Toolbar buttons Jonas Jenwald 2019-11-15 23:19:35 +01:00
  • be02e67972
    Merge pull request #11335 from Snuffleupagus/issue-11330 Tim van der Meij 2019-11-16 13:56:01 +01:00
  • 789c2c6a7e
    Merge pull request #11334 from Snuffleupagus/FlateStream-readBlock-getBytes Tim van der Meij 2019-11-16 13:50:40 +01:00
  • 9199b02a42 Subtract stream.start when getting the startXRef property for documents with a Linearization dictionary (issue 11330) Jonas Jenwald 2019-11-16 02:07:02 +01:00
  • 688d15526e Use getBytes, rather than looping over getByte, in FlateStream.prototype.readBlock Jonas Jenwald 2019-11-15 15:35:22 +01:00
  • fe6d86fb52 added transform function smohtadi 2019-11-12 18:51:31 -08:00
  • f7aafcb218
    Merge pull request #11317 from Snuffleupagus/update-npm-packages Tim van der Meij 2019-11-12 00:14:00 +01:00
  • 3a05f6fe25
    Merge pull request #11318 from Snuffleupagus/IE-polyfill-pushState-replaceState Tim van der Meij 2019-11-12 00:09:27 +01:00
  • 878432784c [PDFHistory] Move the IE11 pushState/replaceState work-around to src/shared/compatibility.js (PR 10461 follow-up) Jonas Jenwald 2019-11-11 17:48:04 +01:00
  • f46fd9e306 Fix (some) vulnerabilities reported by npm audit Jonas Jenwald 2019-11-11 11:23:17 +01:00
  • ae4af9ab58 Update npm packages Jonas Jenwald 2019-11-11 11:22:03 +01:00
  • 21895aa75a
    Merge pull request #11316 from Snuffleupagus/globalScope-isNodeJS-modules Tim van der Meij 2019-11-10 19:43:01 +01:00
  • 74e00ed93c Change isNodeJS from a function to a constant Jonas Jenwald 2019-11-10 16:42:46 +01:00
  • 2817121bc1 Convert globalScope and isNodeJS to proper modules Jonas Jenwald 2019-11-10 15:10:18 +01:00
  • c2bd3a0bfb
    Merge pull request #11300 from nisarhassan12/master Tim van der Meij 2019-11-10 16:32:02 +01:00
  • 9de05161a7
    Merge pull request #11315 from timvandermeij/issue6179_reduced Tim van der Meij 2019-11-10 15:45:02 +01:00
  • 6972bbea74
    Include a reduced test case for annotations without a Border/BS entry (PR 6180 follow-up) Tim van der Meij 2019-11-10 14:37:42 +01:00
  • 8c97281b74
    Merge pull request #11305 from mgrigis/master Tim van der Meij 2019-11-10 13:48:47 +01:00
  • 6763e16804
    Merge pull request #11313 from Snuffleupagus/issue-11122 Tim van der Meij 2019-11-10 13:31:51 +01:00
  • c6ee4480f7
    Merge pull request #11314 from Snuffleupagus/revert-11312-async-getPageDict Tim van der Meij 2019-11-10 13:05:57 +01:00
  • 0233fc07b6
    Revert "Convert Catalog.getPageDict to an async method" Jonas Jenwald 2019-11-09 22:36:23 +01:00
  • 536a52e981 Ensure that Popup annotations, where the parent annotation is a polyline, will always be possible to open/close (issue 11122) Jonas Jenwald 2019-11-09 13:29:09 +01:00