gecko-dev/toolkit/modules
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
..
addons 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
docs
secondscreen Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
sessionstore Bug 1344857 - SessionStore does not return titles for tabs which have a url that is identical to the title, r=mikedeboer 2017-04-11 13:50:24 -04:00
subprocess Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop 2017-04-03 11:46:56 +01:00
tests 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
third_party/jsesc
AppConstants.jsm Backed out 3 changesets (bug 1348820) for testANRReporter failures on Android rc1 a=backout 2017-03-23 14:45:57 -07:00
AsyncPrefs.jsm
Battery.jsm Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN 2016-12-29 18:34:54 -05:00
BinarySearch.jsm Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN 2016-12-29 18:34:54 -05:00
BrowserUtils.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
CanonicalJSON.jsm
CertUtils.jsm Bug 1319252 - Remove nsIX509Cert.getAllTokenNames(). r=keeler,mossop 2017-03-19 16:02:26 +08:00
CharsetMenu.jsm 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
ClientID.jsm Bug 1349389 - Lazily load osfile.jsm in telemetry. r=gfritzsche 2017-03-21 14:55:39 -07:00
Color.jsm
Console.jsm Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
DateTimePickerHelper.jsm Bug 1343707 - Make datetimepopup.xml binding attach lazily. r=mconley 2017-03-03 13:58:53 +08:00
DeferredTask.jsm Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN 2016-12-30 21:47:25 -05:00
Deprecated.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
FileUtils.jsm Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8 2017-03-21 14:29:43 -04:00
Finder.jsm Bug 1339782 - use a WeakMap to keep track of windows with active findbar highlighters and make sure no JS error occurs when a window is closed. r=jaws 2017-02-27 16:15:12 +01:00
FinderHighlighter.jsm Bug 1339782 - use a WeakMap to keep track of windows with active findbar highlighters and make sure no JS error occurs when a window is closed. r=jaws 2017-02-27 16:15:12 +01:00
FinderIterator.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
FormLikeFactory.jsm Bug 1330111 - Add FormLikeFactory.findRootForField API. r=johannh 2017-01-31 23:54:45 -08:00
GMPInstallManager.jsm Bug 1335813 - Enable eslint no-undef for toolkit, apart from components/ and content/, and fix various issues. r=jaws 2017-01-31 13:17:03 +00:00
GMPUtils.jsm Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
Geometry.jsm Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs 2017-01-17 09:48:17 -06:00
HiddenFrame.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Http.jsm Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN 2016-12-30 21:47:25 -05:00
IndexedDB.jsm Bug 1344590: Part 2 - Add Promise-based IndexedDB helper module. r=aswan 2017-02-25 22:48:22 -08:00
InlineSpellChecker.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
InlineSpellCheckerContent.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Integration.jsm Bug 1329012 - Enable the no-useless-call rule for eslint and fix the nine errors that it caught. r=mossop 2017-01-05 12:56:53 -05:00
JSONFile.jsm Bug 1332024 - Add a method to explicitly finalize `JSONFile` objects. r=Paolo 2017-01-24 17:38:35 -08:00
LightweightThemeConsumer.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
LoadContextInfo.jsm
Locale.jsm 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
Log.jsm Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs 2017-01-17 09:48:17 -06:00
Memory.jsm
NLP.jsm
NewTabUtils.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
ObjectUtils.jsm Bug 1335813 - Enable eslint no-undef for toolkit, apart from components/ and content/, and fix various issues. r=jaws 2017-01-31 13:17:03 +00:00
PageMenu.jsm Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8 2017-03-21 14:29:43 -04:00
PageMetadata.jsm Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
PermissionsUtils.jsm Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
PopupNotifications.jsm Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Preferences.jsm Bug 1349203 - Upgrade ESLint to version 3.18.0 to pick up performance and other fixes. Also update other dependencies for ESLint. r=mossop 2017-03-21 14:50:45 +01:00
PrivateBrowsingUtils.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
ProfileAge.jsm Bug 1340491 - ProfileAge shouldn't spam stdout/stderr by default, r=MattN 2017-02-20 18:07:32 +00:00
Promise-backend.js Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Promise.jsm
PromiseMessage.jsm
PromiseUtils.jsm Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN 2016-12-29 18:34:54 -05:00
PropertyListUtils.jsm 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
RemoteController.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
RemoteFinder.jsm Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN 2016-12-30 21:47:25 -05:00
RemotePageManager.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
RemoteSecurityUI.jsm Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN 2016-12-30 21:47:25 -05:00
RemoteWebProgress.jsm Bug 1355542 - [1.1] Respect filter mask in remote web progress notification dispatching. r=felipe 2017-04-13 23:17:23 +02:00
ResetProfile.jsm Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN 2016-12-29 18:34:54 -05:00
ResponsivenessMonitor.jsm Bug 1338522 - Add telemetry for UI responsiveness during import of profile data from another browser. r=francois,Gijs 2017-02-18 00:01:50 +01:00
SelectContentHelper.jsm Bug 1354196 - Forward the text-shadow CSS property to the select popup for styling. r=mossop 2017-04-10 16:03:03 -04:00
SelectParentHelper.jsm Bug 1355078 - Restore scroll position after updating select popup. r=mossop 2017-04-11 01:36:07 -04:00
ServiceRequest.jsm Bug 1325501 - Adds ServiceRequest as a drop-in replacement for XHR, which uses conservative TLS settings r=mossop 2016-12-22 15:56:37 -08:00
Services.jsm Bug 1354445 - Migrate Intl.DateTimeFormat to mozIntl.DateTimeFormat in chrome. r=mak 2017-04-08 23:04:32 -07:00
SessionRecorder.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
ShortcutUtils.jsm Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs 2017-01-17 09:48:17 -06:00
Sntp.jsm Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws 2016-11-11 15:22:34 -08:00
Sqlite.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Task.jsm Bug 1338572 - Fix typo in documentation. r=Paolo and DONTBUILD 2017-02-10 11:55:21 -05:00
Timer.jsm
Troubleshoot.jsm 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
UpdateUtils.jsm 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
WebChannel.jsm Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
WindowDraggingUtils.jsm Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
WindowsRegistry.jsm Bug 1328802 - Enable the no-unsafe-finally rule for eslint and fix the four errors that are triggered by it by moving the control flow statement outside of the finally block. r=mossop 2017-01-05 00:38:24 -05:00
ZipUtils.jsm Bug 1335813 - Enable eslint no-undef for toolkit, apart from components/ and content/, and fix various issues. r=jaws 2017-01-31 13:17:03 +00:00
debug.js
moz.build Bug 1356030 - move HiddenFrame.jsm to toolkit, r=kmag 2017-04-13 11:42:56 +01:00