Skip to content

Merge mozilla master, add docker-compose.yml and update README #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1,557 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1557 commits
Select commit Hold shift + click to select a range
50517b8
Remove duplicated --toolbar-height definition in the css
calixteman Sep 24, 2024
529906c
Merge pull request #18784 from calixteman/rm_useless_css
calixteman Sep 24, 2024
fc1564f
Correctly compute the font size when printing a text field with an au…
calixteman Sep 25, 2024
e23159c
Increase the size of the toolbar depending on the uidensity (bug 1171…
calixteman Sep 24, 2024
5c407a2
Add Calixte to the list of authors
sylvestre Sep 25, 2024
4575810
Merge pull request #18790 from calixteman/bug1917734
calixteman Sep 25, 2024
4ab381f
Merge pull request #18786 from calixteman/update_toolbar_height
calixteman Sep 25, 2024
9735a84
Merge pull request #18791 from sylvestre/patch-1
marco-c Sep 25, 2024
135ee03
Remove the unused `splitToolbarButton` CSS class (PR 18385 follow-up)
Snuffleupagus Sep 26, 2024
f765b5a
Unify separate `#toolbarContainer`-blocks in the CSS (PR 18385 follow…
Snuffleupagus Sep 26, 2024
17008dd
Merge pull request #18795 from Snuffleupagus/rm-splitToolbarButton
Snuffleupagus Sep 26, 2024
a128378
Merge pull request #18796 from Snuffleupagus/unify-toolbarContainer
Snuffleupagus Sep 26, 2024
a989244
Slightly re-factor the `transportFactory` initialization in `getDocum…
Snuffleupagus Sep 24, 2024
6d88f9f
Fix the rendering of tiling pattern when the steps are lower than the…
calixteman Sep 26, 2024
2ff8035
Merge pull request #18798 from calixteman/pattern_negative_bbox
calixteman Sep 26, 2024
3902a14
Merge pull request #18785 from Snuffleupagus/transportFactory-init
Snuffleupagus Sep 26, 2024
fa2d7fc
Remove `trackTransform` arguments from `CachedCanvases.getCanvas`-cal…
Snuffleupagus Sep 26, 2024
6daaa2f
Merge pull request #18799 from Snuffleupagus/rm-more-getCanvas-trackT…
Snuffleupagus Sep 26, 2024
7db9941
Add basic support for non-embedded GillSansMT fonts (issue 18801)
Snuffleupagus Sep 26, 2024
7063be9
Merge pull request #18802 from Snuffleupagus/issue-18801
Snuffleupagus Sep 26, 2024
ec01af6
[Editor] Avoid to have a selected stamp annotation on top of the seco…
calixteman Sep 25, 2024
0382dd0
[Editor] When deleting an annotation with popup, then delete the popu…
calixteman Sep 26, 2024
c46ac3f
Merge pull request #18800 from calixteman/popup_deletion
calixteman Sep 26, 2024
642b9a5
Merge pull request #18793 from calixteman/bug1911980
calixteman Sep 26, 2024
b1df164
Ensure that the CursorTools-buttons are disabled e.g. during editing …
Snuffleupagus Sep 28, 2024
a7e1bf6
Merge pull request #18812 from Snuffleupagus/pr-15522-followup
Snuffleupagus Sep 28, 2024
1267e28
[api-minor] Update the minimum supported Google Chrome version to 103
Snuffleupagus Sep 29, 2024
783facb
Merge pull request #18822 from Snuffleupagus/Chrome-103
Snuffleupagus Oct 1, 2024
655ef12
Re-factor how `PDFLayerViewer` decides if the UI needs to updated on …
Snuffleupagus Oct 1, 2024
35a9a6a
Merge pull request #18829 from Snuffleupagus/PDFLayerViewer-update-UI
Snuffleupagus Oct 1, 2024
392c17e
Make the secondary menu button usable with the keyboard when NVDA is …
calixteman Oct 1, 2024
f2a132f
Use the "correct" toolbar container element in `getViewerConfiguratio…
Snuffleupagus Oct 1, 2024
2481a4b
Write the display flags in F entry when saving an annotation (issue 1…
calixteman Sep 30, 2024
3cdc325
Merge pull request #18830 from calixteman/menu_nvda
calixteman Oct 1, 2024
7c9d177
Update the `CaretBrowsingMode` toolbar-height if the `toolbarDensity`…
Snuffleupagus Oct 1, 2024
07e8afb
Always set `AppOptions.eventBus`, regardless of build, to make local …
Snuffleupagus Oct 1, 2024
0308b80
Merge pull request #18824 from calixteman/issue18072
calixteman Oct 2, 2024
e25832c
Merge pull request #18831 from Snuffleupagus/toolbar-container
Snuffleupagus Oct 2, 2024
c9050be
[Editor] Add the possibility to save an updated stamp annotation (bug…
calixteman Sep 26, 2024
567df42
Merge pull request #18805 from calixteman/update_stamp
calixteman Oct 2, 2024
0ce6f8b
[GV] Increase the height (48px) of the toolbar in order to fit the a1…
calixteman Oct 2, 2024
4fb3adf
Merge pull request #18837 from calixteman/bug1838602
calixteman Oct 3, 2024
b7ae92c
Remove the `PDFViewer.annotationEditorMode` setter event listeners wi…
Snuffleupagus Oct 3, 2024
7bd3e5c
[Editor] Make the editor deserialization async
calixteman Oct 3, 2024
85586c5
Merge pull request #18843 from calixteman/editor_async_deser
calixteman Oct 3, 2024
ebbd019
Merge pull request #18842 from Snuffleupagus/annotationEditorMode-Abo…
Snuffleupagus Oct 3, 2024
8410252
[Editor] Make stamp annotations editable (bug 1921291)
calixteman Oct 2, 2024
58d3147
Fluent: remove NUMBER() function from variant selector
flodolo Oct 4, 2024
e9c81a6
Merge pull request #18834 from calixteman/edit_stamp1
calixteman Oct 4, 2024
e5b6144
Merge pull request #18846 from flodolo/undo_number
calixteman Oct 4, 2024
b6e60d0
[Editor] Avoid an exception when undoing the deletion of a pre-existi…
calixteman Oct 4, 2024
c681ff2
Change how we handle l10n-args for dates in the DocumentProperties di…
Snuffleupagus Oct 4, 2024
7c1883a
Merge pull request #18851 from calixteman/issue18849
calixteman Oct 4, 2024
3103dea
Fix missing annotation parent in using the one from the Fields entry
calixteman Oct 3, 2024
ac563b9
Merge pull request #18845 from calixteman/issue15096
calixteman Oct 4, 2024
6aef332
Merge pull request #18852 from Snuffleupagus/bug-1922618
Snuffleupagus Oct 4, 2024
64ca2ee
Add more authors
sylvestre Oct 4, 2024
9e69735
Merge pull request #18854 from sylvestre/patch-1
timvandermeij Oct 5, 2024
3194f3d
Keep the empty lines in the text fields
calixteman Oct 4, 2024
5a25c47
Merge pull request #18853 from calixteman/issue18036
calixteman Oct 5, 2024
a45e4a3
Use Calibri and Lucida Console, when it's possible, in place of sans-…
calixteman Oct 3, 2024
78bf528
Update dependencies to the most recent versions
timvandermeij Oct 5, 2024
dcc46ce
Upgrade `eslint-plugin-unicorn` to version 56.0.0
timvandermeij Oct 5, 2024
e6a413d
Update translations to the most recent versions
timvandermeij Oct 5, 2024
7eee86e
Merge pull request #18855 from timvandermeij/updates
timvandermeij Oct 6, 2024
8b73b82
Merge pull request #18844 from calixteman/bug1922063
timvandermeij Oct 6, 2024
32caffb
Bump the stable version in `pdfjs.config`
timvandermeij Oct 6, 2024
81cf42d
Merge pull request #18858 from timvandermeij/bump
timvandermeij Oct 6, 2024
1d4376c
Fix typing logic in the scripting integration tests
timvandermeij Oct 6, 2024
e3b5ed2
Improve the promise-caching in the `PDFDocument.fieldObjects` getter
Snuffleupagus Oct 8, 2024
662bd02
Reduce duplication in the `PDFDocument.calculationOrderIds` getter
Snuffleupagus Oct 8, 2024
31b0a49
Remove the temporary "visibilitychange" listener, in `PDFViewer`, wit…
Snuffleupagus Oct 8, 2024
b15dd55
Merge pull request #18862 from timvandermeij/integration-scripting-de…
timvandermeij Oct 8, 2024
1269c6a
Merge pull request #18871 from Snuffleupagus/PDFDocument-more-ensure
timvandermeij Oct 8, 2024
233ac17
Merge pull request #18873 from Snuffleupagus/visibilitychange-AbortSi…
timvandermeij Oct 8, 2024
14537d1
[Editor] Remove `ColorPicker` event listeners with `AbortSignal.any()…
Snuffleupagus Oct 9, 2024
f2f56b6
Avoid exceptions in the console with ill-formed flate streams
calixteman Oct 10, 2024
fa7df01
Don't add the grey outline when hovering a selected highlight
calixteman Oct 10, 2024
5f522d1
Merge pull request #18878 from calixteman/issue18876
calixteman Oct 10, 2024
a77bf87
Merge pull request #18879 from calixteman/highlight_hover
calixteman Oct 10, 2024
0543e9e
Merge pull request #18874 from Snuffleupagus/ColorPicker-AbortSignal-any
timvandermeij Oct 10, 2024
edc2cd1
Fix failing integration test on Windows with Chrome
calixteman Oct 6, 2024
c6d01ca
Merge pull request #18860 from calixteman/issue18775
calixteman Oct 10, 2024
6dd7726
Add an option to gulp makeref/browsertest to only run tests with spec…
calixteman Oct 2, 2024
6f307e9
Remove event listeners with `AbortSignal` in the `AltTextManager` class
Snuffleupagus Oct 11, 2024
e97e9c9
Handle null parentElement for selection anchor
hubgit Oct 11, 2024
8afc542
Move the regular expression caching into the `PDFDateString` class
Snuffleupagus Oct 11, 2024
4a0c508
Merge pull request #18833 from calixteman/gulp_testfilter
calixteman Oct 11, 2024
02b33b9
Merge pull request #18885 from Snuffleupagus/PDFDateString-regex
timvandermeij Oct 11, 2024
c3af342
Merge pull request #18881 from Snuffleupagus/AltTextManager-rm-events…
timvandermeij Oct 11, 2024
7c43cb2
Don't add attribute 'aria-haspopup' when no popup is rendered for an …
calixteman Oct 12, 2024
4dea773
Clamp the hival parameter of Indexed color space to the range [0; 255]
calixteman Oct 12, 2024
e28dd8e
Merge pull request #18889 from calixteman/rm_useless_aria_has_popup
calixteman Oct 12, 2024
1c0c070
Merge pull request #18890 from calixteman/clamp_indexedcs_hival
calixteman Oct 12, 2024
4ae6132
Remove unnecessary options from `removeEventListener` in the `web/app…
Snuffleupagus Oct 13, 2024
e7ab8cd
Fallback on gray colorspace when there are no colorspace and no name …
calixteman Oct 13, 2024
e1f9fa4
Merge pull request #18895 from calixteman/issue18894
calixteman Oct 13, 2024
4d7f29d
Create fewer Objects in `PDFViewerApplication.bindEvents`
Snuffleupagus Oct 14, 2024
8b7b39f
Some jpx images can have a mask
calixteman Oct 14, 2024
c10d093
Merge pull request #18899 from calixteman/issue18896
calixteman Oct 14, 2024
fb3c7b6
Add the `pdkids` PDF document to the repository
Snuffleupagus Oct 15, 2024
441efe4
Optional Content (OC) radiobutton (RB) groups implemented. Resolves #…
agrahn Oct 14, 2024
424f81c
Merge pull request #18825 from agrahn/rbgroups
Snuffleupagus Oct 15, 2024
805f962
Reduce duplication when collecting optional content groups
Snuffleupagus Oct 15, 2024
54606e9
Merge pull request #18893 from Snuffleupagus/PDFViewerApplication-rm-…
timvandermeij Oct 15, 2024
e8149b3
Merge pull request #18898 from Snuffleupagus/PDFViewerApplication-bin…
timvandermeij Oct 15, 2024
ec79316
Merge pull request #18905 from Snuffleupagus/optionalContentConfig-de…
timvandermeij Oct 15, 2024
96bced7
Merge pull request #18884 from hubgit/patch-1
timvandermeij Oct 15, 2024
689ffda
Merge pull request #18902 from Snuffleupagus/pdkids-rm-linked-test
Snuffleupagus Oct 15, 2024
788eabc
Re-factor the `MessageHandler`-class event handler function
Snuffleupagus Oct 12, 2024
86d1272
When changing a property on a radio button then change it for the sib…
calixteman Oct 17, 2024
762667b
Merge pull request #18916 from calixteman/bug1922766
calixteman Oct 17, 2024
c88d3a3
Merge pull request #18888 from Snuffleupagus/MessageHandler-AbortSignal
Snuffleupagus Oct 18, 2024
c3bbeb5
Remove event listeners with `AbortSignal` in the `GrabToPan` class
Snuffleupagus Oct 19, 2024
025c087
Merge pull request #18919 from Snuffleupagus/GrabToPan-AbortSignal
timvandermeij Oct 19, 2024
6ae13fa
[api-minor] Update the `canvas` package to version 3
Snuffleupagus Oct 17, 2024
54e00b0
Catch errors when invoking `applyPath2DToCanvasRenderingContext`
Snuffleupagus Oct 19, 2024
2a4630f
Merge pull request #18922 from Snuffleupagus/node-canvas-3
Snuffleupagus Oct 20, 2024
4165910
Bump library version to `4.8`
Snuffleupagus Oct 20, 2024
521f5b8
Merge pull request #18924 from Snuffleupagus/version-4.8
Snuffleupagus Oct 20, 2024
6604adb
Run CI tests in Node.js version 23
Snuffleupagus Oct 20, 2024
df77401
Merge pull request #18925 from Snuffleupagus/ci-test-Node-23
timvandermeij Oct 20, 2024
760dd24
Remove the `eslint-plugin-{fetch-options,html}` dependencies
timvandermeij Oct 20, 2024
6def1c8
Remove the `eslint-config-prettier` dependency
timvandermeij Oct 20, 2024
29b2f26
Merge pull request #18927 from timvandermeij/eslint-plugin-cleanup
timvandermeij Oct 20, 2024
b465139
Update dependencies to the most recent versions
timvandermeij Oct 19, 2024
ccfb8a2
Update translations to the most recent versions
timvandermeij Oct 19, 2024
f9659f4
Merge pull request #18921 from timvandermeij/updates
timvandermeij Oct 20, 2024
2ef3fd2
Simplify localization of the "default-content" in FreeText editors
Snuffleupagus Oct 19, 2024
347f155
Replace `eslint-plugin-sort-exports` by `eslint-plugin-perfectionist`
timvandermeij Oct 20, 2024
9c6f85f
Merge pull request #18920 from Snuffleupagus/FreeText-l10n-default-co…
Snuffleupagus Oct 20, 2024
b94ab46
Merge pull request #18929 from timvandermeij/eslint-perfectionist
timvandermeij Oct 20, 2024
24b8393
Fix the "Text selection using mouse doesn't jump when hovering on an …
timvandermeij Oct 19, 2024
17419de
Merge pull request #18923 from timvandermeij/integration-test-text-layer
timvandermeij Oct 20, 2024
65b38f2
Remove `mask-image` duplication for the print/download buttons
Snuffleupagus Oct 20, 2024
d37e4b0
Merge pull request #18930 from Snuffleupagus/rm-duplicate-print-downl…
Snuffleupagus Oct 21, 2024
df69606
Change the `BaseCMapReaderFactory` fetch-helper to return a `Uint8Array`
Snuffleupagus Oct 20, 2024
6c3336f
Re-factor the `DefaultFileReaderFactory` unit-test helper
Snuffleupagus Oct 21, 2024
a809461
Try to discourage "unrelated" information under `Attach (recommended)…
Snuffleupagus Oct 22, 2024
63b3411
Fallback to a standard font if a font-file entry doesn't contain a St…
Snuffleupagus Oct 22, 2024
236c8d8
Re-factor how we handle missing, corrupt, or empty font-file entries
Snuffleupagus Oct 22, 2024
49c3dc9
Merge pull request #18942 from Snuffleupagus/issue-18941
Snuffleupagus Oct 22, 2024
54a77d2
Merge pull request #18940 from Snuffleupagus/bug-report-PDF-placeholder
timvandermeij Oct 22, 2024
1e07b87
Merge pull request #18933 from Snuffleupagus/base-factory-fetchData
timvandermeij Oct 22, 2024
69612a0
Disable some tools
ombr Dec 18, 2023
f24ace0
test publish website to aws workflow
HashirRajah Dec 19, 2023
2924553
changed cp to sync
HashirRajah Dec 19, 2023
404dac0
added steps in deploy job
HashirRajah Dec 20, 2023
0e66383
testing new path due to build fail
HashirRajah Dec 20, 2023
643e79b
test commit
HashirRajah Dec 20, 2023
4a7f82e
test commit 2
HashirRajah Dec 20, 2023
4220163
test commit 3
HashirRajah Dec 20, 2023
200f61a
test commit 4
HashirRajah Dec 20, 2023
31c03b5
test commit 5
HashirRajah Dec 20, 2023
ed30c75
test commit 6
HashirRajah Dec 20, 2023
6eaa0d6
changed configure-aws-credentials from v4 to v1
HashirRajah Dec 20, 2023
5a9968e
test commit 7
HashirRajah Dec 20, 2023
7f7d7e6
test commit 8
HashirRajah Dec 20, 2023
c6de4b5
test commit 9
HashirRajah Dec 20, 2023
6e514c7
test commit 10
HashirRajah Dec 20, 2023
968e686
test commit 11
HashirRajah Dec 20, 2023
2aed801
test commit 12
HashirRajah Dec 20, 2023
18bf883
test commit 13
HashirRajah Dec 20, 2023
7015497
test commit 14
HashirRajah Dec 20, 2023
47159d8
test commit 15
HashirRajah Dec 20, 2023
787e642
test commit 16
HashirRajah Dec 20, 2023
83b0774
test commit 17
HashirRajah Dec 20, 2023
ed1783c
test commit 18
HashirRajah Dec 20, 2023
366c7a8
test commit 19
HashirRajah Dec 20, 2023
572d2e1
test commit 20
HashirRajah Dec 20, 2023
a576417
test making folder public
HashirRajah Dec 20, 2023
a148e77
test commit 21
HashirRajah Dec 20, 2023
013f52a
test commit 22
HashirRajah Dec 20, 2023
b4526ff
workflow completed
HashirRajah Dec 20, 2023
6a486d6
Empty-Commit
zfir Dec 20, 2023
7655309
added steps for PR comment and environment url
HashirRajah Dec 21, 2023
2d2995d
added permissions to try solving comment issue
HashirRajah Dec 21, 2023
6528913
corrected comment url
HashirRajah Dec 21, 2023
82b8cb2
added condition for environment
HashirRajah Dec 21, 2023
3bb412e
changed event for which workflow will run
HashirRajah Dec 21, 2023
93c42cd
test commit number
HashirRajah Dec 21, 2023
b758a71
test commit number
HashirRajah Dec 21, 2023
2739e63
Fix Lint
HashirRajah Dec 21, 2023
121155c
Fix Lint
HashirRajah Dec 21, 2023
b410c22
added new secrets
HashirRajah Dec 21, 2023
5440616
added new variables
HashirRajah Dec 21, 2023
e7cab34
added new variables
HashirRajah Dec 21, 2023
178969b
corrected variable value for bucket name
HashirRajah Dec 21, 2023
22acb1c
Revert "Merge branch 'mozilla:master' into master"
HashirRajah Dec 22, 2023
f843944
Revert "Revert "Merge branch 'mozilla:master' into master""
HashirRajah Dec 22, 2023
21f12f9
Update README
atishdhu Oct 1, 2024
b6c4f0b
Use ImageDecoder in order to decode jpeg images (bug 1901223)
calixteman Oct 16, 2024
1ad0977
Merge pull request #18910 from calixteman/image_decoder1
calixteman Oct 23, 2024
da3e1a8
Add dockerfile and docker-compose
atishdhu Oct 23, 2024
c0c5272
Add a comment in l10n file for the non-standard attribute default-con…
calixteman Oct 23, 2024
bde36f2
Merge pull request #18947 from calixteman/add_comment_ftl
calixteman Oct 23, 2024
f2e1dff
Add instructions for docker in README
atishdhu Oct 23, 2024
025dbde
Disable some tools
ombr Dec 18, 2023
97dbcc1
test publish website to aws workflow
HashirRajah Dec 19, 2023
ef62646
changed cp to sync
HashirRajah Dec 19, 2023
a4b3805
added steps in deploy job
HashirRajah Dec 20, 2023
2a06376
testing new path due to build fail
HashirRajah Dec 20, 2023
59455ea
test commit
HashirRajah Dec 20, 2023
015e7cc
test commit 2
HashirRajah Dec 20, 2023
f806273
test commit 3
HashirRajah Dec 20, 2023
e202440
test commit 4
HashirRajah Dec 20, 2023
d6f1c73
test commit 5
HashirRajah Dec 20, 2023
7233778
test commit 6
HashirRajah Dec 20, 2023
b792302
changed configure-aws-credentials from v4 to v1
HashirRajah Dec 20, 2023
1fc23ac
test commit 7
HashirRajah Dec 20, 2023
b764e46
test commit 8
HashirRajah Dec 20, 2023
3a2e9a7
test commit 9
HashirRajah Dec 20, 2023
85b78f0
test commit 10
HashirRajah Dec 20, 2023
770159b
test commit 11
HashirRajah Dec 20, 2023
6bf730d
test commit 12
HashirRajah Dec 20, 2023
9357ec7
test commit 13
HashirRajah Dec 20, 2023
07576ca
test commit 14
HashirRajah Dec 20, 2023
4fd4bcb
test commit 15
HashirRajah Dec 20, 2023
1a6f06a
test commit 16
HashirRajah Dec 20, 2023
6792d0e
test commit 17
HashirRajah Dec 20, 2023
18bda23
test commit 18
HashirRajah Dec 20, 2023
a445a65
test commit 19
HashirRajah Dec 20, 2023
dcd7a1b
test commit 20
HashirRajah Dec 20, 2023
bf2a3d8
test making folder public
HashirRajah Dec 20, 2023
ec7cd61
test commit 21
HashirRajah Dec 20, 2023
e01c5f7
test commit 22
HashirRajah Dec 20, 2023
7f8f05f
workflow completed
HashirRajah Dec 20, 2023
9b570db
Empty-Commit
zfir Dec 20, 2023
f0745b9
added steps for PR comment and environment url
HashirRajah Dec 21, 2023
2eb1bff
added permissions to try solving comment issue
HashirRajah Dec 21, 2023
b34b7b9
corrected comment url
HashirRajah Dec 21, 2023
7972d17
added condition for environment
HashirRajah Dec 21, 2023
8f5817f
changed event for which workflow will run
HashirRajah Dec 21, 2023
fbbbaff
test commit number
HashirRajah Dec 21, 2023
08cd3b5
test commit number
HashirRajah Dec 21, 2023
0a52490
Fix Lint
HashirRajah Dec 21, 2023
b45810a
Fix Lint
HashirRajah Dec 21, 2023
ead3ee6
added new secrets
HashirRajah Dec 21, 2023
af19828
added new variables
HashirRajah Dec 21, 2023
af7fc46
added new variables
HashirRajah Dec 21, 2023
e1ff7df
corrected variable value for bucket name
HashirRajah Dec 21, 2023
b3eccb8
Revert "Merge branch 'mozilla:master' into master"
HashirRajah Dec 22, 2023
42a9ebc
Revert "Revert "Merge branch 'mozilla:master' into master""
HashirRajah Dec 22, 2023
eeedf4e
Update README
atishdhu Oct 1, 2024
23dfb95
Add dockerfile and docker-compose
atishdhu Oct 23, 2024
55eb178
Add instructions for docker in README
atishdhu Oct 23, 2024
c1c5da2
Update README
atishdhu Oct 24, 2024
84bf6e1
Change storage to us-east-1 in ci config
atishdhu Oct 24, 2024
7ddb2b8
Fix merge conflicts
atishdhu Oct 24, 2024
747c553
Merge branch 'master' into docker-pdfjs
atishdhu Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ docs/
node_modules/
external/bcmaps/
external/builder/fixtures/
external/builder/fixtures_esprima/
external/builder/fixtures_babel/
external/quickjs/
external/openjpeg/
test/tmp/
test/pdfs/
web/locale/
*~/
18 changes: 9 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
"plugins": [
"import",
"json",
"mozilla",
"no-unsanitized",
"sort-exports",
"perfectionist",
"unicorn",
],

Expand Down Expand Up @@ -44,13 +43,10 @@
"import/no-unresolved": ["error", {
"ignore": ["display", "pdfjs", "pdfjs-lib", "pdfjs-web", "web", "fluent-bundle", "fluent-dom"],
}],
"mozilla/avoid-removeChild": "error",
"mozilla/use-includes-instead-of-indexOf": "error",
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
"sort-exports/sort-exports": ["error", {
"ignoreCase": true,
}],
"perfectionist/sort-exports": "error",
"perfectionist/sort-named-exports": "error",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-array-push-push": "error",
"unicorn/no-instanceof-array": "error",
Expand All @@ -70,6 +66,7 @@
"unicorn/prefer-date-now": "error",
"unicorn/prefer-dom-node-append": "error",
"unicorn/prefer-dom-node-remove": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-logical-operator-over-ternary": "error",
"unicorn/prefer-modern-dom-apis": "error",
"unicorn/prefer-modern-math-apis": "error",
Expand All @@ -79,6 +76,7 @@
"unicorn/prefer-string-replace-all": "error",
"unicorn/prefer-string-starts-ends-with": "error",
"unicorn/prefer-ternary": ["error", "only-single-line"],
"unicorn/throw-new-error": "error",

// Possible errors
"for-direction": "error",
Expand Down Expand Up @@ -142,9 +140,10 @@
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal-escape": "error",
"no-octal": "error",
"no-redeclare": "error",
Expand Down Expand Up @@ -242,9 +241,9 @@
}],

// ECMAScript 6
"arrow-body-style": ["error", "as-needed"],
"constructor-super": "error",
"no-class-assign": "error",
"no-confusing-arrow": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
Expand All @@ -257,6 +256,7 @@
"avoidQuotes": true,
}],
"prefer-const": "error",
"require-yield": "error",
"sort-imports": ["error", {
"ignoreCase": true,
}],
Expand Down
6 changes: 6 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Auto-format `.js` files with ESLint/Prettier
de36b2aabab2b7fd647d9591f959c4540129541d
# Auto-format `.css` files with Stylelint/Prettier
8aa2718d225ad701a5b8a2788b42d221f1e4327d
# Auto-format `.json` files with Prettier
29de9bdce6c9785574994fda0e51533d796a9bb4
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Bug Report
description: Report a bug in PDF.js
title: "[Bug]: "
body:
- type: textarea
attributes:
label: Attach (recommended) or Link to PDF file
description: Without this information the issue may be closed without comment
placeholder: Please place only the PDF file in this field
validations:
required: true

- type: markdown
attributes: { value: "---" }

- type: input
attributes:
label: Web browser and its version
description: Please ensure that it's supported, refer to [the FAQ](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support)
validations:
required: true
- type: input
attributes:
label: Operating system and its version
validations:
required: true
- type: input
attributes:
label: PDF.js version
description: Please find official releases [here](https://github.com/mozilla/pdf.js/releases)
validations:
required: true
- type: dropdown
attributes:
label: Is the bug present in the latest PDF.js version?
description: Please check the [online demo](https://github.com/mozilla/pdf.js#online-demo)
options: ["Yes", "No"]
default: 0
validations:
required: true
- type: dropdown
attributes:
label: Is a browser extension
options: ["Yes", "No"]
default: 1
validations:
required: true

- type: markdown
attributes: { value: "---" }

- type: textarea
attributes:
label: Steps to reproduce the problem
placeholder: "1.\n2."
validations:
required: true

- type: textarea
attributes:
label: What is the expected behavior?
description: Also add a screenshot
validations:
required: true

- type: textarea
attributes:
label: What went wrong?
description: Also add a screenshot
validations:
required: true

- type: input
attributes:
label: Link to a viewer
description: Needed if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension

- type: textarea
attributes:
label: Additional context
description: Do you have anything to add that doesn't fit in the issue template?
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Need help?
url: https://github.com/mozilla/pdf.js/discussions
about: If you need help on how to use PDF.js, please open a discussion where other community members can reply
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Feature request
description: Propose a new feature or enhancement for PDF.js
title: "[Feature]: "
body:
- type: dropdown
attributes:
label: Is the feature relevant to the Firefox PDF Viewer?
options: ["Yes", "No"]
default: 1
validations:
required: true

- type: textarea
attributes:
label: Feature description
description: What new feature would you like PDF.js to have? Why would it be useful? What are the current workarounds?
validations:
required: true

- type: textarea
attributes:
label: Other PDF viewers
description: Do other PDF viewers implement similar functionality? Add descriptions, links, and/or screenshots.
13 changes: 13 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Security policy

Mozilla takes the security of our software seriously. If you believe you have found a security vulnerability in PDF.js, please report it to us as described below.

## Reporting security vulnerabilities

**Please don't report security vulnerabilities through public GitHub issues.**

Instead, please report security vulnerabilities in [Bugzilla](https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=PDF%20Viewer&groups=firefox-core-security) and make sure that the checkbox in the "Security" section is checked so the required access controls are automatically configured:

![Security checkbox](https://github.com/mozilla/pdf.js/blob/master/.github/security.png)

The Mozilla security team will process the bug as described in [Mozilla's security bugs policy](https://www.mozilla.org/en-US/about/governance/policies/security-group/bugs).
Binary file added .github/security.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18, lts/*, latest]
node-version: [18, lts/*, 22, 23]

steps:
- name: Checkout repository
Expand All @@ -24,14 +24,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Gulp
run: npm install -g gulp-cli

- name: Install other dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Run external tests
run: gulp externaltest
run: npx gulp externaltest

- name: Run CLI unit tests
run: gulp unittestcli
run: npx gulp unittestcli
9 changes: 3 additions & 6 deletions .github/workflows/font_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Gulp
run: npm install -g gulp-cli

- name: Install other dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Use Python 3.12
uses: actions/setup-python@v5
Expand All @@ -61,4 +58,4 @@ jobs:
run: pip install fonttools

- name: Run font tests
run: gulp fonttest --headless
run: npx gulp fonttest --headless
11 changes: 4 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Gulp
run: npm install -g gulp-cli

- name: Install other dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Run lint
run: gulp lint
run: npx gulp lint

- name: Run lint-chromium
run: gulp lint-chromium
run: npx gulp lint-chromium
39 changes: 39 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish release
on:
release:
types: [published]
permissions:
contents: read
id-token: write

jobs:
publish:
name: Publish
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [lts/*]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Build the `pdfjs-dist` library
run: npx gulp dist

- name: Publish the `pdfjs-dist` library to NPM
run: npm publish ./build/dist --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
11 changes: 4 additions & 7 deletions .github/workflows/publish_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Gulp
run: npm install -g gulp-cli

- name: Install other dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Build the website
run: gulp web
run: npx gulp web

- name: Archive the website
shell: sh
Expand Down Expand Up @@ -69,4 +66,4 @@ jobs:

steps:
- name: Deploy the website
uses: actions/deploy-pages@v3
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions .github/workflows/publish_website_to_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
aws-region: us-east-1

- name: Deploy site to S3 bucket
run: aws s3 sync build/gh-pages/ s3://${{ vars.AWS_BUCKET_NAME }}/${{ github.event.pull_request.head.sha }}/ --acl public-read

- name: Save aws s3 deployment url for aws environment
id: aws-deployment-url
run: |
echo "s3_url=https://${{ vars.AWS_BUCKET_NAME }}.s3.us-east-2.amazonaws.com/${{ github.event.pull_request.head.sha }}/web/viewer.html?file=${{ vars.TEST_PDF }}" >> $GITHUB_OUTPUT
echo "s3_url=https://${{ vars.AWS_BUCKET_NAME }}.s3.us-east-1.amazonaws.com/${{ github.event.pull_request.head.sha }}/web/viewer.html?file=${{ vars.TEST_PDF }}" >> $GITHUB_OUTPUT

- name: Comment deployed url to PR
if: github.event_name == 'pull_request'
Expand Down
Loading