Commit Graph

83 Commits

Author SHA1 Message Date
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Zibi Braniecki
8c433fc56a 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
2017-03-11 18:43:11 -08:00
Sebastian Hengst
017c2ee2bf Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Zibi Braniecki
64bae2dccf 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
2017-03-11 18:43:11 -08:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Quèze
c7eae86054 Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
Zibi Braniecki
d9cc2eef4a Bug 1344901 - Fix a regression introduced in bug 1337551. r=jfkthame
MozReview-Commit-ID: 8SP0ucROJRF
2017-03-06 13:54:30 -08:00
Zibi Braniecki
aa1b5264a0 Bug 1337551: Migrate Services.jsm to use LocaleService. r=mossop
MozReview-Commit-ID: G0HFXfg4r6Y
2017-02-08 12:31:06 -08:00
Jared Wein
0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Florian Quèze
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd 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
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend
4e295aa48d Bug 1316882: Turn on space-before-function-paren eslint rule (browser). r=jaws
MozReview-Commit-ID: 2ZvTiZDHchz
2016-11-11 08:10:51 -08:00
Dave Townsend
12596ced47 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ
2016-11-10 14:48:04 -08:00
Mark Banner
7fc1c9a3bf Bug 1315617 - Fix remaining no-unused-vars for local scope in browser/ and enable the rule for all of browser/ r=mossop
MozReview-Commit-ID: FO1p5G5K3zg
2016-11-03 11:56:28 +00:00
Jared Wein
8860cdf2c1 Bug 1294547 - Enable the comma-spacing rule for eslint. r=felipe
MozReview-Commit-ID: RCSDEvvk2I
2016-08-16 15:44:15 -04:00
Jared Wein
4518d81cb5 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
2016-08-04 03:28:58 -04:00
Jonathan Watt
5c282289dd Bug 1263332 - Avoid startup JavaScript strict warning in DirectoryLinksProvider.jsm. r=MattN 2016-04-12 16:10:25 +01:00
Olivier Yiptong
4ae109c4c3 Bug 1240245 - Disable data collection for new-tab page r=jaws 2016-01-20 16:58:01 -05:00
Olivier Yiptong
10225ddc4e Bug 1218996 - Allow Remote New Tab to ride release trains r=marcosc 2016-01-11 20:30:24 -05:00
Olivier Yiptong
f89245ab0f Bug 1218996 - Remove now redundant messaging code for remote newtab r=marcosc 2016-01-11 20:30:18 -05:00
Wes Kocher
fb177b52c2 Backed out 4 changesets (bug 1218996) for talos svg failures CLOSED TREE
Backed out changeset ba750628c4f3 (bug 1218996)
Backed out changeset 2205cce34824 (bug 1218996)
Backed out changeset 9410cbc0545e (bug 1218996)
Backed out changeset 7839222071ac (bug 1218996)
2015-12-23 11:09:05 -08:00
Olivier Yiptong
8400810454 Bug 1218996 - Allow Remote New Tab to ride release trains r=marcosc 2015-12-21 16:14:38 -05:00
Olivier Yiptong
d3b1fef2b3 Bug 1218996 - Remove now redundant messaging code for remote newtab r=marcosc 2015-12-21 16:14:33 -05:00
Gijs Kruitbosch
c89a48d864 Bug 1233470 - make browser/modules eslintable, r=Mossop 2015-12-17 18:31:08 +00:00
Olivier Yiptong
b6aa3a3e41 Bug 1224950 - Limit Message-Using Remote New Tab to Nightly and Aurora r=mconley 2015-11-19 16:51:45 -05:00
Maxim Zhilyaev
4e9d70942e Bug 1224310 - Suggested tiles requires two blocks to stop showing in newtab [r=marcosc] 2015-11-14 06:10:29 -08:00
Olivier Yiptong
db7914f7c7 Bug 1214287 - 2-4% linux64/win7/8 ts_paint regression on inbound (v.44) seen on Oct 12, 2015 from rev 3012b7a2c97c r=mconley 2015-10-30 23:00:35 -04:00
Maxim Zhilyaev
924bbbd9c7 Bug 1204361 - New Tab Page doesn't honor my "x" clicks on Suggested Tiles; instead of removing the tile, it swaps in a very similar one. [r=emtwo] 2015-10-22 07:18:02 -07:00
Tooru Fujisawa
15e6306d29 Bug 1207490 - Part 11: Remove use of expression closure from browser/modules/DirectoryLinksProvider.jsm. r=Gijs 2015-09-23 17:57:45 +09:00
Dave Townsend
f657500ff0 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.
2015-09-14 11:04:19 -07:00
Wes Kocher
69b522405d 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)
2015-09-22 11:02:55 -07:00
Dave Townsend
eef8701d19 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.
2015-09-14 11:04:19 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Marina Samuel
fdc94e3b7f Bug 1203577 - Remove hardcoded adgroup buckets. r=Mardak. 2015-09-14 14:44:51 -04:00
Nihanth Subramanya
15f00e4940 Bug 1171344 - Update in-content search UI tests. r=adw 2015-06-29 13:52:22 -07:00
Ryan VanderMeulen
08581626f9 Backed out changesets 7f2ddcfe4537 and e88770aa2160 (bug 1171344) for intermittent OSX browser_tabopen_reflows.js failures. 2015-07-16 21:42:22 -04:00
Nihanth Subramanya
55b8edc1be Bug 1171344 - Update in-content search UI tests. r=adw 2015-06-29 13:52:22 -07:00
Maxim Zhilyaev
e9cfb789e3 Bug 1161656 - Report total views preceding a click [r=adw] 2015-07-09 23:03:05 -07:00
Maxim Zhilyaev
c5871d67d8 Bug 1178586 - Pinned suggested tile loses "history" type after a click [r=adw] 2015-07-08 07:28:13 -07:00
Mike Hommey
ef2679ecb4 Bug 1094324 - Set browser.newtabpage.enhanced default in prefs. r=adw
The current behavior is that if there is no user pref, it is set to true or
false depending on the value of privacy.donottrackheader.enabled, but
completely ignoring the global default.

This patch changes the behavior such that:
- browser.newtabpage.enhanced's default value is set as a global default
- it is also set as sticky, so that even when the same value as the default is
  set, prefHasUserValue is true.
- The introduction is not shown when the default for browser.newtabpage.enhanced
  is false. It is however shown when the pref is flipped for the first time.
2015-06-30 07:30:33 +09:00
Marina Samuel
5c7c5857b3 Bug 1169366 - Bucket updates & escaping html characters. r=Mardak 2015-06-16 16:14:54 -07:00
Maxim Zhilyaev
7ce65ac743 Bug 1159884 - Implement inadjacency with a hardcoded list of hashed sites [r=adw] 2015-05-20 17:21:16 -07:00
Ed Lee
1833d054e6 Bug 1157810 - Enforce that tile images are loaded from mozilla.net [r=adw, f=bsmedberg] 2015-05-14 16:46:39 -07:00
Marina Samuel
d104da0219 Bug 1139496 - Allow server provided explanation / ad group name to be displayed on Suggested Tiles [r=adw, f=bsmedberg] 2015-05-19 12:42:08 -07:00
Ed Lee
127f71dffb Bug 1160369 - Allow for sponsored suggested tiles [r=adw] 2015-05-14 16:01:47 -07:00