Commit Graph

89 Commits

Author SHA1 Message Date
Kris Maglione
0847e8227e Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB
2018-05-25 17:02:29 -07:00
Andrew McCreight
75c9658968 Bug 1351690, part 3 - Move stream converter XPCOM registration constants into the registration file. r=bdahl
As with the last patch, the factory is only used for a single class,
so move the constants closer to where they are used. This will allow
us to register the stream converter without loading the stream
converter JSM.

MozReview-Commit-ID: DRKVtYQOs2J
2018-05-22 15:37:58 -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
0533184337 Bug 1351690, part 3 - Move stream converter XPCOM registration constants into the registration file. r=bdahl
As with the last patch, the factory is only used for a single class,
so move the constants closer to where they are used. This will allow
us to register the stream converter without loading the stream
converter JSM.

MozReview-Commit-ID: DRKVtYQOs2J
2018-05-22 15:37:58 -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
Ryan VanderMeulen
0826845c0d Bug 1453838 - Update pdf.js to version 2.0.491. r=bdahl, r=yury 2018-04-12 19:29:03 -04:00
Gijs Kruitbosch
38e03ed37a Bug 1358815 - update pdfjs for async-created findbar, r=bdahl
MozReview-Commit-ID: Byr5B4yAzfx
2018-03-13 11:52:56 +00:00
Brindusan Cristian
a6e62d8ce3 Backed out 2 changesets (bug 1358815) for bc failures on browser_pdfjs_main.js CLOSED TREE
Backed out changeset 880736d97de3 (bug 1358815)
Backed out changeset a2a0a0990e1a (bug 1358815)
2018-03-15 21:23:12 +02:00
Gijs Kruitbosch
a767008864 Bug 1358815 - update pdfjs for async-created findbar, r=bdahl
MozReview-Commit-ID: Byr5B4yAzfx
2018-03-13 11:52:56 +00:00
Ryan VanderMeulen
2e3b53c6bd Bug 1439634 - Update pdf.js to version 2.0.385. r=bdahl 2018-02-20 11:26:33 -05:00
Thomas Wisniewski
a244e64db4 Bug 792808 - Change PdfStreamConverter.jsm to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=mossop
MozReview-Commit-ID: 3dj92XGY1G2
2017-09-19 12:17:59 -04: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
Ryan VanderMeulen
030b6dcbb1 Bug 1435814 - Update pdf.js to version 2.0.332. r=bdahl 2018-02-05 14:24:35 -05: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
f99190fd98 Bug 1421048 - Update pdf.js to version 2.0.161. r=bdahl 2017-11-27 15:56:48 -05:00
Ryan VanderMeulen
7f48e20229 Bug 1416009 - Update pdf.js to version 2.0.106. r=bdahl, r=Mossop on a CLOSED TREE 2017-11-09 17:05:52 -05:00
Ryan VanderMeulen
15f7fec809 Bug 1370122 - Update pdf.js to version 1.8.423. r=bdahl 2017-06-04 21:38:45 -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
Honza Bambas
f3b5a77a73 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher
7b49a483cc Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Honza Bambas
b05b600614 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Honza Bambas
e8227e774f Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Ryan VanderMeulen
a1deba2890 Bug 1361060 - Update pdf.js to version 1.8.290. r=bdahl 2017-05-01 11:01:24 -04:00
Sebastian Hengst
6d4b7656d3 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Ryan VanderMeulen
70fef73e3e Bug 1360342 - Update pdf.js to version 1.8.269. r=bdahl 2017-04-27 16:09:49 -04:00
Honza Bambas
b8b338133e Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Zibi Braniecki
8c433fc56a Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK
2017-03-11 18:43:11 -08:00
Sebastian Hengst
017c2ee2bf Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Zibi Braniecki
64bae2dccf Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK
2017-03-11 18:43:11 -08:00
Ryan VanderMeulen
da850ea614 Bug 1354081 - Update pdf.js to version 1.8.173. r=bdahl 2017-04-07 13:32:57 -04:00
Florian Quèze
49d8db6821 Bug 1345294 - script generated patch (+ some hand cleanup) to replace {get,set}ComplexValue for nsISupportsString by {get,set}StringPref, r=Mossop. 2017-03-16 19:26:01 +01: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
2bf465d6c3 Bug 1334363 - Update pdf.js to version 1.7.227. r=bdahl 2017-01-26 21:35:12 -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
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +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