Commit Graph

76 Commits

Author SHA1 Message Date
Updatebot
30bc747daf Bug 1772598 - Update PDF.js to 19539676813b5df6ca4726a1bfa6765193b1067c r=pdfjs-reviewers,Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D148307
2022-06-05 18:44:01 +00:00
Calixte
50ac65fe36 Bug 1768821 - Update pdf.js to version 2.14.290 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D146057
2022-05-11 11:50:06 +00:00
Calixte
4356c3f7ec Bug 1766222 - Update pdf.js to version 2.14.224 r=pdfjs-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D144544
2022-04-25 19:44:06 +00:00
Cristian Tuns
df55173f82 Backed out changeset 2f832cfab538 (bug 1766222) for causing mochitest failures in browser_all_files_referenced.js CLOSED TREE 2022-04-25 14:40:26 -04:00
Calixte
40380981b2 Bug 1766222 - Update pdf.js to version 2.14.224 r=pdfjs-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D144544
2022-04-25 17:35:02 +00:00
Calixte
098ac875cb Bug 1764886 - Update pdf.js to version 2.14.171 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D143819
2022-04-15 14:39:47 +00:00
criss
99ab290c14 Backed out changeset a1e9e031f3a1 (bug 1764886) for causing failures on browser_parsable_script.js . CLOSED TREE 2022-04-15 16:57:08 +03:00
Calixte
787c2e38ec Bug 1764886 - Update pdf.js to version 2.14.171 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D143819
2022-04-15 12:50:55 +00:00
Calixte
c05a2729b8 Bug 1761323 - Update pdf.js to version 2.14.102 r=pdfjs-reviewers,bdahl
Differential Revision: https://phabricator.services.mozilla.com/D141984
2022-03-24 18:17:23 +00:00
Jonas Jenwald
03aaad9856 Bug 1757527 - Slightly reduce (repeated) message passing overhead when localizing the PDF Viewer. r=pdfjs-reviewers,calixte,bdahl
Currently there's a fair bit of unneeded overhead when localizing the PDF Viewer, since *every single* string requires a round-trip from the `viewer.js` file to the `PdfStreamConverter.jsm` file.
This despite the fact that the relevant `viewer.properties` file is read *only once*, and its result is then cached, see https://searchfox.org/mozilla-central/rev/8f42809e51cb07aa4f5739932a06d14581e9dd4a/toolkit/components/pdfjs/content/PdfStreamConverter.jsm#470-473

Hence we can improve things here by instead sending the *entire* localization data at once when it's first requested, and also cache it in the viewer, to reduce completely unneeded message passing overhead caused by localizing the PDF Viewer.

To put these changes into perspective, let's look at what happens when loading the PDF Specification; i.e. https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf
When loading that document we first of all need to localize the viewer UI, however the initialization/rendering of the PDF Document itself also causes some l10n-string lookups. All-in-all, simply loading the above PDF document in Firefox currently results in just over `3900` l10n-strings being fetched (with most of them being duplicates).
Furthermore, all these l10n-string lookups also have a measurable performance impact on the viewer UI localization. Using some, admittedly crude, benchmarking with `console.time/timeEnd` around the viewer UI localization code in https://searchfox.org/mozilla-central/rev/8f42809e51cb07aa4f5739932a06d14581e9dd4a/toolkit/components/pdfjs/content/web/viewer.js#484-485 gives the following results (using the best observed values, with `privacy.reduceTimerPrecision = false` set):

 - With the current code, the viewer UI localization takes around `12-13` ms.

 - With this patch, the viewer UI localization takes around `4-5` ms.

While these improvements are obviously not huge, they thus cannot hurt as far as I'm concerned.

(Assuming this is accepted, I'll obviously follow-up with the relevant `web/viewer.js` patch at GitHub. However, these changes must be synchronized in the both the viewer/integration code.)

Differential Revision: https://phabricator.services.mozilla.com/D139928
2022-03-11 01:24:05 +00:00
Brendan Dahl
efc2367f25 Bug 1757825 - Update pdf.js to version 2.14.13 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D140107
2022-03-02 22:41:56 +00:00
Brendan Dahl
61db54bf21 Bug 1756928 - Update pdf.js to version 2.13.189 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D139564
2022-02-24 16:09:29 +00:00
Brendan Dahl
16c4e781ee Bug 1754585 - Update pdf.js to version 2.13.133 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D138359
2022-02-10 16:28:09 +00:00
Brendan Dahl
f0c0b29353 Bug 1752574 - Update pdf.js to version 2.13.93 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D137301
2022-01-29 23:53:08 +00:00
Brendan Dahl
78c17ebda9 Bug 1748701 - Update pdf.js to version 2.13.24 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D135177
2022-01-06 15:21:58 +00:00
Brendan Dahl
caf3905d2c Bug 1743838 - Update pdf.js to version 2.12.248 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D132586
2021-12-02 23:04:11 +00:00
Brendan Dahl
380e4fb697 Bug 1739229 - Update pdf.js to version 2.12.126 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D130308
2021-11-03 22:18:53 +00:00
Brendan Dahl
1db2253640 Bug 1737299 - Update pdf.js to version 2.12.69 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D129280
2021-10-22 17:19:07 +00:00
Emilio Cobos Álvarez
2119007c36 Bug 1736038 - Remove -moz-toolbar-prefers-color-scheme. r=dao
By making prefers-color-scheme return the ColorSchemeForChrome(), which
accounts for the Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D128611
2021-10-15 16:53:08 +00:00
Brendan Dahl
23d0fe3081 Bug 1735409 - Update pdf.js to version 2.12.16 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D128291
2021-10-12 23:49:41 +00:00
Brendan Dahl
0bdf7abbc8 Bug 1732395 - Update pdf.js to version 2.11.298 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D126554
2021-09-24 00:02:03 +00:00
Brendan Dahl
11d022c59d Bug 1732117 - Update pdf.js to version 2.11.283 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D126363
2021-09-22 20:23:13 +00:00
Brendan Dahl
57cfe804c7 Bug 1730725 - Update pdf.js to version 2.11.243 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D125591
2021-09-14 19:51:34 +00:00
Brendan Dahl
c8fbb240fa Bug 1729049 - Update pdf.js to version 2.11.191 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D124481
2021-09-03 21:27:14 +00:00
Brendan Dahl
dc37e014ee Bug 1727189 - Update pdf.js to version 2.11.142 r=Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D123388
2021-08-24 22:56:35 +00:00
Brendan Dahl
9be2bd7c13 Bug 1724461 - Update pdf.js to version 2.11.91 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D122023
2021-08-06 22:15:48 +00:00
Brendan Dahl
093f3e4ffa Bug 1722768 - Update pdf.js to version 2.11.22 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D121125
2021-07-28 18:33:22 +00:00
Brendan Dahl
344ca6bf68 Bug 1722352 - Update pdf.js to version 2.11.5 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D120864
2021-07-26 20:04:23 +00:00
Brendan Dahl
858166b5ea Bug 1721179 - Update pdf.js to version 2.10.339 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D120245
2021-07-19 23:46:30 +00:00
Brendan Dahl
f83073a0bf Bug 1720361 - Update pdf.js to version 2.10.316 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D119800
2021-07-13 19:50:24 +00:00
Brendan Dahl
b62a3b0017 Bug 1719380 - Update pdf.js to version 2.10.263 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D119237
2021-07-06 23:03:03 +00:00
Brendan Dahl
e38fe0ca52 Bug 1718320 - Update pdf.js to version 2.10.201 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D118857
2021-06-25 19:27:14 +00:00
Brendan Dahl
00248e1331 Bug 1718101 - Update pdf.js to version 2.10.199 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D118734
2021-06-24 16:38:57 +00:00
Brendan Dahl
4d68452ca1 Bug 1717132 - Update pdf.js to version 2.10.146 r=marco
Differential Revision: https://phabricator.services.mozilla.com/D118240
2021-06-18 03:29:01 +00:00
Brendan Dahl
1e0052955f Bug 1715638 - Update pdf.js to version 2.10.87 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D117365
2021-06-09 21:30:31 +00:00
Brendan Dahl
d56e224f6a Bug 1711106 - Update pdf.js to version 2.9.273 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D115074
2021-05-13 23:03:38 +00:00
Brendan Dahl
dbd0019eb4 Bug 1708241 - Update pdf.js to version 2.9.142 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D113674
2021-04-28 16:56:53 +00:00
Mark Striemer
53f31f0d01 Bug 1701691 - pdfjs -moz-toolbar-prefers-color-scheme support r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D111975
2021-04-18 22:22:51 +00:00
Brendan Dahl
f113e6c09b Bug 1704661 - Update pdf.js to version 2.9.44 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D111747
2021-04-14 01:38:01 +00:00
Alexandru Michis
a4dc5a931e Backed out changeset 23642408865d (bug 1704661) for causing bc failures in browser_parsable_css.js
CLOSED TREE
2021-04-13 20:36:28 +03:00
Brendan Dahl
9c754632a6 Bug 1704661 - Update pdf.js to version 2.9.44 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D111747
2021-04-13 15:55:13 +00:00
Brendan Dahl
158167db2a Bug 1702796 - Update pdf.js to version 2.8.320 r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D110697
2021-04-02 20:54:28 +00:00
Brendan Dahl
808ebd7598 Bug 1699313 - Update pdf.js to version 2.8.243 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D108882
2021-03-18 15:34:06 +00:00
Brendan Dahl
9d1e869ab7 Bug 1697362 - Update pdf.js to version 2.8.188 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D107780
2021-03-10 16:04:23 +00:00
Brendan Dahl
f54ce6f58e Bug 1694551 - Update pdf.js to version 2.8.126 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D106232
2021-03-03 15:53:44 +00:00
Brendan Dahl
3bf5a0359f Bug 1693855 - Update pdf.js to version 2.8.117 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D105804
2021-02-19 18:07:48 +00:00
Brendan Dahl
253143b4df Bug 1691510 - Update pdf.js to version 2.8.61 r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D104445
2021-02-08 20:09:29 +00:00
Brendan Dahl
0480ba85ca Bug 1691143 - Update pdf.js to version 2.8.43. r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D104282
2021-02-06 11:30:25 +00:00
Ryan VanderMeulen
73ca006d99 Bug 1686102 - Update pdf.js to version 2.7.510. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D101381
2021-01-12 01:18:55 +00:00
Brendan Dahl
6f32126e7d Bug 1681399 - Update pdf.js to version 2.7.345. r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D99147
2020-12-09 16:56:24 +00:00