Commit Graph
30 Commits
Author SHA1 Message Date
Michael Kaply 203bc16492 Bug 1395355 - Typo preventing locale distribution engines from loading. r=gandalf
MozReview-Commit-ID: DerafUV5lNA
2017-08-30 17:15:55 -05:00
Dan Banner b08cb5b49e Bug 1385815 - Enable brace-style and quotes ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 5IFF4IPpPVY
2017-08-01 16:43:56 +01:00
Dan Banner 9300a9f43f Bug 1385815 - Enable whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 6B79zhklsYR
2017-08-01 16:34:11 +01: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
Florian Quèze 73074c2660 Bug 1344711 - hand cleanup of remaining useless try blocks around get*Pref calls identified by eslint, r=jaws. 2017-03-07 15:29:48 +01:00
Michael Kaply 6ec18072a2 Bug 1272439 - Make distribution.searchplugins.defaultLocale work on Fennec. r=margaret 2016-05-31 13:04:35 -05:00
Rutuja e981f4798a Bug 1115006 - Use Downloads.getSystemDownloadsDirectory to get download directory for about:memory on Fennec. r=mconley,margaret
MozReview-Commit-ID: JBod1Ltcz0w
2016-04-19 10:39:12 -04:00
Nick Alexander 4844550e39 Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice
MozReview-Commit-ID: 63yJGdgPbhe
2016-03-18 14:41:51 -07:00
Sebastian Kaspari 0e81dc511f Bug 1227603 - Add support for sub-distributions based on MCC/MNC (SIM). r=margaret,mfinkle
We will now search for distributions in the following folders:

 * 1) Data distributions (APK or OTA):
   * 1.1) <dataDir>/distribution/<mcc>/<mnc> - For bundled distributions for specific network providers
   * 1.2) <dataDir>/distribution/<mcc>       - For bundled distributions for specific countries
   * 1.3) <dataDir>/distribution/default     - For bundled distributions with no matching mcc/mnc
   * 1.4) <dataDir>/distribution             - Default non-bundled distribution

 * 2) System distributions:
   * 2.1) /system/<package>/distribution/<mcc>/<mnc> - For bundled distributions for specific network providers
   * 2.2) /system/<package>/distribution/<mcc>       - For bundled distributions for specific countries
   * 2.3) /system/<package>/distribution/default     - For bundled distributions with no matching mcc/mnc
   * 2.4) /system/<package>/distribution             - Default non-bundled system distribution
2016-01-15 10:11:34 +01:00
Fabrice Desré 5c6562eb7c Bug 1181209 - Make changes to Gecko needed for b2gdroid to boot. r=fabrice 2015-08-25 13:42:24 -07:00
Florian Quèze ccc9f6010a Bug 1109354 - prefer Firefox default engines over profile-installed plugins with the same name, r=markh. 2015-06-15 18:32:09 +02:00
Mike Connor afcfcc01ed Bug 1130246 - Treat general.useragent.locale as a localized pref in DirectoryProvider. r=rnewman 2015-02-05 20:46:01 -08:00
Nick Alexander ceee287669 Bug 1093358 - Add mobile/android AppConstants.jsm. r=mfinkle,f=rnewman
I did as much conversion to "real Javascript" as I could stomach.  It
is, unfortunately, not feasible to remove all preprocessing from CSS
and XHTML files.
2015-01-20 15:17:58 -08:00
Margaret Leibovic 5c5b15f13e Bug 1114593 - Replace defaultDownloadsDirectory calls in DirectoryProvider.js. r=mfinkle 2014-12-22 14:59:03 -05:00
Wes Johnston 498e767862 Bug 961369 - Fallback when no file picker available in about:memory. r=njn,mfinkle 2014-02-05 10:04:32 -08:00
Margaret Leibovic 06b4614393 Bug 872806 - (Part 1) Update DirectoryProvider to handle returning distribution location in JS. r=mfinkle 2013-07-05 07:37:00 -07:00
Wes Kocher b3d581c764 Backout bug 872806 for multiple android test failures 2013-07-02 23:47:46 -07:00
Margaret Leibovic 19110c2c3f Bug 872806 - (Part 1) /system distribution support for add-ons. r=mfinkle 2013-07-02 21:40:45 -07:00
Margaret Leibovic f16f901e4c Bug 848420 - Distribution support for additional default search engines. r=mfinkle 2013-03-18 15:39:08 -07:00
Kyle Huey 76a2832eea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07:00
Vicamo Yang ea784216bd Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey c82a2d6fea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley c34b7d9377 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey 8078ab712e Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Wes Johnston 43e180fcea Bug 650399 - All webapps should use the same webapp database. r=mfinkle 2012-08-15 17:02:15 -04:00
Chris Peterson 2ce70143ce Bug 722042 - Part 1: Remove Maemo code from mobile/android. r=blassey 2012-06-30 00:50:55 -07:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Doug Turner 91813a81fd Bug 701833 - hg move /mobile to /mobile/android r=mfinkle CLOSED TREE 2011-11-17 09:24:55 -05:00