Commit Graph

  • 6cb911cdd0
    Merge pull request #13019 from Snuffleupagus/PDFFindBar-null Tim van der Meij 2021-02-25 23:22:29 +01:00
  • 70d1869fe5 Remove the, strictly unnecessary, closure and variable shadowing from createObjectURL Jonas Jenwald 2021-02-25 13:11:05 +01:00
  • 85251da218 Remove the NullL10n default value from viewer components not included in the COMPONENTS-bundle Jonas Jenwald 2021-02-22 12:43:10 +01:00
  • c277e39b0b Remove the findResultsCount-check from PDFFindBar.updateResultsCount, and unnecessary defaults from the constructor Jonas Jenwald 2021-02-22 12:42:59 +01:00
  • 8b7dee0aae
    Merge pull request #13009 from Snuffleupagus/openOrDownloadData Tim van der Meij 2021-02-24 20:57:12 +01:00
  • 0b7415f982
    Merge pull request #13011 from brendandahl/remove-new-line Brendan Dahl 2021-02-24 08:37:44 -08:00
  • ecd45cc9af JS - Avoid a popup to ask for updating Acrobat. - this popup appears because js is enabled; - and because the pdf contains some unsupported features (e.g. XFA); - can be tested with: https://www.cbsa-asfc.gc.ca/publications/forms-formulaires/a10.pdf. Calixte Denizet 2021-02-24 15:46:03 +01:00
  • 45329af926
    XFA -- Add support for SOM expressions (#12983) calixteman 2021-02-24 01:13:02 -08:00
  • 19c3fd1e2f Remove extra new line from HTML source. Brendan Dahl 2021-02-23 18:00:05 -08:00
  • df931ef685 Move the opening of PDF file attachments into the DownloadManager-implementations Jonas Jenwald 2021-02-23 12:58:17 +01:00
  • fafe039849
    Merge pull request #13008 from timvandermeij/webpack-stream Tim van der Meij 2021-02-21 15:21:38 +01:00
  • 62d5b15a24
    Allow minor and patch versions for the webpack-stream dependency again Tim van der Meij 2021-02-21 15:13:41 +01:00
  • f3aa4408a5
    Merge pull request #13005 from calixteman/colors Tim van der Meij 2021-02-21 14:50:03 +01:00
  • 34fd197621
    Merge pull request #13007 from Snuffleupagus/update-packages Tim van der Meij 2021-02-21 14:37:43 +01:00
  • 476230bd17 Update l10n files Jonas Jenwald 2021-02-21 11:57:07 +01:00
  • 385bf67bc9 Update npm packages Jonas Jenwald 2021-02-21 11:52:55 +01:00
  • 2194fb940d
    Merge pull request #13004 from Snuffleupagus/cancelBound Tim van der Meij 2021-02-20 18:50:31 +01:00
  • 4a5f1d1b7a JS - Fix setting a color on an annotation - strokeColor corresponds to borderColor; - support fillColor and textColor; - support colors on the different annotations; - fix typo in aforms (+test). Calixte Denizet 2021-02-20 15:23:54 +01:00
  • d69cf702f3 Add a this-bound method for InternalRenderTask.cancel Jonas Jenwald 2021-02-20 14:43:43 +01:00
  • 3d80c21a8e
    Merge pull request #13001 from Snuffleupagus/AnnotationStorage-serializable Tim van der Meij 2021-02-19 00:01:44 +01:00
  • e9038cc3d1 Send the AnnotationStorage-data to the worker-thread as a Map Jonas Jenwald 2021-02-18 13:51:08 +01:00
  • 0fa9976268
    XFA - Add support for prototypes (#12979) calixteman 2021-02-18 01:32:25 -08:00
  • 4619b1b568
    Merge pull request #12997 from Snuffleupagus/metadata-worker Tim van der Meij 2021-02-17 20:57:46 +01:00
  • 77862bdb8e
    Merge pull request #12999 from Snuffleupagus/LoopbackPort-rm-sync Tim van der Meij 2021-02-17 20:39:54 +01:00
  • 1d3af89cae
    Merge pull request #12998 from Snuffleupagus/renderInteractiveForms-defaults Tim van der Meij 2021-02-17 20:37:03 +01:00
  • b5be515375
    XFA - Add a lexer/parser for FormCalc language (#12936) calixteman 2021-02-17 11:28:06 -08:00
  • 4de8b7e433
    Merge pull request #12830 from calixteman/field Brendan Dahl 2021-02-17 10:38:09 -08:00
  • 3398070e26 [api-minor] Remove support for synchronous event dispatching in LoopbackPort Jonas Jenwald 2021-02-17 15:52:01 +01:00
  • d366bbdf51 Move the encodeToXmlString helper function to src/core/core_utils.js Jonas Jenwald 2021-02-16 14:13:51 +01:00
  • b66f294f64 Move the XML-parser to the src/core/-folder Jonas Jenwald 2021-02-16 14:13:46 +01:00
  • cc3a6563ee Move the Metadata parsing to the worker-thread Jonas Jenwald 2021-02-16 14:13:39 +01:00
  • 73bf45e64b Support Map and Set, with postMessage, when workers are disabled Jonas Jenwald 2021-02-16 14:13:31 +01:00
  • ccef734ebb Remove Promise.all and async+done from unit/scripting_spec Calixte Denizet 2021-02-17 11:19:39 +01:00
  • 0a28e51e40 Simplify the default value handling of renderInteractiveForms in the viewer components Jonas Jenwald 2021-02-17 10:47:55 +01:00
  • 82f75a8ac2 JS -- Fix doc.getField and add missing field methods - getField("foo") was wrongly returning a field named "foobar"; - field object had few missing unimplemented methods Calixte Denizet 2021-01-07 19:22:37 +01:00
  • 952bc08ec0
    Merge pull request #12995 from Snuffleupagus/errorFontMissing-no-fallback-bar Tim van der Meij 2021-02-16 22:43:13 +01:00
  • bab059d8fd
    Merge pull request #12964 from calixteman/12963 Tim van der Meij 2021-02-16 22:36:24 +01:00
  • 9887644702 Stop showing the fallback bar for "errorFontMissing" errors (PR 11218 follow-up) Jonas Jenwald 2021-02-16 16:23:53 +01:00
  • b5735f2017
    Merge pull request #12993 from Snuffleupagus/metadata-subject Tim van der Meij 2021-02-15 20:27:34 +01:00
  • 0fc8267576 Avoid infinite loop when getting annotation field name - aims to fix issue #12963; - use a Set to track already visited objects; - remove the loop limit in getInheritableProperty and use a RefSet too. Calixte Denizet 2021-02-06 12:23:35 +01:00
  • b26c7974fe [api-minor] Change the dc:subject Metadata field to an Array Jonas Jenwald 2021-02-14 16:24:01 +01:00
  • f892c00275
    Merge pull request #12991 from Snuffleupagus/viewer-Firefox-rm-misc-code Tim van der Meij 2021-02-14 15:17:16 +01:00
  • b9beca90c7
    Merge pull request #12992 from Snuffleupagus/scripting-compact-fallback-events Tim van der Meij 2021-02-14 15:13:48 +01:00
  • 209fe60472 Use a more compact format for the fallback EventBus-listeners in PDFViewerApplication_initializeJavaScript Jonas Jenwald 2021-02-14 12:37:37 +01:00
  • 48f4580991 A couple of small BaseViewer tweaks Jonas Jenwald 2021-02-14 12:32:50 +01:00
  • 4c107d8d7c Remove the useless PresentationModeState.CHANGING-case in PDFCursorTools (PR 12788 follow-up) Jonas Jenwald 2021-02-14 10:39:49 +01:00
  • 1ca816d724 Directly use requestIdleCallback in MOZCENTRAL-builds Jonas Jenwald 2021-02-14 10:39:42 +01:00
  • 7f8a9b12d9 Stop including the "errorWrapper" HTML code in MOZCENTRAL-builds Jonas Jenwald 2021-02-14 10:39:34 +01:00
  • c79fd71457
    Merge pull request #12896 from calixteman/text_layer Tim van der Meij 2021-02-13 15:12:58 +01:00
  • 4b639d5d44
    Merge pull request #12988 from Snuffleupagus/rm-unneeded-MissingDataException Tim van der Meij 2021-02-13 13:07:01 +01:00
  • 1ee747a620 Remove unneeded instanceof MissingDataException checks Jonas Jenwald 2021-02-13 12:12:14 +01:00
  • 3f3b01b710
    Merge pull request #12759 from calixteman/font_size Brendan Dahl 2021-02-12 14:33:55 -08:00
  • dee75c1764
    Merge pull request #12986 from Snuffleupagus/rm-loading_error_indicator Tim van der Meij 2021-02-12 21:25:37 +01:00
  • ea06bb0e36 [api-minor] Annotation -- Don't compute appearance when nothing has changed * don't set a value in annotationStorage by default: - having an undefined when the annotation is rendered for saving/printing means nothing has changed so use normal appearance - aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1681687 * change the way to compute font size when this one is null in DA: - make fontSize proportional to line height - in multiline case, take into account the number of lines for text entered to adapt the font size Calixte Denizet 2020-12-19 18:12:44 +01:00
  • a8021208ea
    Restore window.alert after use in scripting test (#12987) calixteman 2021-02-12 05:19:58 -08:00
  • 6e2ae2264b Remove the unused "loading_error_indicator" l10n string (PR 2719 follow-up) Jonas Jenwald 2021-02-12 13:08:53 +01:00
  • b4421b076a Modifiy the way to compute baseline to have a better match between canvas and text layer - use ascent of the fallback font instead of the one from pdf to position spans - use TextMetrics.fontBoundingBoxAscent if available or - use a basic heuristic to guess ascent in drawing char on a canvas - compute ascent as a ratio of font height Calixte Denizet 2021-01-23 18:21:48 +01:00
  • fc925827b2
    fix initial state of checkboxes in display layer (#12904) dhufnagel 2021-02-12 11:22:54 +01:00
  • d5cad9ad3f
    Merge pull request #12981 from Snuffleupagus/app-localizeMessage Tim van der Meij 2021-02-12 00:14:05 +01:00
  • 069d5b1086
    Merge pull request #12984 from Snuffleupagus/more-Date-now Tim van der Meij 2021-02-12 00:06:45 +01:00
  • 3831c131e3
    Merge pull request #12982 from Snuffleupagus/license_header_2021 Tim van der Meij 2021-02-12 00:03:20 +01:00
  • 4733f163e8 Replace a few new Date().getTime() instances with Date.now() Jonas Jenwald 2021-02-11 23:00:42 +01:00
  • 133158e4d5 Update the year in the license_header files Jonas Jenwald 2021-02-11 17:52:26 +01:00
  • fe3f074f6d Collect the l10n error/warning message lookup, in web/app.js, in a new helper method Jonas Jenwald 2021-02-10 15:57:58 +01:00
  • 0479deef4e
    XFA -- Add other objects (#12949) calixteman 2021-02-11 03:30:37 -08:00
  • 25b581c2a9 Slightly simplify the parameter handling in initPassiveLoading.onOpenWithURL Jonas Jenwald 2021-02-10 15:56:15 +01:00
  • b375a867eb Use arrow functions in PDFViewerApplication.initPassiveLoading Jonas Jenwald 2021-02-10 14:06:32 +01:00
  • 3787bd41ef
    XFA -- Add localset object (#12948) calixteman 2021-02-10 09:04:43 -08:00
  • 7f7f22037e
    Merge pull request #12978 from Snuffleupagus/rename-es5-to-legacy Brendan Dahl 2021-02-10 08:17:56 -08:00
  • 0068dba009 [api-minor] Rename -es5 to -legacy, to reduce confusion over what's actually supported (issue 12976) Jonas Jenwald 2021-02-09 18:28:48 +01:00
  • 31098c404d
    Use Math.hypot, instead of Math.sqrt with manual squaring (#12973) Jonas Jenwald 2021-02-10 12:28:49 +01:00
  • 3a2c259b57
    Merge pull request #12972 from Snuffleupagus/pr-12354-followup Tim van der Meij 2021-02-10 00:18:02 +01:00
  • e51c349a8d
    Merge pull request #12975 from Snuffleupagus/rm-contextmenu Tim van der Meij 2021-02-10 00:09:27 +01:00
  • 32a4a30f3a Remove the contentmenu usage, from PresentationMode, since it's no longer working Jonas Jenwald 2021-02-09 14:24:55 +01:00
  • 9fa20ad8c5 [GENERIC viewer] Skip the iframe-case when checking if the container div, on BaseViewer-instances, is absolutely positioned (PR 12354 follow-up) Jonas Jenwald 2021-02-09 12:01:07 +01:00
  • 884c65c602
    Merge pull request #12971 from nt1m/bool-attrs Tim van der Meij 2021-02-08 20:14:44 +01:00
  • e525714dea
    Merge pull request #12970 from Snuffleupagus/viewer-error Brendan Dahl 2021-02-08 09:24:27 -08:00
  • 2ca886baee Use DOM hidden property instead of attribute methods Tim Nguyen 2021-02-08 00:21:49 +01:00
  • 27727234ba Split PDFViewerApplication.error into two methods, for PDF document loading/parsing errors vs other errors (PR 11647 follow-up) Jonas Jenwald 2021-02-07 19:53:43 +01:00
  • 3d33313e4e
    Merge pull request #12962 from Snuffleupagus/issue-9462 Tim van der Meij 2021-02-07 13:08:16 +01:00
  • 0296885967
    Merge pull request #12966 from Snuffleupagus/update-packages Tim van der Meij 2021-02-07 12:59:48 +01:00
  • 1d56785b6b Update l10n files Jonas Jenwald 2021-02-07 11:58:31 +01:00
  • 70b62eec82 Update npm packages Jonas Jenwald 2021-02-07 11:55:03 +01:00
  • e6fe8a7d53 Handle errors gracefully, in PartialEvaluator.translateFont, when fetching the font file (issue 9462) Jonas Jenwald 2021-02-06 17:48:26 +01:00
  • 8ccd9eac3d
    Merge pull request #12965 from Snuffleupagus/ObjectLoader-errors Tim van der Meij 2021-02-06 19:38:04 +01:00
  • 6263a21fb5
    Merge pull request #12961 from Snuffleupagus/web-optional-chaining Tim van der Meij 2021-02-06 19:27:15 +01:00
  • d2a21a1171
    Merge pull request #12941 from justinribeiro/resolve-button-aria-expanded Tim van der Meij 2021-02-06 19:16:48 +01:00
  • d3e65f24e3 Request all data, rather than throwing, when encountering general errors in ObjectLoader._walk (issue 9462, PR 3289 follow-up) Jonas Jenwald 2021-02-06 14:04:05 +01:00
  • 374da648dd
    fix(a11y): resolve sidebar, find, toolbar missing aria-expanded and aria-controls state Justin Ribeiro 2021-02-01 14:16:20 -08:00
  • a392082e30
    Merge pull request #12944 from calixteman/xfa_config Brendan Dahl 2021-02-05 15:06:09 -08:00
  • a447d05292
    Merge pull request #11647 from Snuffleupagus/notifyPagesLoaded Brendan Dahl 2021-02-05 14:04:27 -08:00
  • 08c23c12dc [Firefox] Block the "load" event until all pages are loaded, to ensure that printing works (bug 1618553) Jonas Jenwald 2021-02-05 22:00:10 +01:00
  • 69ed0e9230
    Merge pull request #12946 from calixteman/xfa_template Brendan Dahl 2021-02-05 11:21:00 -08:00
  • 9d47e69771 XFA -- Update config object Calixte Denizet 2021-02-02 11:27:52 +01:00
  • 063a072742 Use optional chaining, where possible, in the web/-folder Jonas Jenwald 2021-02-05 17:36:28 +01:00
  • dc19965d78 Slightly re-factor how the BaseViewer/PDFThumbnailViewer handle page labels internally, to make the null default value clearer Jonas Jenwald 2021-02-05 16:24:39 +01:00
  • 094e0b2239
    Merge pull request #12956 from Snuffleupagus/Puppeteer-7 Tim van der Meij 2021-02-04 23:55:50 +01:00
  • fd4e76a7e3 Update Puppeteer to version 7 Jonas Jenwald 2021-02-04 18:03:11 +01:00
  • 652ff57897 XFA -- Add template object - Specifications: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.364.2157&rep=rep1&type=pdf#page=596 Calixte Denizet 2021-02-01 15:12:19 +01:00
  • 27ffbdf7df
    Merge pull request #12952 from Snuffleupagus/issue-12951 Tim van der Meij 2021-02-03 20:52:38 +01:00