Commit Graph

79 Commits

Author SHA1 Message Date
Andrew McCreight
320fae3d2c Bug 1351690, part 1 - Split out pdf.js stream registration into another jsm. r=bdahl
The goal of these patches is to load neither PdfJs.jsm nor
PdfStreamConverter.jsm in a content process unless the user is viewing
a PDF, to save memory.

This first patch creates a small stub JSM to do the stream
registration, and calls it directly in the content process, avoiding
one way we load PdfJs.jsm. The existing registration methods are kept
for the main process.

MozReview-Commit-ID: 5GH8tjHXfLb
2018-05-18 16:57:59 -07:00
Andreea Pavel
a570f1ddfa Backed out 4 changesets (bug 1351690) for failing browser chrome at e.g. browser/extensions/pdfjs/test/browser_pdfjs_zoom.js
Backed out changeset 8def346f7119 (bug 1351690)
Backed out changeset 64082649b185 (bug 1351690)
Backed out changeset 64d513f3c02b (bug 1351690)
Backed out changeset 4219d3de5e8b (bug 1351690)
2018-05-31 13:03:06 +03:00
Andrew McCreight
95727799a7 Bug 1351690, part 1 - Split out pdf.js stream registration into another jsm. r=bdahl
The goal of these patches is to load neither PdfJs.jsm nor
PdfStreamConverter.jsm in a content process unless the user is viewing
a PDF, to save memory.

This first patch creates a small stub JSM to do the stream
registration, and calls it directly in the content process, avoiding
one way we load PdfJs.jsm. The existing registration methods are kept
for the main process.

MozReview-Commit-ID: 5GH8tjHXfLb
2018-05-18 16:57:59 -07:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Kris Maglione
b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Brendan Dahl
7a24d04a4b Bug 1444499 - Update pdf.js to version 2.0.447. r=yury
MozReview-Commit-ID: 1gbyxWQyGvK
2018-03-20 16:20:03 -07:00
Kirk Steuber
d2a4c1e81e Bug 1429160 - Create enterprise policy to disable PDF.js. r=dthayer,felipe 2018-03-07 13:17:07 -08:00
Ryan VanderMeulen
2e3b53c6bd Bug 1439634 - Update pdf.js to version 2.0.385. r=bdahl 2018-02-20 11:26:33 -05:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Florian Quèze
c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Ryan VanderMeulen
21269118ce Bug 1424365 - Update pdf.js to version 2.0.197. r=bdahl 2017-12-08 15:55:38 -05:00
Dan Banner
503979c95a Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ
2017-05-28 19:57:46 +01:00
Ryan VanderMeulen
bc8078a753 Bug 1410910 - Update pdf.js to version 1.9.659. r=bdahl 2017-10-23 10:40:09 -04:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Ryan VanderMeulen
0ee2be7bac Bug 1393930 - Update pdf.js to version 1.9.476. r=bdahl 2017-08-25 16:04:21 -04:00
Doug Thayer
662884beec Bug 1389443 - Load handlers.json asynchronously r=florian,Paolo
Asynchronously load handlers.json for nsHandlerService-json.js in
order to avoid blocking IO early on.

MozReview-Commit-ID: F3THSxvXR7I
2017-08-15 14:57:32 -07:00
Ryan VanderMeulen
3962804096 Bug 1385136 - Update pdf.js to version 1.8.581. r=bdahl 2017-07-27 20:17:24 -04:00
Ryan VanderMeulen
c42e16b4de Bug 1371748 - Update pdf.js to version 1.8.432. r=bdahl 2017-06-09 13:27:53 -04:00
Ryan VanderMeulen
15f7fec809 Bug 1370122 - Update pdf.js to version 1.8.423. r=bdahl 2017-06-04 21:38:45 -04:00
Doug Thayer
b1a9ee0919 Bug 1353029 - Pass PdfJs.enabled into child on change r=bdahl
isDefaultHandler in PdfJs.jsm appears to only be called on
startup and when the settings for pdfs (either the pref or the
setting in about:preferences) are changed. During startup, it's
only the parent process which makes this call, which it uses
to conditionally load a script in the content process. On change,
the parent process controls notifying the content process, so
it can simply pass along the enabled boolean. This change simply
shifts to pass this boolean along to the child, and adds some
guards to assert that we're only checking the actual values in
the parent process.

MozReview-Commit-ID: 9JSEJqHR2Ni
2017-05-30 16:34:53 -07:00
Ryan VanderMeulen
52d6a37131 Bug 1367898 - Update pdf.js to version 1.8.384. r=bdahl 2017-05-25 17:01:21 -04:00
Ryan VanderMeulen
6634e4746a Bug 1366004 - Update pdf.js to version 1.8.363. r=bdahl 2017-05-18 13:40:06 -04:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Ryan VanderMeulen
da850ea614 Bug 1354081 - Update pdf.js to version 1.8.173. r=bdahl 2017-04-07 13:32:57 -04:00
Andrew McCreight
3d50fc3dcb Bug 1352218, part 2 - Avoid PdfJs.enabled call. r=Gijs
This avoids a sync IPC message from child to parent.

Changes entirely from:
  https://github.com/mozilla/pdf.js/pull/8218

MozReview-Commit-ID: 3Egayok3DBZ
2017-03-30 14:52:09 -07:00
Ryan VanderMeulen
4296bffa34 Bug 1338395 - Update pdf.js to version 1.7.290. r=bdahl 2017-02-13 18:57:51 -05:00
Sebastian Hengst
61e43ed4e3 Backed out changeset f884a597f402 (bug 1338395) for timing out in browser_pdfjs_main.js, at least on Linux with e10s. r=backout 2017-02-10 20:46:38 +01:00
Ryan VanderMeulen
0b9bcad296 Bug 1338395 - Update pdf.js to version 1.7.278. r=bdahl 2017-02-10 13:12:37 -05:00
Ryan VanderMeulen
539645910d Backed out changeset e9d5d057344d (bug 1338395) for packaging bustage on a CLOSED TREE. 2017-02-09 21:56:00 -05:00
Ryan VanderMeulen
044882391f Bug 1338395 - Update pdf.js to version 1.7.274. r=bdahl 2017-02-09 21:37:45 -05:00
Ryan VanderMeulen
92a1db5da0 Bug 1335048 - Update pdf.js to version 1.7.235. r=bdahl 2017-01-23 15:32:49 -05:00
Ryan VanderMeulen
392d59d817 Bug 1332910 - Update pdf.js to version 1.6.467. r=bdahl 2017-01-22 07:54:33 -05:00
Ryan VanderMeulen
8b4f04c2be Bug 1330830 - Update pdf.js to version 1.6.454. r=bdahl 2017-01-12 20:19:09 -05:00
Florian Quèze
b36a8b8f42 Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
Ryan VanderMeulen
0b71fbb4b1 Bug 1326340 - Update pdf.js to version 1.6.418. r=bdahl, r=Mossop 2016-12-29 22:08:13 -05:00
Phil Ringnalda
d6d6acca75 Backed out changeset 6f1dd8377713 (bug 1326340) for browser_parsable_css.js failure
MozReview-Commit-ID: KVUOe1Pkiyq
2016-12-29 21:05:04 -08:00
Ryan VanderMeulen
77abf56806 Bug 1326340 - Update pdf.js to version 1.6.418. r=bdahl 2016-12-29 22:08:13 -05:00
Ryan VanderMeulen
bc44c0e12b Bug 1318771 - Update pdf.js to version 1.6.329. r=bdahl 2016-11-18 15:58:06 -05:00
Ryan VanderMeulen
b32f982c82 Bug 1315421 - Update pdf.js to version 1.6.304. r=bdahl 2016-11-04 22:50:14 -04:00
Ryan VanderMeulen
b7e91c6d79 Bug 1303228 - Update pdf.js to version 1.5.464. r=bdahl 2016-09-15 21:46:34 -04:00
Ryan VanderMeulen
628cb76585 Bug 1301577 - Update pdf.js to version 1.5.437. r=bdahl 2016-09-08 21:52:20 -04:00
Ryan VanderMeulen
3a02a922fd Bug 1299862 - Update pdf.js to version 1.5.413. r=bdahl 2016-09-01 12:49:33 -04:00
Ryan VanderMeulen
53523f6290 Bug 1288803 - Update pdf.js to version 1.5.345. r=bdahl 2016-07-22 14:18:27 -04:00