calixteman
9c3a752388
Merge branch 'master' into scientific
2026-02-27 18:39:44 +01:00
Calixte Denizet
aa928105b4
Fix tooltips on thumbnails and checkbox (bug 2019714)
...
And fix an issue with some integration tests where the manage button was disabled (hence not in the tab cycle).
2026-02-27 17:43:27 +01:00
Calixte Denizet
2572285827
Add an integration test for PR 20740
2026-02-27 17:07:44 +01:00
Jeff Muizelaar
8fa6ef36e4
Remove scientific notation parsing.
...
This behaviour comes from the initial pdf.js commit but is wrong and
doesn't match other PDF readers like muPDF or pdfium.
From PDF Spec 7.3.3:
A PDF writer shall not use the PostScript language syntax for numbers with non-decimal radices (such
as 16#FFFE) or in exponential format (such as 6.02E23).
2026-02-26 20:22:34 -05:00
Tim van der Meij
f05caaf5e9
Merge pull request #20731 from calixteman/remove_page_id
...
Remove useless page-id attribute in thumbnails
2026-02-26 21:58:36 +01:00
Jonas Jenwald
82fc2c94f0
Include transfers correctly in the "GetOperatorList" message (PR 16588 follow-up)
...
Currently the transfers aren't actually being used with the "GetOperatorList" message, since the placement of the parameter is wrong; note the method signature: 909a700afa/src/shared/message_handler.js (L219-L229)
This goes back to PR 16588, which added the transfers parameter, and unfortunately we all missed that :-(
Simply fixing the parameter isn't enough however, since that broke printing of Stamp-editors (and possibly others). The solution here is to *not* transfer data during printing, given that a single `PrintAnnotationStorage` instance is being used for all pages.
2026-02-25 15:55:43 +01:00
Calixte Denizet
a48118db41
Remove useless page-id attribute in thumbnails
...
And make sure that the sidebar is fully open before starting the tests in
order to have an intermittent exception when finishing the test.
2026-02-25 15:15:41 +01:00
calixteman
bc8efa190c
Merge pull request #20719 from calixteman/update_jasmine
...
Update Jasmine to version 6.0.0
2026-02-25 09:56:54 +01:00
Tim van der Meij
4ecbd0cbe2
Merge pull request #20726 from Snuffleupagus/getOrInsertComputed-fewer-functions
...
Reduce allocations and function creation when using `getOrInsert` and `getOrInsertComputed`
2026-02-24 23:32:36 +01:00
calixteman
ab7629871a
Update Jasmine to version 6.0.0
...
It fixes #20715 .
`failedExpectations` was removed from `suiteStarted` and `specStarted` events.
HtmlReporter and HtmlSpecFilter have been deprecated and removed.
2026-02-24 23:30:48 +01:00
Tim van der Meij
b43c8eab73
Merge pull request #20725 from calixteman/bug2018162
...
After cut & paste, the thumbnail must be correctly rendered (bug 2018162)
2026-02-24 23:27:07 +01:00
Jonas Jenwald
0d4e587a5f
Reduce allocations when using Map.prototype.getOrInsert() with Arrays
...
Change all these cases to use `Map.prototype.getOrInsertComputed()` instead, in combination with a helper function for creating the `Array`s (similar to the previous patch).
2026-02-24 09:03:32 +01:00
Jonas Jenwald
2e07715c9d
Reduce function creation when using Map.prototype.getOrInsertComputed()
...
With the exception of the first invocation the callback function is unused, which means that a lot of pointless functions may be created.
To avoid this we introduce helper functions for simple cases, such as creating `Map`s and `Objects`s.
2026-02-24 08:58:28 +01:00
calixteman
15e7a551ab
Reset transfer functions when entering in a new group
...
It fixes #20722 .
2026-02-23 22:37:20 +01:00
Calixte Denizet
97d973ce09
After cut & paste, the thumbnail must be correctly rendered (bug 2018162)
2026-02-23 18:38:33 +01:00
Calixte Denizet
63c340fa35
Add keyboard shortcuts for copying/cutting/deleting the pages (bug 2018139, bug 2010831)
2026-02-22 22:17:59 +01:00
calixteman
1df6367ef9
Merge pull request #20710 from calixteman/normalize_path
...
Remove the leading slash in windows file path when instrumenting js files for ccov
2026-02-22 13:40:13 +01:00
calixteman
a8b1c8bd70
Remove the leading slash in windows file path when instrumenting js files for ccov
2026-02-22 13:32:49 +01:00
calixteman
1118050231
Merge pull request #20696 from calixteman/bug2016656
...
Only show the status bar in the views manager when it's in thumbnails mode (bug 2016656)
2026-02-21 23:00:54 +01:00
calixteman
f548a159d6
Merge pull request #20698 from calixteman/image_utils_test
...
Add some unit tests for functions in image_utils.js
2026-02-20 22:58:22 +01:00
Calixte Denizet
0bb59f15cb
Add some unit tests for functions in image_utils.js
2026-02-20 22:43:42 +01:00
Calixte Denizet
5f9a9f58ce
Only show the status bar in the views manager when it's in thumbnails mode (bug 2016656)
2026-02-20 22:33:34 +01:00
Tim van der Meij
aaf3ad5a4e
Merge pull request #20688 from calixteman/coverage_font_test
...
Add code coverage for font tests
2026-02-20 22:13:57 +01:00
Calixte Denizet
bd3f14f62d
Update the page count in the UI when some changes are done (bug 2018125)
2026-02-20 18:06:48 +01:00
calixteman
e2af2b83c3
Add code coverage for font tests
2026-02-18 22:00:45 +01:00
Calixte Denizet
0149527a4b
Add the possibility to navigate with the keyboard to go from a checkbox to an other in the thumbnail view (bug 2016007)
2026-02-18 18:35:54 +01:00
Calixte Denizet
d755fba96a
Add support for deleting, cutting, copying and pasting pages (bug 2010830, 2010831)
2026-02-18 16:43:00 +01:00
calixteman
e331d458cb
Merge pull request #20679 from calixteman/bug2016142
...
Add an aria-label to the sidebar resizer (bug 2016142)
2026-02-18 16:33:53 +01:00
Calixte Denizet
5290534c53
Correctly handle tab/page down when on a menu (bug 2016212)
2026-02-18 10:17:39 +01:00
Calixte Denizet
65f1b9b95b
Add an aria-label to the checkboxes in the thumbnails view (bug 2016136)
2026-02-17 20:58:10 +01:00
Tim van der Meij
178261a813
Merge pull request #20463 from matt-atticus/fix-text-selection-under-search-highlight
...
fix: support text selection under search highlights
2026-02-17 20:03:42 +01:00
Calixte Denizet
f4a2fd60db
Fix the keyboard accessibility of the manage button in the thumbnails view (bug 2015916)
2026-02-17 19:00:20 +01:00
Calixte Denizet
167dc5a415
Add an aria-label to the sidebar resizer (bug 2016142)
2026-02-17 13:38:56 +01:00
Matthew Lawrence
f01e4d477e
fix: prevent search highlights from interfering with drag-selection
2026-02-17 13:46:02 +11:00
Jonas Jenwald
31b4612ac0
Truncate too long /Decode map entries (issue 20668)
2026-02-16 16:22:00 +01:00
calixteman
fa28ca1468
Merge pull request #20651 from Snuffleupagus/Response-bytes
...
Start using `Response.prototype.bytes()` in the code-base
2026-02-13 10:31:54 +01:00
calixteman
ae9fc13d8f
Merge pull request #20649 from calixteman/bug2015385
...
Ends the current drawing session when closing the tab (bug 2015385)
2026-02-13 08:27:16 +01:00
calixteman
1b20ba5c3f
Ends the current drawing session when closing the tab (bug 2015385)
2026-02-12 22:21:55 +01:00
Jonas Jenwald
8ba83e73fa
Start using Response.prototype.bytes() in the code-base
...
In all cases where we currently use `Response.prototype.arrayBuffer()` the result is immediately wrapped in a `Uint8Array`, which can be avoided by instead using the newer `Response.prototype.bytes()` method; see https://developer.mozilla.org/en-US/docs/Web/API/Response/bytes
2026-02-12 11:20:05 +01:00
Tim van der Meij
96dbe92b53
Merge pull request #20643 from calixteman/fix_integration_test2
...
Fix a 'FreeText accessibility' integration test
2026-02-09 20:46:05 +01:00
calixteman
9870d898b4
Merge pull request #20640 from calixteman/issue20629
...
Set a pages mapper per loaded document
2026-02-09 10:27:33 +01:00
Calixte Denizet
0f9d20fa32
Fix a 'FreeText accessibility' integration test
...
It's a regression from #20624 .
2026-02-09 10:14:43 +01:00
calixteman
4b4ab10c54
Set a pages mapper per loaded document
...
It fixes #20629 .
2026-02-08 21:09:27 +01:00
Jonas Jenwald
e9c509aca9
Normalize the font name in getBaseFontMetrics (issue 20246)
...
We tried to lookup the font metrics using the font name as-is, which didn't work since the PDF file in question has non-embedded fonts with names that include commas.
Hence the font names need to be normalized here as well, similar to elsewhere in the font code.
2026-02-08 16:56:15 +01:00
Calixte Denizet
280a02150e
In tagged pdfs, TH can be either a column header or a row header (bug 2014080)
2026-02-06 10:04:13 +01:00
Tim van der Meij
a0f3528053
Merge pull request #20624 from calixteman/bug2013793
...
Flush the text content chunk only on real font changes (bug 2013793)
2026-02-05 21:14:49 +01:00
calixteman
22b97d1741
Flush the text content chunk only on real font changes (bug 2013793)
2026-02-03 23:11:31 +01:00
Calixte Denizet
ea993bfc1b
Let the toggle button in the alt-text dialog downloading (resp. delete) the model and enabling (resp. disabling) alt-text guessing (bug 2014167)
2026-02-03 20:27:06 +01:00
Jonas Jenwald
bfd17b2586
Merge pull request #20615 from Snuffleupagus/transport-onProgress
...
Report loading progress "automatically" when using the `PDFDataTransportStream` class, and remove the `PDFDataRangeTransport.prototype.onDataProgress` method
2026-02-01 22:36:43 +01:00
Jonas Jenwald
d152e92185
Merge pull request #20614 from Snuffleupagus/BasePDFStream-url
...
Change all relevant `BasePDFStream` implementations to take an actual `URL` instance
2026-02-01 22:13:28 +01:00