Skip to content

Commit

Permalink
Update to latest modern-browser release of PDF.js
Browse files Browse the repository at this point in the history
This is necessary to remove `unsafe-eval` from manifest.json CSP
See mozilla/pdf.js#11036
  • Loading branch information
diegodlh committed Jun 30, 2020
1 parent ab81a06 commit cf5ccb1
Show file tree
Hide file tree
Showing 91 changed files with 37,361 additions and 60,777 deletions.
27,256 changes: 7,841 additions & 19,415 deletions src/vendor/pdfjs/build/pdf.js

Large diffs are not rendered by default.

52,077 changes: 20,719 additions & 31,358 deletions src/vendor/pdfjs/build/pdf.worker.js

Large diffs are not rendered by default.

317 changes: 163 additions & 154 deletions src/vendor/pdfjs/web/debugger.js

Large diffs are not rendered by default.

Binary file removed src/vendor/pdfjs/web/images/findbarButton-next-rtl.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/vendor/pdfjs/web/images/treeitem-collapsed-rtl.png
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/az/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Kiçik şəkillər
findbar.title=Sənəddə Tap
findbar_label=Tap

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Səhifə {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/be/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Мініяцюры
findbar.title=Пошук у дакуменце
findbar_label=Знайсці

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Старонка {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/bn/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ thumbs_label=থাম্বনেইল সমূহ
findbar.title=নথির মধ্যে খুঁজুন
findbar_label=খুঁজুন

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=পাতা {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/br/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Melvennoù
findbar.title=Klask e-barzh an teuliad
findbar_label=Klask

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Pajenn {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
10 changes: 6 additions & 4 deletions src/vendor/pdfjs/web/locale/ca/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ of_pages=de {{pagesCount}}
# respectively a number representing the total number of pages in the document.
page_of_pages=({{pageNumber}} de {{pagesCount}})

zoom_out.title=Allunya
zoom_out_label=Allunya
zoom_in.title=Apropa
zoom_in_label=Apropa
zoom_out.title=Redueix
zoom_out_label=Redueix
zoom_in.title=Amplia
zoom_in_label=Amplia
zoom.title=Escala
presentation_mode.title=Canvia al mode de presentació
presentation_mode_label=Mode de presentació
Expand Down Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniatures
findbar.title=Cerca al document
findbar_label=Cerca

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Pàgina {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
8 changes: 5 additions & 3 deletions src/vendor/pdfjs/web/locale/cak/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Main toolbar buttons (tooltips and alt text for images)
previous.title=Jun kan ruxaq
previous_label=Chuwäch
previous_label=Jun kan
next.title=Jun chik ruxaq
next_label=Jun chik

Expand Down Expand Up @@ -111,7 +111,7 @@ document_properties_page_size_orientation_landscape=rukotz'olem
document_properties_page_size_name_a3=A3
document_properties_page_size_name_a4=A4
document_properties_page_size_name_letter=Loman wuj
document_properties_page_size_name_legal=Nïm wuj
document_properties_page_size_name_legal=Taqanel tzijol
# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement and orientation, of the (current) page.
Expand Down Expand Up @@ -148,6 +148,8 @@ thumbs_label=Koköj
findbar.title=Tikanöx chupam ri wuj
findbar_label=Tikanöx

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Ruxaq {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down Expand Up @@ -214,7 +216,7 @@ rendering_error=Xk'ulwachitäj jun sachoj toq ninuk'wachij ri ruxaq.
page_scale_width=Ruwa ruxaq
page_scale_fit=Tinuk' ruxaq
page_scale_auto=Yonil chi nimilem
page_scale_actual=Runimilem
page_scale_actual=Runimilem Wakami
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
# numerical scale value.
page_scale_percent={{scale}}%
Expand Down
111 changes: 111 additions & 0 deletions src/vendor/pdfjs/web/locale/ckb/viewer.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Copyright 2012 Mozilla Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Main toolbar buttons (tooltips and alt text for images)
next.title=پەڕەی دوواتر
next_label=دوواتر

# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
page.title=پەرە
# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
# representing the total number of pages in the document.
# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
# will be replaced by a number representing the currently visible page,
# respectively a number representing the total number of pages in the document.

open_file.title=پەڕگە بکەرەوە
open_file_label=کردنەوە
print.title=چاپکردن
download.title=داگرتن

# Secondary toolbar and context menu
tools.title=ئامرازەکان
first_page.title=برۆ بۆ یەکەم پەڕە




# Document properties dialog box
document_properties_file_name=ناوی پەڕگە:
document_properties_file_size=قەبارەی پەڕگە:
# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
# will be replaced by the PDF file size in kilobytes, respectively in bytes.
# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
# will be replaced by the PDF file size in megabytes, respectively in bytes.
document_properties_title=سەردێڕ:
document_properties_author=نووسەر
document_properties_keywords=کلیلەوشە:
# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
# will be replaced by the creation/modification date, and time, of the PDF file.
# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement and orientation, of the (current) page.
# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
# the document; usually called "Fast Web View" in English locales of Adobe software.
document_properties_close=داخستن

# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
# a numerical per cent value.
print_progress_close=پاشگەزبوونەوە

# Tooltips and alt text for side panel toolbar buttons
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
findbar_label=دۆزینەوە

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
# number.

# Find panel button title and messages
find_input.title=دۆزینەوە
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.

# Error panel labels
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
# replaced by the PDF.JS version and build ID.
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
# english string describing the error.
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
# trace.
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number

# Predefined zoom values
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
# numerical scale value.

# Loading indicator messages

# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
# replaced by the modification date, and time, of the annotation.

# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
# "{{type}}" will be replaced with an annotation type from a list defined in
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
# Some common types are e.g.: "Check", "Text", "Comment", "Note"

4 changes: 3 additions & 1 deletion src/vendor/pdfjs/web/locale/cs/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Náhledy
findbar.title=Najde v dokumentu
findbar_label=Najít

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Strana {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down Expand Up @@ -217,7 +219,7 @@ page_scale_auto=Automatická velikost
page_scale_actual=Skutečná velikost
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
# numerical scale value.
page_scale_percent={{scale}}%
page_scale_percent={{scale}} %

# Loading indicator messages
loading_error_indicator=Chyba
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/cy/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Lluniau Bach
findbar.title=Canfod yn y Ddogfen
findbar_label=Canfod

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Tudalen {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/da/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniaturer
findbar.title=Find i dokument
findbar_label=Find

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Side {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
6 changes: 4 additions & 2 deletions src/vendor/pdfjs/web/locale/de/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ document_properties_close=Schließen
print_progress_message=Dokument wird für Drucken vorbereitet…
# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
# a numerical per cent value.
print_progress_percent={{progress}}%
print_progress_percent={{progress}} %
print_progress_close=Abbrechen

# Tooltips and alt text for side panel toolbar buttons
Expand All @@ -148,6 +148,8 @@ thumbs_label=Miniaturansichten
findbar.title=Dokument durchsuchen
findbar_label=Suchen

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Seite {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down Expand Up @@ -217,7 +219,7 @@ page_scale_auto=Automatischer Zoom
page_scale_actual=Originalgröße
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
# numerical scale value.
page_scale_percent={{scale}}%
page_scale_percent={{scale}} %

# Loading indicator messages
loading_error_indicator=Fehler
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/dsb/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniatury
findbar.title=W dokumenśe pytaś
findbar_label=Pytaś

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Bok {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/el/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Μικρογραφίες
findbar.title=Εύρεση στο έγγραφο
findbar_label=Εύρεση

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Σελίδα {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/en-CA/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Thumbnails
findbar.title=Find in Document
findbar_label=Find

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Page {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/en-GB/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Thumbnails
findbar.title=Find in Document
findbar_label=Find

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Page {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
3 changes: 2 additions & 1 deletion src/vendor/pdfjs/web/locale/en-US/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Thumbnails
findbar.title=Find in Document
findbar_label=Find

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Page {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down Expand Up @@ -243,4 +245,3 @@ password_cancel=Cancel
printing_not_supported=Warning: Printing is not fully supported by this browser.
printing_not_ready=Warning: The PDF is not fully loaded for printing.
web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
document_colors_not_allowed=PDF documents are not allowed to use their own colors: “Allow pages to choose their own colors” is deactivated in the browser.
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/eo/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniaturoj
findbar.title=Serĉi en dokumento
findbar_label=Serĉi

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Paĝo {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/es-AR/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniaturas
findbar.title=Buscar en documento
findbar_label=Buscar

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Página {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/es-CL/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniaturas
findbar.title=Buscar en el documento
findbar_label=Buscar

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Página {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/es-ES/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniaturas
findbar.title=Buscar en el documento
findbar_label=Buscar

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Página {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/es-MX/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Miniaturas
findbar.title=Buscar en el documento
findbar_label=Buscar

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Página {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
2 changes: 2 additions & 0 deletions src/vendor/pdfjs/web/locale/eu/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Koadro txikiak
findbar.title=Bilatu dokumentuan
findbar_label=Bilatu

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas={{page}}. orria
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand Down
4 changes: 3 additions & 1 deletion src/vendor/pdfjs/web/locale/fi/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ thumbs_label=Pienoiskuvat
findbar.title=Etsi dokumentista
findbar_label=Etsi

# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=Sivu {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
Expand All @@ -167,7 +169,7 @@ find_highlight=Korosta kaikki
find_match_case_label=Huomioi kirjainkoko
find_entire_word_label=Kokonaiset sanat
find_reached_top=Päästiin dokumentin alkuun, jatketaan lopusta
find_reached_bottom=Päästiin sivun loppuun, jatketaan alusta
find_reached_bottom=Päästiin dokumentin loppuun, jatketaan alusta
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
Expand Down
Loading

0 comments on commit cf5ccb1

Please sign in to comment.