Commit Graph

58 Commits

Author SHA1 Message Date
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
Ryan VanderMeulen
fa0c9cfe00 Bug 1311866 - Update pdf.js to version 1.6.263. r=bdahl 2016-10-20 18:50:37 -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
53523f6290 Bug 1288803 - Update pdf.js to version 1.5.345. r=bdahl 2016-07-22 14:18:27 -04:00
Ryan VanderMeulen
ad5595e5e0 Bug 1282095 - Update pdf.js to version 1.5.305. r=bdahl 2016-06-24 11:55:02 -04:00
Yury Delendik
03c331fcc5 Bug 1242730 - Convert callsites to use channel.async0pen2() within browser/extensions/pdfjs. r=ydelendik 2016-03-24 12:52:29 -05:00
Ryan VanderMeulen
5712e98843 Bug 1263067 - Update pdf.js to version 1.4.213. r=bdahl, r=sicking 2016-04-07 22:13:03 -04:00
Ryan VanderMeulen
670e9e6ef8 Bug 1261352 - Update pdf.js to version 1.4.185. r=bdahl, r=Mossop 2016-04-01 06:37:00 -04:00
Ryan VanderMeulen
2bdd8acccf Bug 1251620 - Update pdf.js to version 1.4.95. r=bdahl, r=Mossop 2016-02-26 10:58:42 -05:00
Ryan VanderMeulen
0360856386 Bug 1249508 - Update pdf.js to version 1.4.83. r=bdahl, r=Mossop 2016-02-18 22:01:35 -05:00
Ryan VanderMeulen
05c4b1c33d Bug 1226621 - Update pdf.js to version 1.3.14. r=bdahl 2015-11-20 11:32:09 -05:00
Ryan VanderMeulen
1de89e9883 Bug 1222198 - Update pdf.js to version 1.2.68. r=bdahl, r=Mossop 2015-11-05 17:22:25 -05:00
Ryan VanderMeulen
4005ee0198 Bug 1217930 - Update pdf.js to version 1.1.551. r=bdahl, r=Mossop 2015-10-23 13:57:59 -04:00
Ryan VanderMeulen
d55eaf5f69 Bug 1214766 - Update pdf.js to version 1.1.527. r=bdahl 2015-10-16 16:30:11 -04:00
Yoshi Huang
d2b4917583 Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley 2015-08-18 15:01:42 +08:00
Bobby Holley
d12b79b75a Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Yoshi Huang
431a4ee3e8 Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00
Ryan VanderMeulen
4ceb4159b0 Bug 1182228 - Update pdf.js to version 1.1.270. r= 2015-07-09 15:00:32 -04:00
Yury Delendik
1e0799aaf4 Bug 1179262 - Remove PlayPreview usage from PDF viewer. r=bz 2015-07-02 11:09:45 -05:00
Ryan VanderMeulen
d6535f2cc5 Bug 1175142 - Update pdf.js to version 1.1.215. r=Mossop, r=yury 2015-06-16 07:38:00 -04:00
Christoph Kerschbaumer
4701bd2e1a Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update newChannel2 (r=sicking,paolo) 2015-05-21 19:52:03 -07:00
Christoph Kerschbaumer
3c253c09de Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update asyncFetch2 (r=sicking,paolo) 2015-05-21 19:51:40 -07:00
Ryan VanderMeulen
f4bfd2288f Bug 1157827 - Update pdf.js to version 1.1.82. r=bdahl, r=Mossop 2015-04-27 18:06:55 -04:00
Ryan VanderMeulen
03c0b5556b Bug 1148192 - Update pdf.js to version 1.1.24. r=bdahl, r=Mossop
CLOSED TREE
2015-03-27 17:02:06 -04:00
Ryan VanderMeulen
d28a192ce8 Bug 1126941 - Update pdf.js to version 1.0.1130. r=Mossop, r=yury 2015-01-30 15:08:06 -05:00
Ryan VanderMeulen
e91182fe60 Bug 1117757 - Update pdf.js to version 1.0.1040. r=yury, r=Mossop 2015-01-05 13:28:37 -05:00
Ryan VanderMeulen
1c4ea96bf9 Bug 1084158 - Update pdf.js to version 1.0.907. r=bdahl, r=Mossop 2014-10-17 14:15:43 -04:00
Dave Townsend
bff0605a13 Bug 1039500: Fix remaining callers of tabbrowser._getTabForBrowser on a CLOSED TREE. r=Unfocused 2014-10-09 16:26:11 -07:00
Ryan VanderMeulen
bbefbc19b4 Bug 1064496 - Update pdf.js to version 1.0.801. r=yury, r=Mossop 2014-09-19 17:14:01 -04:00
Christoph Kerschbaumer
594d5683cb Bug 1053028 - Remove remaining relicts of deprecated X-CSP header (r=sstamm) 2014-08-12 21:15:56 -07:00
Ryan VanderMeulen
c0576ad79c Bug 1042307 - Update pdf.js to version 1.0.473. r=yury, r=Mossop 2014-07-28 08:20:46 -04:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00