Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Zibi Braniecki cce53c69bc 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 : 2f166cf1746f389a035f7cf557edcadeacb10fa0
2017-03-11 18:43:11 -08:00
.cargo Bug 1277338 - Part 1: Turn js/src into the mozjs-sys crate; r=sfink 2016-10-13 16:12:42 -07:00
.vscode Bug 1341585 - Ignore Visual Studio Code workspace settings and add a recommended extensions file. r=gps,jya 2017-02-22 12:57:57 +01:00
accessible Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
addon-sdk 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
b2g Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
browser 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
build merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
caps Bug 1356193 - rename securityFlags local variable for code clarity reasons, r=ckerschb 2017-04-13 11:36:18 +01:00
chrome Bug 1345696 part 1 - Lots of fixup for the next patch. r=heycam 2017-03-28 20:05:12 +11:00
config Backed out changeset 54d50e4a99b2 (bug 1310197) for win64 bustage a=backout 2017-04-13 15:30:35 -07:00
db Bug 1352260 - Upgrade to SQLite 3.18.0. r=mak 2017-04-01 15:08:18 -04:00
devtools merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-04-15 19:59:24 +02:00
docshell Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
dom 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
editor Bug 1356496 - Don't use nsIDOM* in ConfirmSelectionInBody. r=masayuki 2017-04-14 14:54:03 +09:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
gfx Merge inbound to central, a=merge 2017-04-17 12:56:25 -07:00
gradle/wrapper Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian 2016-09-22 14:31:01 -07:00
hal Bug 1194751 - Part 3. Remove unused nsIScreen::rotation attribute. r=jimm 2017-03-09 19:16:33 +08:00
image Backout change fb3c323635d6 (bug 1347400) because the telemetry probe didn't prove to be useful 2017-04-15 17:20:25 -04:00
intl 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
ipc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
js merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-04-15 19:59:24 +02:00
layout Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik 2017-04-07 14:53:19 -04:00
media Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
memory Bug 1332747 Change MOZ_ALWAYS_INLINE to MOZ_ALWAYS_INLINE_EVEN_DEBUG to fix MinGW Debug build r=froydnj 2017-04-11 12:53:58 -05:00
mfbt Bug 1356063 - Make Maybe<T> inherit static analysis annotations from T, r=mystor 2017-04-13 11:35:01 -07:00
mobile 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
modules Bug 1356027 Add pref to disable non-MPC extensions r=mossop 2017-04-12 22:13:49 -07:00
mozglue Merge m-c to a CLOSED TREE m-i 2017-04-06 21:16:43 -07:00
netwerk merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-04-15 19:59:24 +02:00
nsprpub Backed out changeset 54d50e4a99b2 (bug 1310197) for win64 bustage a=backout 2017-04-13 15:30:35 -07:00
other-licenses Bug 1345530 - add BUG_COMPONENT to other-licenses/* files. r=tbsaunde, mhowell, overholt 2017-04-05 08:31:10 -04:00
parser merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
probes Bug 1344878 - add BUG_COMPONENT to probes/* files. r=Ms2ger 2017-03-24 09:50:48 -04:00
python Bug 1356934 - Don't assume the path to the taskcluster config is relative to topsrcdir. r=gps 2017-04-17 09:05:13 +09:00
rdf Bug 1353143 - Part 5: Replace direct usage of PR_LogPrint. r=froydnj 2017-04-04 14:36:21 -07:00
security merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-04-15 19:59:24 +02:00
services Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
servo servo: Merge #16336 - Used shared clips for overflow:hidden and CSS clip (from mrobinson:overflow-hidden); r=glennw 2017-04-17 16:08:00 -05:00
startupcache Bug 1348991 - Use unified sources in startup cache. r=froydnj 2017-03-21 12:24:41 -07:00
storage Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
taskcluster Bug 1356934 - Don't assume the path to routes.json is relative to topsrcdir. r=dustin 2017-04-17 09:02:38 +09:00
testing Bug 1356700 - Don't set MOZ_AUTOMATION from mozharness configurations. r=mshal 2017-04-15 07:36:04 +09:00
third_party/rust Bug 1353994 - Part 1: Update the version of cssparser to 0.12.2. r=heycam, r=SimonSapin 2017-04-11 15:53:57 +08:00
toolkit 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
tools Bug 1347709 and Bug 1356569 - Bump eslint plugin version to resolve conflict. r=instruction-by-florian a=bustage-fix 2017-04-15 20:05:51 +02:00
uriloader Bug 1355582 - Only the most recently added file extension is saved in "mimeTypes.rdf". r=mak 2017-04-11 20:38:14 +01:00
view Bug 1351904 - Switch layout over to ArenaAllocator. r=xidorn 2017-03-31 14:06:33 -07:00
widget merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-04-15 19:59:24 +02:00
xpcom Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
xpfe Bug 1354068: fix uninitialized rv in some paths in nsWebShellWindow r=bdahl 2017-04-06 23:23:44 -04:00
.clang-format Bug 1322321 - Update the clang format file to match more our coding style r=ehsan 2016-12-06 17:43:17 -10:00
.clang-format-ignore Bug 1341423 - Integrate OpenVR binding library r=daoshengmu 2017-02-27 16:59:30 -08:00
.clang-tidy Bug 1319396 - Update the list of checkers in the .clang-tidy file r=Ehsan 2016-11-22 12:30:19 +01:00
.cron.yml Bug 1351306 - Move the UTC starttime of nightlies earlier. r=rail 2017-03-28 09:56:30 -04:00
.eslintignore Backed out 4 changesets (bug 1346825) for being the likely cause of devtools bustage a=backout CLOSED TREE 2017-04-13 11:23:18 -07:00
.eslintrc.js Bug 1352969 - Improve ESLint environment browser-window globals list, and automatically inject it into browser-window scripts. r=mossop 2017-03-09 17:17:26 +00:00
.flake8 Bug 1321956 - Disable flake8 check for 'visually indented line with same indent as next logical line', r=ahal 2016-12-08 09:53:21 -10:00
.gdbinit Bug 1317802 - don't stop for SIGSYS in .gdbinit; r=jld 2016-11-16 01:13:22 -05:00
.gdbinit_python
.gitignore Backed out 4 changesets (bug 1346825) for being the likely cause of devtools bustage a=backout CLOSED TREE 2017-04-13 11:23:18 -07:00
.hgignore Bug 1305023 - Move ESLint's package.json and node_modules to the top level to improve editor integration. r=gps 2017-03-22 12:27:00 +01:00
.hgtags No bug - Tagging mozilla-central 6583496f169cd8a13c531ed16e98e8bf313eda8e with FIREFOX_AURORA_54_BASE a=release DONTBUILD CLOSED TREE 2017-03-06 23:43:32 +01:00
.lldbinit
.taskcluster.yml bug 1350045 - add warning to decision docker image line. r=philor 2017-03-25 12:10:32 -07:00
.ycm_extra_conf.py
aclocal.m4
Android.mk
AUTHORS Bug 1349980 - update task generation to support -g in try syntax for running OS X tasks in generic-worker,r=dustin 2017-04-06 18:50:41 +02:00
build.gradle Bug 1318823 - Use com.getkeepsafe.dexcount in Gradle builds. r=sebastian 2016-11-18 18:28:58 -08:00
client.mk Bug 1317778 - Emit a depfile with python configure dependencies so Make will know when to re-run configure. r=glandium 2016-12-02 10:05:57 -08:00
client.py
CLOBBER Bug 1356151 - Clobber needed after bug 1353295 was backed out a=sheriffduty 2017-04-13 10:06:59 +02:00
configure.in
configure.py Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
Makefile.in bug 1355961 - add some sccache stats to build_metrics. r=gps 2017-04-12 15:06:22 -04:00
moz.build Bug 1262241 - Move the definition of the js library to a subdirectory. r=mshal 2017-04-04 11:43:14 +09:00
moz.configure Bug 1355584 Make NSIS an optional requirement for MINGW builds r=glandium 2017-04-12 11:21:13 -05:00
mozilla-config.h.in
npm-shrinkwrap.json Bug 1355776 - Upgrade ESLint to version 3.19.0 to pick up autofix improvements and other fixes. r=mossop 2017-04-12 12:07:01 +01:00
old-configure.in Bug 1344038 - Remove --disable-gio. r=karlt 2017-04-05 14:06:25 +09:00
package.json Bug 1355776 - Upgrade ESLint to version 3.19.0 to pick up autofix improvements and other fixes. r=mossop 2017-04-12 12:07:01 +01:00
README.txt Bug 1349108 - Update links in README.txt to HTTPS r=RyanVM 2017-03-21 00:11:02 -04:00
settings.gradle Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian 2016-10-05 20:23:38 -07:00
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/