Zibi Braniecki
3d91da8726
Bug 1347314 - Migrate calls to ChromeRegistry::GetSelectedLocale to use LocaleService::GetAppLocale. r=jfkthame,Pike
...
In cases, where the caller is looking for the locale to be used for JS Intl API,
we can now replace it with `undefined` which causes JS Intl API to use the default
locale which since bug 1346674 is resolved to the app locale.
This allows us to remove a lot of calls for the app locale.
The remaining ones are split between `AsBCP47` and `AsLangTag`.
Here, the `AsLangTag` is used, as described in the API docs, for cases where
the language string is used for localization purposes, such as language negotaition
matching to our language resources etc.
`AsBCP47` is used when the returned value is handed over to ICU API.
MozReview-Commit-ID: DzmFEUvMq3N
--HG--
extra : rebase_source : 513ed31d995864939aa893e73c81ffdf591a6617
2017-03-14 16:09:54 -07:00
Sebastian Hengst
0a04f3b9e2
Backed out changeset cc308a73ad05 (bug 1347314) for eslint failure in test_device.html. r=backout
2017-03-22 18:20:26 +01:00
Zibi Braniecki
c2cd68a689
Bug 1347314 - Migrate calls to ChromeRegistry::GetSelectedLocale to use LocaleService::GetAppLocale. r=jfkthame,Pike
...
In cases, where the caller is looking for the locale to be used for JS Intl API,
we can now replace it with `undefined` which causes JS Intl API to use the default
locale which since bug 1346674 is resolved to the app locale.
This allows us to remove a lot of calls for the app locale.
The remaining ones are split between `AsBCP47` and `AsLangTag`.
Here, the `AsLangTag` is used, as described in the API docs, for cases where
the language string is used for localization purposes, such as language negotaition
matching to our language resources etc.
`AsBCP47` is used when the returned value is handed over to ICU API.
MozReview-Commit-ID: DzmFEUvMq3N
--HG--
extra : rebase_source : 13fa4c397ba4c79303a2cd76684b5b8c4bd17331
2017-03-14 16:09:54 -07:00
Jared Wein
9141469edf
Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
...
MozReview-Commit-ID: FuVu8skcqOe
--HG--
extra : rebase_source : 8ab34c4e46a7c3075b459bf44786ec184d10d203
2016-12-30 21:47:25 -05:00
Jared Wein
ecab54a7c9
Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
...
MozReview-Commit-ID: 7E7LPorrEje
--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher
0dfb7c2b5c
Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
...
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
7255df4e9a
Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
...
MozReview-Commit-ID: 8WoGr8i6oCR
--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Kris Maglione
22eba76d86
Bug 987512: Part 5 - Remove manual AddonManager promise wrappers. r=rhelmer
...
MozReview-Commit-ID: LrEiGbQGrt6
--HG--
extra : rebase_source : 38971f7242261e5d8b11d586f6eb033b6364c6cf
extra : histedit_source : 0b9403a97d3f3092b8991e8e6af5095b898dd8c3
2016-12-15 12:03:24 -10:00
Jared Wein
3718f00db1
Bug 1316870 - Enable no-shadow eslint rule for browser/. r=mossop
2016-11-15 22:58:30 -05:00
Dave Townsend
8de07a19a0
Bug 1316882: Turn on space-before-function-paren eslint rule (browser). r=jaws
...
MozReview-Commit-ID: 2ZvTiZDHchz
--HG--
extra : rebase_source : db6482481b7338df491afd6f6fd376eccec84d7e
2016-11-11 08:10:51 -08:00
Dave Townsend
0a2c8f9b78
Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
...
MozReview-Commit-ID: HBpjT2uHJaZ
--HG--
extra : rebase_source : 78fe71a1d673a1c698520a9c82c6f35959614f8f
2016-11-10 14:48:04 -08:00
Jared Wein
5040f17e00
Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
...
MozReview-Commit-ID: 7Gx90a5y8t6
--HG--
extra : rebase_source : 9c8a6b15c19982d720b0163fbbf19d465da786fe
2016-10-24 13:14:19 -04:00
Mark Banner
445e8b10f7
Bug 1312277 - Enable no-unused-vars eslint rule for browser/experiments. r=mossop
...
MozReview-Commit-ID: FUcMgWy8Vv7
--HG--
extra : rebase_source : a3c1b83c6b80dba712ec68cbef36e08a0eddf8f5
2016-10-17 22:17:05 +01:00
Thomas Wisniewski
dadce88a58
Bug 918751 - Throw NetworkErrors instead of failures where appropriate for some XHR web platform tests. r=bz, r=keeler, r=Mossop, r=paul
...
--HG--
extra : rebase_source : 2d454dd6f7f66b0b2df44f6f4ce3740d8f6de04c
2016-09-03 18:45:08 -04:00
Jared Wein
fd84c776c7
Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh
...
MozReview-Commit-ID: EMjJ3yWt9Wt
--HG--
extra : rebase_source : 2b8327e5a7cf0bfd190d696ad5fe475f13faa3cc
2016-08-04 03:28:58 -04:00
Yoshi Huang
1f2c27b68e
Bug 1263496 - Part 1: fix for @mozilla.org/nullprincipal;1 r=bholley
...
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=@mozilla.org/nullprincipal;1&redirect=true
2016-04-27 18:37:58 +08:00
Blair McBride
0c76e7b388
Bug 1263804 - Remove last references to Metrics.jsm. r=gijs
...
--HG--
extra : transplant_source : %BF%BD3%8D%90o%EDi%7C%0C%5D%A5%14%CAYs%5B%D7%12%1E
2016-04-18 23:09:13 +12:00
Dave Townsend
4bf4f02ce7
Bug 1257246: Update browser for eslint 2. r=felipe
...
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.
MozReview-Commit-ID: DEskVIjiKDM
--HG--
extra : rebase_source : 07ba1d14655f5d761624b105ef025ec88323d4d5
extra : histedit_source : 9e5ab54ce1b1a5ee1f0fb143f8d1450522455e3b
2016-04-05 11:33:33 -07:00
Georg Fritzsche
81d4f9e24f
Bug 1255745 - Make Experiments AsyncShutdown state data more useful. r=dexter
...
* Make Experiments AsyncShutdown state add the time to the log entries.
* Fix other AsyncShutdown state issues.
* We were not adding forensic log entries of ExperimentEntry before, added that to be able to narrow this down more.
* This also increases the forensic log a bit to account for the additional entries and removes some unneeded big data addition to the logging.
2016-03-17 14:03:49 +01:00
Alessio Placitelli
3d09371e60
Bug 1245544 - Fix the indentation in Experiments.jsm. r=gfritzsche
2016-03-04 06:09:00 +01:00
Alessio Placitelli
124e8da240
Bug 1245544 - Telemetry experiments aren't expiring historical data properly. r=gfritzsche
2016-03-04 09:55:00 +01:00
Dave Townsend
e496a11771
Bug 1245649: Turn on no-extra-semi. r=markh
...
--HG--
extra : commitid : HReQFPDOA6x
extra : rebase_source : 303a92f511c3c9dd2d26135975d4dc7c85e823b3
2016-02-03 17:27:36 -08:00
Alessio Placitelli
a61ff9786d
Bug 1234490 - Remove the Experiments FHR provider. r=gps
2015-12-23 00:41:00 +01:00
Georg Fritzsche
9f28babe22
Bug 1218266 - Harden against AsyncShutdown timeouts in Experiments.jsm. r=mossop
2015-11-03 14:26:13 +01:00
Gijs Kruitbosch
c652fdb86e
Bug 1233492 - make browser/experiments eslintable, r=felipe
...
--HG--
extra : commitid : AlqcGlqXwrj
extra : rebase_source : 2daaa302b04cef72b173265dccdba55a538e58eb
2015-12-17 19:42:24 +00:00
Alessio Placitelli
168e97983d
Bug 1217282 - Experiments are enabled even when telemetry is disabled. r=gfritzsche
2015-12-04 09:49:00 +01:00
Mark Banner
c96e025e76
Bug 1228628 - Add a minimal .eslintrc configuration for browser and start linting a few browser files with basic rules. r=Mossop
2015-11-30 11:42:25 +00:00
Phil Ringnalda
82cfbc8176
Back out 343223ce6b34 (bug 1228628) for Experiments xpcshell bustage
...
CLOSED TREE
2015-11-27 20:55:17 -08:00
Mark Banner
e8e5bab529
Bug 1228628 - Add a minimal .eslintrc configuration for browser and start linting a few browser files with basic rules. r=Mossop
2015-11-27 22:37:38 +00:00
Carsten "Tomcat" Book
08997000eb
Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
...
Backed out changeset 647025383676 (bug 1202902 )
Backed out changeset d70c7fe532c6 (bug 1202902 )
2015-10-07 14:03:21 +02:00
Sebastian Hengst
cdcff6d0a7
Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE
2015-10-07 13:36:26 +02:00
Shu-yu Guo
52e365bb7b
Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest)
2015-10-06 14:00:30 -07:00
Tooru Fujisawa
7cfd1e3584
Bug 1207490 - Part 7: Remove use of expression closure from browser/experiments/. r=Gijs
...
--HG--
extra : commitid : 992j9yfq9QA
extra : rebase_source : 2a75c61902dabdf6efc15105eead225375cdff1d
2015-09-21 02:26:17 +09:00
Dave Townsend
a22c2d1f9e
Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
...
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.
I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.
UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
--HG--
extra : commitid : KsbH21csjH4
extra : rebase_source : bc7c08de1ec6e802261b8cd294d88ee2c4e75c2d
2015-09-14 11:04:19 -07:00
Wes Kocher
468b697f04
Backed out 3 changesets (bug 1192924) for Android bustage CLOSED TREE
...
Backed out changeset 30d612836685 (bug 1192924)
Backed out changeset a6860f880e01 (bug 1192924)
Backed out changeset 10e1fa2cc23a (bug 1192924)
--HG--
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system1@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system2_1.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system2@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_2.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system1@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system3_1.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system3@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1_badcert.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app3/features/system1@tests.mozilla.org.xpi
2015-09-22 11:02:55 -07:00
Dave Townsend
fb7653707b
Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
...
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.
I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.
UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
--HG--
extra : commitid : FuPUB9X4oYJ
extra : rebase_source : cfcd31d7da5f5b636a2ec11546dbada973d681de
extra : histedit_source : 3df840dc502c6ee4177f1858920d1260e4dc27af
2015-09-14 11:04:19 -07:00
Shu-yu Guo
64db2267cf
Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)
2015-09-15 11:19:45 -07:00
Benjamin Smedberg
3333eacc3e
Bug 1151086 - Fix experiment filter functions to use the new telemetry environment, r=gfritzsche
...
--HG--
extra : rebase_source : 1edf5edc9de9bf2fa355bb124a93378795a3890e
2015-06-23 14:56:11 -04:00
Georg Fritzsche
4d8b9aa07b
Bug 1139460 - Bonus: Remove unused function from experiments code. rs=yoric
2015-03-19 15:50:09 +01:00
Wes Kocher
9b168d2c01
Backed out 14 changesets (bug 1143714, bug 1143796, bug 1139751, bug 1139460, bug 1140558) for Win PGO xpcshell failures
...
Backed out changeset d2567d89cda3 (bug 1139751)
Backed out changeset a8edee74d07f (bug 1139751)
Backed out changeset 613fd260f646 (bug 1143796)
Backed out changeset 7a6f6bdd6edf (bug 1143796)
Backed out changeset fdf9d0174142 (bug 1143714)
Backed out changeset 18989d1ebd43 (bug 1140558)
Backed out changeset a4f545b715ae (bug 1140558)
Backed out changeset b2e92f548736 (bug 1140558)
Backed out changeset a082c774db0a (bug 1140558)
Backed out changeset f9f66f6aaa86 (bug 1139460)
Backed out changeset d8b62b11c43e (bug 1139460)
Backed out changeset 77090798e88c (bug 1139460)
Backed out changeset ea6da072eb0c (bug 1139460)
Backed out changeset 58c2eb92a959 (bug 1139460)
--HG--
extra : amend_source : 850bad063645f0d6c632ca1d93a716d9c444f383
2015-04-01 20:52:33 -07:00
Georg Fritzsche
b16e31ce4a
Bug 1139460 - Bonus: Remove unused function from experiments code. rs=yoric
2015-03-19 15:50:09 +01:00
David Rajchenbach-Teller
2504927a19
Bug 1087110 - Don't update experiments manifests if no experiment is running. r=gfritzsche
2015-03-10 13:36:17 +01:00
Alessio Placitelli
3f0538e75f
Bug 1123384 - Move Telemetry main ping implementation out of TelemetryPing.jsm. r=gfritzsche
2015-01-22 12:23:00 +01:00
Benjamin Smedberg
dc19b5a2c1
Bug 1115040 - Record experiment branch in crash reports, r=gfritzsche
...
--HG--
extra : rebase_source : be0ea6c22caec12df9075829adab05bd9de1272d
2014-12-23 12:21:14 -05:00
Irving Reid
0628f512eb
Bug 1059674 - use AsynchShutdown.blocker() for AddonManager provider shutdown; r=unfocused
2014-09-27 16:25:47 -04:00
Georg Fritzsche
f9d2a7e73a
Bug 1064470 - Increase the experiments forensic log buffer size again. r=bsmedberg
2014-09-15 15:28:33 +02:00
Benjamin Smedberg
075cfbccc2
Bug 1012924 - Experiments should cancel their XMLHttpRequest on shutdown, and should also set a reasonable timeout on them, r=gfritzsche
2014-09-01 15:26:07 +02:00
Benjamin Smedberg
7b14c475d0
Bug 1054397 - automated test for the racy while setting experiment branches, followup to bug 1052545 and bug 1038174, r=gfritzsche
...
--HG--
extra : rebase_source : 80df2293e21f7f7a0d13856cd7d609d5e26b83e0
2014-08-28 10:25:05 -04:00
Benjamin Smedberg
0f9810e3be
Bug 1012924 diagnostics - increase the log length to 10, r=gfritzsche
2014-08-20 13:07:28 -04:00
Benjamin Smedberg
9b3d66a3f4
Bug 1052545 - Telemetry experiment branches are not saved correctly: we set the _dirty flag correctly, but then don't write the cache, r=gfritzsche
...
--HG--
extra : rebase_source : 8b531590cb76292b39c83d3928fc0107f1e83424
2014-08-14 16:21:15 -04:00