-
Notifications
You must be signed in to change notification settings - Fork 4
Update to v5.4.296 #20
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
Update to v5.4.296 #20
Conversation
The user will be able to enter a date in the format corresponding to their locale and it'll be formatted in using the format provided by the pdf.
Use a HTML date/time input when a field requires a date or a time.
[Editor] Don't show the actions button in the comment popup when it's useless
Bump the stable version in `pdfjs.config`
Note that we must include `eslint-config-prettier` explicitly because it's now a required dependency and without it linting fails; please see https://github.com/prettier/eslint-plugin-prettier?tab=readme-ov-file#installation.
This is a major version bump, but the changelog at https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v60.0.0 doesn't indicate any breaking changes that should impact us. Note that this brings the vulnerability count back to zero because this version addresses GHSA-xffm-g5w8-qvg7.
Update dependencies and translations to the most recent versions
…on and add a comment (bug 1979381) The callback called when clicking on the button is the same as the one trigged by clicking in the context menu (in m-c).
[Editor] Add a floating button in order to highlight the text selection and add a comment (bug 1979381)
Add regression test for PR 19639
Add comment-* images when building components
[Editor] Remove useless css and use a defined but unused property
[Editor] Remove unused property
…s correct" scripting integration test Typing in the text field causes a sandbox event to trigger, which we should await to avoid continuing to the next part of the test before the sandbox event is fully processed.
…scripting Fix intermittent failure in the "must check that the computed value is correct" scripting integration test
…wed to be printed (bug 1978985)
Disable printing when enablePermission is true and the pdf isn't allowed to be printed (bug 1978985)
…triggered by the pointer or the keyboard (bug 1976597) It's useful for users highlighting with NVDA. They've to enable native selection and then selection some text. In this case only a selectionchange is triggered once the selection is done.
…e browser (bug 1957680) This way, it should unblock zooming with ctrl+wheel after scrolling.
[Editor] Highlight text on a selectionchange event which hasn't been triggered by the pointer or the keyboard (bug 1976597)
Trigger a fake scrollend event in case it hasn't been triggered by the browser (bug 1957680)
The fixed -400px horizontal offset used by scrollIntoView led to horizontal scroll only moving part-way right on narrow screens. The highlights near the right-edge remained party or completely off screen. This centres the highlighted match on any viewport width while clamping the left margin to 20-400px. On very narrow screens the scrollbar now moves all the way to the right instead of stopping midway.
…egistry Lazy initialize FinalizationRegistry used by IccColorSpace.#finalizer
…te picker (bug 1991584)
…ith an editor in order to be able to show the comment button (bug 1989420)
[Editor] Add a fake annotation (in the annotation layer) associated with an editor in order to be able to show the comment button (bug 1989420)
[Editor] Avoid an error when getting the editors telemetry data
[Annotation] Fix some timezone issues when getting a date from the date picker (bug 1991584)
[Editor] Add the possibility to unselect a comment from the sidebar
But keep a lower quality when enableOptimizedPartialRendering is true because we need to compensate the time used to compute the bboxes and since subsequent rendering are faster it's more acceptable to see a lower quality image for few tenths of seconds.
Increase the rendering quality of the detail view (bug 1991482)
…lback-font-name-matching Improve serif fallback font name matching
…s between 0% and 100% This way, when the window is resized, the dialog stay visible.
…_driver Fix the creation of the annotation layer in the ref tests
[Editor] Make sure the comment dialog always have relative coordinates between 0% and 100%
… make it easier to use (bug 1992385) And highlight the resizer when hovering it.
[Editor] Slightly move the resizer in the sidebar comment in order to make it easier to use (bug 1992385)
Only apply word spacing when there is a 0x20 in the text chunk
…/tar-fs-3.1.1 Bump tar-fs from 3.1.0 to 3.1.1
This patch removes some previous fixes which are now likely fixed by mozilla#17636. Fixes mozilla#20302.
Fix incremental saving with hybrid references
[410225a] Add error handling to structure tree parsing [fc6eb61] Add support for MCR structure tree elements [d46d472] Fix annotations parsing [bd1202a091] Changes required for pdf.js update to 4.4.168 version [795874e] Tagged pdf changes (v2.16.105-taggedPdf-0.1.18). Squashed commits: [5ccd3c5] The glyph has no Unicode value [3e837b2] Minor fixes [cd20ad2] Move if statements to switch [0cffb5d] Remove mcid overriding [558cfe6] Adding annotation indexes [dec34ff] Adding isArray check [6a5260e] Parsing elements without K and Pg [58bf51d] Supporting PDF 2.0 role map [3cc4129] Adding additional checks [025bf9a] Adding roleMapped name to structure elements [1aedabc] Update glyphs position saving [0bee241] Fixes after rebase [5f6b058] Getting MCID for PDF/UA structure elements [5235726] Adding undefined check [b27e4d7] Requested changes [0b71c75] Content is neither marked as Artifact nor tagged as real content fix [e349e7e] Vertical text fix [09f8276] Wrong bounding box for glyphs bug fix [eade1be] Fix issue with empty font matrix [21acb67] Fix issue with empty font matrix [88c2366] Add glyph position detection [5945cf3] Couldn't select Figure elements in 'inspect-document' section (bug fix) (#6) Co-authored-by: Vladimir <vladimir.burshnev@duallab.com> [10b62c6] Incorrect bounding box for content (bug fix) (#5) Co-authored-by: Vladimir <vladimir.burshnev@duallab.com> [0ebdac7] Fix issue with calculating bounding boxes for text (#4) [e2c5571] Fix issue with empty S field [92c0029] Updated current version [54076b5] Added ability to set version manually [efb5a54] Added document structure parsing and bbox-es calculating
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| function used() { | ||
| usedByUsed(); | ||
| return; | ||
| usedByRemovedCode(); |
Check warning
Code scanning / CodeQL
Unreachable statement Warning library
| return; | ||
| usedByRemovedCode(); | ||
| } | ||
| function unused() { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note library
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 17 days ago
In general, an unused function should either be removed entirely or, if it must stay for API/compatibility reasons, its implementation should be folded into existing used code or at least documented and minimized. The goal is to eliminate dead code that serves no purpose.
Here, the minimal fix without changing existing functionality is to remove the unused function declaration, since nothing calls it and it has no side effects. The rest of the file remains the same: usedByUsed, usedByUnused, usedByRemovedCode, and used are left untouched, as is the call to used() on line 14. No new imports or definitions are required, and we do not need to modify any other lines.
Concretely, in external/builder/fixtures_babel/unused-function.js, delete lines 10–12 (the unused function) and close up the resulting blank line so that used(); remains as the only top-level call after the function declarations.
| @@ -7,8 +7,5 @@ | ||
| return; | ||
| usedByRemovedCode(); | ||
| } | ||
| function unused() { | ||
| usedByUnused(); | ||
| } | ||
|
|
||
| used(); |
| @@ -0,0 +1,20 @@ | |||
| class A { | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note library
Copilot Autofix
AI 10 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| @@ -0,0 +1,8 @@ | |||
| class A { | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note library
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 17 days ago
In general, to fix an unused class warning you either remove the class if it is truly unnecessary, or introduce a legitimate usage (for example, instantiating it or exporting it) so that it has a purpose in the module. Since this looks like a small fixture meant to exercise static blocks, deleting A would defeat that purpose. The best fix that preserves existing behavior is to add a simple usage of A—such as exporting it or referencing it at the end of the file—without altering the static block logic.
Concretely, within external/builder/fixtures_babel/staticblock-expected.js, we can reference A after its declaration. A minimal, behavior-preserving approach is to add a line like void A; or assign A to a dummy constant. This counts as a usage for CodeQL without affecting runtime semantics in any meaningful way. No new imports or methods are required; we just extend the snippet by one line that references A.
-
Copy modified line R9
| @@ -6,3 +6,4 @@ | ||
| var a = 0; | ||
| } | ||
| } | ||
| void A; |
| chrome.tabs.onRemoved.addListener(function (tabId) { | ||
| delete g_referrers[tabId]; | ||
| }); | ||
| function canRequestBody(tabId, frameId) { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Copilot Autofix
AI 10 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
92899ac
into
customizations-for-tagged-pdf
No description provided.