1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/web
Tim van der Meij 0351c7eff4 Move the getFileName helper function to the core
This is required to be able to use it in the annotation display code,
where we now apply it to sanitize the filename of the FileAttachment
annotation. The PDF file from https://bugzilla.mozilla.org/show_bug.cgi?id=1230933 has shown that some PDF generators include the path of the file rather than the filename, which causes filenames with weird initial characters. PDF viewers handle this differently (for example Foxit Reader just replaces forward slashes with spaces), but we think it's better to only show the filename as intended.

Additionally we add unit tests for the `getFilenameFromUrl` helper
function.
2016-02-23 22:49:53 +01:00
..
images Add mirrored triangle (TOC item icon) 2015-09-06 15:35:58 +02:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
annotation_layer_builder.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +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 Allow local PDF files to be viewed in local frames 2016-02-10 14:52:54 +01:00
compatibility.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
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 Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
default_preferences.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
download_manager.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
firefoxcom.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
grab_to_pan.js Handtool: Remove focus from previous node on click 2014-09-03 16:31:47 +02:00
hand_tool.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
interfaces.js Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/ 2015-12-18 19:55:54 +01:00
mozPrintCallback_polyfill.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
overlay_manager.js Remove unused variables 2015-12-16 23:52:16 +01:00
password_prompt.js Set type="password" for the PasswordPrompt input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898) 2016-01-20 13:54:19 +01:00
pdf_attachment_view.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
pdf_document_properties.js Remove unused variables 2015-12-16 23:52:16 +01:00
pdf_find_bar.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_find_controller.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
pdf_history.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_link_service.js [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in PDFLinkService_getDestinationHash 2015-12-09 10:07:39 +01:00
pdf_outline_view.js [api-minor] Add support for URLs in the document outline 2016-01-19 21:36:27 +01:00
pdf_page_view.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
pdf_presentation_mode.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_rendering_queue.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_thumbnail_view.js Merge pull request #6551 from yurydelendik/subaa 2015-11-17 19:45:32 -06:00
pdf_thumbnail_viewer.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
pdf_viewer.component.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
pdf_viewer.css Remove a superfluous "s" in AnnotationsLayerBuilder from files in web/ 2015-12-18 19:55:54 +01:00
pdf_viewer.js Implement support for FileAttachment annotations 2016-02-23 22:49:53 +01:00
preferences.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
secondary_toolbar.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
text_layer_builder.css Use default line height for the text layer 2015-12-02 23:00:12 +01:00
text_layer_builder.js Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
ui_utils.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00
view_history.js Remove unused variables 2015-12-16 23:52:16 +01:00
viewer-snippet-chrome-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-chrome-overlays.html Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
viewer-snippet-firefox-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-minified.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-mozPrintCallback-polyfill.html Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox 2015-03-07 00:16:55 +01:00
viewer-snippet.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer.css Better "text" testing. 2015-11-19 11:03:52 -06:00
viewer.html Set type="password" for the PasswordPrompt input dynamically, to prevent unnecessary warnings in Firefox for http:// documents (issue 6898) 2016-01-20 13:54:19 +01:00
viewer.js Move the getFileName helper function to the core 2016-02-23 22:49:53 +01:00