Commit Graph

155 Commits

Author SHA1 Message Date
Calixte
d0c1117c1d Bug 1792052 - Update pdf.js to new version 91bdcd8b20b275b65dcf0252bebe561a22ccd04c r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D157940
2022-09-22 19:31:52 +00:00
Calixte
500be73a81 Bug 1789883 - Add telemetry to know often users click in the secondary toolbar r=TravisLong,pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D157114
2022-09-12 17:33:27 +00:00
Calixte
e23ae8d8bd Bug 1790394 - Update pdf.js to new version 493bb65005202678c5fa803859dcf70cbb6e37a6 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D157118
2022-09-12 16:13:55 +00:00
Calixte
843cc91c4f Bug 1790039 - Update pdf.js to new version a274f63d50ebcd25efe4973283ded17fa1428fd4 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D156975
2022-09-09 19:07:34 +00:00
Calixte
1c325ea899 Bug 1788003 - Update pdf.js to new version 86370bd5c5945789491c8cc4e8cf40951e6b1cde r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D155955
2022-08-30 11:04:40 +00:00
Calixte
1450b26280 Bug 1784918 - Update pdf.js to new version 518115fddc6db2c28752b8e9369c79377f521592 r=pdfjs-reviewers,Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D154668
2022-08-15 20:06:50 +00:00
Calixte
8217b81af3 Bug 1784537 - Update pdf.js to new version 3cf31a8b17d46434cfc03369b413e2daa2743803 r=pdfjs-reviewers,Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D154551
2022-08-13 11:30:00 +00:00
Calixte
33bb13039c Bug 1782254 - Add some telemetry to measure how often users are using the pdf editing feature r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D153480
2022-08-09 17:38:37 +00:00
Csoregi Natalia
a4c382ea54 Backed out changeset 0794c953b2f4 (bug 1782254) for causing failures on browser_pdfjs_editing_telemetry.js. CLOSED TREE 2022-08-09 14:54:06 +03:00
Calixte
2b305f8022 Bug 1782254 - Add some telemetry to measure how often users are using the pdf editing feature r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D153480
2022-08-09 09:17:15 +00:00
Calixte
54cf75be82 Bug 1783605 - Update pdf.js to new version 40f9f7e9097e1168e98f1e2987726c5c31693617 r=pdfjs-reviewers,Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D153914
2022-08-08 12:21:05 +00:00
Calixte
c6046dd3a5 Bug 1782014 - Update pdf.js to version b06d1904519d2270a191e44ef1290188ac8dbc46 r=pdfjs-reviewers,Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D153070
2022-07-28 13:01:15 +00:00
Calixte
b4f84fdf98 Bug 1780839 - Update pdf.js to version bf000687313b08924186f9f35a604f8cce27bd1d r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D152547
2022-07-22 21:22:24 +00:00
Gijs Kruitbosch
62d6077372 Bug 1768671 - force append '.pdf' for pdf blob downloads displayed inline if it's missing, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151890
2022-07-18 09:53:31 +00:00
Calixte
660734045b Bug 1779408 - Update pdf.js to version 2.15.259 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D151720
2022-07-13 16:44:18 +00:00
Tooru Fujisawa
328d63ce7f Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
f009ba2983 Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
bf0a8b781b Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
b10d0289af Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Calixte
4392ee3dbd Bug 1778827 - Update pdf.js to version 2.15.244 r=pdfjs-reviewers,Snuffleupagus
Differential Revision: https://phabricator.services.mozilla.com/D151433
2022-07-09 16:26:30 +00:00
Calixte
588ee9249e Bug 1777695 - Add some entries in the context menu when editing a PDF r=mconley
It adds the entries Undo, Redo, Cut, Copy, Paste, Delete and Select all,
only when the pdf editing mode is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D151122
2022-07-08 08:27:18 +00:00
Calixte
1b116c9528 Bug 1778273 - Update pdf.js to version 2.15.224 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D151106
2022-07-06 10:12:11 +00:00
Calixte
888e19217b Bug 1777929 - Update an l10n string id after a change r=flod
Differential Revision: https://phabricator.services.mozilla.com/D150941
2022-07-04 09:20:55 +00:00
Updatebot
a6236265a3 Bug 1777768 - Update PDF.js to 13c01b6d4ababf039fe59ef800ebae38b1de37f5 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D150882
2022-07-02 10:22:47 +00:00
Updatebot
02c79d4a04 Bug 1776538 - Update PDF.js to cd35b9bfac85c00238cf0fa0f657a780f2a5ead6 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D150311
2022-06-28 09:47:24 +00:00
Updatebot
08ec64522f Bug 1774899 - Update PDF.js to be2dfe45f96fa58a1926f764fd64d2416cecc501 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D149681
2022-06-19 12:07:24 +00:00
Calixte
5f538b4788 Bug 1774017 - Update pdf.js to version 1a6ae5f03480d7c655dff7aea3d39d10d05d9197 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D149144
2022-06-13 15:59:45 +00:00
Calixte
6ac17b175d Bug 1773846 - Add an async function to dispatch an event in the pdf.js sandbox r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D148987
2022-06-11 20:12:36 +00:00
Tooru Fujisawa
b5e1e2bcbe Bug 1772101 - Part 29: Use plain object for lazy getter in toolkit/components/pdfjs/content/. r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D147970
2022-06-07 04:31:01 +00:00
Neil Deakin
f9ab48956f Bug 1762868, handle pdfs inline that use the content type octet-stream when they have a pdf extension, r=mhowell
To do this we look at the extension on the content disposition filename, if present, or the extension
of the url, and, if it is .pdf, we assume that the file will be a pdf.

Differential Revision: https://phabricator.services.mozilla.com/D147409
2022-06-06 18:58:19 +00:00
Tooru Fujisawa
ebcb6dfd9c Bug 1772360 - Remove unnecessary call for XPCOMUtils.defineLazyGlobalGetters. r=florian,webdriver-reviewers,webcompat-reviewers,denschub,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148168
2022-06-06 04:42:10 +00:00
Molnar Sandor
4c2b06df41 Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa
81758ebac5 Bug 1772360 - Remove unnecessary call for XPCOMUtils.defineLazyGlobalGetters. r=florian,webdriver-reviewers,webcompat-reviewers,denschub,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148168
2022-06-06 02:49:14 +00:00
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
9eafb7c7a0 Bug 1766030 - Add an optional source URL when saving an URL. r=Gijs
In pdf.js, files are saved thanks to a blob but the original URL is lost.
Consequently, the download panel doesn't contain any information about the
origins of a saved pdf.
The saveURL, internalSave and nsITransfer.init functions has now a parameter for this originalURL.

Differential Revision: https://phabricator.services.mozilla.com/D147651
2022-05-31 17:25:29 +00:00
Neil Deakin
22c92b2131 Bug 1757771, always launch the save dialog when pressing the PDF Viewer download button, and remove test code that expected the unknown type dialog to appear, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D145814
2022-05-16 14:34:14 +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
Cristian Tuns
984cce335f Backed out changeset 3978f169f641 (bug 1752149) for causing mochitest failures browser_download_open_with_internal_handler.js CLOSED TREE. 2022-03-01 13:15:07 -05:00
Marco Castelluccio
49f0e1a94f Bug 1752149 - Always launch the save dialog when pressing the PDF Viewer download button. r=pdfjs-reviewers,Gijs,bdahl
Independently from the value of the browser.download.improvements_to_download_panel pref.

Differential Revision: https://phabricator.services.mozilla.com/D138607
2022-03-01 16:45:35 +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
Calixte
33d9dfd234 Bug 1753509 - Add support for search with or without diacritics in the pdf viewer r=pdfjs-reviewers,bdahl
Differential Revision: https://phabricator.services.mozilla.com/D137796
2022-02-11 16:28:19 +00:00