Commit Graph

20 Commits

Author SHA1 Message Date
Michael Kelly
0aff6a072e Bug 1359655 - Sync shield-recipe-client from GitHub (commit e37261c) r=Gijs
MozReview-Commit-ID: CxzS2AtSZSQ
2017-04-27 12:30:07 -07:00
Mike Cooper
b16775b217 Bug 1349348 - Sync shield-recipe-client from GitHub (ded0b7). rs=Gijs r=Gijs
MozReview-Commit-ID: 4lN7IEUjuBr
2017-03-24 14:42:25 -07:00
Zibi Braniecki
e1617486a8 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
2017-03-14 16:09:54 -07:00
Sebastian Hengst
1f6ea2382a 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
a56e4c7360 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
2017-03-14 16:09:54 -07:00
Mythmon
f42d4b51b4 Bug 1336501 - Sync shield-recipe-client from GitHub (ad0f45e) r=Gijs
MozReview-Commit-ID: KiDjjs2qpk5
2017-02-08 09:51:55 -08:00
Mark Banner
ba10e01046 Bug 1336070 - Enable eslint no-undef for browser/, apart from components/ and base/content/. r=mossop
MozReview-Commit-ID: CJtpm8zlLxa
2017-02-02 09:08:42 +00:00
Mythmon
6a72ffe455 Bug 1325409 - shield-recipe-client: Move event emitter out of sandbox r=Gijs 2017-01-30 10:38:02 -08:00
Mythmon
a7d004240c No bug - Update shield-recipe-client from GitHub r=Gijs 2017-01-27 10:22:44 -08:00
Mythmon
9f1b465ebf Bug 1325409 - shield-recipe-client: Remove unnecessary cleanup r=mythmon
See also: https://github.com/mozilla/normandy/pull/443/files

MozReview-Commit-ID: 6LdFs4YdfMs
2017-01-23 15:26:10 -08:00
Mythmon
b68b143dc2 Bug 1331705 - shield-recipe-client: Do not use an XRay-ed Promise during recipe execution, r=Gijs
MozReview-Commit-ID: DEM6lUiCHnj
2017-01-17 11:27:40 -08:00
Wes Kocher
55f5f6e9b0 Backed out changeset ce90a9d52e86 (bug 1331705) for eslint failures a=backout
MozReview-Commit-ID: KaCGMDAwWzz
2017-01-17 17:24:09 -08:00
Mythmon
d1bb2f4471 Bug 1331705 - shield-recipe-client: Do not use an XRay-ed Promise during recipe execution, r=Gijs
MozReview-Commit-ID: DEM6lUiCHnj
2017-01-17 11:27:40 -08:00
Gijs Kruitbosch
e7055beaab Bug 1330954 - fix leakiness of SHIELD system add-on and re-enable test, r=kmag,mythmon
There are 3 issues this tackles:
- we were keeping a reference to the notification we added (this.notice),
  which kept windows alive.
- we had the CleanupManager keep a reference to our close method, which kept
  a reference to us, which kept a reference to the window.
- the fact that we use timeouts to call this.close() in 2 places meant
  this.close would get called multiple times, which meant we errored out on
  later occasions, because various things had been nulled out. This tidies up
  the timeouts when cleanup is called to avoid re-entrancy/errors/leaks.

MozReview-Commit-ID: EYvK7bQEh3X
2017-01-13 13:42:47 +00:00
Mythmon
b396ac609e Bug 1326225 - Fix un-imported fetch use in NormandyApi.jsm r=Gijs
See https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Mochitest#How_do_I_test_issues_which_only_show_up_when_tests_are_run_across_domains.3F
for info on how the test server was set up for testing that fetch was
used correctly.

r=Gijs

MozReview-Commit-ID: CNH6SQ6gEGU
2017-01-03 09:41:51 -08:00
Iris Hsiao
1cef2290f6 Backed out changeset 10565a2aa201 (bug 1326225) for mochitest browser chrome failures
CLOSED TREE
2017-01-12 10:54:23 +08:00
Mythmon
1f0715f987 Bug 1326225 - Fix un-imported fetch use in NormandyApi.jsm r=Gijs
See https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Mochitest#How_do_I_test_issues_which_only_show_up_when_tests_are_run_across_domains.3F
for info on how the test server was set up for testing that fetch was
used correctly.

r=Gijs

MozReview-Commit-ID: CNH6SQ6gEGU
2017-01-03 09:41:51 -08:00
Mythmon
0a8023ce47 Bug 1308656 - Add shield-recipe-client as system add-on r=Gijs,rhelmer
MozReview-Commit-ID: KNTGKOFXDlH
2016-10-10 16:14:56 -07:00
Sebastian Hengst
1d4dfdf50e Backed out changeset a53f5aa00347 (bug 1308656) for syntax error in browser_dbg_searchbox-parse.js (line cut off). r=backout 2016-12-21 09:44:17 +01:00
Mythmon
8c64984947 Bug 1308656 - Add shield-recipe-client as system add-on r=Gijs,rhelmer
MozReview-Commit-ID: KNTGKOFXDlH
2016-10-10 16:14:56 -07:00