Skip to content
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

[wip] Allow custom search for pdf.js embedder #2

Draft
wants to merge 210 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
c77dbe0
Update dependencies to the most recent versions
timvandermeij Jun 18, 2024
58dd289
Upgrade `eslint-plugin-unicorn` to version 54.0.0
timvandermeij Jun 18, 2024
390afcb
[Editor] Remove the various listeners when destroying the editor manager
calixteman Jun 18, 2024
df058ed
Update the regular expression in `tweakWebpackOutput` to support mini…
Snuffleupagus Jun 19, 2024
c53f71a
Merge pull request #18284 from calixteman/editor_signal
calixteman Jun 19, 2024
c771ac8
Add a new helper, in the viewer, to close everything during testing
Snuffleupagus Jun 19, 2024
764e67e
Merge pull request #18278 from timvandermeij/updates
timvandermeij Jun 19, 2024
b7d194f
Merge pull request #18292 from Snuffleupagus/tweakWebpackOutput-impro…
timvandermeij Jun 19, 2024
12692d2
Add test for CSS-only zoom above maxCanvasPixels
nicolo-ribaudo Jun 7, 2024
de23bb9
Respect `maxCanvasPixels` when computing canvas dimensions
nicolo-ribaudo Jun 7, 2024
94cbe9e
Merge pull request #18289 from Snuffleupagus/app-testingClose
Snuffleupagus Jun 19, 2024
3e1d779
Merge pull request #18218 from nicolo-ribaudo/test-maxCanvasPixels
timvandermeij Jun 19, 2024
7d7ae34
[Editor] Don't create an observer for the stamp annotation after the …
calixteman Jun 20, 2024
02c0315
Close `PDFFindBar` when closing the viewer during testing
Snuffleupagus Jun 20, 2024
3fae2d7
Don't throw if there's not enough data to get the header in `FlateStr…
Snuffleupagus Jun 20, 2024
9afd3a5
Merge pull request #18301 from calixteman/no_signal
calixteman Jun 20, 2024
67f9756
[Editor] Correctly set the accessibility data when copying & pasting …
calixteman Jun 19, 2024
e76242d
Merge pull request #18304 from Snuffleupagus/issue-18298
Snuffleupagus Jun 20, 2024
8c9a665
Always use DW if it's a number for the font default width (bug 1903731)
calixteman Jun 20, 2024
d09aed8
Merge pull request #18296 from calixteman/bug1903589
calixteman Jun 20, 2024
1cf19e9
Merge pull request #18302 from Snuffleupagus/testingClose-findbar-close
timvandermeij Jun 20, 2024
a081dd2
Merge pull request #18306 from calixteman/bug1903731
calixteman Jun 20, 2024
890c567
Expose entireWord in updateFindControlState
bootleq Jun 20, 2024
1480e67
Use the new formatted issue templates
nicolo-ribaudo Jun 19, 2024
ba0e732
Merge pull request #18308 from nicolo-ribaudo/patch-1
timvandermeij Jun 21, 2024
f9ff613
Merge pull request #18303 from bootleq/findbar-state-entire-word
timvandermeij Jun 21, 2024
3b9208b
Update dependencies to the most recent versions
timvandermeij Jun 21, 2024
a89c700
Update translations to the most recent versions
timvandermeij Jun 21, 2024
6492587
Try to shutdown Fluent "more" when closing the viewer during testing
Snuffleupagus Jun 22, 2024
658b5fa
Merge pull request #18312 from timvandermeij/updates
timvandermeij Jun 22, 2024
c18a987
Merge pull request #18313 from Snuffleupagus/l10n-destroy
timvandermeij Jun 22, 2024
327738d
Disable system addon updates for Firefox in testing mode
timvandermeij Jun 21, 2024
f4053c2
Close the page in the text layer caret selection integration test
timvandermeij Jun 23, 2024
7057142
Merge pull request #18316 from timvandermeij/integration-test-addons-xpi
timvandermeij Jun 23, 2024
b4393a7
Merge pull request #18317 from timvandermeij/integration-test-separat…
timvandermeij Jun 23, 2024
287fd6a
Fix the "copy/paste from a tab to an other" stamp editor integration …
timvandermeij Jun 23, 2024
6784124
Merge pull request #18320 from timvandermeij/integration-test-tabs
timvandermeij Jun 23, 2024
2f3bf6f
Don't ignore errors in the Jasmine suite start/end stages
timvandermeij Jun 23, 2024
2beae7a
Include a security policy for PDF.js
timvandermeij Jun 21, 2024
8923f9a
Merge pull request #18321 from timvandermeij/integration-test-ignored…
timvandermeij Jun 24, 2024
8123719
Merge pull request #18311 from timvandermeij/security-policy
timvandermeij Jun 24, 2024
4033913
Improve the security policy
timvandermeij Jun 24, 2024
e16707d
Merge pull request #18323 from timvandermeij/security-followup
timvandermeij Jun 24, 2024
42bb2b0
Fix the computation of unitsPerEm when the fontMatrix has some negati…
calixteman Jun 24, 2024
51dcd6a
Fix the timeout logic in the `waitForEvent` integration test helper f…
timvandermeij Jun 23, 2024
4899b2e
Merge pull request #18324 from calixteman/bug1539074_1
calixteman Jun 25, 2024
4b95d68
Merge pull request #18325 from timvandermeij/integration-test-timeouts
timvandermeij Jun 25, 2024
f974b75
Use `waitForEvent` in the `pasteFromClipboard` integration test helpe…
timvandermeij Jun 23, 2024
5885874
Merge pull request #18326 from timvandermeij/integration-test-pastefr…
timvandermeij Jun 25, 2024
5b29e93
Overrride the minimum font size when rendering the text layer
nicolo-ribaudo Jun 18, 2024
11cb3a8
Merge pull request #18283 from nicolo-ribaudo/ignore-browser-min-font…
timvandermeij Jun 25, 2024
f676ce5
Remove the `requestAnimationFrame` work-around in `L10n.prototype.des…
Snuffleupagus Jun 25, 2024
7f58618
Merge pull request #18333 from Snuffleupagus/l10n-destroy-rm-requestA…
Snuffleupagus Jun 25, 2024
35474f8
Add the possibility to dispatch some pdf.js events at the chrome leve…
calixteman Jun 25, 2024
2fbd619
Merge pull request #18332 from calixteman/bug1904585
calixteman Jun 25, 2024
55ba4aa
Refactor the copy/paste logic in the integration tests
timvandermeij Jun 21, 2024
7128b95
Fix a race condition involving the `waitForEvent` integration test he…
timvandermeij Jun 23, 2024
6d57908
Merge pull request #18331 from timvandermeij/integration-test-copy-pa…
timvandermeij Jun 26, 2024
4dad1e3
Cancel the `requestAnimationFrame` in the `watchScroll` helper (PR 18…
Snuffleupagus Jun 26, 2024
af16aa6
Merge pull request #18335 from Snuffleupagus/watchScroll-cancelAnimat…
timvandermeij Jun 26, 2024
a4f1a9a
Cancel the `requestAnimationFrame` in the API when cancelling rendering
Snuffleupagus Jun 26, 2024
0e94f2b
Fix intermittent failures with freetext and stamp tests
calixteman Jun 27, 2024
f006aa3
Add a port option to gulp server
calixteman Jun 27, 2024
53aca5f
Merge pull request #18336 from Snuffleupagus/InternalRenderTask-cance…
timvandermeij Jun 27, 2024
abdc3fa
Merge pull request #18339 from calixteman/add_port_option
calixteman Jun 27, 2024
a609bd8
Merge pull request #18338 from calixteman/fix_stamp_test
calixteman Jun 27, 2024
4d91ae3
Ignore test issue17779.pdf in talos because it times out
calixteman Jun 28, 2024
8709202
Merge pull request #18341 from calixteman/issue17779_not_in_talos
calixteman Jun 28, 2024
dacf8bb
Take into account PageOpen and PageClose actions which are present in…
calixteman Jun 28, 2024
fb3a4e4
Merge pull request #18345 from calixteman/issue18305
calixteman Jun 28, 2024
046e281
Add a comment about `test/webserver.mjs` being development-only code
Snuffleupagus Jun 29, 2024
40b0c84
Merge pull request #18346 from Snuffleupagus/webserver-dev-note
timvandermeij Jun 30, 2024
f3d177e
[api-minor] Remove the deprecated `renderTextLayer` and `updateTextLa…
Snuffleupagus Jun 30, 2024
a5f2b9f
Introduce a GitHub Actions workflow for publishing a release
timvandermeij Jun 30, 2024
dddb74d
Fix `npm publish` warnings about the `package.json` format
timvandermeij Jun 30, 2024
b5d554e
Merge pull request #18350 from timvandermeij/github-actions-release
calixteman Jul 1, 2024
6b449d8
Use `npm ci`, not `npm install`, on CI
wojtekmaj Jul 1, 2024
8556a26
Merge pull request #18353 from wojtekmaj/npm-ci
timvandermeij Jul 1, 2024
aaa65bf
Generate provenance statements on npm publish
wojtekmaj Jul 1, 2024
efb45a7
Disable new tab page stuff in Firefox when running tests
calixteman Jul 1, 2024
067ec20
Merge pull request #18356 from calixteman/no_newtabpage
timvandermeij Jul 1, 2024
7114796
Merge pull request #18352 from wojtekmaj/provenance
timvandermeij Jul 1, 2024
bf5dd7e
Fix the repository URL in the `package.json` file for `pdfjs-dist`
timvandermeij Jul 1, 2024
19fbc89
Merge pull request #18358 from timvandermeij/npm-url
timvandermeij Jul 1, 2024
2f4d5d2
Bump the stable version in `pdfjs.config`
timvandermeij Jul 1, 2024
c280c52
Merge pull request #18359 from timvandermeij/bump
timvandermeij Jul 1, 2024
576aaf7
[Editor] Take into account the page translation when computing the qu…
calixteman Jul 1, 2024
75129fd
Merge pull request #18361 from calixteman/issue18360.pdf
calixteman Jul 2, 2024
64635f3
[api-minor][Editor] When switching to editing mode, redraw pages cont…
calixteman May 21, 2024
ecb39a7
[Firefox] Generate a PDF.js default-prefs file that can be used direc…
Snuffleupagus Jul 22, 2022
033623c
Update the year in the `license_header` files
Snuffleupagus Jul 2, 2024
bdcc4a0
Merge pull request #18134 from calixteman/hide_annotations
calixteman Jul 2, 2024
2060944
Bump library version to 4.5
calixteman Jul 2, 2024
c154b1d
Update pdfjs.config
calixteman Jul 2, 2024
4f1d4c6
Merge pull request #18365 from calixteman/bump_4.5
calixteman Jul 2, 2024
6817532
[Editor] Make sure everything is cleaned up when we switch to annotat…
calixteman Jul 2, 2024
59620d3
Merge pull request #18366 from calixteman/clean_switch_annot
calixteman Jul 2, 2024
ccad2f8
Merge pull request #18349 from Snuffleupagus/rm-renderTextLayer
timvandermeij Jul 2, 2024
bb54e7e
Update dependencies to the most recent versions
timvandermeij Jul 2, 2024
4e8a015
Update translations to the most recent versions
timvandermeij Jul 2, 2024
832fc93
Use vertical variant of a char when it's in a missing vertical font (…
calixteman Jul 2, 2024
fd6d0be
Make sure the editor is visible before getting its rect
calixteman Jul 3, 2024
617f513
Merge pull request #18369 from calixteman/bug1905623
calixteman Jul 4, 2024
396231b
Merge pull request #15209 from Snuffleupagus/createDefaultPrefsFile
Snuffleupagus Jul 4, 2024
944f3ac
Merge pull request #18367 from timvandermeij/updates
timvandermeij Jul 4, 2024
53ddfd1
Fix the integration tests related to printing
calixteman Jul 4, 2024
03a0500
Merge pull request #18374 from calixteman/test_editor_visible
timvandermeij Jul 4, 2024
790470c
Merge pull request #18383 from calixteman/fix_print_test
timvandermeij Jul 4, 2024
74cbfbd
[Editor] Remove the option enableStamp
calixteman Jul 4, 2024
8c5b019
Merge pull request #18389 from calixteman/remove_pref_stamp
calixteman Jul 4, 2024
a4ffc10
Move the internal API/Worker `isEditing`-state into `RenderingIntentF…
Snuffleupagus Jul 4, 2024
9065ee4
Merge pull request #18387 from Snuffleupagus/RenderingIntentFlag-IS_E…
timvandermeij Jul 4, 2024
5f74490
Check the relevant parameters inside of the `mustBeViewedWhenEditing`…
Snuffleupagus Jul 5, 2024
38528d1
Remove the `renderForms` parameter from the Annotation `getOperatorLi…
Snuffleupagus Jul 5, 2024
5274bab
[Editor] Avoid to query ML engine several times for the same image
calixteman Jul 3, 2024
cf9dfbc
Merge pull request #18394 from Snuffleupagus/rm-annotation-getOperato…
timvandermeij Jul 5, 2024
ccb141e
Merge pull request #18393 from Snuffleupagus/mustBeViewedWhenEditing-…
timvandermeij Jul 5, 2024
e777ae2
Merge pull request #18380 from calixteman/avoid_dbl_ml_queries
calixteman Jul 5, 2024
0910f17
Allow to change the toolbar height when changing the pref toolbar.den…
calixteman Jul 5, 2024
0fba6e5
[Editor] Change the enableML pref for enableAltText (bug 1905923)
calixteman Jul 5, 2024
70b4425
Fix the "must check that charLimit is correctly set" scripting integr…
timvandermeij Jul 5, 2024
9f00105
Merge pull request #18397 from calixteman/toolbar_density
calixteman Jul 5, 2024
7a5f561
Merge pull request #18399 from timvandermeij/intermittent-charlimit
timvandermeij Jul 5, 2024
db91156
Merge pull request #18398 from calixteman/bug1905923
calixteman Jul 5, 2024
3afe2d3
Fix orphaned browser processes due to uncaught exceptions in the tests
timvandermeij Jul 6, 2024
9e352a8
Move the "updatedPreference" event listener registration
Snuffleupagus Jul 6, 2024
fe69243
Merge pull request #18401 from timvandermeij/test-orphaned-browsers
timvandermeij Jul 6, 2024
bb3e316
Merge pull request #18402 from Snuffleupagus/updatedPreference-move-l…
timvandermeij Jul 6, 2024
2a44203
Fix the "caches image resources at the document/page level as expecte…
timvandermeij Jul 6, 2024
1c36442
Handle toUnicode cmaps that omit leading zeros in hex encoded UTF-16 …
alexcat3 Jul 5, 2024
145951d
Merge pull request #18404 from timvandermeij/fix-unit-intermittent
timvandermeij Jul 6, 2024
5ee6169
Merge pull request #18390 from alexcat3/fix-issue-18099
Snuffleupagus Jul 6, 2024
b540b63
Introduce a `waitForScripting` helper function and use it in all scri…
timvandermeij Jul 6, 2024
2a125bd
Merge pull request #18405 from timvandermeij/intermittent-waitforscri…
calixteman Jul 7, 2024
5bfe759
Use BiDi protocol for Chrome tests
calixteman Apr 17, 2024
1bdd692
Merge pull request #17962 from calixteman/chrome_bidi
timvandermeij Jul 7, 2024
7ffa9a2
Extend test-coverage for non-embedded Type1 fonts where .notdef glyph…
Snuffleupagus Jul 9, 2024
f9d6320
Revert "Remove the unused `Font.prototype.spaceWidth` getter (PR 1342…
Snuffleupagus Jul 9, 2024
56653e5
Also update the width/unicode data when replacing missing glyphs in n…
Snuffleupagus Jul 9, 2024
d9f0ec0
Re-factor `BasePreferences` to essentially be a wrapper around `AppOp…
Snuffleupagus Jul 9, 2024
7ffea2f
Merge pull request #18413 from Snuffleupagus/BasePreferences-AppOptio…
timvandermeij Jul 9, 2024
d27efb4
[Editor] Wait for 'pagerendered' to switch to editing mode
calixteman Jul 10, 2024
b1bf8b4
Merge pull request #18418 from calixteman/wait_for_rendering
calixteman Jul 10, 2024
665fff0
Fix `ensureMinFontSizeComputed` calculation if `<body>` is a flex con…
razh Jul 10, 2024
cf58113
Merge pull request #18416 from razh/ensureMinimumFontSize-body-flex
timvandermeij Jul 10, 2024
403d023
Allow e.g. /FitH destinations without additional parameter (bug 1907000)
Snuffleupagus Jul 11, 2024
6711123
[Editor] Update the freetext annotation dictionary instead of creatin…
calixteman Jul 10, 2024
b56e420
Merge pull request #18421 from Snuffleupagus/bug-1907000
Snuffleupagus Jul 11, 2024
e8d35c2
Merge pull request #18412 from Snuffleupagus/issue-18059
Snuffleupagus Jul 11, 2024
9b1b5ff
Merge pull request #18419 from calixteman/reuse_old_dict_when_updating
calixteman Jul 11, 2024
50a5a15
Create absolute filter-URLs when needed in `DOMFilterFactory` (issue …
Snuffleupagus Jul 8, 2024
6b47ddd
Remove the remaining `zoomDisabledTimeout` usage (issue 17727)
Snuffleupagus Jul 11, 2024
8082c2d
Merge pull request #18417 from Snuffleupagus/DOMFilterFactory-baseUrl
Snuffleupagus Jul 11, 2024
acc70ce
Merge pull request #18423 from Snuffleupagus/rm-setZoomDisabledTimeout
Snuffleupagus Jul 11, 2024
9a64749
[Editor] Make editor toolbars usable whatever their z-index (bug 1879…
calixteman Jul 11, 2024
df5bc54
Merge pull request #18425 from calixteman/bug1879104
calixteman Jul 11, 2024
4e7c30d
[Editor] Disable existing highlights when drawing a new one (bug 1879…
calixteman Jul 11, 2024
2d25437
Merge pull request #18424 from calixteman/avoid_hovering_when_selecting
calixteman Jul 12, 2024
dfccc8f
[Editor] Add an option to use the new 'add an image' flow (bug 1907207)
calixteman Jul 12, 2024
49eba2f
Update dependencies to the most recent versions
timvandermeij Jul 13, 2024
c77b97d
Update the JS/CSS files for the new Prettier/Stylelint versions
timvandermeij Jul 13, 2024
07c58aa
Merge pull request #18432 from timvandermeij/updates
timvandermeij Jul 13, 2024
aea409d
Disable network connections to Contile for the tests
timvandermeij Jul 13, 2024
1c5c5da
Remove obsolete `pdfjs-dist` code from the Gulpfile
timvandermeij Jul 13, 2024
08967a5
Merge pull request #18433 from timvandermeij/contile
timvandermeij Jul 13, 2024
5059187
Merge pull request #18434 from timvandermeij/pdfjs-dist
timvandermeij Jul 13, 2024
87e74a7
Merge pull request #18429 from calixteman/bug1907207
calixteman Jul 15, 2024
4c45948
Fix `DOMFilterFactory.#createUrl` in MOZCENTRAL builds (18417 PR foll…
Snuffleupagus Jul 13, 2024
f9e3b6b
Merge pull request #18430 from Snuffleupagus/pr-18417-followup
Snuffleupagus Jul 15, 2024
6dd75c0
[Editor] When in non-editing mode, add a new editor only once the edi…
calixteman Jul 15, 2024
8a979c2
[api-minor] Remove `Outliner` from the official API
Snuffleupagus Jul 16, 2024
e190ceb
Merge pull request #18440 from calixteman/fix_add_highlight
calixteman Jul 16, 2024
86eb5ba
Merge pull request #18441 from Snuffleupagus/api-rm-Outliner
Snuffleupagus Jul 16, 2024
37db3a7
Remove active smask when restoring the initial canvas state
calixteman Jul 17, 2024
15b71b8
Merge pull request #18445 from calixteman/issue18444
calixteman Jul 17, 2024
99f34f4
Include additional data when fetching browser preferences in the PDF …
Snuffleupagus Jul 12, 2024
6cc32b6
Add the possibility to change some pdfjs preferences from the viewer …
calixteman Jul 17, 2024
e1f64a5
Merge pull request #18449 from calixteman/bug1908483
calixteman Jul 18, 2024
d24a61c
Allow /XYZ destinations without zoom parameter (issue 18408)
Snuffleupagus Jul 18, 2024
31f247f
Merge pull request #18453 from Snuffleupagus/issue-18408
Snuffleupagus Jul 18, 2024
5be6658
Merge pull request #18448 from Snuffleupagus/AppOptions-more-browser-…
Snuffleupagus Jul 18, 2024
5946d20
[Editor] Allow to change a preference from the editor UI manager
calixteman Jul 18, 2024
5b0e15a
Merge pull request #18454 from calixteman/setpref_event
calixteman Jul 18, 2024
b71fa72
Load the image-to-text model when opening the pdf viewer in Firefox (…
calixteman Jul 19, 2024
ed83d7c
Merge pull request #18461 from calixteman/bug1908938
calixteman Jul 19, 2024
216d3a9
Add more validation when setting `AppOptions` (PR 18413 follow-up)
Snuffleupagus Jul 18, 2024
0062424
Stop using `downloadComplete` in `PDFViewerApplication.progress`
Snuffleupagus Jul 20, 2024
64a4f0d
Avoid downloading the document twice in `PDFViewerApplication.download`
Snuffleupagus Jul 20, 2024
482d621
Reduce a tiny bit of duplication in `PDFViewerApplication.setTitleUsi…
Snuffleupagus Jul 20, 2024
9db1ae4
Merge pull request #18464 from Snuffleupagus/setTitleUsingUrl-url-fal…
timvandermeij Jul 20, 2024
7a8acee
Merge pull request #18463 from Snuffleupagus/app-rm-downloadComplete
timvandermeij Jul 20, 2024
e92a6a1
Merge pull request #18450 from Snuffleupagus/AppOptions-set-validation
timvandermeij Jul 20, 2024
57ee035
Change the `compatibilityParams`, used with AppOptions, to a `Map`
Snuffleupagus Jul 21, 2024
7bd9206
Change the `userOptions`, used with AppOptions, to a `Map`
Snuffleupagus Jul 21, 2024
26989fd
Add basic validation of the AppOptions `BROWSER`-kind
Snuffleupagus Jul 21, 2024
f8aa15a
Move the `Preferences` initialization as early as possible
Snuffleupagus Jul 21, 2024
9f62c0f
Merge pull request #18470 from Snuffleupagus/move-Preferences-init
timvandermeij Jul 21, 2024
ebb3d27
Merge pull request #18469 from Snuffleupagus/AppOptions-Maps
timvandermeij Jul 21, 2024
45ce3a0
Use shorter local variable names in a few AppOptions methods
Snuffleupagus Jul 21, 2024
80d6bf6
Disable system fonts on Android (issue 18210)
Snuffleupagus Jul 21, 2024
5860c7b
Add a pref containing the url for the sumo page about alt text (bug 1…
calixteman Jul 21, 2024
d0b580e
Merge pull request #18471 from calixteman/bug1909097
calixteman Jul 21, 2024
b759470
Add the possibility to delete a model (bug 1908939)
calixteman Jul 19, 2024
0c34efb
Merge pull request #18465 from Snuffleupagus/issue-18210
timvandermeij Jul 21, 2024
71bae38
Fallback on DeviceGray when a colorspace cannot be parsed
calixteman Jul 20, 2024
d9ff29a
Remove the unused `AppOptions.remove` method
Snuffleupagus Jul 21, 2024
998bc07
Merge pull request #18472 from calixteman/bug1908939
calixteman Jul 21, 2024
422b3e4
Merge pull request #18468 from calixteman/dont_throw_with_invalid_cs
calixteman Jul 21, 2024
98e7727
Merge pull request #18475 from Snuffleupagus/rm-AppOptions-remove
timvandermeij Jul 21, 2024
a8f7fba
wip
nicolo-ribaudo Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Bug Report
description: Report a bug in PDF.js
title: "[Bug]: "
body:
- type: textarea
attributes:
label: Attach (recommended) or Link to PDF file
validations:
required: true

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

- type: input
attributes:
label: Web browser and its version
validations:
required: true
- type: input
attributes:
label: Operating system and its version
validations:
required: true
- type: input
attributes:
label: PDF.js version
validations:
required: true
- type: dropdown
attributes:
label: Is the bug present in the latest PDF.js version?
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.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: ${{ matrix.node-version }}

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

- name: Run external tests
run: npx gulp externaltest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/font_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
node-version: ${{ matrix.node-version }}

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

- name: Use Python 3.12
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: ${{ matrix.node-version }}

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

- name: Run lint
run: npx gulp lint
Expand Down
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/publish_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
node-version: ${{ matrix.node-version }}

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

- name: Build the website
run: npx gulp web
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/types_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: ${{ matrix.node-version }}

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

- name: Run types tests
run: npx gulp typestest
14 changes: 9 additions & 5 deletions extensions/chromium/preferences_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@
"type": "boolean",
"default": true
},
"enableML": {
"enableAltText": {
"type": "boolean",
"default": false
},
"altTextLearnMoreUrl": {
"type": "string",
"default": ""
},
"enableUpdatedAddImage": {
"type": "boolean",
"default": false
},
Expand Down Expand Up @@ -86,10 +94,6 @@
"type": "string",
"default": "yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F"
},
"enableStampEditor": {
"type": "boolean",
"default": true
},
"disableRange": {
"title": "Disable range requests",
"description": "Whether to disable range requests (not recommended).",
Expand Down
22 changes: 0 additions & 22 deletions extensions/firefox/.eslintrc

This file was deleted.

18 changes: 0 additions & 18 deletions extensions/firefox/content/PdfJsDefaultPreferences.sys.mjs

This file was deleted.

Loading
Loading