gecko-dev/dom/encoding
Zibi Braniecki a1a4f0b7c9 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

--HG--
extra : rebase_source : 883a91b249b6953b7872bfb9a8851e8be7257c7b
2017-03-11 18:43:11 -08:00
..
test Bug 1341668. Reenable various stylo dom reftests. r=bholley 2017-02-22 11:18:59 -05:00
EncodingUtils.cpp Bug 1335207: Add constexpr to data tables under dom/ for better codegen on Windows. r=ehsan 2017-02-01 15:42:33 +13:00
EncodingUtils.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
FallbackEncoding.cpp Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike 2017-03-11 18:43:11 -08:00
FallbackEncoding.h Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike 2017-03-11 18:43:11 -08:00
TextDecoder.cpp Bug 1222475 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in dom/; r=baku,bz,terrence 2015-11-03 13:29:19 -05:00
TextDecoder.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
TextEncoder.cpp Bug 1331434 - Part 9: Return after ErrorResult::Throw in /dom, r=ehsan 2017-03-07 19:06:48 -05:00
TextEncoder.h Bug 1257877 - Remove UTF-16 support from TextEncoder. r=hsivonen 2016-03-24 19:27:15 +09:00
domainsfallbacks.properties Back out 2 changesets (bug 912470) for static analysis bustage 2015-09-10 09:37:51 -07:00
encodingsgroups.properties Bug 912470 part 2 - Implement Encoding Standard-compliant big5 encoder. r=emk. 2015-09-03 15:21:57 +03:00
labelsencodings.properties Bug 1120813 - Add support for the MS932 label of Shift_JIS. r=emk, r=Ms2ger 2016-02-29 20:53:50 +02:00
localesfallbacks.properties
moz.build Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt 2017-03-01 08:20:25 -05:00
nonparticipatingdomains.properties