Jonas Jenwald
0c514b008b
Use Response.prototype.bytes() more in the code-base (PR 20651 follow-up)
2026-03-07 15:50:36 +01:00
Jonas Jenwald
aaf9b3bad0
Merge pull request #20821 from Snuffleupagus/scripting-sumPrecise-upsert
...
Use `Math.sumPrecise` and `Map.prototype.getOrInsertComputed` in the scripting implementation
2026-03-07 14:09:23 +01:00
Jonas Jenwald
49e8240c19
Use Map.prototype.getOrInsertComputed in the scripting implementation
...
This adds a basic non-MOZCENTRAL polyfill for now, which we should be able to remove once the next QuickJS version is released; note the pending changelog at f1139494d1/Changelog (L7)
2026-03-07 13:19:40 +01:00
Jonas Jenwald
ca428aadae
Use Math.sumPrecise in the scripting implementation
...
This adds a *very basic* non-MOZCENTRAL polyfill for now, which we should be able to remove once the next QuickJS version is released; note the pending changelog at f1139494d1/Changelog (L8)
2026-03-07 13:19:40 +01:00
Tim van der Meij
d34a15e03f
Merge pull request #20662 from Snuffleupagus/getPdfManager-async-read
...
Convert the data reading in `getPdfManager` to be asynchronous
2026-03-07 13:16:22 +01:00
Tim van der Meij
d08e90b051
Merge pull request #20819 from calixteman/avoid_stuck_actions
...
Avoid to have stuck actions when running update_locales task
2026-03-07 13:11:08 +01:00
Tim van der Meij
a3a13f6041
Merge pull request #20820 from Snuffleupagus/createActionsMap-shorten
...
Shorten the `createActionsMap` helper in the `src/scripting_api/common.js` file
2026-03-07 13:09:16 +01:00
Jonas Jenwald
d236b517fe
Shorten the createActionsMap helper in the src/scripting_api/common.js file
2026-03-07 11:22:21 +01:00
Jonas Jenwald
d9b81b5199
Merge pull request #20818 from Snuffleupagus/JBig2-fixes
...
A couple of small JBig2 fixes
2026-03-06 16:04:03 +01:00
calixteman
99f1109d67
Merge pull request #20815 from mozilla/update-locales
...
l10n: Update locale files
2026-03-06 15:04:43 +01:00
calixteman
d618a2bc7e
Avoid to have stuck actions when running update_locales task
...
The task update_locales is using the GITHUB_TOKEN to push the changes to
the update-locales branch, but this token doesn't trigger other workflows (see [1]),
so we need to explicitly dispatch the required ones.
[1] https://github.com/orgs/community/discussions/26970#discussioncomment-3254152
2026-03-06 14:51:45 +01:00
Jonas Jenwald
efa13c5e2a
Don't duplicate the Jbig2Error exception
...
Let `src/core/jbig2_ccittFax_wasm.js` import the existing exception, rather than duplicate its code.
2026-03-06 12:04:08 +01:00
Jonas Jenwald
29362e6afb
Remove the JBig2CCITTFaxWasmImage instance when running clean-up
...
This follows the same pattern as the existing handling for the `JpxImage` instance.
2026-03-06 12:04:03 +01:00
Jonas Jenwald
7f4e29ed22
Change the "Terminate" worker-thread handler to an asynchronous function
...
This is a tiny bit shorter, which cannot hurt.
2026-03-06 11:24:12 +01:00
github-actions[bot]
182a2c7bad
l10n: Update locale files
2026-03-06 00:35:13 +00:00
Jonas Jenwald
e8ab3cb335
Convert the data reading in getPdfManager to be asynchronous
...
This is not only shorter, but (in my opinion) it also simplifies the code.
*Note:* In order to keep the *five* different `BasePDFStreamReader` implementations consistent, we purposely don't re-factor the `PDFWorkerStreamReader` class to support `for await...of` iteration.
2026-03-05 22:50:26 +01:00
calixteman
a4fcd830cc
Merge pull request #20774 from calixteman/rm_gulp_sourcemaps
...
Remove gulp-sourcemaps dependency which is unmaintained
2026-03-05 22:49:16 +01:00
calixteman
3a80ae47f9
Merge pull request #20800 from calixteman/bug2020731
...
Once a page has been deleted or pasted, make sure the focus stays in the sidebar (bug 2020731)
2026-03-05 22:47:27 +01:00
Calixte Denizet
064e6a8b1c
Remove gulp-sourcemaps dependency which is unmaintained
2026-03-05 22:28:44 +01:00
Tim van der Meij
688ae9b3e5
Merge pull request #20811 from calixteman/fix_xref
...
Add fetch** functions in the XRefWrapper
2026-03-05 22:02:08 +01:00
Calixte Denizet
d489ad0b5b
Once a page has been deleted or pasted, make sure the focus stays in the sidebar (bug 2020731)
2026-03-05 21:52:12 +01:00
Tim van der Meij
55fe04657b
Merge pull request #20812 from calixteman/context_menu_follow_up
...
Fix the event name in some integration tests (follow-up of #20788 )
2026-03-05 21:20:15 +01:00
Tim van der Meij
d3e04d29ac
Merge pull request #20798 from calixteman/bug2016437
...
Fix the position of the thumbnails on the last line (bug 2016437)
2026-03-05 21:19:39 +01:00
Tim van der Meij
01bc76e681
Merge pull request #20806 from Snuffleupagus/BinaryCMapStream-extends-Stream
...
Let `BinaryCMapStream` extend the `Stream` class
2026-03-05 20:43:37 +01:00
Tim van der Meij
7e48938009
Merge pull request #20799 from Snuffleupagus/readPostScriptTable-getString
...
Use `BaseStream.prototype.getString` in the `readPostScriptTable` function
2026-03-05 20:40:59 +01:00
Tim van der Meij
874ba23afc
Merge pull request #20802 from calixteman/rm_sidebar_resize_observer
...
Remove the sidebar resize observer when killing the UI
2026-03-05 20:39:28 +01:00
Tim van der Meij
f18f1ca119
Merge pull request #20778 from mozilla/dependabot/github_actions/actions/upload-artifact-7
...
Bump actions/upload-artifact from 6 to 7
2026-03-05 20:34:52 +01:00
Tim van der Meij
60a0e24605
Merge pull request #20792 from calixteman/bug2020758
...
Add some aria-labels to the paste button in order to know where the buttons are (bug 2020758)
2026-03-05 20:32:20 +01:00
Tim van der Meij
a8d1aa9db8
Merge pull request #20797 from calixteman/bug2020774
...
Fix few colors in the Manage menu in HCM (bug 2020774)
2026-03-05 20:29:44 +01:00
Tim van der Meij
2463f4dc73
Merge pull request #20794 from calixteman/bug2020737
...
Move the heading role on the sidebar label (bug 2020737)
2026-03-05 20:29:07 +01:00
Calixte Denizet
8540897e54
Fix the event name in some integration tests (follow-up of #20788 )
2026-03-05 20:24:35 +01:00
Tim van der Meij
cbc0362357
Merge pull request #20787 from Snuffleupagus/improve-PdfTextExtractor
...
Improve and simplify the `PdfTextExtractor` implementation
2026-03-05 20:23:23 +01:00
Calixte Denizet
150c1e80c2
Add fetch** functions in the XRefWrapper
...
It could fail to not have them if they're used during writing.
2026-03-05 19:21:12 +01:00
calixteman
9f8f303b1f
Merge pull request #20803 from calixteman/fix_saving
...
Fix downloading the current pdf
2026-03-05 15:01:08 +01:00
Calixte Denizet
dd52343d58
Fix downloading the current pdf
2026-03-05 13:05:03 +01:00
Jonas Jenwald
fccee4bffd
Let BinaryCMapStream extend the Stream class
...
Looking at the `BinaryCMapStream` implementation, it's basically a "regular" `Stream` but with added functionality for reading compressed CMap data.
Hence, by letting `BinaryCMapStream` extend `Stream`, we can remove an effectively duplicate method and simplify/shorten the code a tiny bit.
2026-03-05 11:45:29 +01:00
Calixte Denizet
1ac5dfeba8
Remove the sidebar resize observer when killing the UI
2026-03-05 09:51:35 +01:00
Jonas Jenwald
aa445877a9
Use BaseStream.prototype.getString in the readPostScriptTable function
...
Currently the `customNames` are read one byte at a time, in a loop, and at every iteration converted to a string.
This can be replaced with the `BaseStream.prototype.getString` method, which didn't exist back when this function was written.
2026-03-04 18:34:07 +01:00
Jonas Jenwald
4d0709c174
Merge pull request #20795 from Snuffleupagus/Dict-more-iterators
...
Change the `Dict.prototype.{getKeys, getRawValues}` methods to return iterators
2026-03-04 18:26:42 +01:00
Calixte Denizet
7f76a111c4
Fix the position of the thumbnails on the last line (bug 2016437)
...
The original issue can only be reproduce when the thumbnails are on two lines.
The fix is just a matter of computing the number of elements on the last line once we've
finished the first line.
2026-03-04 17:30:10 +01:00
calixteman
7384359a41
Merge pull request #20781 from pengkunbin/fix/chinese-font-names-gbk
...
Fix missing Chinese font name variants (SimFang and XiaoBiaoSong) in GBK encoding detection
2026-03-04 16:49:44 +01:00
Calixte Denizet
f9c50bb7ce
Fix few colors in the Manage menu in HCM (bug 2020774)
2026-03-04 16:47:48 +01:00
calixteman
c41be4fd88
Merge pull request #20796 from nicolo-ribaudo/fix-license-lint
...
Ignore directories in lint-licenses task
2026-03-04 16:29:10 +01:00
Nicolò Ribaudo
ad91f3abc8
Ignore directories in lint-licenses task
...
The glob pattern will include directories that have a name ending,
for example, with `.js`.
2026-03-04 16:24:28 +01:00
Jonas Jenwald
229e3642be
Change the Dict.prototype.getRawValues method to return an iterator
...
This method is usually used with loops, and it should be a tiny bit more efficient to use an iterator directly rather than first iterating through ` Map`-values to create a temporary `Array` that we finally iterate through at the call-site.
Note that the `getRawValues` method is old code, and originally the `Dict` class stored its data in a regular `Object`, hence why the old code was written that way.
2026-03-04 16:07:49 +01:00
Jonas Jenwald
58996f21b2
Change the Dict.prototype.getKeys method to return an iterator
...
This method is usually used with loops, and it should be a tiny bit more efficient to use an iterator directly rather than first iterating through ` Map`-keys to create a temporary `Array` that we finally iterate through at the call-site.
Note that the `getKeys` method is old code, and originally the `Dict` class stored its data in a regular `Object`, hence why the old code was written that way.
2026-03-04 16:07:49 +01:00
Jonas Jenwald
40bd73551c
Merge pull request #20793 from Snuffleupagus/more-getRawEntries
...
Use the `Dict.prototype.getRawEntries` method more
2026-03-04 16:05:57 +01:00
Jonas Jenwald
2c78b745af
Merge pull request #20791 from Snuffleupagus/l10n-README
...
Update l10n related information in various READMEs
2026-03-04 16:04:33 +01:00
Calixte Denizet
f6401e4344
Move the heading role on the sidebar label (bug 2020737)
2026-03-04 15:25:11 +01:00
calixteman
ce5f34ba13
Merge pull request #20780 from wooorm/wooorm/dismiss-popups
...
Add support for dismissing comment popups with click outside
2026-03-04 15:24:29 +01:00