pdf.js/web
Jonas Jenwald df931ef685 Move the opening of PDF file attachments into the DownloadManager-implementations
Note how the `PDFAttachmentViewer` handles PDF file attachments specially, by opening them in a new window/tab, rather than forcing them to be downloaded. This is done to improve the overall UX, since browsers in general are able to handle PDF files internally.
However, for file *annotations* we're currently not attempting to do the same thing and are instead just downloading them directly. In order to unify the behaviour, without having to duplicate a lot of code, the opening of PDF file attachments is thus moved into a new `DownloadManager.openOrDownloadData` method.
2021-02-23 13:44:23 +01:00
..
images Add an icon for the "find/highlight the current outlineItem" functionality 2021-01-09 16:09:46 +01:00
.eslintrc Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Correctly align annotation content in horizontal/spread scrolling modes 2021-01-10 18:58:13 +01:00
annotation_layer_builder.js Use DOM hidden property instead of attribute methods 2021-02-08 00:21:49 +01:00
app_options.js Remove the ENABLE_SCRIPTING build-target, since it's not necessary 2020-12-18 22:10:36 +01:00
app.js Move the Metadata parsing to the worker-thread 2021-02-17 13:12:01 +01:00
base_tree_viewer.js Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050) 2021-01-09 16:09:44 +01:00
base_viewer.js Simplify the default value handling of renderInteractiveForms in the viewer components 2021-02-17 10:47:55 +01:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Split PDFViewerApplication.error into two methods, for PDF document loading/parsing errors vs other errors (PR 11647 follow-up) 2021-02-07 22:28:53 +01:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Use DOM hidden property instead of attribute methods 2021-02-08 00:21:49 +01:00
download_manager.js Move the opening of PDF file attachments into the DownloadManager-implementations 2021-02-23 13:44:23 +01:00
firefox_print_service.js [Firefox] Stop logging RenderingCancelledExceptions as errors when printing 2020-10-04 20:25:31 +02:00
firefoxcom.js Move the opening of PDF file attachments into the DownloadManager-implementations 2021-02-23 13:44:23 +01:00
generic_scripting.js Pass in the "sandboxBundleSrc" option when calling DefaultExternalServices.createScripting 2020-12-23 14:05:49 +01:00
genericcom.js Pass in the "sandboxBundleSrc" option when calling DefaultExternalServices.createScripting 2020-12-23 14:05:49 +01:00
genericl10n.js Enable import/extensions of ESlint plugin to enforce all import have a .js file extension. 2020-01-18 10:53:01 +09:00
grab_to_pan.js Remove some code/comments relevant for old (pre-Chromium) versions of Opera 2020-09-08 12:54:51 +02:00
interfaces.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
overlay_manager.js Fix the linting errors, from the Prettier auto-formatting, that ESLint --fix couldn't handle 2019-12-26 12:35:12 +01:00
password_prompt.js Use optional chaining, where possible, in the web/-folder 2021-02-05 17:50:11 +01:00
pdf_attachment_viewer.js Move the opening of PDF file attachments into the DownloadManager-implementations 2021-02-23 13:44:23 +01:00
pdf_cursor_tools.js Remove the useless PresentationModeState.CHANGING-case in PDFCursorTools (PR 12788 follow-up) 2021-02-14 10:39:49 +01:00
pdf_document_properties.js Convert the PDFDocumentProperties.open method to be async 2020-11-21 13:54:36 +01:00
pdf_find_bar.js fix(a11y): resolve sidebar, find, toolbar missing aria-expanded and 2021-02-05 16:08:29 -08:00
pdf_find_controller.js [api-minor] Highlight search results correctly for normalized text (PR 9448) 2021-01-12 18:08:08 +01:00
pdf_find_utils.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
pdf_history.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
pdf_layer_viewer.js Use optional chaining, where possible, in the web/-folder 2021-02-05 17:50:11 +01:00
pdf_link_service.js Use optional chaining, where possible, in the web/-folder 2021-02-05 17:50:11 +01:00
pdf_outline_viewer.js Add support for finding/highlighting the outlineItem, corresponding to the currently visible page, in the sidebar (issue 7557, bug 1253820, bug 1499050) 2021-01-09 16:09:44 +01:00
pdf_page_view.js Simplify the default value handling of renderInteractiveForms in the viewer components 2021-02-17 10:47:55 +01:00
pdf_presentation_mode.js Replace a few new Date().getTime() instances with Date.now() 2021-02-11 23:00:42 +01:00
pdf_print_service.js Remove code-paths only relevant for IE 11/Edge (non-Chromium based) from the web/ folder 2020-09-05 17:18:15 +02:00
pdf_rendering_queue.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
pdf_sidebar_resizer.js Use optional chaining, where possible, in the web/-folder 2021-02-05 17:50:11 +01:00
pdf_sidebar.js Merge pull request #12961 from Snuffleupagus/web-optional-chaining 2021-02-06 19:27:15 +01:00
pdf_single_page_viewer.js Add previous/next-page functionality that takes scroll/spread-modes into account (issue 11946) 2021-01-22 21:38:15 +01:00
pdf_thumbnail_view.js Merge pull request #12618 from Snuffleupagus/thumbnails-render-transform 2020-11-14 16:32:09 +01:00
pdf_thumbnail_viewer.js Slightly re-factor how the BaseViewer/PDFThumbnailViewer handle page labels internally, to make the null default value clearer 2021-02-05 17:50:07 +01:00
pdf_viewer.component.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
pdf_viewer.css Enable the Stylelint shorthand-property-no-redundant-values rule 2021-01-22 14:36:02 +01:00
pdf_viewer.js Add previous/next-page functionality that takes scroll/spread-modes into account (issue 11946) 2021-01-22 21:38:15 +01:00
pdfjs.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
preferences.js Reduce, now unnecessary, asynchronicity in the BasePreferences constructor 2020-11-16 14:19:54 +01:00
secondary_toolbar.js fix(a11y): resolve sidebar, find, toolbar missing aria-expanded and 2021-02-05 16:08:29 -08:00
text_layer_builder.css Enable the Stylelint length-zero-no-unit rule 2021-01-10 14:09:36 +01:00
text_layer_builder.js Use optional chaining, where possible, in the web/-folder 2021-02-05 17:50:11 +01:00
toolbar.js Update the zoom dropdown width calculation to work better in locales with long zoom-strings (PR 11077 follow-up) 2020-08-20 09:57:42 +02:00
ui_utils.js Move the opening of PDF file attachments into the DownloadManager-implementations 2021-02-23 13:44:23 +01:00
view_history.js Add a bit more validation in the ViewHistory constructor 2020-03-21 13:55:06 +01:00
viewer_compatibility.js Remove code-paths only relevant for IE 11/Edge (non-Chromium based) from the web/ folder 2020-09-05 17:18:15 +02:00
viewer-snippet-chrome-extension.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer-snippet-chrome-overlays.html [CRX] Add file chooser as fallback (fixes #9411) 2018-03-21 18:21:46 +01:00
viewer-snippet-firefox-extension.html Stop bundling the ReadableStream polyfill in MOZCENTRAL builds (PR 10470 follow-up) 2019-01-23 20:33:20 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer.css Enable the Stylelint shorthand-property-no-redundant-values rule 2021-01-22 14:36:02 +01:00
viewer.html Stop including the "errorWrapper" HTML code in MOZCENTRAL-builds 2021-02-14 10:39:34 +01:00
viewer.js Stop including the "errorWrapper" HTML code in MOZCENTRAL-builds 2021-02-14 10:39:34 +01:00