Граф коммитов

87 Коммитов

Автор SHA1 Сообщение Дата
Florian Quèze 97f401c644 Bug 1362882 - script-generated patch to switch from Promise.defer() to new Promise() where it's straightforward, rs=Mossop. 2017-05-12 14:55:27 +02:00
Florian Quèze 1d0e28a791 Bug 1353542 - script-generated patch to remove .bind(this) calls we no longer need now that generator functions have been replaced with async functions, r=Mossop. 2017-05-12 14:47:41 +02:00
Florian Quèze 5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Ed Lee b7eda53134 Bug 1241390 - Remove Suggested Tiles and related features. r=adw,emtwo
Remove suggested and enhanced tiles along with related campaign, frequency-cap, inadjacency, pings, preferences, strings, styles, tests.

MozReview-Commit-ID: FkjaSpSFQHu

--HG--
extra : rebase_source : 1c58ac542180f0abb290639ec1c61b9edf3d0a51
2017-05-02 17:09:16 -07:00
Florian Queze 4b1556a5f2 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 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
Sebastian Hengst 7b30105d39 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 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
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 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 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Quèze cd762cc83c Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws.
--HG--
extra : rebase_source : c6e20e6e79b0ca5de751c52712d96cbea9432d26
2017-03-07 15:29:48 +01:00
Zibi Braniecki b8914c1a82 Bug 1344901 - Fix a regression introduced in bug 1337551. r=jfkthame
MozReview-Commit-ID: 8SP0ucROJRF

--HG--
extra : rebase_source : 12a6585d46c876c4676565e07709a9c03f0b55ed
2017-03-06 13:54:30 -08:00
Zibi Braniecki c286b2ef87 Bug 1337551: Migrate Services.jsm to use LocaleService. r=mossop
MozReview-Commit-ID: G0HFXfg4r6Y

--HG--
extra : rebase_source : 2217abbb1371132b82574be690f9fab5c1b64fb7
2017-02-08 12:31:06 -08:00
Jared Wein 43bac26d30 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a

--HG--
extra : rebase_source : 014c0b04d8538dc5f15bc6dd4ed6bd220c55c5d4
2017-01-17 09:48:17 -06:00
Florian Quèze 028a82f682 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01: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
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
Mark Banner be75c1f909 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

--HG--
extra : rebase_source : 24b1793eff129370f23ad054543471fd3bf860be
2016-11-03 11:56:28 +00:00
Jared Wein e6276ea7f5 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 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
Jonathan Watt 6266ded185 Bug 1263332 - Avoid startup JavaScript strict warning in DirectoryLinksProvider.jsm. r=MattN 2016-04-12 16:10:25 +01:00
Olivier Yiptong ca1ce2967c Bug 1240245 - Disable data collection for new-tab page r=jaws
--HG--
extra : rebase_source : 0fccb300b9e1411d4d3c7c08c53be28dd3940d7e
2016-01-20 16:58:01 -05:00
Olivier Yiptong 268f43e4f7 Bug 1218996 - Allow Remote New Tab to ride release trains r=marcosc
--HG--
extra : rebase_source : 4f3e45ee392385451f979b084a1d3afab215b925
2016-01-11 20:30:24 -05:00
Olivier Yiptong 25a0061e43 Bug 1218996 - Remove now redundant messaging code for remote newtab r=marcosc
--HG--
extra : rebase_source : 667b19c153820198977d423703c08c0274a05c8f
2016-01-11 20:30:18 -05:00
Wes Kocher 1f00d8d838 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)

--HG--
extra : commitid : Ju4TBTVoAIr
2015-12-23 11:09:05 -08:00
Olivier Yiptong c04bec08b0 Bug 1218996 - Allow Remote New Tab to ride release trains r=marcosc
--HG--
extra : rebase_source : f8df0d27eddf8e4d112d7fa8e954c08f38f22069
2015-12-21 16:14:38 -05:00
Olivier Yiptong e725cd46a8 Bug 1218996 - Remove now redundant messaging code for remote newtab r=marcosc
--HG--
extra : rebase_source : b79e21fb4898742b2e8ccefd4309f6eea2bd5ff5
2015-12-21 16:14:33 -05:00
Gijs Kruitbosch 2a29a25860 Bug 1233470 - make browser/modules eslintable, r=Mossop
--HG--
extra : commitid : IZkQYhmLl9V
extra : rebase_source : 82bd0ac1e9f3b3267d60d127758fa5771a5e9fc9
extra : amend_source : aa17ba3c05cd56840df3c986ba04221beeac2026
2015-12-17 18:31:08 +00:00
Olivier Yiptong a10c269286 Bug 1224950 - Limit Message-Using Remote New Tab to Nightly and Aurora r=mconley
--HG--
extra : commitid : 7WhGDvbiS1o
2015-11-19 16:51:45 -05:00
Maxim Zhilyaev c6aaea2687 Bug 1224310 - Suggested tiles requires two blocks to stop showing in newtab [r=marcosc] 2015-11-14 06:10:29 -08:00
Olivier Yiptong c84ef61eea Bug 1214287 - 2-4% linux64/win7/8 ts_paint regression on inbound (v.44) seen on Oct 12, 2015 from rev 3012b7a2c97c r=mconley
--HG--
extra : commitid : 2b5S3mpFBf2
2015-10-30 23:00:35 -04:00
Maxim Zhilyaev 2853b7dd46 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 a9ba6e8360 Bug 1207490 - Part 11: Remove use of expression closure from browser/modules/DirectoryLinksProvider.jsm. r=Gijs
--HG--
extra : commitid : 6BrNT0HYiLb
extra : rebase_source : ca65a71ce1bbb287c431824ed1aed300ebd45996
2015-09-23 17:57:45 +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
Marina Samuel ce263b9f80 Bug 1203577 - Remove hardcoded adgroup buckets. r=Mardak. 2015-09-14 14:44:51 -04:00
Nihanth Subramanya b2fa1cbd22 Bug 1171344 - Update in-content search UI tests. r=adw
--HG--
rename : browser/base/content/test/general/browser_searchSuggestionUI.js => browser/base/content/test/general/browser_contentSearchUI.js
rename : browser/base/content/test/general/searchSuggestionUI.html => browser/base/content/test/general/contentSearchUI.html
rename : browser/base/content/test/general/searchSuggestionUI.js => browser/base/content/test/general/contentSearchUI.js
extra : amend_source : 9c4e36512a0deec03af39a1f0aaee3a1312aa7a5
2015-06-29 13:52:22 -07:00
Ryan VanderMeulen d7e5192373 Backed out changesets 7f2ddcfe4537 and e88770aa2160 (bug 1171344) for intermittent OSX browser_tabopen_reflows.js failures.
--HG--
rename : browser/base/content/contentSearchUI.css => browser/base/content/searchSuggestionUI.css
rename : browser/base/content/contentSearchUI.js => browser/base/content/searchSuggestionUI.js
rename : browser/base/content/test/general/browser_contentSearchUI.js => browser/base/content/test/general/browser_searchSuggestionUI.js
rename : browser/base/content/test/general/contentSearchUI.html => browser/base/content/test/general/searchSuggestionUI.html
rename : browser/base/content/test/general/contentSearchUI.js => browser/base/content/test/general/searchSuggestionUI.js
2015-07-16 21:42:22 -04:00
Nihanth Subramanya a10ae2709a Bug 1171344 - Update in-content search UI tests. r=adw
--HG--
rename : browser/base/content/test/general/browser_searchSuggestionUI.js => browser/base/content/test/general/browser_contentSearchUI.js
rename : browser/base/content/test/general/searchSuggestionUI.html => browser/base/content/test/general/contentSearchUI.html
rename : browser/base/content/test/general/searchSuggestionUI.js => browser/base/content/test/general/contentSearchUI.js
extra : rebase_source : 5026d41213c8ebfbdcb56b0a5e88e4d8b0fc22d8
2015-06-29 13:52:22 -07:00
Maxim Zhilyaev 2edeb7cc5c Bug 1161656 - Report total views preceding a click [r=adw] 2015-07-09 23:03:05 -07:00
Maxim Zhilyaev 2b90bd3e49 Bug 1178586 - Pinned suggested tile loses "history" type after a click [r=adw] 2015-07-08 07:28:13 -07:00
Mike Hommey a99e964614 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 6016450080 Bug 1169366 - Bucket updates & escaping html characters. r=Mardak 2015-06-16 16:14:54 -07:00